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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ce3b72e5027d4873144127d990056f8afafa6df5 | 8f50c262f89d3dc4f15f2f67eb76e686b8f808f5 | /Simulation/G4Extensions/Gauginos/src/components/Gauginos_entries.cxx | 0cb7c431dd4ea64810072882961a9e171c81b127 | [
"Apache-2.0"
] | permissive | strigazi/athena | 2d099e6aab4a94ab8b636ae681736da4e13ac5c9 | 354f92551294f7be678aebcd7b9d67d2c4448176 | refs/heads/master | 2022-12-09T02:05:30.632208 | 2020-09-03T14:03:18 | 2020-09-03T14:03:18 | 292,587,480 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 80 | cxx | Gauginos_entries.cxx | #include "../GauginosPhysicsTool.h"
DECLARE_COMPONENT( GauginosPhysicsTool )
|
b12710c559dbf9f363f40a3f87192ba3a54f832d | 2acbfdf0d2bb09ba535d71e5f00a2a41335bc6f5 | /headers/Trap.hpp | b462835250c8e1676697179e01c33d02c7f02183 | [] | no_license | Adikso/NecroDancerHeaders | d5ddc01df881d082230506ddc2bdfaf3e56c0df3 | 228e14c0e0420105366b552228e25a8b6a63b8c0 | refs/heads/master | 2020-04-02T23:03:05.824455 | 2018-11-16T20:00:27 | 2018-11-16T20:00:27 | 154,854,162 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,041 | hpp | Trap.hpp | // Generated automatically. Do not edit!
#ifndef _Trap_
#define _Trap_
class String;
class TrapList;
#include "Entity.hpp"
class Trap : public Entity {
public:
int trapType;
int triggeredOnBeat;
Entity * willTriggerOn;
Entity * triggeredOn;
bool triggered;
bool isRune;
bool indestructible;... |
1d4891b5ae8882332d1842ddf0741bed80801968 | 3abcd4b052f269a18352a12c32aed964a9aa3cbd | /src/xci/core/FileWatch.h | ff2c62827123d38fd2d10ba1046ab61298eab4ee | [
"Apache-2.0"
] | permissive | lineCode/xcikit | f37b8c0f0cf53bb465e94a22b2a4c7b4ba10c947 | 7f371654b47ac24cc781723479e891df23e08816 | refs/heads/master | 2020-04-08T19:26:17.847363 | 2018-11-21T20:59:51 | 2018-11-21T20:59:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,292 | h | FileWatch.h | // FileWatch.h created on 2018-03-30, part of XCI toolkit
// Copyright 2018 Radek Brich
//
// 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.... |
f7ad0b0c44eb9af7a2e02c22e934a8a8e0126c6c | 6dd55da3aadeccd4444d178d91f0f2d566a43e6b | /P3_BaseStation/project3/roomba/game.cpp | b05daa72162b34d16c4011598e128348c99ee1c3 | [] | no_license | paulhunter/csc460 | 335ce028716e9c9a2909899788b504138ea94455 | 6a85b9e25e02dc58f35b453ce8418463039f7568 | refs/heads/master | 2016-09-09T23:06:05.502881 | 2015-04-08T05:31:37 | 2015-04-08T05:31:37 | 29,175,781 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 522 | cpp | game.cpp | /*
* cops_and_robbers.h
*
* Created: 2015-01-26 17:09:37
* Author: Daniel
*/
#include "game.h"
#include "avr/io.h"
uint8_t ROOMBA_ADDRESSES[4][5] = {
{0x4A,0x4A,0x4A,0x4A,0x4A},
{0x4B,0x4B,0x4B,0x4B,0x4B},
{0x4C,0x4C,0x4C,0x4C,0x4C},
{0x4D,0x4D,0x4D,0x4D,0x4D}
};
uint8_t ROOMBA_FREQUENCIES [... |
7c849ee1fddd3914f20bbfc02ef2d570f2ca08d7 | 8911111f2e4c70b0d19c073935ea609f26b5e4e3 | /FieldOptimism/main.cpp | 078a4ecf79491414f123ed56e2951ad3e6afdeb6 | [] | no_license | XuejiaoYuan/FieldOptimism | 47d7c486dbc62e451849cebcd97b241bbadc8f2c | cfb39e2210871973b88d2aaf593cefe2a9b88312 | refs/heads/master | 2022-04-05T10:05:51.670846 | 2020-01-13T06:50:28 | 2020-01-13T06:50:28 | 180,075,669 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 660 | cpp | main.cpp | #include "FieldSimulationController/FieldSimulationController.h"
int main(int argc, char** argv) {
if (argc != 3) {
cout << "[ERROR] Wrong parameters!" << endl;
cout << "Usage: [InputJson] [SimulationType: -o -hf -ff]" << endl;
return -1;
}
string str = string(argv[2]);
ControllerMode controller_mode = Field... |
b090307e744bc391982efb3cf27bc4f9453b8061 | 55d7e1e00574a91f20aa3e2cd7b381531e5a16af | /core/driveengine.h | 8de526056087ac1ecd1931086211a1dc4f5cb6dd | [] | no_license | venkatarajasekhar/google-drive-qt | 9ada01d59ccaf1f196c19b64c8f8cb568424366c | 53aee7855461449087caecc70609192ccad0184a | refs/heads/master | 2021-01-13T17:32:10.645548 | 2013-05-06T21:12:48 | 2013-05-06T21:12:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,579 | h | driveengine.h | #ifndef DRIVEENGINE_H
#define DRIVEENGINE_H
#include <QTreeWidgetItem>
#include "network/downloadmanager.h"
#include "network/uploadmanager.h"
#include "network/contentmanager.h"
#include "gui/forms/mainwindow.h"
#include "ui_mainwindow.h"
#include "gui/filestransferui.h"
#include "gui/contentui.h"
#include "gui/check... |
b81e410ca30b94b808b7d40dc875673835665c48 | 5c70eac34b32fb06d61dc2e02a4330c788cba79f | /src/ofxOpenNIProxy.h | 28321ee25ea4697c3e600b24d51936474bdd3f8a | [
"MIT"
] | permissive | patriciogonzalezvivo/ofxKinectUsers | ff1a1ad522b0edf8782258a3adf2031edcd118ee | 3a9dce67db7264d9d913a34c768c7968f179e2d1 | refs/heads/master | 2020-05-18T18:09:35.579823 | 2012-07-06T04:43:48 | 2012-07-06T04:43:48 | 3,941,186 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 938 | h | ofxOpenNIProxy.h | #ifndef OFXOPENNI
#define OFXOPENNI
//#define HARDWARE
//#define IMAGE
#define MAX_USERS 8
// Open NI
#include "ofxOpenNIContext.h"
#include "ofxDepthGenerator.h"
#include "ofxUserGenerator.h"
#ifdef HARDWARE
#include "ofxHardwareDriver.h"
#endif
#ifdef IMAGE
#include "ofxImageGenerator.h"
#endif
// OpenFramework... |
6447794642369c4ee4edfdc19d3660548059a25e | 0c9ace9a9d35c926e71154b7d0d303da5b6e0370 | /bfs/bfs.cpp | dbaebc24cad0e68adfdad2e040475d9c60c2b783 | [] | no_license | sinsheep/dateStructures | 3f257580ada61a6b9cee0481b4aec27d50638ac1 | bacf9d43e6ffa3667228d608ad634ea83b4c1272 | refs/heads/master | 2023-04-04T11:51:57.052149 | 2021-04-09T15:36:14 | 2021-04-09T15:36:14 | 316,744,922 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,141 | cpp | bfs.cpp | #include<bits/stdc++.h>
using namespace std;
int n,m,t,dx,dy,flag;
char mp[50][50];
int dir[][2]={{1,0},{-1,0},{0,1},{0,-1}};
struct node{
int x,y,step;
bool check()
{
if(mp[x][y]=='*')
return false;
return true;
}
}head,tail;
int bfs()
{
queue<node> q;
q.push({dx,dy,0});
while(!q.empty())
{
head=q... |
9f729339dce4c3745dd5665be661518d5b3ab5ed | 6d4268b5e208206b4c5bb4b031b149483bd385c0 | /randg.cpp | 251625587b87c7105d49cda01f8132e30e46268f | [] | no_license | rajashekar007/jops | 1d97cd13866fe95bbb1942378543829a85e2d9f2 | 728a91857dddb8be81178fe99b49f9abda0efe55 | refs/heads/master | 2020-04-15T22:49:51.991709 | 2015-03-24T22:46:50 | 2015-03-24T22:46:50 | 32,829,519 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 493 | cpp | randg.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
char c[57];
while(scanf("%s",c)!=EOF)
{
int r[57]={},g[57]={},l,i,mn=57;
l=strlen(c)-1;
if(c[0]=='G')
r[0]=1;
if(c[l]=='R')
g[l]=1;
for(i=1;i<=l;i++)
{
if(c[i]=='G')
r[i]=r[i-1]+1;
else
r[i]=r[i-1];
}
for(i=l-1;i>=0;i--)
... |
3984689d1f956f785bbf24780dcd7727c67e8120 | 912efcba15eb61f2b607c141a9874dacb253981b | /GameCpp2/ExplosionObject.cpp | 2291e4b28ab12f39512dddb626a6836e5b3440e2 | [] | no_license | vuhang1712/ContraGame | 1cd04299c6bdf928fe1ee99053ee51d9e44e4f25 | d21e3bae4854e5d349c6965598063570f7bf7953 | refs/heads/main | 2023-02-20T00:53:34.724872 | 2021-01-25T04:43:18 | 2021-01-25T04:43:18 | 316,646,798 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,043 | cpp | ExplosionObject.cpp |
#include "stdafx.h"
#include "ExplosionObject.h"
ExplosionObject::ExplosionObject(void)
{
}
ExplosionObject::~ExplosionObject(void)
{
}
bool ExplosionObject::LoadImg(std::string path, SDL_Renderer* screen)
{
bool ret = BaseObject::LoadImg(path, screen);
if (ret == true)
{
frame_width_ = rect_.w/NUM_F... |
3cb664fbf2e4b5bdfd1660e77a8731e14f39f635 | d0de23cb7a082637337cf453c39fb2d0f7595d70 | /594. Longest Harmonious Subsequence.cpp | b6379a64144b1b0f9ddcfed38c7b7d18b6b30506 | [] | no_license | karlchina2008/LeetCode | f1a8989c861c60d8aa1ab8a60986caf5bfec9e99 | 744ae6f09f22ebcd647fa92c5e76aacdc0943f13 | refs/heads/master | 2020-07-20T12:22:08.416245 | 2017-06-18T06:26:14 | 2017-06-18T06:26:14 | 67,359,399 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 979 | cpp | 594. Longest Harmonious Subsequence.cpp | /*
We define a harmonious array is an array where the difference between its maximum value and its minimum value is exactly 1.
Now, given an integer array, you need to find the length of its longest harmonious subsequence among all its possible subsequences.
Example 1:
Input: [1,3,2,2,5,2,3,7]
Output: 5
Explanation: ... |
871178607088e0c1e052d65a7273fb47e8beb0b7 | cc5182ab622a59b37ed1815cae6c9bbc116e7d8c | /cubeWIFI/effectsChange.ino | 28e14cb154812d952a52f7dfffaec8e1b1e8d2c6 | [] | no_license | Pankezdruj/Cube-WiFi | a08bf75af1c6e15816dafdb434b07be5609039ff | d56596b5afd3a96e3be10e8098bb0d613e8a9424 | refs/heads/main | 2023-07-05T05:46:42.525343 | 2021-08-12T11:07:58 | 2021-08-12T11:07:58 | 395,289,225 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,134 | ino | effectsChange.ino | void effectChangeHandler() {
if (changeModes && millis() - tmrColor >= CHANGE_PRD * 1000L) {
FastLED.clear();
tmrColor = millis();
fadeFlag = true;
incrementMode();
}
if (fadeFlag && millis() - tmrFade >= 10) {
static int8_t fadeDir = -1;
tmrFade = millis();
if (fadeFlag) {
curBr... |
a5391c8e9574efbce8df66fb0ee348334c8ee3c7 | 13111967b7d334bd5786566a37bf6c00ab80f851 | /src/denseReconstructor/patchdensereconstructor.cpp | f035d48c79dd2ba6c9814e0d78bd9919df863aa7 | [
"BSD-3-Clause"
] | permissive | flec/sfm | caaa61a54f29f3acba37ad30593f80e49b8b364e | 6a74014d42e0c404b42356109c1b1210f13ee9a4 | refs/heads/master | 2020-05-21T05:56:17.708732 | 2016-02-23T20:18:49 | 2016-02-23T20:18:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 341 | cpp | patchdensereconstructor.cpp | // Copyright 2015 Marco Fuellemann & Janosch Rohdewald. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include <opencv2/calib3d.hpp>
#include "patchdensereconstructor.h"
void PatchDenseReconstructor::reconstruct(vector<shared_ptr<ImagePai... |
65b5c0cfa82e5acf2380add2810044a6aece7bb7 | 73849b055d6870b85c88cb86df485f1fd79e897c | /nano32_espnow_master/src/main.cpp | 1927f064325ead3f5dacc9e17b6ab428d00f9865 | [] | no_license | cmmakerclub/smart-car-parking | 223b706cafb3f9926262c663abca070b8d337c7c | e7a537927b20e137fdac816ae00f8af76e0b50ca | refs/heads/master | 2020-03-22T19:28:33.160937 | 2018-07-11T06:34:38 | 2018-07-11T06:34:38 | 140,531,181 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,327 | cpp | main.cpp | #include <Arduino.h>
#include <esp_now.h>
#include <WiFi.h>
#include <CMMC_NB_IoT.h>
#include "data_type.h"
HardwareSerial Serial1(2);
CMMC_PACKET_T pArr[30];
int pArrIdx = 0;
char* espnowMsg[300];
#define rxPin 15
#define txPin 18
#define LED_PIN
// SoftwareSerial swSerial(rxPin, txPin);
CMMC_NB_IoT nb(&Serial1... |
b7ae79a146e92624a06561005a609f1afcdea554 | 2fb6d3f64da22c0003cf298c50c63e8bf481da87 | /C++_perusteet_2008/Graph.cpp | 5234582f8ffaadbb40bcef445dde2001387c5b7e | [
"MIT"
] | permissive | tkukka/VariousContent | 68c0b7b03bff02e54aba31fef6af94c250f21eeb | 91b245fc9195ee6e8096e4f787d4ed29931a85f2 | refs/heads/master | 2023-04-09T13:03:25.279272 | 2023-03-21T11:15:01 | 2023-03-21T11:15:01 | 232,808,571 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,517 | cpp | Graph.cpp | /** \file Graph.cpp
Graafi-luokan toteutus
*/
#include <deque>
#include "Graph.h"
/**
* Solmun etäisyys ääretön.
*/
static constexpr int DIST_INFINITE = -1;
/** Solmu, johon ei tule polkua.
*/
static const Node NIL_NODE{ -1, -1 };
/**
* Oletusmuodostin.
*/
Graph::Graph()
{
}
/**
* Hajotin.
*/
Graph::~G... |
d0b6ed2f6fa32b8b8ac6e22765c1ae69ccf1ea70 | e687f1e9c55273e55b4b9575d16cf45a9f728ab1 | /game.hpp | 0e1457a98a048458e16b85223aee45af56cbecdd | [
"Apache-2.0"
] | permissive | nDerroitte/Snow-game | b7b0d723fb441979aa723c7317e75e05c57397fe | 5b36156faa4043ee74c5685ae6468bb6345b619c | refs/heads/master | 2021-04-06T19:44:47.140328 | 2018-05-08T17:55:46 | 2018-05-08T17:55:46 | 125,250,005 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,434 | hpp | game.hpp | /* ------------------------------------------------------------------------- *\
* Natan Derroitte
*
* Object oriented programing project - Project 3 - 23/12/16
\* ------------------------------------------------------------------------- */
#ifndef game_hpp
#define game_hpp
#inc... |
286ab6391e332d59d2cee608e0b10e5b3724a3ce | 3a543c8110e5d8f5008ab5da5b7edb6ade8d49d7 | /include/steered_wheel_base_controller/util.h | a3740153a384b4284fa5935180c9b5c78c654ca2 | [
"Apache-2.0"
] | permissive | parthchopra1110/steered_wheel_base_controller | d7e0a00dcb9d137f435c62672586580dbcbc0861 | 5091e7c369232d38d3d47fddc95661aa9ed0fb7a | refs/heads/master | 2021-01-21T21:15:11.345864 | 2015-10-09T01:44:29 | 2015-10-09T01:44:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,074 | h | util.h | #ifndef _SWBC_UTIL_H_
#define _SWBC_UTIL_H_
#include <hardware_interface/joint_command_interface.h>
#include <ros/ros.h>
#include "steered_wheel_base_controller/joint_base.h"
#include "steered_wheel_base_controller/joint_types/pos_joint.h"
#include "steered_wheel_base_controller/joint_types/vel_joint.h"
#include "ste... |
49032e1f6c91c1db805fb5526532b31884dcdcda | 869968106eb3a4dde6dcd90417116d0f50d6f99e | /libraries/DSelector/DAnalysisAction.h | f309d878d74a08cd9a5da2ffbf1f69443f23f6d1 | [] | no_license | JeffersonLab/gluex_root_analysis | a5ec62808125deb830d0e78478b0a8c26e38c32a | fbe9fa2e60d56a392ea16d180865675be4df8a83 | refs/heads/master | 2023-05-01T01:47:31.220287 | 2023-01-04T21:03:57 | 2023-01-04T21:03:57 | 56,803,102 | 13 | 8 | null | 2023-01-04T21:03:58 | 2016-04-21T20:18:17 | C++ | UTF-8 | C++ | false | false | 2,912 | h | DAnalysisAction.h | #ifndef _DAnalysisAction_
#define _DAnalysisAction_
#include <string>
#include "TDirectoryFile.h"
#include "DParticleCombo.h"
using namespace std;
class DAnalysisAction
{
public:
DAnalysisAction(const DParticleCombo* locParticleComboWrapper, string locActionBaseName, bool locUseKinFitFlag = false, string locAct... |
cd540d502a116541173a5be008764481e5838020 | b776212295f64b4734440acae88b098918ce8a69 | /CodeChef/piece_of_cake.cpp | 541437f6fb528d8c418e86ce34320603207b28b2 | [] | no_license | tommy5198/acm | 7635147f18e2e1c54fc87813cccd14fddcac5897 | d65cef14286141684013c3425cca7ad3250867de | refs/heads/master | 2016-08-06T00:53:13.140150 | 2015-05-27T10:52:49 | 2015-05-27T10:52:49 | 7,730,894 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 441 | cpp | piece_of_cake.cpp | #include<cstdio>
#include<cstring>
int main(){
int T;
scanf("%d", &T);
getchar();
while(T--) {
int sum = 0;
int cnt[26] = {0};
for(char c; (c=getchar()) != '\n' && c; sum++) {
cnt[c - 'a']++;
}
int i;
for(i=0; i<26; i++)
if(sum == ... |
cd2aa604f874036f6643d095dcbe4727aa58af7c | 83bacfbdb7ad17cbc2fc897b3460de1a6726a3b1 | /third_party/WebKit/Source/modules/webgl/WebGLRenderingContext.h | ed26f5aebedfe6665995faa1f3c5ffb2f43ac552 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"Apache-2.0"
] | permissive | cool2528/miniblink49 | d909e39012f2c5d8ab658dc2a8b314ad0050d8ea | 7f646289d8074f098cf1244adc87b95e34ab87a8 | refs/heads/master | 2020-06-05T03:18:43.211372 | 2019-06-01T08:57:37 | 2019-06-01T08:59:56 | 192,294,645 | 2 | 0 | Apache-2.0 | 2019-06-17T07:16:28 | 2019-06-17T07:16:27 | null | UTF-8 | C++ | false | false | 4,628 | h | WebGLRenderingContext.h | /*
* Copyright (C) 2009 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
8211d65392b05e4b9403576e6b7cdab8e0972cc2 | 9dd4edf1b1e5384677ae1eb09fe3a91ed8d76d41 | /writeAndReadInBinary.cpp | 0f23b416ae460e546230a52ae7e332742aefc95d | [] | no_license | abeldjesusp/code_cpp | 48fb158de4f11b7c757db7b014b627bd96b5e515 | 114752b71faf0f0ec534bdabdd8db54d6dfc8f20 | refs/heads/master | 2021-08-31T21:04:52.077341 | 2017-12-22T22:57:13 | 2017-12-22T22:57:13 | 115,154,713 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 557 | cpp | writeAndReadInBinary.cpp | #include <iostream>
#include <fstream>
using namespace std;
struct Persona{
char nombre[8];
int edad;
};
int main(int argc, char const *argv[]){
/** Archivos binarios **/
// Escritura
// ofstream salida;
// salida.open("data.bin",ios::binary);
// Persona p = {"Abel", 22};
// salida.write((char*)&p, sizeof(... |
bd010ba84db7ed7774ba79189c41196c8f65f485 | ff4d4757d9c811510c8c755901ef4d4c361cd731 | /Tools/ADrender/ADbase.cpp | ebe9019d129df4f44af7e8354efd22998b2f617c | [
"LicenseRef-scancode-public-domain"
] | permissive | ApocalypseDesign/ad_public | 4b6a623885808625b54b2888e79b7e2e1f834ac3 | 4c6a2759395a3ad36e072ffed79a7d9b48da219c | refs/heads/master | 2020-06-01T02:12:11.640297 | 2013-05-31T19:53:30 | 2013-05-31T19:53:30 | 9,555,519 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,491 | cpp | ADbase.cpp | #include <windows.h>
#include <stdio.h>
#include <d3d9.h>
#include "adbase.h"
void debug_error_lib(HWND hWnd, char *messaggio)
{
FILE *fd;
fd=fopen("debug_error.txt", "wt");
fprintf(fd, "Debug_Error: %s\n", messaggio);
fflush(fd);
fclose(fd);
MessageBox(hWnd, messaggio,"AD-Debug", NULL);
exit(0);
}
v... |
92b41cdb37aa228184dcadf4481806e6b7b35d57 | 82d179c58189a9f66d7599f029ff1f2041217987 | /attiny_power_manager/src/ILogger.h | e42ba4e919dc2b43ab5cd2053ecafef94c6453b2 | [] | no_license | tipith/rpiz-lowpower-mobo | bfc00d8e6f37e3fd7da969d6acd76a751e9426d7 | 493526a03285157f31d8602d06ff5d69f8177f69 | refs/heads/master | 2020-06-22T15:17:55.233328 | 2019-08-06T18:34:38 | 2019-08-06T18:34:38 | 197,736,001 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 169 | h | ILogger.h | #pragma once
class ILogger
{
public:
virtual void printf(const char* fmt, ...) = 0;
virtual void tagged_printf(const char* tag, const char* fmt, ...) = 0;
}; |
4445e0febbdfff1fd3d68ae67b386803f4ec9d8d | 3368b540e5025f0fdb34fbf4c07d6df2fbce9616 | /g6/Date3/main.cpp | 34f8cf206d9fcf18c8248a4d9e663183ecd4f7bb | [] | no_license | Cerebro-in-speculo/Ravesli | 86fd67db115c3bde5953cc46fe13c5c6905e69d0 | 74dceb37dfdccc09cf2cc8e1f3d093e322505631 | refs/heads/master | 2022-02-12T15:21:43.699265 | 2019-07-17T13:36:16 | 2019-07-17T13:36:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 258 | cpp | main.cpp | #include <iostream>
int main()
{
int array[] = { 7, 5, 6, 4, 9, 8, 2, 1, 3 };
int scoreDate=sizeof(array)/sizeof(array[0]);
for(int i=0;i<scoreDate;++i)
std::cout<<array[i]<<" ";
std::cout<<'\n';
system("pause");
return 0;
}
|
e69ea57abb7236de71a70e702870de935263c55c | 0d9757ff72764b6281294101e84c7117342b2003 | /main.cpp | 3877893759fd3516a29823fcf0ad777afeccd5dc | [] | no_license | IlyaEldin/LabTIMP1.2 | fc15faad312f7a6fff9a470da6dc2794d44a7007 | 223087c9f76f46b74e8d8c558aebcb5aebe3cee6 | refs/heads/main | 2023-04-14T00:41:35.727012 | 2021-04-24T08:37:43 | 2021-04-24T08:37:43 | 361,110,131 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,606 | cpp | main.cpp | #include "CesarDop.h"
#include <stdio.h>
#include <iostream>
#include <cctype>
#include <locale>
using namespace std;
bool KeyisValid(const int& s)
{
if (s>0)
return true;
return false;
}
bool isValid(const wstring& s)
{
for(auto c:s)
if (!iswalpha(c) || !iswupper(c))
return fals... |
a06102ee026cbd11c75dc0acf8cb5e70561b69eb | e54b9c6144eff00d727868690b60bed48576a8c1 | /Source/ZhangSpace/MainPlayerController.cpp | 1795d3dd7b3fad7427555e34a246e446a6d0670d | [] | no_license | trymtrim/ZhangSpace | 14efb9b94cc2af331cbd96166395f10d88a9a6f2 | d0ed05bc6578fe46a70d8ade223c524a752c54f7 | refs/heads/master | 2020-03-28T11:17:09.286475 | 2018-12-14T09:23:10 | 2018-12-14T09:23:10 | 148,151,656 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,601 | cpp | MainPlayerController.cpp | // Copyright Team Monkey Business 2018.
#include "MainPlayerController.h"
#include "Engine/World.h"
#include "GameFramework/Character.h"
#include "GameFramework/PlayerController.h"
#include "UnrealNetwork.h"
#include "Engine.h"
#include "Kismet/KismetMathLibrary.h"
#include "MainGameState.h"
#include "ConfigManager.h"... |
4b54c9a0c4c6a1ba571645e977552d70a180b55a | 64136a2c8bfb28ace405f1ad07a91a685ec7ca2d | /tests/LinearizedTaskConstraintTest.cpp | 6be8b04b3881fc41291f519d04f38a8157956907 | [
"BSD-3-Clause"
] | permissive | ANYbotics/tvm | 72152792580592e16ad1280fca278d00b08a8d67 | 81ea5767eefbac285a9fa03b3d1f55c5e05474ac | refs/heads/master | 2023-08-24T23:44:13.633877 | 2023-01-20T16:15:29 | 2023-01-23T21:33:10 | 265,188,142 | 3 | 0 | BSD-3-Clause | 2020-07-20T07:22:19 | 2020-05-19T08:21:24 | C++ | UTF-8 | C++ | false | false | 3,661 | cpp | LinearizedTaskConstraintTest.cpp | /*
* BSD 2-Clause License
*
* Copyright (c) 2012-2019, CNRS-UM LIRMM, CNRS-AIST JRL
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the a... |
7257f7a588699e150ffd6b71e65d81e3d424a252 | 0ebf19dc13c859dda91e6c53a32fe2aa526b098e | /WeirdEngine/WeirdEngine/Engine.h | a1643197d86b3edcdeaa0c3625d0203ab2b782ba | [] | no_license | Rikenou/WeirdEngine | 71b69defc2afad4c2aad11492ffa054361b8c12a | 42d38618d5e77b6e6f1a82719d48d22ae49d4abe | refs/heads/master | 2020-03-07T03:25:44.023924 | 2018-04-21T00:07:57 | 2018-04-21T00:07:57 | 127,235,040 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 448 | h | Engine.h | #pragma once
#include <memory>
#include "Manager.h"
#include "SystemManager.h"
namespace WEIRD {
class Engine
{
public:
Engine();
~Engine();
static Engine* startEngine();
int init();
int Run();
protected:
static std::unique_ptr<Engine>engine;
Manager manager;
bool isRunning = false;
int fr... |
30876c1d607b5105524aaeedaf6e18989a77058b | 5b46738402f4c4f3c46d0e67c0e6fdc08031d9fa | /Contests/UFBA/C.cpp | 20a30818eb9bf03b7839fc096fda75bd3e2baf9a | [] | no_license | gafeol/competitive-programming | a57dcd6fbcc7eed9e4aa77815e7cb525c9ace30c | 1af50554afe4b869f341b16681618aef0e291534 | refs/heads/master | 2021-07-07T09:23:51.984327 | 2021-04-18T18:20:21 | 2021-04-18T18:20:21 | 67,904,346 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,212 | cpp | C.cpp | #include <bits/stdc++.h>
using namespace std;
#define fst first
#define snd second
typedef unsigned long long ull;
typedef long long ll;
typedef pair<int, int> pii;
#define pb push_back
#define for_tests(t, tt) int t; scanf("%d", &t); for(int tt = 1; tt <= t; tt++)
template <typename T> void write(ostream& out, T t) {... |
2bb107fbd7879763896ce18e162d3a2a377a66ef | fd5d274d6a94db9e9a2d10a544bdc625d2f443eb | /day05/ex03/ShrubberyCreationForm.hpp | a38ea3c0ab1c1b5551349234253aca974170491d | [] | no_license | opogiba/PiscineCplusplus | 26943f87bc8ab5091f1eeaa3999eb9ce9c478046 | b644ecb09f4e856ae67f5dff3da88f54e9a4d036 | refs/heads/master | 2021-08-12T02:59:33.802880 | 2017-11-14T10:43:22 | 2017-11-14T10:43:22 | 110,676,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 515 | hpp | ShrubberyCreationForm.hpp | //
// Created by Oleksiy Pogiba on 11/7/17.
//
#ifndef D05_SHRUBBERYCREATIONFORM_HPP
#define D05_SHRUBBERYCREATIONFORM_HPP
#include "Form.hpp"
#include "fstream"
class ShrubberyCreationForm : public Form{
public:
ShrubberyCreationForm( void );
ShrubberyCreationForm( std::string target );
ShrubberyCreationForm( Sh... |
6846e65cdfefefce095ce53a96b39213bef12732 | dc702143eb02e4d4efccb7d46bc56765cd33af85 | /main.cc | 94ec6f02ba22e1b24442e6e7e934e177ce0d8a13 | [] | no_license | kd345312/CS2401 | addbbc707e16c46d03a70f29e85db193aadf5b1e | d24c0037118f02143ff4287e3b59e5bf6a04e4e2 | refs/heads/master | 2020-12-13T13:51:06.429194 | 2017-06-27T18:41:14 | 2017-06-27T18:41:14 | 95,589,437 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 647 | cc | main.cc | #include "MyTime.h"
#include <iostream>
using namespace std;
int main(){
MyTime t1, t2;
int scalar;
cout << "Enter time 1: ";
cin >> t1;
cout << "Enter time 2: ";
cin >> t2;
cout << "And finally enter a scalar for math manipulation: ";
cin >> scalar;
//cout << t1 << " + " << t2 << "... |
6cb827b062db581752a8556bfff19d0ef628e5cd | f83ef53177180ebfeb5a3e230aa29794f52ce1fc | /ACE/ACE_wrappers/TAO/orbsvcs/Time_Service/Clerk_i.cpp | d0eb5acb343d3bd8a2be4918b3fb8a82fb4ffd56 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-sun-iiop"
] | permissive | msrLi/portingSources | fe7528b3fd08eed4a1b41383c88ee5c09c2294ef | 57d561730ab27804a3172b33807f2bffbc9e52ae | refs/heads/master | 2021-07-08T01:22:29.604203 | 2019-07-10T13:07:06 | 2019-07-10T13:07:06 | 196,183,165 | 2 | 1 | Apache-2.0 | 2020-10-13T14:30:53 | 2019-07-10T10:16:46 | null | UTF-8 | C++ | false | false | 14,384 | cpp | Clerk_i.cpp | #include "orbsvcs/Log_Macros.h"
#include "Clerk_i.h"
#include "tao/debug.h"
#include "ace/Read_Buffer.h"
#include "ace/Get_Opt.h"
#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_fcntl.h"
#include "ace/os_include/os_netdb.h... |
71925c03b22caa059ba301887ba99958a45e85e9 | 2ba2b07343d8d72c1b1f426e77a65f9eda153aed | /srcs/Font.cpp | d96e62b29a28ce8c2d46472db53d57fe1b0e6fb3 | [] | no_license | jloro/GameEngine | 0e894977c618ca63258473b7de1643f536367d4f | 2a1498d1ee7f91052e96e7dbca8b05bddad28aac | refs/heads/master | 2020-08-08T20:14:32.932173 | 2019-12-12T11:31:15 | 2019-12-12T11:31:15 | 213,907,306 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,612 | cpp | Font.cpp | #include "Font.hpp"
#include "vector"
#include "gtc/matrix_transform.hpp"
#include "gtc/type_ptr.hpp"
#include <iostream>
#include <fstream>
# ifndef STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
# endif
Font::Font(const std::string font, int pixelSize) : _pixelSize(pixelSize)
{
std::ifstream ifs("ressources/fonts/... |
65277c25c475b101c5545faefb595770afbad263 | b1f6ca0a82f4e21528cd2ebcd4eea5ae9da7ec06 | /Windows Thumbnail Providers/AxisThumbnailProviders/Source/Utils/DIBBitmap.h | 40254f6effe5e25992b60a62506fd548bea67741 | [] | no_license | Palitri/Axis | 6b79022b4153622158e8535b095fe44cebbe376c | 5ae33c8bda9610c45426c8398c607a0cd3ecd208 | refs/heads/master | 2021-01-23T12:53:25.619319 | 2018-02-19T09:30:24 | 2018-02-19T09:30:24 | 93,206,230 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 223 | h | DIBBitmap.h | #pragma once
#include "AxPixelFormat.h"
#include <windows.h>
class DIBBitmap
{
public:
DIBBitmap(void);
~DIBBitmap(void);
static HBITMAP CreateBitmap(int width, int height, AxPixelFormat &dataFormat, void* data);
};
|
d56d9eece23dba063c157da4ff506837245a9eba | 770b3b656d250260784567c23406b59e82fe4855 | /proj3/test.cpp | fdb4408fd8ba6d370aa51e5c6ad63cad248c18c1 | [] | no_license | alex-shortt/cs130a | d73c22fcaa3118287446505eb1ca6e7c824f7192 | fb2f84370dcee3ca737ac69e3a9eebf57198799b | refs/heads/master | 2023-02-02T20:37:49.393804 | 2020-12-21T05:13:32 | 2020-12-21T05:13:32 | 305,030,238 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,068 | cpp | test.cpp | #include <tuple>
#include <iostream>
#include <string>
#include "kavl.h"
using namespace std;
string get_tuple_string(Tuple tuple)
{
return to_string(tuple.whole) + "." + to_string(tuple.fraction);
}
Tuple parse_tuple(string tuple_str)
{
int len = tuple_str.length();
int fraction = atoi(tuple_str.substr(... |
a33e5d3293eefb763150dc46fd7fab112411d31a | 7a3ef2df7f246cac8d852b9d48a95ed067d421d5 | /solution/src/kernel/default_function.cpp | eee18b050bf6fec33791431e3ca2eeaf65e2dad1 | [] | no_license | ybai62868/AWS_Heterocl | 8b3c6aacfebfa479bfcabd152811f8c54b45b1ef | 780de14512420d03d038267b84f395c39fbbba91 | refs/heads/master | 2020-08-04T14:52:25.059052 | 2019-10-01T22:05:57 | 2019-10-01T22:05:57 | 212,174,526 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,408 | cpp | default_function.cpp | #include <ap_int.h>
#include <ap_fixed.h>
#include <math.h>
void default_function(ap_uint<64> test_image, ap_uint<64> train_images[10][1800], ap_uint<6> knn_mat[10][3]) {
for (ap_int<32> x = 0; x < 10; ++x) {
for (ap_int<32> y = 0; y < 3; ++y) {
knn_mat[x][y] = (ap_uint<6>)50;
}
}
ap_uint<49> knn_u... |
6eb14ebe438bc393df75a32e432a8b804b144702 | 3652d54778cd26e2865104125c4bf0096f2428fc | /src/main/generalFunctions.hpp | bbf898f8ae40400f5039821ae347613d3832d7e5 | [] | no_license | RodrigoSantosBacchetto/cpsWithSplines | 2d8054bb3233cc99557507e4d3630ebcf96d7280 | 9fb8ebe5e7cf802ab4010e7ae690e05bb23467d5 | refs/heads/master | 2020-06-26T20:57:33.974218 | 2018-11-30T16:46:51 | 2018-11-30T16:46:51 | 67,873,879 | 0 | 0 | null | 2017-01-07T17:04:37 | 2016-09-10T13:55:08 | C++ | UTF-8 | C++ | false | false | 2,703 | hpp | generalFunctions.hpp | //
// Created by Santos on 11/27/2016.
//
#ifndef CPSWITHSPLINES_GENERALFUNCTIONS_H
#define CPSWITHSPLINES_GENERALFUNCTIONS_H
#include "main.hpp"
#include<Eigen/Core>
#include<Eigen/SVD>
cv::Point2d minSum(cv::Mat mat);
int getNext(int x, int y, int last, cv::Mat data, int totalRows, int totalCols);
double getMaxMin... |
a82fcf9fa0b97b8257c859dfe2a8074055e32e89 | 354a51f80c7528069467e953849aa8de00e22611 | /2 Computational Geometry/MaxSlope.cpp | c0a2f4b59b8cfa74d1fa82244aa90d8580775858 | [] | no_license | HnVahidi/Algos | 20aa2440db9436712f565543ae7f8380f4dbf3ed | 226f188579d990b0b5fe4a6882b6fb61de399a9a | refs/heads/master | 2022-10-20T16:56:23.970671 | 2020-06-11T00:04:08 | 2020-06-11T00:04:08 | 120,174,385 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,467 | cpp | MaxSlope.cpp | #include<iostream>
#include<bits/stdc++.h>
using namespace std;
const int maxN=2e5+100;
const double EPS=1e-9;
pair<double,double>p[maxN],ans[maxN],A,B;
int n;
#define X first
#define Y second
void input()
{
cin>>n;
for(int i=1;i<=n;i++)
cin>>p[i].X>>p[i].Y;
}
double shib(int x1,int y1,int... |
1ff16fa260991c64b8ec5a4d6f97eee0eaed0c56 | dcd33cd44299e56c855ae570a3d243801d450a53 | /Code/BasicFilters/include/itkHashImageFilter.h | 79b1655ac5c1f4c88450ce98b14df80e0a9ed2cd | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | SuperElastix/SimpleElastix | ce1e56cd199cca0f4d911ae5a34bae815110b167 | 1eec0227efd13d312b1c99df38b4647add47378a | refs/heads/master | 2023-08-14T06:51:27.702093 | 2023-06-15T10:15:40 | 2023-06-15T10:15:40 | 26,905,989 | 428 | 135 | Apache-2.0 | 2023-01-24T15:26:32 | 2014-11-20T09:51:10 | SWIG | UTF-8 | C++ | false | false | 3,805 | h | itkHashImageFilter.h | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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/licens... |
fb1b35f836beea7a8859bef8172c312ff7e83574 | cfdab33825bb160dea64f0aab79b7206bf82e6d7 | /10474/10474.cc | 412cbb84711946ebacf36d5c2fccf003f9d749f2 | [] | no_license | wjdwithyou/BOJ | 299e0efaf3e5173addc55709fed5c19a458a0900 | a8ab50a14f2059905be4093b1f889c02f568126c | refs/heads/master | 2021-01-11T20:18:13.462615 | 2018-01-24T14:28:25 | 2018-01-24T14:28:25 | 81,535,224 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 258 | cc | 10474.cc | #include <iostream>
int main() {
int u, d;
while (true) {
scanf("%d %d", &u, &d);
if (u == 0 && d == 0) {
break;
}
printf("%d %d / %d\n", u / d, u % d, d);
}
return 0;
} |
49fe95a53601a07900150ace26db8160b0ad739e | eaf03b4ba639fe0ebb762486bb65f078e88c015c | /SeniorEmployee.h | 87436504a62c1bcdbbae6266cd52ee7ef18fb7fc | [] | no_license | natnoel/Employee-Salary-System | 6aaf0a4e078359afbb99b373d4b0d7b19baa888b | 123eb0a39d74b237b7d8f352ca5b0bdd060918e9 | refs/heads/master | 2021-04-09T13:07:24.294416 | 2018-03-17T06:31:07 | 2018-03-17T06:31:07 | 125,603,324 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 853 | h | SeniorEmployee.h | //Filename: SeniorEmployee.h
//Name: Tan Shi Terng Leon
//Declaration: I did not pass my program to anyone in the class or copy anyone's work
// and I am willing to accept whatever penalty given to me and also to all
// related parties involved
#include "OrdinaryEmployee.h"
class SeniorEmployee: public Emplo... |
05dda1381cbc32423da793fdb81059618b85edc9 | e3f87e7438d7c617d60b23d45a6e60e3f560d141 | /DirectX 12/ステートパターンを使った状態管理/ステートパターン/State/Damage.h | 1cd14c1bc589771338aaf8df5d48057f36adefba | [] | no_license | sasakiR0590/Program-Code | 61c4e35a5f8b954e2fa27b8153b581d384f4e29b | 0584bc2f46043b6c04cf940f1fdb9ba43d3f5b80 | refs/heads/master | 2023-07-14T18:42:20.578497 | 2021-08-22T05:42:46 | 2021-08-22T05:42:46 | 398,721,900 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 944 | h | Damage.h | #include"class/Player/ActorState/ActorState.h"
#include"class/Player/PlayerBase/PlayerBase.h"
#include"Base/dxtk.h"
using Microsoft::WRL::ComPtr;
using std::unique_ptr;
using std::make_unique;
using namespace DirectX;
class DamageState : public ActorState {
public:
DamageState(PlayerBase* player_base,D3D12_GPU_DESCR... |
bbe67dc3f538cc22733b6e988e3c24c6e64571a4 | 0e242c3052ae0e02734fcc70ea108f768a7c4b59 | /sketch by kiichi/doremisong/doremisong.ino | 458f81bcd3732f1f0090f5f092ed0c545bca9b44 | [] | no_license | igakilab/learning-Iot | b90c9859cb07a178e5065fbee800bd0285df9e81 | dcc14e5adf8556ffe266a53e6c31fc85a1ed1521 | refs/heads/master | 2020-12-25T14:48:28.529342 | 2016-12-14T08:00:38 | 2016-12-14T08:00:38 | 65,796,060 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 644 | ino | doremisong.ino | #define do 0 //ド
#define re 1 //レ
#define mi 2 //ミ
#define fa 3 //ファ
#define so 4 //ソ
#define ra 5 //ラ
#define si 6 //シ
#define TX 7 //無音
#define s 500
#define l 1000
int fq[] = {262, 294, 330, 349, 392, 440, 494, 0};
int mo[45][2] = {{do,s},{re,s},{mi,l},{TX,l},{do,s},{re,s},{mi,l},{TX,s},
{so,s},... |
642ef2f616bb9d1a3b7908d86caf607b2f1dd833 | 4115de2e6214158e83f36e93754b98e3e79ea7a6 | /Xcode/GameCenterAuth/GameCenterAuth.cpp | 0a29858c47eef417c0843e79ea1ada4d9a18a251 | [
"Apache-2.0"
] | permissive | desertkun/GameCenterAuth | 67e4cc2e1a8afe35ffc30bdd6eaaaef978318fb4 | 5973bff30813175df64ee08c40906ef8d02a5669 | refs/heads/master | 2021-01-19T04:58:09.103652 | 2017-06-14T12:43:23 | 2017-06-14T12:43:23 | 60,025,807 | 29 | 6 | Apache-2.0 | 2019-01-26T19:44:23 | 2016-05-30T16:57:39 | C++ | UTF-8 | C++ | false | false | 1,368 | cpp | GameCenterAuth.cpp |
#include <GameKit/GameKit.h>
#include "GameCenterAuth.h"
void GenerateIdentityVerificationSignature(GenerateSucceeded OnSucceeded, GenerateFailed OnFailed)
{
__weak GKLocalPlayer *localPlayer = [GKLocalPlayer localPlayer];
[localPlayer generateIdentityVerificationSignatureWithCompletionHandler:
... |
88524a912a6853cdc26039e9f3522298ff7f2d50 | 6b40e9cba1dd06cd31a289adff90e9ea622387ac | /Develop/Server/GameServerOck/main/GNPCAIUpdater.h | 084c2d3e80244a79dd0a9565a2da5dae126ac411 | [] | no_license | AmesianX/SHZPublicDev | c70a84f9170438256bc9b2a4d397d22c9c0e1fb9 | 0f53e3b94a34cef1bc32a06c80730b0d8afaef7d | refs/heads/master | 2022-02-09T07:34:44.339038 | 2014-06-09T09:20:04 | 2014-06-09T09:20:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 268 | h | GNPCAIUpdater.h | #pragma once
class GNPCAI;
class GNPCAIUpdater
{
public:
GNPCAIUpdater(GNPCAI* pSubject);
virtual ~GNPCAIUpdater();
virtual void Update(float fDelta) = 0;
virtual float ResetRemainDelta(void) { return 0.0f; }
protected:
GNPCAI* m_pSubject;
};
|
c0629821fc585b997b348c07d004edf3d3ac9368 | 5313fdd006f22131c6479717e90a76c1b08aacb5 | /sdw_type.h | f04be57360dd682239b905c7d018940113d2db4b | [] | no_license | dnasdw/libsundaowen_src_android | 80c84b0cdb90de920441eb9a5b50931fc574a8cb | 9ddc602156a9d48c8197a9dd37505960c0e7cbfd | refs/heads/master | 2020-09-23T12:42:41.078673 | 2019-12-14T02:38:30 | 2019-12-14T02:38:30 | 225,502,877 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,314 | h | sdw_type.h | #ifndef LIBSUNDAOWEN_SDW_TYPE_H_
#define LIBSUNDAOWEN_SDW_TYPE_H_
#include "sdw_platform.h"
#if SDW_PLATFORM == SDW_PLATFORM_WINDOWS
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <direct.h>
#include <io.h>
#if defined(SDW_MAIN)
#include <shellapi.h>
#endif
#else
#if SDW_PLATFORM == SDW_PLATFORM_MACOS
#inc... |
8d45b552415d24b3b559e4866d02290661353d88 | 53e6403ea8cec5cba5a97c3ae788e471924b3734 | /day03/ex04/SuperTrap.cpp | e76870973941e9698b7baa98bf0bad641839657e | [] | no_license | leowz/42_Piscine_CPP | 89cc4dd9b90abba910ed8177748d630605c5ea6d | ead9bf0827dde6a5d25422c27afeadae96c5ca09 | refs/heads/master | 2020-04-12T09:52:08.003260 | 2019-01-17T14:59:13 | 2019-01-17T14:59:13 | 162,411,046 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,939 | cpp | SuperTrap.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* SuperTrap.cpp :+: :+: :+: ... |
a0b6abf35aee334d75bb2f430e4c986b94747201 | 1b051a0cee598619f27f53687c47c37960eea5b2 | /IbisLib/mainwindow.cpp | fe45a554e194c46447d84e7902a2f4aa31f88081 | [
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | IbisNeuronav/Ibis | 4645b73c870f82480b847cc0ee5d0d8987d30010 | a2d0a8b2efd3cc4ab91bfd944d48704d85cddf42 | refs/heads/master | 2023-07-08T17:30:44.051418 | 2023-06-28T15:04:12 | 2023-06-28T15:04:12 | 60,527,488 | 38 | 27 | NOASSERTION | 2023-06-28T15:04:13 | 2016-06-06T12:52:03 | C++ | UTF-8 | C++ | false | false | 33,779 | cpp | mainwindow.cpp | /*=========================================================================
Ibis Neuronav
Copyright (c) Simon Drouin, Anna Kochanowska, Louis Collins.
All rights reserved.
See Copyright.txt or http://ibisneuronav.org/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
... |
304c7f0c2fcd435d59f5fc6d15a060b9586c9d76 | aad71b18989fb7e67c577b3c9e6309f6475e03b2 | /rootex/core/ui/input_interface.h | 77eb0f73cd11af05d3fbe3d12a282d69ae1bac6b | [
"MIT"
] | permissive | meetcshah19/Rootex | 8bb5f79834777c10966dc5dbd2d0f0ca18a142b5 | 002725f80ee6ce02a01e1d18630f5635ad2a5b0c | refs/heads/master | 2021-05-18T21:50:12.894803 | 2020-07-27T16:33:48 | 2020-07-27T16:33:48 | 251,438,812 | 0 | 0 | MIT | 2020-03-30T22:04:07 | 2020-03-30T22:04:07 | null | UTF-8 | C++ | false | false | 535 | h | input_interface.h | #pragma once
#include "common/common.h"
#undef interface
#include "RmlUi/Core.h"
#define interface __STRUCT__
class InputInterface
{
public:
static bool Initialise();
static void Shutdown();
/// Process the Windows message.
static void ProcessWindowsEvent(UINT message, WPARAM wParam, LPARAM lParam);
static vo... |
11bdb368f9371f80a477fd90523b49f337a4cc2c | 3652f578c5bbc28406b1ebb944caf511b4584ca3 | /Task1/ArrayInt.h | 161c400549ae1aa6b9ec260f81ed4e61076a31a6 | [] | no_license | Kadett/Lesson4_4 | a83b3a751bc621a7ed49b8d672549ff0b4c34bdc | f662ec0499a3850c65fce02e5125681a91030dc7 | refs/heads/master | 2023-06-15T09:07:02.402261 | 2021-07-24T12:07:02 | 2021-07-24T12:07:02 | 388,919,307 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 459 | h | ArrayInt.h | #pragma once
#include <iostream>
#include <cassert>
#include <algorithm>
class ArrayInt {
int m_length;
int *m_data;
public:
ArrayInt();
ArrayInt(int length);
~ArrayInt();
void erase();
int getLength();
int& operator[](int index);
void resize(int newLength);
void insertBefore... |
2c89737ba94185734d47ef7b0f0647f2aa8dd96b | 0149ed842327e3133fc2fe7b49d6ee2e27c22021 | /shared/test/common/os_interface/linux/sys_calls_linux_ult.cpp | c4c7649e193f55ba36be13072ab6833cffe4fcb7 | [
"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 | 11,905 | cpp | sys_calls_linux_ult.cpp | /*
* Copyright (C) 2020-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/test/common/os_interface/linux/sys_calls_linux_ult.h"
#include "shared/source/helpers/aligned_memory.h"
#include "shared/source/helpers/string.h"
#include "shared/source/os_interface/linux/drm_wrappers.h"
#inclu... |
8242b3797f308073899c936ffe39f3ce1a33c102 | 00bc38fca3165a85c3a4e040bbd2c55162ff917b | /PipesPlatforms/Plugins/ObsEvent2.5-4.22/Intermediate/Build/Win64/UE4Editor/Inc/ObsEventEditor/ObsEventFactoryNew.generated.h | 24f21c0497ffc075cea322a5a2fa7cf8734e3f49 | [] | no_license | WookieeMatt/RestaurantWars | 6d3c27d512a42db408d125facec4edfeb4a1aff3 | cdc1a8d644873321c90342f20c62dc56fbdf7b4c | refs/heads/master | 2020-06-16T02:50:42.583418 | 2019-10-06T18:39:56 | 2019-10-06T18:39:56 | 195,458,115 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,403 | h | ObsEventFactoryNew.generated.h | // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
==============================================================... |
c598cec5d3f53bab13cf09682985b94dfaadd7dd | c2fc2f0c18214b80f63d3a0288638cba1de9e54c | /game.cpp | b432cc86e46090f1c2255a831e063f0b5ed4b618 | [] | no_license | sergiosvieira/sfml-dino | 8a1cb4438dcea8dcb8179ab6c48ca53ef0cb9935 | 0311aff5d34206fba60cc060d440c54d63255a3f | refs/heads/master | 2022-09-19T16:10:10.110062 | 2020-05-30T18:42:26 | 2020-05-30T18:42:26 | 263,939,505 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,161 | cpp | game.cpp | #include "game.h"
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <sstream>
#include "cloud.h"
#include "pterodactyl.h"
#include "cactus.h"
Game::Game(PtrPlayer player) {
this->player = player;
clouds = {
PtrObject(new Cloud()),
PtrObject(new Cloud()),
PtrObject(ne... |
86f1757c0b65fa47fff45373419184ea2f74079f | 3ff1fe3888e34cd3576d91319bf0f08ca955940f | /trtc/include/tencentcloud/trtc/v20190722/model/StorageParams.h | 76dff0ad94aa78bbfbd3d64b4855df56849c80c2 | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-cpp | 9f5df8220eaaf72f7eaee07b2ede94f89313651f | 42a76b812b81d1b52ec6a217fafc8faa135e06ca | refs/heads/master | 2023-08-30T03:22:45.269556 | 2023-08-30T00:45:39 | 2023-08-30T00:45:39 | 188,991,963 | 55 | 37 | Apache-2.0 | 2023-08-17T03:13:20 | 2019-05-28T08:56:08 | C++ | UTF-8 | C++ | false | false | 4,804 | h | StorageParams.h | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
22db98376e8b35b27f7e597fc7907556555c1348 | 15225b5a69fb1b7e316b472b08b08bb346a5dbb5 | /examples/source/05_RealTimeSettings/main.cpp | 5249d16a8d5fc5cfbe7874b07ee63dd91fe0ca57 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | arturocepeda/Modus | 41d21dc6b1f750c0fdcb78905bc06175c3f8842a | 849c9ada0e8bf7803db6e1b5c6098ab5898bc430 | refs/heads/master | 2021-01-01T18:23:12.022475 | 2017-06-04T20:10:48 | 2017-06-04T20:10:48 | 11,229,277 | 3 | 2 | null | 2017-04-04T10:09:39 | 2013-07-07T05:47:31 | C++ | ISO-8859-2 | C++ | false | false | 4,263 | cpp | main.cpp |
////////////////////////////////////////////////////////////////////////
//
// Modus
// C++ Music Library
// (Examples)
//
// Arturo Cepeda Pérez
// July 2012
//
////////////////////////////////////////////////////////////////////////
#include "./../platforms.h"
#include "modus.h"
#include "./../audio/audio.h"
... |
2091d5d8cd722d80b426d687471adc622fdfddf1 | c9aa80aa6cc54f8656322740e5f1bbd6795b6a19 | /_previous/Version4/src/handler.h | c7a86b037fab9c98a35cf58ac312ffbc8f2cb4cf | [
"MIT"
] | permissive | erikberter/NeuralNetWork | 5e624bcd5ad9a33c862482ee642606c0147f777e | 573f4b3469425eaf3d01d47f94fa2a8d03fa58f2 | refs/heads/master | 2020-04-28T04:14:18.657096 | 2019-03-12T12:30:29 | 2019-03-12T12:30:29 | 174,970,043 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 684 | h | handler.h | #pragma once
#include <vector>
#include <string>
#include "neural.h"
class netHandler{
private:
net nNet;
std::string configFileN;
std::vector<int> scheme; //layers
std::vector<std::string> testFilesN, wordFilesN, resultNames;
std::string dataFileN, resultFileN;
... |
371b571b56eca86478ebce3bcda6f70175a012df | 6c95cb34d71e5d79a218a56cf333a1fba9f18e87 | /src/MyDialogLogin.h | 6a2d884d6736818a9fb89561435fa4d063b3730d | [] | no_license | stewkk/sa2 | cafc41d6b6424f3438f5cdfeb25e283851448b46 | fdfa4710d89c55b7bb09a66728c8731f748ee53a | refs/heads/master | 2023-01-11T12:27:59.374865 | 2020-11-12T13:37:09 | 2020-11-12T13:37:09 | 309,821,651 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 410 | h | MyDialogLogin.h |
#include "ui.h"
class MyDialogLogin : public DialogLogin {
public:
virtual void wxStdDialog_ok_button_selected(wxCommandEvent& event);
MyDialogLogin(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Shiki Login"),
const wxPoint& pos = wxDefaultPosition, const wxSize& size = ... |
908501cae52fb336548aaf45b77234582ef12a0e | 92e67b30497ffd29d3400e88aa553bbd12518fe9 | /assignment2/part6/Re=20/9.6/phi | 05102e7e2c435f973937be830e72b56ee696201d | [] | no_license | henryrossiter/OpenFOAM | 8b89de8feb4d4c7f9ad4894b2ef550508792ce5c | c54b80dbf0548b34760b4fdc0dc4fb2facfdf657 | refs/heads/master | 2022-11-18T10:05:15.963117 | 2020-06-28T15:24:54 | 2020-06-28T15:24:54 | 241,991,470 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 46,612 | phi | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*-... | |
4f69d341371bcf61e4ebc2c176505e5610ae8810 | 63c490b2dd2b9c3bf3f6f2cda60392ee16edfe9a | /UVa/acm_10189.cc | 1ecbfd9652fef484a42517aba34510316a484e73 | [] | no_license | Meng-Gen/UVa | d84811bfe607bbd6f329683e7f8c3ca9c67eb6f6 | 06f7c7bda732e04c11c6eb904164c23b2a546c21 | refs/heads/master | 2020-03-31T09:04:26.933464 | 2018-08-06T15:37:15 | 2018-08-06T15:37:15 | 9,917,565 | 1 | 0 | null | 2018-08-06T15:37:16 | 2013-05-07T17:32:26 | C++ | UTF-8 | C++ | false | false | 1,977 | cc | acm_10189.cc | #include <iostream>
#include <stdio.h>
char field[101][101];
int main(int argc, char* argv[])
{
int num_field = 1;
int n;
int m;
while (1)
{
std::cin >> n >> m;
if (n == 0 && m == 0)
{
break;
}
for (int i = 0; i < n; i++)
{
... |
5a99707d93b98db0d3f7951e4dc435d209069158 | b53575b4f1da8246e9abbb2bf4d297fd0af75ebb | /UVa/400/458.the-decoder.cpp | 735dfde334f1653cadf0c47582b477c9ebbacef0 | [] | no_license | mauriciopoppe/competitive-programming | 217272aa3ee1c3158ca2412652f5ccd6596eb799 | 32b558582402e25c9ffcdd8840d78543bebd2245 | refs/heads/master | 2023-04-09T11:56:07.487804 | 2023-03-19T20:45:00 | 2023-03-19T20:45:00 | 120,259,279 | 8 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 292 | cpp | 458.the-decoder.cpp | #include<iostream>
#include<string>
using namespace std;
int main()
{
string s;
while(getline(cin,s))
{
for(string::const_iterator i=s.begin();i!=s.end();i++)
cout<<(char)(*i-7);
cout<<endl;
}
}
|
78b90b634ffe318cdfdfca6ad28677ffa0c74c91 | 593b5d1cbb5a368612edb4bd5792d4fc68ff08e0 | /EDD_practica1_201612331/src/ListaHangares.cpp | c7460e5d11c77b887446ac3f7852690f67300a38 | [] | no_license | josewannan98/Practica1_EDD_2 | 1d6c5281472d79bc2da0df5a5f4c6898bdb5460c | 06c5712fd4be9d4460c4b3169fe85328d1072e57 | refs/heads/master | 2020-03-19T23:43:39.366125 | 2018-06-18T02:06:45 | 2018-06-18T02:06:45 | 137,017,207 | 0 | 2 | null | 2018-06-13T00:07:39 | 2018-06-12T04:31:54 | C++ | UTF-8 | C++ | false | false | 1,617 | cpp | ListaHangares.cpp | #include "ListaHangares.h"
ListaHangares::ListaHangares()
{
//ctor
this->primero = nullptr;
this->ultimo = nullptr;
}
ListaHangares::~ListaHangares()
{
//dtor
}
void ListaHangares::ingresar_dato(NodoHangares* nodo)
{
NodoHangares *nuevo = nodo;
nuevo->id = this->id_actual;
if(this->primer... |
c8e903c906ae38c514d18987c91708af7f91a877 | dcd907926b327352943d60e928ee6a8ff45d05aa | /gpo_plot.cpp | 567e8bb0d5263110c657359d2cc2248f64b731da | [
"MIT"
] | permissive | jlprieur/GpOrbit1 | 823139547458b44d1d5dc2993aa84a22b40b6508 | 772821456b70d5078811d07a11a079809ffdb110 | refs/heads/master | 2021-05-17T03:23:44.667129 | 2020-03-27T17:40:34 | 2020-03-27T17:40:34 | 250,597,093 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 28,557 | cpp | gpo_plot.cpp | /****************************************************************************
* Name: gpo_plot.cpp
*
* JLP
* Version 25/06/2015
****************************************************************************/
#include "gpo_frame.h"
#include "gpo_defs.h"
#include "jlp_kepler.h"
/*****************************************... |
cdd4f39423dc5c0c30d0dbad23f550d919ff6d14 | 559ef8e8bfa496d25e167189b5d63bc3ddd9eb59 | /AdjListGraph/text.cpp | 7c9162a1be050c5c55861f464d84b50a78bec909 | [] | no_license | QuenKar/Data-Structure | 4cd334c790ad47221ce78dde76e6f106bed0978f | 1503fcb1c289db6833343a5cd1a0b927e1f0997c | refs/heads/master | 2020-11-26T12:33:46.203058 | 2020-07-11T01:53:15 | 2020-07-11T01:53:15 | 229,072,924 | 3 | 0 | null | null | null | null | GB18030 | C++ | false | false | 495 | cpp | text.cpp | #include"AdjListDirGraph.h"
int main()
{
int a[6] = { 1,2,3,4,5,6 };
AdjListDirGraph G(a,6);
G.InsertArc(1, 0);
G.InsertArc(5, 0);
G.InsertArc(4, 0);
G.InsertArc(5, 4);
G.InsertArc(5, 1);
G.InsertArc(1, 3);
G.InsertArc(3, 2);
G.InsertArc(2, 1);
G.InsertArc(2, 5);
G.InsertArc(3, 4);
G.Display();
cout << ... |
42cb68a7e01c313172dbe2b028c8927330484009 | 7c78595f511fa4d760ce4c7bba0640a179fac650 | /codeforces/1143B.cpp | a6055f4b07ae62942e4eed27c19f460b62b802cc | [] | no_license | thomaslee0131/competitive-programming | 4c1531cad3ab52ead6f89c740d7991452ff384dc | 0dda419009a95bf02ec43a5d2365cebe36b5a762 | refs/heads/master | 2021-07-07T09:21:01.223916 | 2020-10-21T01:51:11 | 2020-10-21T01:51:11 | 199,242,457 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 206 | cpp | 1143B.cpp | #include<iostream>
#include<algorithm>
using namespace std;
int f(int n){
if(n<=9)return max(n,1);
return max(n%10*f(n/10),9*f(n/10-1));
}
int main(){
int n;
cin>>n;
cout<<f(n)<<endl;
}
|
5a6c4bd062e800ea350b9245ba6223dd43b79a2d | 39ad116dab0ba316a6e7f737a031a0f853685d41 | /AtCoderDP/n.cpp | cccab41048716d99026bdebc6307c27578ed4c50 | [] | no_license | Abunyawa/contests | e0f9d157ce93d3fc5fbff0e3e576f15286272c98 | 9923df8f167e8091e23f890b01368a3a8f61e452 | refs/heads/master | 2023-05-31T14:20:31.983437 | 2023-05-11T14:19:58 | 2023-05-11T14:19:58 | 251,015,695 | 10 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,734 | cpp | n.cpp | #include<bits/stdc++.h>
#define ll long long
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define F first
#define S second
#define vi vector<int>
#define vl vector<long long>
#define pii pair<int, int>
#define pll pair<long long, long long>
#de... |
9136ad9226b5fced35a5ea91ed58f9bc73e1f9d5 | 4d34da002eb00fe242892513abe6275d79319329 | /Menu.cpp | 50afac3e66d46a5a483cfe1899a9c3ddc40815ca | [] | no_license | iamlovelesh/LibraryManagement | 108fd6d548e42861edac94d35056dc9a27593991 | f16969a57e15cb564f35c2e4bd9265261b2110a3 | refs/heads/master | 2022-12-24T17:03:01.230867 | 2020-07-23T17:02:24 | 2020-07-23T17:02:24 | 300,141,390 | 0 | 0 | null | 2020-10-01T04:24:49 | 2020-10-01T04:24:49 | null | UTF-8 | C++ | false | false | 3,313 | cpp | Menu.cpp | #include "Menu.h"
#include<iostream>
#include<conio.h>
// Heading
void drawHead()
{
std::cout << "------------------------------------------------ Central Library ------------------------------------------------\n";
std::cout << "---------------------------------------------------------------------------------... |
935e20c4dce2bb71660781a024ef9f8e61dbaae9 | a021b784b308609a743a39b1baf1b85d485d7d57 | /engine/GameEngine/Asteroid.cpp | a9943da12a5cb39ec222d95876be89b09e24b63a | [] | no_license | david-lively/SMU-CSE5382 | 868c46f82003f883070c40db2cca8495e532f324 | 02f300648543acaf5eb40b8c01875a3ece68587d | refs/heads/master | 2016-08-11T13:03:49.811986 | 2016-04-04T18:24:40 | 2016-04-04T18:24:40 | 50,938,590 | 5 | 8 | null | 2016-02-10T20:16:51 | 2016-02-02T17:33:27 | C | UTF-8 | C++ | false | false | 161 | cpp | Asteroid.cpp | //
// Asteroid.cpp
// GameEngine
//
// Created by David Lively on 2/22/16.
// Copyright © 2016 David Lively. All rights reserved.
//
#include "Asteroid.h"
|
1d49b0a02ca37178760d29db7312ac201ced174f | a035f5c62e5e80d53b05ebc7d2c2d74cc36aeb1e | /kmymoney/interfaces/importinterface.h | 91b027c06e67702cbef2ab65fa5bd376707d5b03 | [] | no_license | KDE/kmymoney | 21446a43780634df84f485fa7dd3346b93c95025 | 21bdb88b4135b89f51f0435e995bd61f93a8e85b | refs/heads/master | 2023-08-30T12:21:44.954663 | 2023-08-30T01:46:42 | 2023-08-30T01:46:42 | 42,720,259 | 111 | 51 | null | 2023-06-15T05:20:53 | 2015-09-18T12:19:55 | C++ | UTF-8 | C++ | false | false | 1,776 | h | importinterface.h | /*
SPDX-FileCopyrightText: 2008 Thomas Baumgart <ipwizard@users.sourceforge.net>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef IMPORTINTERFACE_H
#define IMPORTINTERFACE_H
// ----------------------------------------------------------------------------
// QT Includes
#include <QFileDialog>
#include <QOb... |
d1033d69cd8f82df11821c37e591f82d46d19876 | c56fa8f11f1d6507101098d8d5a8e28be0e09ec5 | /car_drive/main.cpp | ec7cf54ae171129aae8b106159d4d73558d52ef0 | [] | no_license | yixiaoyx/makergame-robotics | 1ad1db17f5534424abc5b45601e324ca151ae67c | 7395da746418be6ce7973401b221169dff79ee41 | refs/heads/master | 2021-07-02T21:32:19.812174 | 2017-09-22T06:45:07 | 2017-09-22T06:45:07 | 103,729,393 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 627 | cpp | main.cpp | /*
COMPILE WITH
g++ -o serialTest main.cpp -lboost_system
*/
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <sstream>
#include <exception>
#include "drc_serial.h"
int main(int argc, char** argv) {
initialize();
std::cout << "enter <motor> <steering> \n>";
char str[100] = {0};
while(1... |
2a0abbdeaea1b13146aa169a1642d5f6e300db71 | be7a38dc5f44e156184613775b5dc670d65f5114 | /COP3530DataStructuresAndAlgorithmAnalysis/Chapter07/Infix/stack.h | 91ff47e3abcbe1f17ef4acfaa3ac7318ee99ba2d | [] | no_license | amallia/MSCS | ebc4e494d0a42b649876774fc3e702c18f8230b5 | f851f0c97bcf5a9c8e376a4e8161c37a1b6eeedb | refs/heads/master | 2020-04-11T20:57:18.647811 | 2018-12-10T03:28:46 | 2018-12-10T03:28:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,255 | h | stack.h | /********************************************************************************************
Name: Christopher Foley Z#:15092976
Course: Date Structures and Algorithm Analysis (COP3530)
Professor: Dr. Lofton Bullard
Due Date: Due Time:
Total Points: 100
Assignment: Program 5 - Unit 7 Stacks
Descriptio... |
78d1b36f5dd636125d781abb2832893a5d82b9ee | 5229d0ce48c223da663d49032de6a6e5ae74da9b | /tests/ut/mocks/include/primes-mocks/mocks/PrimesCalculatorMock.hpp | f462244e76752849c411785a4758f7cab3fabfdb | [
"MIT"
] | permissive | paweldac/cmake-template | 81af4da268f4d9ceee5a2567ce582ff9032858dc | fa7e812b217c264b05d87e81ae619b8293b512be | refs/heads/master | 2021-07-06T14:37:16.952876 | 2021-01-17T20:02:45 | 2021-01-17T22:12:33 | 67,934,933 | 0 | 0 | MIT | 2021-01-17T22:12:34 | 2016-09-11T14:39:32 | C++ | UTF-8 | C++ | false | false | 358 | hpp | PrimesCalculatorMock.hpp | #ifndef PRIMESCALCULATORMOCK_HPP
#define PRIMESCALCULATORMOCK_HPP
#pragma once
#include <gmock/gmock.h>
#include "primes/PrimesCalculator.hpp"
namespace mocks {
struct PrimesCalculatorMock : primes::PrimesCalculator {
MOCK_METHOD(unsigned, getPrime, (primes::PrimesCalculator::Index),
(const, overrid... |
a4690452a3114c6bb1caa671bd71f9727a22e12b | e0bb3c0905191eefd962eec0c3df26f36df20e2c | /src/tests/common_test.cpp | 67715d917f13bdc94708198bc02020c031b11843 | [] | no_license | dabaldassi/Remote-Shared-Controller | 23767a460b390df003c8aada89fd492cc2e1f2f5 | 81242e6c8ac7f0b184e8222ffffb81bf201671fa | refs/heads/master | 2023-01-20T05:16:52.651838 | 2020-03-08T23:44:38 | 2020-03-08T23:44:38 | 217,486,085 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,570 | cpp | common_test.cpp | #include "catch/catch.hpp"
#include <iostream>
#include <fstream>
#include <pc_list.hpp>
#include <combo.hpp>
#include <config.hpp>
#include <controller.h>
#ifndef NO_CURSOR
#include <cursor.h>
#endif
TEST_CASE("PC") {
using namespace rscutil;
PC pc1 { 1, false, false, "pc", { 5,0x23,0,0,0,0 }, {10,0} ,{8,5} },... |
f1b1f387641d92b2a51f0cac573bcd76517d9983 | d92df210a6bf970b817b49fae4bc7d883d4dac18 | /cyclic graph/cycle detection in directed graph.cpp | 33654b0c7f0d001237968b43e21681adcc208141 | [] | no_license | Firoz-Thakur/Graph | ca15ae01269191e0d2498ebf0c63552e98e55a1e | e0cdbaec4b982652336ba98a3447b539c083aa3e | refs/heads/master | 2023-04-01T18:14:14.875489 | 2021-04-05T17:30:05 | 2021-04-05T17:30:05 | 285,513,440 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,813 | cpp | cycle detection in directed graph.cpp |
# using topological sorting 1: )
bool isCyclic(int V, vector<int> adj[]) {
int indeg[V]={0};
for(int i=0;i<V;i++)
{
for(auto x : adj[i])
{
indeg[x]++;
}
}
queue<int> q;
for(int i=0;i<V;i++)
{
if(indeg[i]==0)
{
... |
2bd7e1f28d8f989752ddead166e85dfdaa9af620 | dd682016d1a23b331b7b75ddceb5d39868817696 | /Server/HomeControlLib/src/Hw/WatchDog.cpp | a9729e3b8273f920c1b4d78785f8e867467971a6 | [] | no_license | Kbij/homecontrol | ce3292ec76d0900db6a0a7bcbf8e95b6c4111fe1 | f34238e87641e9001bcc22abdb2620a9e1da1d8f | refs/heads/master | 2023-06-12T07:19:23.442247 | 2022-11-19T10:46:56 | 2022-11-19T10:46:56 | 53,980,885 | 0 | 0 | null | 2023-05-30T19:18:48 | 2016-03-15T21:49:31 | C++ | UTF-8 | C++ | false | false | 1,335 | cpp | WatchDog.cpp | /*
* WatchDog.cpp
*
* Created on: May 13, 2018
* Author: koen
*/
#include "Hw/WatchDog.h"
#include "Hw/Crc8.h"
#include "Hw/I2CIf.h"
#include <vector>
#include <thread>
namespace
{
const uint8_t ENABLE_DISABLE_WATCHDOG_CMD = 'W';
const uint8_t FEED_WATCHDOG_CMD = 'w';
const uint8_t ENABLE_WATCHDOG = 1;
con... |
27c0260b8438ca4228a4d8792ab23773b9a9fea7 | 9954e39da7e52ca53d557efa3463af9cbcfe95d8 | /build/win/src/PlatformWin.h | 7c7c165cb6128d2330d9ee010f392377406f65e3 | [
"MIT"
] | permissive | JeremyCBrooks/StarGlider | 6323f3fd14d89e8cfbc52b300c26500ec050e08a | 90c12698dbdee754434aab8b1287d9f9b9baf904 | refs/heads/master | 2021-01-10T16:38:10.747476 | 2018-01-07T03:01:50 | 2018-01-07T03:01:50 | 50,076,402 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 742 | h | PlatformWin.h | #ifndef PlatformWin_H_
#define PlatformWin_H_
#include "IPlatform.h"
#include <map>
class PlatformWin : public IPlatform
{
public:
PlatformWin(const std::string& dataPath);
~PlatformWin();
std::unique_ptr<Texture> LoadTexture(const std::string& name, bool wrap = false);
std::unique_ptr<Shader> LoadShader(const s... |
a853f8728d4d0046a2f28fc4ee66480d441e34dc | 564e4ce52bd9f7d8dd3ec7dc49d8568da5d0057f | /組合せの生成/gencomb.cpp | ea12921067aa25a6ec7ba544c5fac953b560085b | [] | no_license | YusukeKitamura/cpp_algo | b9370d02f75fd5047e3d4724d32ce382521bbb58 | ea17c26e5f3346cf9f1685c6ec9f5fe0b4814768 | refs/heads/master | 2021-01-18T21:24:19.142521 | 2019-03-23T05:57:06 | 2019-03-23T05:57:06 | 37,074,479 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 715 | cpp | gencomb.cpp | /***********************************************************
gencomb.cpp -- 組合せの生成
***********************************************************/
#include "gencomb.h"
#include <iostream>
Gencomb::Gencomb()
{
}
unsigned int Gencomb::first(unsigned int n)
{
return (1U << n) - 1U;
}
unsigned int Gencomb::nextset(unsign... |
e2f6d2b31a204051b762596e3bfe97ffb9661025 | e70507ceb7c6d5f36b1768bf8dfd210b23c5586b | /managers/flowmetermanager.cpp | 1fadc3f147ca39125b11c21029d3914650ebf5a2 | [] | no_license | carloswlkr/SmartKegerator_5Taps | 1e92be98c80034d5750d2a523fc271da6372d96f | 26b75fd1829985ac112bf2e7f349e8873e5b61b1 | refs/heads/master | 2021-01-10T13:27:28.284399 | 2015-10-21T03:59:52 | 2015-10-21T03:59:52 | 44,504,704 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,289 | cpp | flowmetermanager.cpp | #include <managers/flowmetermanager.h>
#include <data/settings.h>
#include <data/keg.h>
int tickThreshold = 3;
int endPourSeconds = 5;
// Statics
FlowMeterManager* FlowMeterManager::Instance;
Keg* FlowMeterManager::CurrentKeg;
BeerTapSide FlowMeterManager::CurrentTapSide;
double FlowMeterManager::LastTickAt;
int Fl... |
9f230a4a9994ae8fa8d5c264d70cb7efb2a6f5e5 | 8257dee52bed07e24e87c13ca90a1b275495a9c4 | /剑指offer/48.cpp | 51dece32b7103005c1db6295729407eedb16e49a | [] | no_license | nxety/algorithm | a8a426c087279999a14b1da1ed0794c5c19e03e5 | 5943623326cad713cfe909f99e16abcdc23436b7 | refs/heads/master | 2021-08-23T21:22:34.047569 | 2017-12-06T16:14:31 | 2017-12-06T16:14:31 | 113,451,439 | 1 | 0 | null | 2017-12-07T13:01:40 | 2017-12-07T13:01:39 | null | UTF-8 | C++ | false | false | 675 | cpp | 48.cpp | /*将一个字符串转换成一个整数,要求不能使用字符串转换整数的库函数。数值为0或者字符串不是一个合法的数值则返回0*/
class Solution {
public:
int StrToInt(string str) {
int n = str.size(), s = 1;
long long res = 0;
if(!n) return 0;
if(str[0] == '-') s = -1;
for(int i = (str[0] == '-' || str[0] == '+') ? 1 : 0; i < n; ++i){
... |
cba45eb19e620f81328df6895b0d2e6f6f8da650 | 1f7ed453d92be14a0574f1940e69cacc656f1337 | /C++/final v2.cpp | c658263c6d33766fc2b777e70c2630d50f7f4615 | [] | no_license | PongphonTan/TEST01 | fc9712115bdc193fe043e33f8dea1cc7997ff9a4 | b6861a9b6eb25a46507f10d29ba99256f2112470 | refs/heads/master | 2023-05-14T19:48:15.179400 | 2021-06-13T16:32:23 | 2021-06-13T16:32:23 | 74,180,755 | 0 | 2 | null | 2021-06-13T16:32:24 | 2016-11-19T01:59:47 | Jupyter Notebook | UTF-8 | C++ | false | false | 5,260 | cpp | final v2.cpp | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <random>
#include <time.h>
using namespace std;
int abs(int a)
{
return(a>=0?a:-a);
}
int main()
{
default_random_engine eng{static_cast<long unsigned int>(time(0))};
// std::seed_seq ssq{r()};
// and then passi... |
34fd4aaa4fa921545cf4a6c6d6b4671cfd784989 | c990ba64b77b7b4034772fb15a5520a28f1ea5e7 | /copasi/UI/CQTSSATimeScaleWidget.h | 81b02901987c8de4d78739917c450fe6adde6d5d | [
"LicenseRef-scancode-other-copyleft",
"Artistic-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | copasi/COPASI | a3fb515b4d9c667519ad756c52d8b82747a26e64 | 3ddf61e95191f2db09256dddc013f12041719a2c | refs/heads/develop | 2023-09-01T19:32:39.004552 | 2023-06-02T15:01:23 | 2023-06-02T15:01:23 | 4,810,881 | 75 | 34 | Artistic-2.0 | 2022-09-14T13:13:20 | 2012-06-27T16:35:48 | Component Pascal | UTF-8 | C++ | false | false | 1,792 | h | CQTSSATimeScaleWidget.h | // Copyright (C) 2019 - 2020 by Pedro Mendes, Rector and Visitors of the
// University of Virginia, University of Heidelberg, and University
// of Connecticut School of Medicine.
// All rights reserved.
// Copyright (C) 2017 - 2018 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelbe... |
57f9f1395003d4a9b73097b0773f45ec2131708b | 6c1fadc87107548aae5c14dab99e96b172cb9d24 | /DemoTeensy/src/MotorControl/Motor.cpp | b2df59e8e38272b4ab589cb0d93f77330ff1ab1c | [] | no_license | aronisch/philip_robot | e5e85cdb1d131f2c5a0f5894b838c5672015274f | ca21ab865ad37b2ed56aad0db0378d5d476e408e | refs/heads/master | 2020-09-21T07:08:41.190051 | 2019-12-06T23:09:05 | 2019-12-06T23:09:05 | 224,719,426 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,244 | cpp | Motor.cpp | #include "Motor.h"
Motor::Motor(uint8_t pwmPinNumber, uint8_t directionPin, bool forw):_pwmPin(pwmPinNumber), _dirPin(directionPin), _forward(forw){
pinMode(_pwmPin, OUTPUT);
pinMode(_dirPin, OUTPUT);
analogWriteFrequency(_pwmPin, PWM_FREQUENCY);
}
//Speed [-255; 255]
void Motor::setPWMSpeed(double speed)... |
c014f2531312cb6dfa2ffe75b2cab4425cc952e6 | d3ab4d99c4918d1a53d9ec7fb192179d438ffe17 | /source/Application/groupswindow.h | f318935b17d25afc4ecb21b39d1dae2c5a80fc25 | [] | no_license | mwiton/Inzyneria_oprogramowania | 2d47221de8a22bedfc3a48c26de3e641c4073e8d | 56d8bb901daddc3a3d5b5bf195555560344e07af | refs/heads/master | 2021-01-21T13:40:37.939027 | 2016-05-29T18:46:16 | 2016-05-29T18:46:16 | 52,904,428 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 882 | h | groupswindow.h | #ifndef GROUPSWINDOW_H
#define GROUPSWINDOW_H
#include <QDialog>
#include <QtSql>
#include <QMessageBox>
#include "addgroupwindow.h"
#include "editgroupwindow.h"
#include "addstudenttogroup.h"
namespace Ui {
class GroupsWindow;
}
class GroupsWindow : public QDialog
{
Q_OBJECT
public:
explicit GroupsWindow(Q... |
80e0e78aa2b36f1ff2920d0a343f1fd0d7b1ae32 | c4aec79f728ac0d856f7e6edad0de0b408b76e40 | /VS2017/VS2017/Component.h | fd7c32cf772296279d525bc50238089873e8e36d | [] | no_license | hrmnchng/GAME3015-project | 40bc8105bb3570ffe4c69d1c67efabfef37871ac | 1904081aefb6e0f22e199e9a306fb35e6fef9d1e | refs/heads/master | 2021-05-16T16:03:41.702896 | 2018-04-25T15:27:36 | 2018-04-25T15:27:36 | 119,715,400 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 210 | h | Component.h | #ifndef COMPONENT_H
#define COMPONENT_H
#include "SFML\Graphics.hpp"
class Component
{
public:
virtual void Start();
virtual void Update(float deltaTime);
virtual void Draw(sf::RenderTarget&);
};
#endif
|
1422b58412b4daf489550137fee6e9b0a4459019 | 92d27106f1af9ae055fa5df67da0bbbb5b1c6d0f | /socket/unixdomain/3_chat/server/src/clientbase.cpp | c8e50da788c6319e4eae58042a3e18233e8a7b35 | [] | no_license | vtsyganenko/hello-world | 6bf72544c27c6508a0eef713a7653440ea9a1f6f | bc4ac08192c0c001aa0607c5146921df165c63d2 | refs/heads/master | 2023-08-18T08:06:52.273051 | 2023-08-14T20:52:12 | 2023-08-14T20:52:12 | 188,264,897 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,991 | cpp | clientbase.cpp | #include "clientbase.h"
#include <algorithm>
#include <iostream>
ClientBase::ClientBase()
{
clients_.clear();
}
ClientBase::~ClientBase()
{
for(auto elem : clients_)
{
ClientInfo* p = elem;
delete p;
elem = nullptr;
}
}
ClientInfo *ClientBase::add(const ClientInfo &client)
{
... |
ffef401b8c6176f4a89568cdaf0ed9af8133fb54 | 9a8d3698d6c3fdc021b2efea7050bb7d6677e94a | /length_of_last_word/main.cpp | 809c2d3cd340d261d27a182c571f624f3dbd3468 | [] | no_license | ayumilong/leetcode | 7df7ee77f23dd7eeb5e776fa4953122ac5f4e6af | 5799094a99cce755aa2ef009b08b9db2b48df087 | refs/heads/master | 2020-05-20T16:42:30.463756 | 2015-04-08T04:14:30 | 2015-04-08T04:14:30 | 24,279,052 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,524 | cpp | main.cpp | /*************************************************************************
> File Name: main.cpp
> Subject:
> Author: ayumi_Long
> Mail: ayumilong41@gmail.com
> Created Time: Sat 22 Feb 2014 04:40:48 PM EST
************************************************************************/
#include <iostr... |
4960e77b553ca467f39cd3691dabaafd3ffdd654 | 3d7000e94db692fb9857b951b35c4b4361bb6130 | /ch13/ex13_26.cpp | a0fee4f74f75e759415784e7f927c9e1599aff4a | [
"CC0-1.0"
] | permissive | Ocxs/Cpp-Primer | c803a3d8b6c0778c61b51768d8f6b3517236ad3b | 06bb1da28ba08159b55d14bb3fb4d46489ce204e | refs/heads/master | 2021-01-16T19:10:22.087514 | 2015-05-04T15:56:17 | 2015-05-04T15:56:17 | 31,258,866 | 4 | 5 | null | 2015-02-24T12:24:31 | 2015-02-24T12:24:31 | null | UTF-8 | C++ | false | false | 601 | cpp | ex13_26.cpp | //
// ex13_26.cpp
// Exercise 13.26
//
// Created by pezy on 1/19/15.
// Copyright (c) 2014 pezy. All rights reserved.
//
// Write your own version of the StrBlob class described in the previous exercise.
//
// @See ex12_22 and ex13_25
#include "ex13_26.h"
ConstStrBlobPtr StrBlob::begin() const // should add... |
64ba36d028334f49fd7b12fde78af793e474f407 | 5920255a0c988abb066cc16fade3f48a1f3bc942 | /lib/include/cylvionpp/stack.h | 80dceba1024644e4796267959bd6140b19b49b4a | [
"MIT"
] | permissive | cwahbong/cylvionpp | 0490bbd632f8dc38e8a1e1baae4e51968162296e | efdb45362090c95211794a9af4ca302f423daba1 | refs/heads/master | 2021-01-10T12:42:13.366103 | 2016-04-23T03:02:24 | 2016-04-23T03:02:24 | 52,151,819 | 0 | 1 | null | 2016-03-02T17:42:57 | 2016-02-20T12:18:02 | C++ | UTF-8 | C++ | false | false | 750 | h | stack.h | #ifndef CYLVIONPP_STACK_H
#define CYLVIONPP_STACK_H
#include "cylvionpp_export.h"
namespace cylvionpp {
class Card;
class CYLVIONPP_EXPORT Stack {
public:
virtual ~Stack() = 0;
virtual bool Empty() const = 0;
virtual unsigned Size() const = 0;
virtual const std::unique_ptr<Card> & Peek() const = 0... |
1c8d01d47da67a862820d842815b6d87b59bae4e | 2cb1de4f312f46f4ac35703809a79250400c97f6 | /Online_Judges/UVA/10243 - Fire! Fire!! Fire!!!.cpp | 2bc919e2ac4770043791a3553c1303a119448cf4 | [
"MIT"
] | permissive | JuncoDH/CompetitiveProgramming | 52000a16a28442e4ffde90cc8499a8d39f0e7610 | 63b3b8c1f946b584d38dfee9fc298df739dc1ef9 | refs/heads/master | 2020-06-30T01:42:17.284659 | 2020-06-26T14:52:01 | 2020-06-26T14:52:01 | 200,681,473 | 4 | 1 | null | 2019-08-11T18:08:03 | 2019-08-05T15:25:07 | C++ | UTF-8 | C++ | false | false | 2,273 | cpp | 10243 - Fire! Fire!! Fire!!!.cpp | #include <bits/stdc++.h>
using namespace std;
#define mp make_pair
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define sz(x) (int)(x).size()
#define fi first
#define se second
#define LSB(x) ((x) & (-(x)))
typedef long double ld;
typedef long long ll;
typedef vector<ll> vll;
typedef v... |
0f39c90c83f1d3f994893a6184afa42653fac09a | fb215aa25cd98123d7c7adceb952669be1b836dc | /3/1309.cpp | 92ce616f415c8d3d109ab83f696b8f344b03179b | [] | no_license | githubcai/hiho | 3077191ae1f411346872d98d78178577929d32cd | e55aecf083d3182b0cc393ac755771d3afd4b6ad | refs/heads/master | 2020-06-28T22:54:07.415094 | 2017-03-14T02:07:32 | 2017-03-14T02:07:32 | 74,462,832 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 686 | cpp | 1309.cpp | #include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
const int MAX = 100001;
struct Node{
int t, sta;
};
Node node[2 * MAX];
bool cmp(const Node &a, const Node &b){
return a.t < b.t;
}
int main(){
int N; scanf("%d", &N);
for(int i = 0; i < N; ++i){
int x, y;
... |
f9cfa75730ff9d2f404bb6efb1c545d2dc9fe9b8 | 009f903779fdc3e8667915f40c51e48276fd996a | /insertionSort.cpp | 54c81eeddc617bb8e3cbfc05f025b82a5e65049e | [] | no_license | MaryoriHilares/cc2 | cab1e29e8133831667c283835d1bc67d14cf8c4a | c90dd03a277782f5ce3374290ef870372f0ae4cb | refs/heads/master | 2022-11-18T04:27:06.491533 | 2020-07-20T04:00:54 | 2020-07-20T04:00:54 | 263,794,763 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 741 | cpp | insertionSort.cpp | #include <iostream>
using namespace std;
void insertionSort(int arr[], int n)
{
int k, selec, ptr;
for (k = 1; k < n; k++)
{
selec = arr[k];
ptr = k - 1;
while (ptr >= 0 && arr[ptr] > selec)
{
arr[ptr + 1] = arr[ptr];
ptr = ptr - 1;
}
arr[ptr + 1] = selec;
}
}
int main()
{
... |
e5282db5f6931f38947b570a56b46ef1c561d874 | a1886f6a52c8a88043b568c6bb8ddb08bb99c6d2 | /wallet/swaps/lock_tx_builder.cpp | d6bb94e314b603ecf2e6aa66f17e7cd23ce44bb8 | [
"Apache-2.0"
] | permissive | DUMIE505/defis | 9a03afb16f51452c522d4a5652f6d5ce2e001721 | 2676311bc0c79b556f29e282ac77b7c4bab47bbc | refs/heads/master | 2022-11-21T12:45:20.657681 | 2020-07-30T05:57:52 | 2020-07-30T05:57:52 | 283,681,973 | 1 | 0 | Apache-2.0 | 2020-07-30T05:52:32 | 2020-07-30T05:52:30 | null | UTF-8 | C++ | false | false | 8,634 | cpp | lock_tx_builder.cpp | // Copyright 2019 The Grimm Team
//
// 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 agr... |
9e111ec764260cbf77a703e18f53d5911cf656f5 | 19911c4f4b1c6ceba4f7204e5b9b4f53c44405f2 | /DP1_Sam_Timo/Nodes/Node.cpp | ed75718b4e567a4393b1b7017551e0a771a94d5e | [] | no_license | SamSegers/DP1_Sam_Timo | 65ad52be7148d16f3d7079bc0f92e18556bf3bcd | 49a3848dcb54258ee432cb88cd9ae8331189b824 | refs/heads/master | 2021-06-23T19:20:56.557216 | 2017-08-20T18:07:39 | 2017-08-20T18:07:39 | 56,672,500 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 402 | cpp | Node.cpp | #include "Node.h"
int Node::ExecuteOperation()
{
return 1;
}
// gaat door naar de visitor die de execute aanroept
void Node::Accept(std::shared_ptr<Visitor> pVisitor)
{
if (this->pComponents.size() == 0)
return;
pVisitor->Visit(this);
}
// clone dit
Component* Node::Clone()
{
return new Node();
}
// haal de eer... |
3833f06ed261953b78595e4de30c576f2cb83627 | 4acf94ace88fad735baa6f97be92a279b36280ed | /messgaequeue.h | 18c57cac534ca86aa00398adc412e52a28713e67 | [] | no_license | arya-ht/simple-query-server | d8e254848faed2115561c2d91d41206cd30a9bc8 | 5535866716c098938023270fae9d00bdf324ac06 | refs/heads/master | 2020-03-15T15:29:20.729417 | 2018-05-05T04:24:03 | 2018-05-05T04:24:03 | 132,213,340 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,101 | h | messgaequeue.h | #pragma once
#include <iostream>
#include <string>
using std::string;
using std::cout;
// define default capacity of the message_queue
#define SIZE 100000
// Class for message_queue
template <class X>
class message_queue
{
X *arr; // array to store message_queue elements
int capacity; // maximum capacity of the me... |
91654238ed32f498b6315c972428f8cf5e60e636 | 1d098ea7c675584627abcf8bb4b8bbf1c10bf56b | /src/applications/elasticConstants/elasticConstantsCmd.cpp | f1b8681847d36f6fd27dfb212ae57a5cd4fbcec0 | [
"BSD-3-Clause"
] | permissive | OpenMD/OpenMD | 74fe0e285ab8ec62e71ce17721e222bb3e17467a | 7e4ee80742745329c48449dd509e36dc731c51ba | refs/heads/master | 2023-08-30T17:28:06.743925 | 2023-08-18T18:11:38 | 2023-08-18T18:11:38 | 32,750,591 | 73 | 45 | NOASSERTION | 2023-01-27T19:38:18 | 2015-03-23T18:22:26 | C++ | UTF-8 | C++ | false | false | 38,824 | cpp | elasticConstantsCmd.cpp | /*
File autogenerated by gengetopt version 2.22.6
generated with the following command:
gengetopt --include-getopt --long-help --show-required --unamed-opts --file-name=elasticConstantsCmd --c-extension=cpp --header-extension=hpp
The developers of gengetopt consider the fixed text that goes in all
gengetopt ... |
8cbd2d351591ab2e00cadbffda09f99745ede51e | d83ce3e38d84ad6d2e3e3a4ff68e52e0004004eb | /DalsuRichEdit.cpp | 4ce87edd331362c0531e57f88eb3fd4e4774905b | [] | no_license | paulhiggs/decode1 | 9586660a7da8bee7603e60a27f60b64e76f293e2 | fb3d6adfa42f1edbaf789b86b2b5a67f174f0bc3 | refs/heads/master | 2021-01-10T05:26:03.372507 | 2016-03-09T20:48:49 | 2016-03-09T20:48:49 | 53,526,028 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,346 | cpp | DalsuRichEdit.cpp | // DalsuRichEdit.cpp : implementation file
//
#include "stdafx.h"
//#include "ExRichEdit.h"
#include "DalsuRichEdit.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDalsuR... |
721e9c492c2dc3a33f95acd60dc0f5bc6cc7715f | 928ca8d48a31442881b3655ab9bd476de47619a7 | /cube/solver.h | d340a61a490f033b96227135aa292941f5655cf9 | [] | no_license | craviee/cube | c94fd5f502855f72b66cb99013a7425a019213c5 | f33d4b6cc6eb9b41037333f7efa2077494facb80 | refs/heads/master | 2020-03-19T17:22:43.021274 | 2020-02-27T01:42:19 | 2020-02-27T01:42:19 | 136,755,500 | 0 | 0 | null | 2020-02-27T01:40:47 | 2018-06-09T20:25:43 | C++ | UTF-8 | C++ | false | false | 595 | h | solver.h | #pragma once
#include <memory>
#include "rotator.h"
#include "enums.h"
#include "observable.h"
#include "microcontroller.h"
#include "cube.h"
class Solver : public Observable<Solver>
{
public:
virtual void solve(SolverStep step){}
protected:
Solver(int* rotationsNumber, std::shared_ptr<Cube> c... |
af1f62be941daa6de8f370862f68e98e0810f5e8 | 60adcd308c8a95e24d3078f20db3658c623855c5 | /editors/pdfedit/files/patch-src-kernel-stateupdater.cc | 4c5547b00339516388aeb00afa1c179f7fec4dec | [
"BSD-3-Clause"
] | permissive | lwhsu/freebsd-ports-boost | 86ecf5b8b13d07ef98fee48b2848ceeac2cde91d | aa5fcf16f29b3497df29d0acc37de3126272accf | refs/heads/main | 2023-07-05T02:05:14.489792 | 2021-08-17T10:13:27 | 2021-08-17T10:13:27 | 359,741,413 | 0 | 0 | BSD-3-Clause | 2021-04-20T08:30:05 | 2021-04-20T08:30:05 | null | UTF-8 | C++ | false | false | 907 | cc | patch-src-kernel-stateupdater.cc | --- src/kernel/stateupdater.cc.orig 2009-09-11 12:02:56 UTC
+++ src/kernel/stateupdater.cc
@@ -1207,7 +1207,7 @@ bool checkAndFixOperator (const StateUpdater::CheckTyp
PdfOperator::Operands::reverse_iterator rit = operands.rbegin ();
// Be careful -- buffer overflow
argNum = std::min (argNum, operands.size());
- ... |
6dd2939ee7aa58e58cf453985c17d1080c2cd6dc | f6c36a1df63726a2781bafe295de10b868a0c02f | /cin.getforInput.cpp | 70256566b150a33b8cdc316fe80627ee7eb81284 | [
"MIT"
] | permissive | rishusingh022/Standard-Template-Libraries | 18792a6496d6a98774675ffac716c0b6269f3b4e | 2776b632d70902d2ee82098266794b8d3bbd319d | refs/heads/main | 2023-05-06T20:57:58.305615 | 2021-05-06T20:31:05 | 2021-05-06T20:31:05 | 365,027,486 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 273 | cpp | cin.getforInput.cpp | #include<iostream>
using namespace std;
int main(){
//problem read a list of character
//cin.get()
char ch;
ch=cin.get();//this method read any single character including space and newline
while(ch!='.'){
cout<<ch;
ch=cin.get();
}
} |
84df78f1b545bfc6412cc3f9d465f4e19ab68e04 | 385f1352c2b24fa467c21ba8a271c750b466a136 | /Search_in_Rotated_Sorted_Array_II.cpp | 55d5f0b598f27d2f5eb75449f356ec9037316cf4 | [] | no_license | XRSHEERAN/CPPArchive | 805fa98cb22c415815a5ae821ff8140fdd5e1a7d | b9761e2e9498a55ca6fa70c1cf3541797db39bd5 | refs/heads/master | 2020-04-01T06:03:25.005801 | 2019-07-05T14:56:30 | 2019-07-05T14:56:30 | 152,931,522 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 849 | cpp | Search_in_Rotated_Sorted_Array_II.cpp | class Solution {
public:
bool search(vector<int>& nums, int target) {
return matching(nums,target,0,nums.size()-1);
}
bool matching(vector<int> & nums, int target, int lft, int rgt){
if(lft>rgt)
return false;
int mid=(lft+rgt)/2, R=nums[rgt], M=nums[mid], L=nums[lft];
... |
a53becce9978774eaa87a32a07ae3cde5cbf4cea | 19ab3bf54baf8ef0f38843eb45e2d51e241680dd | /source/core/SignalHandler/plugins/pythoninterpreter/scriptapiadapter.cpp | cdcd33604caed751cc9c083b46a584cdefd85658 | [] | no_license | baekanem99/auxilo2 | bbe22896c368741c5330b2affc681e8cc980b7ff | 9f0d280df681ef455f82785fb1beac741f1da4ea | refs/heads/master | 2023-06-26T11:19:56.331493 | 2018-01-30T05:57:36 | 2018-01-30T07:12:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 159 | cpp | scriptapiadapter.cpp | #include "scriptapiadapter.h"
namespace PythonPlugin
{
ScriptApiAdapter::ScriptApiAdapter(SignalHandler::ScriptAPI *api) :
api_(api)
{
}
} // Namespace
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.