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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
08dc376f197f662fd608e9898852b705572ce564 | 682a576b5bfde9cf914436ea1b3d6ec7e879630a | /components/material/nodes/image/MaterialGalleryScroll.cc | 1a986e1df7ba6ca94e494607116e932a2531c690 | [
"MIT",
"BSD-3-Clause"
] | permissive | SBKarr/stappler | 6dc914eb4ce45dc8b1071a5822a0f0ba63623ae5 | 4392852d6a92dd26569d9dc1a31e65c3e47c2e6a | refs/heads/master | 2023-04-09T08:38:28.505085 | 2023-03-25T15:37:47 | 2023-03-25T15:37:47 | 42,354,380 | 10 | 3 | null | 2017-04-14T10:53:27 | 2015-09-12T11:16:09 | C++ | UTF-8 | C++ | false | false | 14,043 | cc | MaterialGalleryScroll.cc | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
/**
Copyright (c) 2016 Roman Katuntsev <sbkarr@stappler.org>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and... |
be79ac5115ef771164899eaeef72b3bc86e41fa6 | a4f2f616fe6e4db11d5da1749bfd1b7fe89b2af5 | /ultrasonic.h | 28fd66133977e28cc6d976c94a5c75057cb5eb67 | [] | no_license | MentorsTeam/MentorsMCUProject | 3417e4d4bcb472b74b2fa2442e89587eef868d1e | ac13d1f7880403b6c7d193ed9871d658750b96a7 | refs/heads/master | 2021-01-15T11:12:08.014293 | 2012-11-19T12:05:34 | 2012-11-19T12:05:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 598 | h | ultrasonic.h | /* -----------------------------------
* Mentors Team
* -----------------------------------
* ultrasonic.h
* header file for ultrasonic ranging sensor
*
* created by: FENG Zili
* date: 2012.09.20
*/
#include "msp430f149.h"
#include "system.h"
#ifndef _ULTRASONIC_H_
#define _ULTRASONIC_H_
cla... |
4abf2a204306ea42580fca75cf9b15a281663ace | 927a260ecc0b24260f032f9bb8509557939dbf10 | /test/ElementTest.cpp | 3994e858e4378234cb4c45d9cf7e36bf78d04fa5 | [] | no_license | coreymbryant/AGNOS | 7cd627d4aff5f87e09324f46c34751d09ea3ad04 | 6ec20e230b065f3e3f40da63c6f90c94e6f3e51a | refs/heads/master | 2020-05-20T06:00:44.524806 | 2016-07-06T18:24:16 | 2016-07-06T18:24:16 | 9,533,801 | 0 | 1 | null | 2016-07-06T18:24:16 | 2013-04-18T23:07:24 | C++ | UTF-8 | C++ | false | false | 10,279 | cpp | ElementTest.cpp |
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/TestCase.h>
// local includes
#include <iostream>
#include <stdio.h>
#include <assert.h>
#include "agnosDefines.h"
#undef AGNOS_DEBUG
#define AGNOS_DEBUG 0
#include "Parameter.h"
#include "PseudoSpectralTensorProduct.h"
#include "Element.h"
#include ... |
59c18d31d8126ee53abea2c64fce1b57e8fab6e1 | 111eef873fa3a21aaf72e3ba52d8e70c285b8695 | /client.h | c65062244f7d7db24a8e530b215217f00b9a466c | [] | no_license | supercamel/PicoLAN | 6eafa99a3689fc3a8ae3e12b3702d71154277604 | 1d5e3b9b10fd47084610177ee6a2146ac046ddda | refs/heads/master | 2022-07-01T16:06:58.268177 | 2022-06-03T01:11:37 | 2022-06-03T01:11:37 | 163,227,826 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,673 | h | client.h | /**
Copyright 2019 Samuel Cowen <samuel.cowen@camelsoftware.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, cop... |
3eb3f62ad300298219b8b4adcee762e0655cdb2d | d15c0f8fff9bfe7206c51b46ae59c58cd8e29f97 | /Smarthome/calendar.h | 0fa432b4957869e2d6927d200e3d79f9d31a31d5 | [] | no_license | zyprezz/Smarthome | fd38f5a4be4b28c5ca6f05617389bbdd7e287cc7 | 3be53cdbe861a665c802af028025c61030dc7f15 | refs/heads/master | 2021-01-19T09:49:18.425055 | 2017-06-19T11:22:40 | 2017-06-19T11:22:40 | 87,791,370 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 897 | h | calendar.h | #ifndef CALENDAR_H
#define CALENDAR_H
#include <QtCore>
#include <QObject>
#include <QMutex>
#include <QWaitCondition>
#include <time.h>
class Calendar : public QObject
{
Q_OBJECT
public:
enum Object{
Light,
Curtain,
Null
};
explicit Calendar(Object = Null, QObject *parent =... |
bac70cf10752d8ac7c312229ef61c10e12f18f74 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/DescribeApplicationResult.h | b7ba8e8680e9315f963cba9866eadf99e7cf2183 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 18,244 | h | DescribeApplicationResult.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotfleethub/IoTFleetHub_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotfleethub/model/ApplicationState.h>
#include <aws/core/utils/memory/stl/A... |
027c5a1616a317e446d5cce9189e2431405033ad | 984107f1d5ebe42fcdf64ed4c8ffc30bc9725751 | /gui/GameInfo.hpp | 313d8e8c60ad6ddf35e9d578b759d4a9eab50662 | [] | no_license | bguina/epi-zappy | 6c83e613d5ed03f33d008f17923cb535e26a57a1 | 8ba4afa2ac99e754c49a9e90fefd4232036e6799 | refs/heads/master | 2021-01-14T12:14:29.862683 | 2015-05-21T02:22:27 | 2015-05-21T02:22:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,697 | hpp | GameInfo.hpp | #ifndef GAME_INFO
#define GAME_INFO
#include "Map.hpp"
#include "Team.hpp"
#include "Player.hpp"
#include "Egg.hpp"
#include <vector>
class GameInfo
{
public:
// Map Function
void SetSizeMap(int x, int y);
void AddCaseMap(Coordonnees Coo, std::vector<int> Ressources);
void DisplayMap();
// Team Function... |
afdd5f7cbb8614de15952482605420947408b6a4 | b9843097033d04c80d1f08a7f942b2cabbb94f97 | /parcial1/Unitarias/first.cc | ce17342f8cef0344d74b5738b85f3687c89f7d26 | [] | no_license | pablodelamora/calidadYPruebasDeSoftware | 4f769dbeaa727a03928d9b3b9d84ebf8cab5856a | a8d1f5041d78c68e1d6f57a77b5cde5b1f9e7efb | refs/heads/master | 2021-01-11T23:01:36.901948 | 2017-02-10T15:39:16 | 2017-02-10T15:39:16 | 78,537,066 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 273 | cc | first.cc | #include <iostream>
using namespace std;
int factorial(int);
int factorial(int n)
{
if (n<0){
return 0;
}
else{
int fact;
if (n==0)
return 1;
else{
return n*factorial(n-1);
}
}
}
|
bcbd1aac38f314edbbfe0f8dee341b7c7a90b717 | e8281ca4ab4e1f2ea635dd0d85a5e56e7f469e5b | /TIVS/666-IVS(OpenCV)-GPO/IVS/Inspection_result.cpp | cfae4073e3433758af984dd738cc06bf06946829 | [] | no_license | majkyun888/C-Pro | 287aaa0ca981e935820384bf55c66e1976d76f93 | 92482ebc097c904852fbb3128fd9e30689d70ea3 | refs/heads/master | 2021-08-14T10:18:37.934296 | 2021-08-11T00:16:01 | 2021-08-11T00:16:01 | 208,016,334 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 466 | cpp | Inspection_result.cpp | #include "StdAfx.h"
#include "Inspection_result.h"
CInspection_result::CInspection_result(void)
{
objtype = 0x3CD09AB2; // object type - default is 0x3CD09AB2 - 1020304050
size = 0; // size on disk of file/structure - to be calculated later
/*
UINT type; // type of image
UINT dimx; // h... |
d6484c5c8b4908f738827d4d77db9c641c2815e1 | e0af39217d06d42bcd459eb49c654264057e5089 | /app/src/main.cpp | 8bf5b44c733ea3390c205255590c6315b99dd5f8 | [] | no_license | paulcazeaux/Moire | fddce6d8fe37455a204d108f3c58df0e37d253ac | 37eda278f08ecc42022248a6a680b60448068c92 | refs/heads/master | 2021-01-23T21:10:40.737246 | 2019-06-10T03:51:38 | 2019-06-10T03:51:38 | 90,671,830 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,483 | cpp | main.cpp | /*
* File: main.cpp
* Author: Paul Cazeaux
*
* Created on December 20, 2016, 11:43 AM
*/
#include <Tpetra_Core.hpp>
#include "parameters/multilayer.h"
#include "bilayer/compute_dos.h"
#include "bilayer/compute_conductivity.h"
#include <iostream>
#include <fstream>
static const int dim = 1;... |
f230d6378bca7152d175f861119279e77b4c18f0 | ffb568806e34199501c4ca6b61ac86ee9cc8de2e | /gflib2/ui/include/gfl2_UI_Device.h | 2f63d3fd92137f6056e679a2a96e92108512b1f5 | [] | no_license | Fumikage8/gen7-source | 433fb475695b2d5ffada25a45999f98419b75b6b | f2f572b8355d043beb468004f5e293b490747953 | refs/heads/main | 2023-01-06T00:00:14.171807 | 2020-10-20T18:49:53 | 2020-10-20T18:49:53 | 305,500,113 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 15,589 | h | gfl2_UI_Device.h | //=============================================================================
/**
* @file gfl2_UI_Device.h
* @brief 入力デバイスの抽象クラス
* @author obata_toshihiro
* @date 2010.10.22
*/
//=============================================================================
#ifndef __gfl2_UI_DEVICE_H__
#define __gf... |
d6e4d75f398219bc83eb9e4027a5f0cb359f51b7 | d3daaf7d05fbc317dfffb04612b713c3a1958566 | /scbCompiler/SchemeIncorrectRelay.cpp | 17b370719b5ceefd66b2bbb9a596841c798824fc | [] | no_license | DenSamara1978/scbSimulator | 6217222e03f32ef009a76f53a75bb91339f5b436 | 1747afab6243c10c5b25e6c20ceb3c44681e23a6 | refs/heads/master | 2022-11-19T17:16:09.335568 | 2020-07-19T16:39:44 | 2020-07-19T16:39:44 | 136,173,515 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 223 | cpp | SchemeIncorrectRelay.cpp | #include "SchemeIncorrectRelay.h"
SchemeIncorrectRelay::~SchemeIncorrectRelay ()
{
}
int SchemeIncorrectRelay::fixDescription ()
{
// Нет ошибок завершения описания
return 0;
}
|
4078d8c8a4c644ade15e14a6975d691a8cc33fb7 | b663192d044bd343c7163516cc9bdc028f1909ae | /include/CrateController.hh | 67c961f472728de94aa833e2a3b6e41319488279 | [] | no_license | jec429/muonTrackerDAQ | a296b049ba4f734e90312b7373ffbb8c7190967b | bf967b124b4983e4b8320e138b510836736f5e5c | refs/heads/master | 2021-06-20T02:26:05.656161 | 2014-06-24T17:24:10 | 2014-06-24T17:24:10 | 100,270,636 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 590 | hh | CrateController.hh | #include <sys/types.h>
#include "Named.hh"
#ifndef crate_controller_hh
#define crate_controller_hh
// singleton class //
class CrateController: public Named{
public:
static CrateController* GetInstance();
void A32D32_read(u_int32_t, u_int32_t*);
void A32D16_read(u_int32_t, u_int16_t*);
void A32D16_write(u_int32_t, u_... |
7b4dbd7416de2055f17197b143bc4dd75864ef8c | 436cdc81f6d15f5861040dfc500ead7798227039 | /Linked List/Palindrome List.cpp | ef5a85f2348ea09069c6bfdeff97ed87b7197069 | [] | no_license | Sristi27/DSA-Important-Problems | 3920e0b5c949d0ca0c2760789fcff1dd8e8b84a6 | f426fbd97e5058f9f73c406662ae186d1483b575 | refs/heads/main | 2023-09-03T18:53:24.447756 | 2021-11-14T04:35:40 | 2021-11-14T04:35:40 | 362,005,460 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,145 | cpp | Palindrome List.cpp | Palindrome List
Given a singly linked list, determine if its a palindrome. Return 1 or 0 denoting if its a palindrome or not, respectively.
Notes:
Expected solution is linear in time and constant in space.
For example,
List 1-->2-->1 is a palindrome.
List 1-->2-->3 is not a palindrome.
/**
* Definition fo... |
6fc2ce4ada9acc1f1d0afa89de456dd5fbf7e518 | 994c0d6399af126e2c4d04f5e35eb756ed514523 | /global_view/src/rgbsegmentation.h | d5c5c7e814cc65b4d64fff8aef4ca4d1ad1e2406 | [] | no_license | Coldplayplay/qt | 253ff30993c6c3f5a025544cf25ae55c192582aa | 27fd82130d37863524265856e0351a7f4900b64b | refs/heads/master | 2021-10-10T19:43:29.062909 | 2019-01-16T03:37:41 | 2019-01-16T03:37:41 | 111,987,017 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,726 | h | rgbsegmentation.h | #ifndef RGBSEGMENTATION_H
#define RGBSEGMENTATION_H
#include <iostream>
#include <string>
#include <QMainWindow>
#include <QFileDialog>
#include <boost/make_shared.hpp>
#include <pcl/point_types.h>
#include <pcl/io/pcd_io.h>
#include <pcl/io/ply_io.h>
#include <pcl/common/common.h>
#include <pcl/common/pca.h>
#includ... |
f7f765d1a19f0ca43745d6c6d71deacb235778b0 | 2665eba0caab29579d871cd52687f4a19436a069 | /code/MiamPlayer/playlists/playlistitemdelegate.h | 1c6e1b4d69f5cabf79170eb44ddc460bda2f1a0b | [] | no_license | abctwiq/Madame-Miam-Miam-Music-Player | 6b6080ef007cda76ae40497d9c0d0030ec8d01ab | 919ad8244709bcc63b84ab1883a2e594f58b888e | refs/heads/master | 2021-01-22T01:38:56.034139 | 2014-03-03T23:57:37 | 2014-03-03T23:57:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 839 | h | playlistitemdelegate.h | #ifndef PLAYLISTITEMDELEGATE_H
#define PLAYLISTITEMDELEGATE_H
#include <QStyledItemDelegate>
#include "stareditor.h"
class Playlist;
class PlaylistItemDelegate : public QStyledItemDelegate
{
Q_OBJECT
private:
Playlist *_playlist;
QMap<int, StarEditor*> _editors;
public:
enum EditMode { Editable, NoStarsYet, R... |
269ff11cc9fcd87dd0bc06439d48c8343dbdaa0a | 02c201b1afd2de7f8237adc3737734e19b77cd2b | /src/passes/CodePushing.cpp | 65eedba6bac7a20443697ba374c4f7891b2472de | [
"Apache-2.0"
] | permissive | WebAssembly/binaryen | 1ce65e58489c99b5a66ab51927a5b218c70ae315 | 90d8185ba2be34fa6b6a8f8ce0cbb87e0a9ed0da | refs/heads/main | 2023-08-31T21:01:27.020148 | 2023-08-31T19:32:33 | 2023-08-31T19:32:33 | 45,208,608 | 7,061 | 768 | Apache-2.0 | 2023-09-14T21:41:04 | 2015-10-29T20:26:28 | WebAssembly | UTF-8 | C++ | false | false | 17,796 | cpp | CodePushing.cpp | /*
* Copyright 2016 WebAssembly Community Group participants
*
* 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... |
59840e267ebc2dda4f150cd66db13912ed4fd84c | 011d775140c257319bd5e5cc97a24fbc3fec6018 | /SumItUp.cpp | f3dbb406506a147bc3edcca4e9a6142adfa393d5 | [] | no_license | knapsack7/Programs | 6cde6cbb347c99328800f1d96961595b19c2796b | 2e94e576cc24968ee65e18fdf7677bcc10b4fee2 | refs/heads/master | 2020-05-03T14:32:14.387918 | 2019-06-01T09:43:11 | 2019-06-01T09:43:11 | 178,680,285 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 948 | cpp | SumItUp.cpp | #include<bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define pb push_back
#define sl(n) scanf("%d",&n)
int n=0,target=0;
vector<int> inp;
int isprinted[16][16][1501]={0};
void print(int *ans,int k){
for(int i=0;i<k;++i)
cout<<ans[i]<<" ";
cout<<endl;
}
void sumIt(int j,int pos,int *ans,i... |
25fff0577892d5a05effb2927b1c162b06634876 | 87f17eecf9da93f6093ecd446a592a6230ae4c97 | /SlavsSources/Slavs/SlavsClient/include/PlaceBuildingCGameState.h | 257d22f768d19134415cfbf6123b78dac9ec1005 | [] | no_license | TraurigeNarr/Slavs | 8f842de1316a1416e84deb26425122747bfdc40b | 1b22fcf8ce301d325f1e3987fdba1e6aa6ac31f8 | refs/heads/master | 2021-01-22T21:12:36.824333 | 2015-03-10T15:14:16 | 2015-03-10T15:14:16 | 25,731,908 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,196 | h | PlaceBuildingCGameState.h | #ifndef PlaceBuildingCGameState_h
#define PlaceBuildingCGameState_h
#include "Application.h"
#include "CPlayerController.h"
#include "InputSubscriber.h"
#include "SelectionBox.h"
#include <Game/CommandData.h>
#include <OIS.h>
#include <OgreSceneNode.h>
/*
------------------------------------------------------------... |
712fa3cc2e5adb7a489cedc6d96fab21fed94393 | 20bf3095aa164d0d3431b73ead8a268684f14976 | /cpp-labs/S1-9.CPP | b1734d6245dad8908d30d0fd8e30331a221aa25e | [] | no_license | collage-lab/mcalab-cpp | eb5518346f5c3b7c1a96627c621a71cc493de76d | c642f1f009154424f243789014c779b9fc938ce4 | refs/heads/master | 2021-08-31T10:28:59.517333 | 2006-11-10T23:57:09 | 2006-11-10T23:57:21 | 114,954,399 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 218 | cpp | S1-9.CPP | #include<iostream.h>
#include<conio.h>
void main()
{
int a,i,s=0;
clrscr();
for(i=0;i<5;i++)
{
cout<<"Enter Number["<<i<<"]:-";
cin>>a;
s=s+a;
}
cout<<"\n\nAverage is : "<<(s/5);
getch();
} |
0df3515499a65434b078640e406ea6a366b3371a | 8b7abc4a71a4bfa488aa0f78b181f05bf0e2ca39 | /DS/Lab 1/qa1.CPP | e68bd50c4f74b1d43b1c592d6e6075234b1f03b4 | [] | no_license | itsnavneetk/sem3 | d9a7f37d0466bcd5037f0e81947fe4c53d6270ac | fdef1c43a487660172c3b684e7123c2fe328c3e4 | refs/heads/master | 2021-01-25T07:44:18.047946 | 2017-08-03T05:18:08 | 2017-08-03T05:18:08 | 93,657,894 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 494 | cpp | qa1.CPP | #include<iostream4>
using namespace std;
int main()
{
int a[3][3],b[3][3];
int c[3][3];
int i,j;
cout<<"Enter Matrix A\n";
for(i=0;i<3;i++)
for(j=0;j<3;j++)
cin>>a[i][j];
cout<<"Enter Matrix B\n";
for(i=0;i<3;i++)
for(j=0;j<3;j++)
cin>>b[i][j];
cout<<"Matrix C:\n";
for(i=0;i<3;i++)
for(j=0;j<3;j... |
245d88b90815c1e247b7bf428d81438e4ce54c51 | 20cf6482b7f5a68bd0029414c02f7ec4747c0c5f | /triton2/server/loginserver/erating/EProtocol/AGIPPromoterUserList.cpp | 7943219ae343a1269d22f0372a1ba71a0751db88 | [] | no_license | kensniper/triton2 | 732907c76c001b2454e08ca81ad72ace45625f6c | 7ad2a359e85df85be9d87010047a198980c121ae | refs/heads/master | 2023-03-23T02:20:56.487117 | 2017-02-26T00:00:59 | 2017-02-26T00:00:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,076 | cpp | AGIPPromoterUserList.cpp | #include "AGIPPromoterUserList.h"
// AGIPPromoterUserList
AGIPPromoterUserList::AGIPPromoterUserList(void)
: SysProtocol(AGIP_CURRENT_VERSION, CMD_PROMOTER_USER_LIST, sizeof(SAGIPPromoterUserList))
{
m_data = (SAGIPPromoterUserList*)m_pucPDU;
}
AGIPPromoterUserList::~AGIPPromoterUserList(void)
{
}
uint16_t AGIPP... |
aca83e0c285bf351da47fc02300c9ee83aa68339 | fe5aa130b39392d62957641e101583c00fff33e8 | /ecclesia/magent/lib/event_reader/mced_reader_test.cc | aac9859c83e4817f73e6bfef52a0bc708aaf4775 | [
"Apache-2.0"
] | permissive | isabella232/ecclesia-machine-management | e7075cb5813e7fae234da8b97ee381435add1e34 | 06a73465e0a3dc80ebf1b4702d80ec4b4c74e8d2 | refs/heads/master | 2023-08-24T09:52:14.475682 | 2021-10-20T02:10:51 | 2021-10-20T02:11:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,432 | cc | mced_reader_test.cc | /*
* Copyright 2020 Google LLC
*
* 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 ... |
eafc9b3bc39016532a4575e46948e84fc94c8e4c | 4707a512ae36540b4b71a749d491aaa0042c33fa | /Src/panel/RA8875.h | 4dab7345ad270f4dd02b7c7c2ec75e10f129c55d | [] | no_license | wolfmanjm/TouchScreenDemo | 292660e8f8e9dbe94f2a091ea6b76d497a75b6ab | a050fff02f8068f9acdf6240d75092b9abf195f9 | refs/heads/master | 2021-01-23T03:13:25.983800 | 2015-07-13T00:42:28 | 2015-07-13T00:42:28 | 38,983,573 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 13,306 | h | RA8875.h | /*
Modified to run on STM32L100, taken from https://github.com/sumotoy/RA8875
originall written by: Max MC Costa for s.u.m.o.t.o.y
Thi sversion is stripped down to the bare minimum tro run on the STM32L100 Discovery board
-------------------------------------------------------------------------------------
>>>... |
a8c5290405e159d6bde89ec3274d14c7667bd7d6 | 0ced2f768c17b66c1972ed7a818d0a5919d3bd8e | /unda/src/utils/Utils.cpp | f95d8db018b9d01f075affb2b67cdaefe24afa69 | [
"MIT"
] | permissive | MattXV/marching-cubes-acoustic-rendering | 5170f2e63f7c730e83c7f9c1982d54f3b7e503db | 2acdafee013ff6982fe56885121d0dc14c98812f | refs/heads/master | 2023-09-03T08:07:14.302985 | 2021-11-05T14:03:24 | 2021-11-05T14:03:24 | 424,965,434 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,895 | cpp | Utils.cpp | #include "Utils.h"
std::string unda::utils::ReadTextFile(const std::string& path)
{
std::ifstream shaderFile(path);
std::stringstream shaderSource;
std::string line;
if (shaderFile.is_open()) {
while (std::getline(shaderFile, line)) {
shaderSource << line << std::endl;
}
shaderFile.close(... |
57fbe4a2a7cee3b75c1a94aca0044f4d5106e207 | 0a7c107400674da1437fe7f11ab57743700dff3b | /source/CIJoinMenu.h | bf98cf7293dac53116b9ec856f655f12195ec5b6 | [] | no_license | parhelia512/core-impact | e74e45a3a34db2ae4a3fad047915f6b98e8e3f4b | 40768a156a376e746678f54ecd2a07437d9ec9b9 | refs/heads/main | 2023-05-09T08:42:00.590853 | 2021-05-24T17:06:58 | 2021-05-24T17:06:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,810 | h | CIJoinMenu.h | //
// CIJoinMenu.h
// CoreImpact
//
// Created by Richard Yoon on 4/5/21.
// Copyright © 2021 Game Design Initiative at Cornell. All rights reserved.
//
#ifndef __CI_JOIN_MENU_H__
#define __CI_JOIN_MENU_H__
#include <cugl/cugl.h>
#include "CIMenuState.h"
#include "CIGameSettings.h"
#include "CIGameConstants.h"
/... |
bf5b4783e1768e61af1cc62cfd6991daafecb0f8 | b81a29ee3767205afd404288f7ab3e5030ee1209 | /Classes/scene/GameScene.cpp | f5dee0db4fba2e9cdcbf37ab77191bf9aae5a237 | [] | no_license | MrAnts/PGENG | 870259f84c71d1c66f6e72aa18c9d552274c2e43 | 7bc0464337d1afb6c7ec587b2ade369dd71bb6de | refs/heads/master | 2021-01-22T11:32:43.487109 | 2017-05-22T11:02:23 | 2017-05-22T11:02:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,601 | cpp | GameScene.cpp | #include "GameScene.h"
#include "SimpleAudioEngine.h"
USING_NS_CC;
Scene* GameScene::createScene()
{
// 'scene' is an autorelease object
auto scene = Scene::create();
// 'layer' is an autorelease object
auto layer = GameScene::create();
// add layer as a child to scene
scene->addChild(layer);
// return the ... |
e3e192d9d7f045ae9ee39a19a7a41b84c4d6c7be | c55aebf12ac939e61c2edae019b4b6432829ac3a | /catkin_ws/src/vedio/src/blue.cpp | 310af0836d5cdf8067d07574177d1eb652837c1c | [] | no_license | guomingli521/m100-ros | d526a5712890061b7599998e47b1a62f02016392 | 60d4ca21d457a28ad2878ad47bbacdf041610a80 | refs/heads/master | 2021-06-18T15:50:22.694238 | 2017-06-06T07:51:41 | 2017-06-06T07:51:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,850 | cpp | blue.cpp | #include "ros/ros.h"
#include "std_msgs/String.h"
#include "vedio/xy.h"
#include <opencv/cv.h>
#include <pylon/PylonIncludes.h>
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/gpu/gpu.hpp"
#include <cmath>
#include <iostream>
#include <... |
1bbe8aa47c15f7ae503fa5aaa16dc1b263ffb0bb | c2907a1a84df45609b1c0b06ffa184db4b30af2c | /Lab02/Functs.cpp | 7b23b1cee96f27f21f0ba2bfc5be50b327d04a3a | [] | no_license | Ales-san/Computer_Graphic_labs | 147f693868746a045dede4d4cf29a7f5da4cc614 | ef171b239ea5b4200ebfe87716431d832ed14f9e | refs/heads/master | 2021-01-02T10:17:11.179763 | 2020-07-03T17:56:48 | 2020-07-03T17:56:48 | 239,574,885 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,302 | cpp | Functs.cpp | #include <algorithm>
#include <vector>
#include "PNM_ex.h"
#include "geom.h"
double get_vect_mult(Vect a, Vect b) {
return a.x * b.y - a.y * b.x;
}
Vect get_norm(Point a, Point b) {
return Vect(a, b);
}
Rect get_line(Point a, Point b, double thick) {
Vect s = get_norm(a, b);
double l = s.len()... |
43df4c29dcc5554244fc9bc88f79b8b0d79c5022 | 655202725f7b5eac7bd45a415b333042cd33ef6b | /Windows/WindowsErrorsToException.cpp | 64f44da6cd8a8d410a22d3f3aa596fcd9d4c040a | [] | no_license | BarabasGitHub/DogDealer | 8c6aac914b1dfa54b6e89b0a3727a83d4ab61706 | 41b7d6bdbc6b9c2690695612ff8828f08b1403c7 | refs/heads/master | 2022-12-08T04:25:50.257398 | 2022-11-19T19:31:07 | 2022-11-19T19:31:07 | 121,017,925 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,081 | cpp | WindowsErrorsToException.cpp | #include "WindowsErrorsToException.h"
#include <Windows\WindowsInclude.h>
WindowsException::WindowsException() noexcept:
m_error_code( NO_ERROR )
{
}
WindowsException::WindowsException( HRESULT error_code ) noexcept :
m_error_code( error_code )
{
}
WindowsException::WindowsException( const WindowsExcept... |
028c85dcfa1b206739a545519a67e0b1b611bf9b | 283c31304584af4e2bb12aa7764c13b2fb61541c | /leet-solve_sudoku/main.cpp | e77b0425caf981e4823eff1860186b839bccaff8 | [] | no_license | zohairajmal/competitive-programming-problems | 27c994471e0b8e6166d5dbba96b85fd1a4eac288 | 959abf6f95b75540d19c699ada0253e047f9ec6f | refs/heads/master | 2021-01-04T03:43:26.486924 | 2018-10-07T18:39:00 | 2018-10-07T18:39:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,744 | cpp | main.cpp | #include <bits/stdc++.h>
using namespace std;
class Solution {
bool solve(vector< vector<char> >& board, int index, vector< vector<bool> >& row, vector< vector<bool> >& col, vector< vector< vector<bool> > >& square){
if(index > 80) return true;
int i = index/9, j = index%9;
if(board[i][j] ... |
b71bb4ea7d6cee9956dd0228d1c7b6981d668e69 | 0fc6eadc8811a6990e0bd41e9a23bf698e738c88 | /比赛/zoj/zoj校赛/c.cpp | c228cce7745c2b2ae00a7aed99dcc96ee2e70ee1 | [] | no_license | bossxu/acm | f88ee672736709f75739522d7e0f000ac86a31de | 871f8096086e53aadaf48cd098267dfbe6b51e19 | refs/heads/master | 2018-12-27T22:20:27.307185 | 2018-12-20T04:41:51 | 2018-12-20T04:41:51 | 108,379,456 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,963 | cpp | c.cpp | #include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
#include<algorithm>
#include<queue>
#include<stack>
#include<vector>
#include<cmath>
#include<set>
#include<cstdlib>
#include<functional>
#include<climits>
#include<cctype>
#include<iomanip>
using namespace std;
typedef long long ll;
#define INF 0x3... |
18ba9a3e24242092974ce5e1bc6ddc9a437aec35 | c37419ca512dbaf14e1e74ca501b3591ccbba7e0 | /screen.cpp | f9c0220bef692a33a166bc6cd27b05e62f876305 | [] | no_license | daniellycosta/DCA1202_Trat_de_Classes_Abstratas | 94e2faa68c5295d6adcfe267677c8030999cce9f | 5d9c586b0884952b0a74e7bc36cd20fb0f8b70c0 | refs/heads/master | 2021-07-10T13:52:05.522813 | 2017-10-12T01:12:19 | 2017-10-12T01:12:19 | 105,651,907 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,727 | cpp | screen.cpp | #include "screen.h"
#include<iostream>
#include<vector>
using namespace std;
/**
* @brief Construtor da Screen
* @param nl "altura" da tela
* @param nc "largura" da tela
* @details A tela é gerada através de um vetor de vetor de char preenchido de espaços.
* OBS.:O eixo y cresce da direita para a esquerda e o x d... |
28ddeaacd4048dd113959a9ac6d5cd295bcdfd2f | a8766db0a50dfb64358ee3a3d4b4903663c3cced | /particle_world/src/RoeTexture.h | 0dcdae9bdb71182a4b8e0aa602ea7b3ef2b966b1 | [] | no_license | swantescholz/cpp-games | 0915b8d5acaf01401a93478c1509dce7e95e5b9a | b9814c69ae041c0d746a119cb7039b5b54ddc82d | refs/heads/master | 2020-05-23T07:36:41.172453 | 2019-05-14T20:44:55 | 2019-05-14T20:44:55 | 186,679,964 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,293 | h | RoeTexture.h | #ifndef ROETEXTURE_H_
#define ROETEXTURE_H_
#include <GL/gl.h>
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include <map>
#include "RoeCommon.h"
#include "RoeVector3.h"
#include "RoeMatrix.h"
#include "RoeColor.h"
namespace Roe {
struct S_TextureIntern {
GLuint iTexture; //textur-index
Matrix mStdMatrix;... |
1105e843d89465814e5decb936eea258b2aa2b4f | c5332c10775e9df3093dd2677babe34e02b05704 | /openframeworks/hollerPong/trunk/src/pong/Paddle.h | a6ab16f5188d437d498cf31cd1d3b039a4f693eb | [] | no_license | aurialLoop/julapy | bb1f7c458b2c1fefef6de6bdd512ee1ca781a6dc | 80ea9b32c6de7e34ad353416f75878551193d2a9 | refs/heads/master | 2021-10-08T13:46:46.279988 | 2021-09-29T05:59:03 | 2021-09-29T05:59:03 | 33,194,282 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 485 | h | Paddle.h | /*
* Paddle.h
* emptyExample
*
* Created by lukasz karluk on 1/04/10.
* Copyright 2010 __MyCompanyName__. All rights reserved.
*
*/
#ifndef HOLLER_PONG_PADDLE
#define HOLLER_PONG_PADDLE
#include "ofMain.h"
#include "PongConfig.h"
class Paddle
{
public :
Paddle();
void setColor ( int color );
voi... |
71895782c39ab8df7f7af46e131898c1b0f76858 | 987084195af62f2bd88a2a7990a4b660e35a9a0f | /Bridges/Tests/Test_QueryServer/smartsoft/src/BaseStateQueryServiceAnswHandler.cc | ad5d4df8611376b0f0daaa4a1d329068ee4e97e5 | [
"BSD-3-Clause"
] | permissive | CARVE-ROBMOSYS/Yarp-SmartSoft-Integration | e1b1584d17c8a10efddbd3fddd0fd54a8d1f63d2 | 4023602f5540d1e66804b3d0db80f63aac536f8b | refs/heads/master | 2021-06-26T16:35:35.098019 | 2019-04-23T09:33:18 | 2019-04-23T09:33:53 | 129,261,900 | 2 | 0 | null | 2019-04-09T20:41:46 | 2018-04-12T14:12:59 | C++ | UTF-8 | C++ | false | false | 1,331 | cc | BaseStateQueryServiceAnswHandler.cc | //--------------------------------------------------------------------------
// Code generated by the SmartSoft MDSD Toolchain
// The SmartSoft Toolchain has been developed by:
//
// Service Robotics Research Center
// University of Applied Sciences Ulm
// Prittwitzstr. 10
// 89075 Ulm (Germany)
//
// Information abo... |
bad04f424429f9ce835f00f3c51af623db8dd343 | aa2117552765a7a0c8c5dbbddbc8d3b37fce9127 | /algorithm/naive_bayes/bayes_estimation.cc | 863470fb672d780107e8aa839dd258e92914c3db | [] | no_license | mayf3/machine_learning | 7436de484a89741b90330bf6ade66bd7ebe3365f | ed8b0459b3d830f298bf9916fed2a6e5c6f9d30a | refs/heads/master | 2021-01-21T17:14:45.368146 | 2021-01-08T13:18:50 | 2021-01-08T13:18:50 | 91,944,986 | 0 | 0 | null | 2021-01-08T13:18:51 | 2017-05-21T09:06:40 | C++ | UTF-8 | C++ | false | false | 2,292 | cc | bayes_estimation.cc | // Copyright @2021 mayf3
#include "algorithm/naive_bayes/bayes_estimation.h"
#include "algorithm/learner/learner_factory.h"
#include "utils/math/math_utils.h"
namespace algorithm {
namespace naive_bayes {
REGISTER_LEARNER(BayesEstimation, kBayesEstimationName);
BayesEstimation::BayesEstimation(const learner::Learn... |
866732a071e69e8b9a5b09d6e43117c64bb3fcf4 | e13860ecc8ff1d295bc61a6d119a3a83da2e022d | /branches/nmapsys2/Map/SM3/terrain/Textures.h | e7262e040de2f3444c9f81bc9f3b4a88f1aa1bbd | [] | no_license | spring/svn-spring-archive | 9c45714c6ea8c3166b5678209aea4b7a126028ea | 538e90585ed767ee713955221bfdd89410321447 | refs/heads/master | 2020-12-30T09:58:08.400276 | 2014-10-15T00:46:52 | 2014-10-15T00:46:52 | 25,232,864 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 3,000 | h | Textures.h | #ifndef TERRAIN_TEXTURES_H
#define TERRAIN_TEXTURES_H
class TdfParser;
class CBitmap;
namespace terrain {
struct ILoadCallback;
struct Heightmap;
class TQuad;
struct float2
{
float2() { x=y=0.0f; }
float2(float X,float Y) : x(X), y(Y) {}
float x,y;
};
//--------------------------... |
b9b47b66282ba71bacecef68bb8ff98e2a88e004 | 092796fe2afbfcc6adab566bed303974552b5ebc | /lib/utils/byte_iterator.hpp | b1c478acbe1137c16ef9d674dbfc0df80d299294 | [] | no_license | clarkok/cdb | cd08baf0f3ec7611e41a1b1e523c13c1d249317e | ba771585a73defec6652f32096b3be9787a1c690 | refs/heads/master | 2016-08-11T16:28:01.288826 | 2015-11-11T04:28:16 | 2015-11-11T04:28:16 | 43,992,632 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,374 | hpp | byte_iterator.hpp | #ifndef _DB_UTILS_BYTE_ITERATOR_H_
#define _DB_UTILS_BYTE_ITERATOR_H_
#include <cassert>
namespace cdb {
namespace _Iterator {
template <typename T>
struct Iterator : std::iterator<std::random_access_iterator_tag, T>
{
T *start_ = nullptr;
T *lower_limit_ = nullptr;... |
f64199fb3bad8b11bb51ab2a2b3e832573472b51 | d7906e84bda2bd386e074eab9f05479205e7d2a9 | /Development/Source/Renderers/OpenGL/QOMatrix.cpp | 88067d1f739606646107f1d702f4c7571802cef1 | [
"BSD-3-Clause"
] | permissive | jwwalker/Quesa | 6fedd297a5a4dd1c21686e71bba3c68228f61724 | 1816b0772409c2faacdb70b40d5c02a55d643793 | refs/heads/master | 2023-07-27T16:36:55.757833 | 2023-07-06T23:55:10 | 2023-07-06T23:55:10 | 204,233,833 | 33 | 7 | BSD-3-Clause | 2023-09-09T23:17:36 | 2019-08-25T01:59:21 | C++ | UTF-8 | C++ | false | false | 7,241 | cpp | QOMatrix.cpp | /* NAME:
QOMatrix.cpp
DESCRIPTION:
Source for Quesa OpenGL renderer class.
COPYRIGHT:
Copyright (c) 2007-2020, Quesa Developers. All rights reserved.
For the current release of Quesa, please see:
<https://github.com/jwwalker/Quesa>
Redistrib... |
e53ef8c9283a9284f97a21df2daa687478954b0a | 2d1f82fe5c4818ef1da82d911d0ed81a0b41ec85 | /codeforces/R576/CF1198A.cpp | 267147b52fa0f95f881af7caf887f633a1fdc77c | [] | no_license | OrigenesZhang/-1s | d12bad12dee37d4bb168647d7b888e2e198e8e56 | 08a88e4bb84b67a44eead1b034a42f5338aad592 | refs/heads/master | 2020-12-31T00:43:17.972520 | 2020-12-23T14:56:38 | 2020-12-23T14:56:38 | 80,637,191 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,137 | cpp | CF1198A.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
#define FOR(i, a, b) for (int (i) = (a); (i) <= (b); (i)++)
#define ROF(i, a, b) for (int (i) = (a); (i) >= (b); (i)--)
#define REP(i, n) FOR(i, 0, (n)-1)
#define sqr(x) ((x) * (x))
#define all(x) (x).begin(), (x).end()
#d... |
0ccdde2c4e1ea398b99ebbae6a03c90f815839c9 | 3f3095dbf94522e37fe897381d9c76ceb67c8e4f | /Current/ITM_MisDesMutator.hpp | 492b2c4df4bb4b9a97bcaa69de9e522a5e416bd6 | [] | no_license | DRG-Modding/Header-Dumps | 763c7195b9fb24a108d7d933193838d736f9f494 | 84932dc1491811e9872b1de4f92759616f9fa565 | refs/heads/main | 2023-06-25T11:11:10.298500 | 2023-06-20T13:52:18 | 2023-06-20T13:52:18 | 399,652,576 | 8 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 1,287 | hpp | ITM_MisDesMutator.hpp | #ifndef UE4SS_SDK_ITM_MisDesMutator_HPP
#define UE4SS_SDK_ITM_MisDesMutator_HPP
class UITM_MisDesMutator_C : public UUserWidget
{
FPointerToUberGraphFrame UberGraphFrame;
class UWidgetAnimation* BlinkMutator;
class UWidgetAnimation* BlinkWarning;
class UImage* BlinkOverlay;
class UButton* Button_Ou... |
720a832f5aa46962a6203e765d80ffd2f885103b | 37d5e5b6dcb209aa2505d9fd2ab6b8fbc2e53cf1 | /CppUtil/Random.h | c6a634c899637e09ed6c22335138083bd5ae1d66 | [
"MIT"
] | permissive | phaesoo/CppUtil | 42819ed4689527f8ebe8d47adae27553b45228d6 | 6c52fdc7e6cad4337ba3c402b19dc4b6d1a75ecc | refs/heads/master | 2021-01-19T16:01:29.708368 | 2017-05-09T04:25:19 | 2017-05-09T04:25:19 | 88,238,444 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 156 | h | Random.h | #pragma once
#include <vector>
class Random
{
public:
Random() = delete;
public:
static std::vector<int> Generate(int min, int max, int size);
}; |
3c7a617c949550dfb6557970bb0ac6911c671b4c | 41ff29c79207e6a34bb0ade2c8b6d6eaaf515c07 | /2012/2012RobotProgram/CommandBase.h | 8fdcff92b3906d606571da204b8228b124a5f5fe | [] | no_license | stevep001/RoboEagles | 322f56a568b5acfa51478d1cd4ecfb8588a5902c | 5c4a6afc67d3d9c554826bfb282708320511d110 | refs/heads/master | 2021-01-13T01:55:23.227079 | 2014-01-18T07:19:24 | 2014-01-18T07:19:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,301 | h | CommandBase.h | #ifndef COMMAND_BASE_H
#define COMMAND_BASE_H
#include "Commands/Command.h"
#include "Subsystems/Chassis.h"
#include "OI.h"
#include "Subsystems/CompressorSubsystem.h"
#include "Subsystems/ThrowerSubsystem.h"
#include "Subsystems/BallLoaderSubsystem.h"
#include "Subsystems/LifterSubsystem.h"
#include "Subsys... |
d60daf53e554682fe753b94f312337c9189ac32c | 25f88195723682e6fbd56c7e019364f4dcaed823 | /examples/F5ZSW_bf/F5ZSW_bf.ino | 83b9bc59e3159b00c0f6b3f47141b3d76fb10e49 | [] | no_license | f4goh/MODULATION | 9d558067eb6c71cff4d13affeede9ba17bdd7549 | b5fb0a188567efd5f1ac0b246b3a0b4c1bafb7c3 | refs/heads/master | 2022-05-18T03:09:32.851364 | 2022-03-30T12:05:43 | 2022-03-30T12:05:43 | 61,471,754 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 12,268 | ino | F5ZSW_bf.ino | /*sample code for F5ZSW BF version
Anthony LE CREN F4GOH@orange.fr
Created 23/3/2022
the program send cw and ft8 sequence 4 times per minutes
with GPS to have perfect timing
*/
#include <JTEncode.h>
#include <SoftwareSerial.h>
#include <TinyGPS.h>
#include <TimerOne.h>
//NANO pinout
#define txPin 6 //tx pin... |
cd8940885cab22d46b6c7c3b28bd8d4fdc8671c5 | 841776845974ba2645eff58ff8fabedd873093f0 | /LeetCode/376摆动序列.cpp | dc97da3ca8d2d0c11036bcc43fb4e73a43048a8e | [] | no_license | hello-sources/Coding-Training | f2652c9b8e58d244a172922e56897fa2a3ad52fb | d885ca23676cb712243640169cf2e5bef2d8c70e | refs/heads/master | 2023-01-19T11:17:36.097846 | 2023-01-01T00:49:09 | 2023-01-01T00:49:09 | 246,630,755 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 667 | cpp | 376摆动序列.cpp | int wiggleMaxLength(int* nums, int numsSize){
if (numsSize < 2) return numsSize;
int up[numsSize], down[numsSize];
memset(up, 0, sizeof(up));
memset(down, 0, sizeof(down));
up[0] = down[0] = 1;
for (int i = 1; i < numsSize; i++) {
if (nums[i] < nums[i - 1]) {
up[i] = up[i - 1... |
9d55078cb13ab6cd2bec3cf468789c3af02aace6 | 73c7688838b4dd7a49786688a2e6e90907cd0f39 | /1.8 设置编译器选项/Printer.h | d92cea938183a6c8a6301a8992a0103da05c8926 | [] | no_license | JinBiLianShao/CMakeTutorials | d2621df6f6245aa7f4f291e4d4ff41b077b189a9 | 9585efd6204d0474b2f80b0b8e8ddbbd47ed38c5 | refs/heads/main | 2023-07-16T03:18:54.785755 | 2021-09-03T03:23:05 | 2021-09-03T03:23:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 233 | h | Printer.h | #pragma once
#include <iostream>
#include <string>
class Printer final {
public:
Printer() = default;
~Printer() = default;
void info(std::string& info) const;
void info(const char *info) const;
};
|
a66031372f668741863568f7ccba8b32173840fc | 24287639a5af25775a34729b5942892271db45b5 | /211INC/control.h | f04e03b7fd8446a22491a6184599ce9abcaf474a | [] | no_license | FaucetDC/hldc-sdk | 631c67c29b9a2054b28bf148f2b313cdd078e93b | 1cfeeace3e6caabb567ce989b54dd44caeaf2bf0 | refs/heads/master | 2021-01-12T09:07:37.316770 | 2017-01-15T02:22:40 | 2017-01-15T02:26:33 | 76,768,456 | 8 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 113,024 | h | control.h | /* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 3.02.88 */
/* at Fri Feb 18 03:27:35 2000
*/
/* Compiler settings for e:\dragon21\private\dshowdm6\idl\.\control.odl:
Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, c_ext
error checks: none
*/
//... |
11f0cb5ac10bb09c908c08ad56fff055d74ccba6 | c95937d631510bf5a18ad1c88ac59f2b68767e02 | /tests/benchdnn/utils/bench_mode.cpp | 2df376086d5d4b15c8ecaabd85dc44b3650e4271 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"Intel",
"BSL-1.0",
"BSD-2-Clause"
] | permissive | oneapi-src/oneDNN | 5cdaa8d5b82fc23058ffbf650eb2f050b16a9d08 | aef984b66360661b3116d9d1c1c9ca0cad66bf7f | refs/heads/master | 2023-09-05T22:08:47.214983 | 2023-08-09T07:55:23 | 2023-09-05T13:13:34 | 58,414,589 | 1,544 | 480 | Apache-2.0 | 2023-09-14T07:09:12 | 2016-05-09T23:26:42 | C++ | UTF-8 | C++ | false | false | 2,613 | cpp | bench_mode.cpp | /*******************************************************************************
* Copyright 2023 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.o... |
8ddd694d57765011941d6228a1f963829beaa04e | e1ee51e1e0846a0570502f922631cecdc9b897f6 | /Functions.cpp | fb376b6eac529d70af9ba94dbdcccdbf3a3af074 | [] | no_license | ahmedelnoamany/hangManWordGuess | 0a370a919df78565d6611a468be71e9aba7cf6ce | dc42e75767399ca28ef2a2ec7567d78b5cd5d4ba | refs/heads/master | 2021-01-21T07:57:06.407542 | 2016-09-19T21:42:13 | 2016-09-19T21:42:13 | 68,624,865 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,554 | cpp | Functions.cpp | /*
* File: Functions.cpp
* Author: Ahmed Elnoamany
* Created on September 19, 2016, 2:54 PM
*/
#include <iostream>
#include <string>
#include <fstream>
#include <time.h>
#include <ctype.h>
#include "Functions.h"
using namespace std;
void Functions::displayWord(string word,int size, bool identified[20]){
//c... |
28e0b17c5ceb6b8085b29070fd17ac969d4b3637 | df90ed23a49dba79f61e5a28366424f0ecec60de | /src/configuration/lua/read_inside_array.cpp | 7f16986dcc23e12ed1c8b7649c83636ab353dc90 | [
"BSD-2-Clause"
] | permissive | Damdoshi/LibLapin | 306e8ae8be70be9e4de93db60913c4f092a714a7 | 41491d3d3926b8e42e3aec8d1621340501841aae | refs/heads/master | 2023-09-03T10:11:06.743172 | 2023-08-25T08:03:33 | 2023-08-25T08:03:33 | 64,509,332 | 39 | 12 | NOASSERTION | 2021-02-03T17:18:22 | 2016-07-29T20:43:25 | C++ | UTF-8 | C++ | false | false | 469 | cpp | read_inside_array.cpp | // Jason Brillante "Damdoshi"
// Hanged Bunny Studio 2014-2018
//
// Lapin library
#include "lapin_private.h"
Decision lua_read_inside_array(const char *code,
ssize_t &i,
SmallConf &conf,
SmallConf &root)
{
do
{
if (lua_read_array_node(code, i, conf, root) == BD_ERROR... |
8534b230ca0be40094d62ca844f2194e4f873ee7 | 722593fedb81fd9ae8a4f2f8d56fe2405c3d9698 | /BMP压缩与隐写术/BMP压缩与隐写术/BMP压缩与隐写术Dlg.cpp | 16884efc4debb3ae5a8c3f2e62de7348914df5a2 | [] | no_license | ResistWu/Image-Format-Conversion-Cryptographic-Software | 14517f6e5d7da314cb175459c91de5908303a2e0 | 5557cb91943743a9d563f00b8e9b91cf256f03a1 | refs/heads/master | 2020-04-01T14:01:41.008119 | 2018-10-16T11:56:42 | 2018-10-16T11:56:42 | 153,277,334 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 24,763 | cpp | BMP压缩与隐写术Dlg.cpp | #pragma once
// BMP压缩与隐写术Dlg.cpp : 实现文件
//
#include "stdafx.h"
#include "BMP压缩与隐写术.h"
#include "BMP压缩与隐写术Dlg.h"
#include "afxdialogex.h"
#include "time.h"
#include "Run.h"
#include "huff.h"
#include "Secret.h"
#include "md5.h"
#include "wavelet.h"
#include "ezw.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CBMP压... |
d0f19188a2d3b03f2a653ecca3b8f7ca26f946e3 | 0e14ed6e72ed21a8e6ae5f795c92a15ffcbf5c8b | /src/intersection.hpp | 13918d8de04d4eb8cd9201a5270f3f3a9ecac442 | [] | no_license | igarfieldi/Raytracing | aa410c737aaef5289ffe8ac3b247ccc9d19ae4ff | fd92bed9290b6c5c1b0b2a946b632a3d03782526 | refs/heads/master | 2020-03-18T03:27:24.267517 | 2018-05-29T06:08:00 | 2018-05-29T06:08:00 | 134,241,834 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 239 | hpp | intersection.hpp | #pragma once
#include "vec.hpp"
namespace raytracer {
template < class T >
class primitive;
template < class T >
struct intersection {
using type = T;
T distance;
const primitive <T> *primitive;
};
} // namespace raytracer |
e0ac5df99ea8a0383990ff69e9ca3abe89495fd0 | c6b006502679903fc30fc951201087cb311408c3 | /test.cpp | 8084bb045465ffc082345634ec660b97d2d72959 | [] | no_license | seanwarnock/CSCI15-Lab3 | 7e9ff0ca3d4867aba4f43c49a40b0107f4812c0c | d9fe563f11b9db428c8be67e36540294709de32e | refs/heads/master | 2020-03-30T07:54:18.391444 | 2018-10-01T05:48:46 | 2018-10-01T05:48:46 | 150,973,667 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 170 | cpp | test.cpp | #include <iostream>
#include <iomanip>
#include <fstream>
int main()
{
int total;
int width;
int result;
result = div(total,10)
std::cout << result;
}
|
95b9d5157e64145d96332d5a39205393879ffc32 | 7bc09b4c0ca2b8e94a9269487baa16513d49e6d4 | /exceptions.h | 0bc582eedd4c2d790b7890730ebf7a5e7ec36d92 | [] | no_license | aleksandarkiridzic/dna-sequence-aligner | 43e960f4739e5e2a6aa86d51376e7a3c25faea1a | fa41ae27fdf5a08bb0bbbc29aa85d7ac873d1b13 | refs/heads/master | 2020-03-21T15:30:38.995184 | 2018-07-12T00:33:38 | 2018-07-12T00:33:38 | 138,716,567 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,893 | h | exceptions.h | #ifndef EXCEPTIONS_H_INCLUDED
#define EXCEPTIONS_H_INCLUDED
#include <exception>
#include <sstream>
#include "str.h"
#include "strutil.h"
class BetterException : std::exception {
public:
virtual std::string message() = 0;
};
struct FileNotFoundException : BetterException {
const char* filePath;
FileNotF... |
f3f1f7ae92cd6f22459047a78a333e1df58526be | 7c075120a703c5058b887d4f203499437ddd066f | /runtime/src/ValueConstraintsHolder.hh | b999d327372097643f2190a016621ec979e52854 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | fossabot/asn1-compiler | 6588cf1e3eb5ab8c02d6be9821aa423052fd61b7 | 48848ab5dd6576dbf68c6480a4ac1192008201f4 | refs/heads/master | 2020-04-17T05:05:25.898343 | 2019-01-17T16:51:31 | 2019-01-17T16:51:31 | 166,261,845 | 0 | 0 | NOASSERTION | 2019-01-17T16:51:30 | 2019-01-17T16:51:30 | null | UTF-8 | C++ | false | false | 1,870 | hh | ValueConstraintsHolder.hh | #ifndef __VALUE_CONSTRAINTS_HOLDER_HH
#define __VALUE_CONSTRAINTS_HOLDER_HH
#include "TypeCommon.hh"
#include "Utils.hh"
#include "ASN1Exception.hh"
namespace asn1
{
template <typename NumericType>
class ValueConstraintsHolder
{
public:
// Constructor
explicit ValueConstraintsHolder(const Type& type, NumericT... |
9a244e95dac4167c0071da5e9dcc9aee232c0170 | 406d0b58e2f1e536add8d441f4da6446d64a34af | /ais.cpp | 2cb1dc9400fabdb2c9067a53a2a73136e3c5b23e | [] | no_license | shinarit/wiz | 2eb3051cc8a5497d21c0db5420b5dc8afdd3d85f | fc97002d2e928dfb6128545e87182b22d61a5147 | refs/heads/master | 2016-09-15T22:17:57.105410 | 2012-09-21T15:00:00 | 2012-09-21T15:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,254 | cpp | ais.cpp | //
// author: Kovacs Marton
// email: tetra666@gmail.com
// license: whatever. note my name
//
// ais.cpp
//
// artifical intelligence code, including the endpoint of remote control
//
#include "ais.hpp"
#include "flyerz.hpp"
#include <sstream>
#include <iostream>
//
// DiskShipAiRandom functions
//
void DiskShipA... |
11ecf184e30f6d5e9289c28e64f4fad5e7d6d7b3 | e616c25ca163f3da9a5b9776a0cb1b93ec79e3dd | /just3.cpp | 054a93eca7c082156d52cf287ea42e080679b973 | [] | no_license | SakuragiYoshimasa/TWCTF2017 | 0091186ab41b1c4fce350146c454f4aa2d654c88 | a5c52158a4be602026b562a8056bb24434861061 | refs/heads/master | 2021-01-22T09:26:36.981584 | 2017-09-04T06:02:55 | 2017-09-04T06:02:55 | 102,324,280 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 165 | cpp | just3.cpp |
#include <iostream>
#include<string>
using namespace std;
int main(int argc, char const *argv[]) {
int ret = system("nc pwn1.chal.ctf.westerns.tokyo 12345");
}
|
023114fe810fc92aae33bbd3ac4ba145e848616a | 88b25958ab9ef82aeb2511f226c4e3be1e74836f | /001.cpp | 6476a3b1df14c64f4b5dfbdf656830c237813cf0 | [
"MIT"
] | permissive | Mateorid/BI-PA2 | 0e39d1d571070c3d9da4ca091ee390955b2d4266 | 0f77d20f061f1cad2829a2401c8891a63333629d | refs/heads/main | 2023-05-13T21:17:18.728654 | 2021-06-02T14:07:09 | 2021-06-02T14:07:09 | 373,189,172 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,884 | cpp | 001.cpp | #ifndef __PROGTEST__
#include <cstring>
#include <cstdlib>
#include <cstdio>
#include <cctype>
#include <climits>
#include <cassert>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <cstdint>
#include <map>
#include <vector>
#include <algorithm>
#include <set>
#include <string>
#in... |
673ca72068fadf25412850f84707d3b900e196f1 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /cc/test/fake_picture_layer_tiling_client.h | 29706c5ea36ecda695b1a62fa3dba3d22c0a2a94 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 2,920 | h | fake_picture_layer_tiling_client.h | // Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_
#define CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_
#include <memory>
#include "base/memory/raw_ptr.h"
#include "cc/raster... |
faea8c1996b1e4d3232fa40ce163feb6d37b3384 | c15376cf895904b57ad98a6165f4f6398f66c417 | /ElectricCar.hpp | 074e09e35bd414fa9f907d4d3c2d075ef9267d9e | [] | no_license | AlicjaBonder/Cars | 65b1105ae3de47880b2c183302411ae7c2fc772d | 9cba3d09f3d50d9fb36e9d880be77b3970e0125c | refs/heads/master | 2020-06-23T13:26:47.364712 | 2019-07-30T17:20:16 | 2019-07-30T17:20:16 | 198,636,802 | 0 | 1 | null | 2019-07-24T13:02:22 | 2019-07-24T13:02:21 | null | UTF-8 | C++ | false | false | 349 | hpp | ElectricCar.hpp | #pragma once
#include "ElectricEngine.hpp"
#include "Car.hpp"
class ElectricCar : virtual public Car
{
public:
ElectricCar(ElectricEngine *engine);
ElectricCar() = default;
~ElectricCar();
void addEnergy() override;
ElectricEngine *changeEngine(int, int);
protected:
void charge();
Electri... |
68fb227bfc51b49aa86974ca331a54cd0f44ee1d | a1357f3182949b38e4b887c841b75c9c255c9013 | /base.cpp | 33f022b48fb0e7daeb6b373710e4388d374be8cc | [
"MIT"
] | permissive | zs2619/russia | f2eb32b3bbb99089e3f3c19661150adec212901a | 8c17f8f17138e3ac197d23cd5bd0b18c594db254 | refs/heads/master | 2020-03-07T20:26:31.043372 | 2018-04-02T03:50:24 | 2018-04-02T03:50:24 | 127,697,744 | 0 | 0 | null | null | null | null | IBM852 | C++ | false | false | 13,323 | cpp | base.cpp | #include "stdafx.h"
#include "base.h"
int Random(int n)
{
srand( (unsigned)GetTickCount( ));
return rand()%n;
}
//////////////////////////////////////////////////////////////////
CCell::CCell(bool exist,COLORREF color)
:m_exist(exist),m_color(color)
{
}
void CCell::DrawCell(HDC hdc,int cellsize)
{
int l=m_column... |
b42b21787f54919dc6f0436c3668409eb98af804 | 7df60cff2293ef347835be310ff94bb4339c8507 | /Day 14M/ex01/FruitNode.hpp | 1bb2f1cef1c9bc1346ece7bfcfb4aa7c59e25226 | [] | no_license | halil28450/PoolCPP | e9ca42e2adf8a3e2333e2519a33b4cce1a5d92fc | b74387e9cf7bdf853dca86be984bb196f2e0558a | refs/heads/main | 2023-03-18T19:04:33.014416 | 2021-02-15T12:14:57 | 2021-02-15T12:14:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 420 | hpp | FruitNode.hpp | /*
** EPITECH PROJECT, 2021
** B_CPP_300_STG_3_1_CPPD14M_arthur_robine
** File description:
** Created by arthur,
*/
#ifndef B_CPP_300_STG_3_1_CPPD14M_ARTHUR_ROBINE_FRUITNODE_HPP
#define B_CPP_300_STG_3_1_CPPD14M_ARTHUR_ROBINE_FRUITNODE_HPP
#include "Fruit.hpp"
typedef struct FruitNode_s {
Fruit *content;
st... |
7f02e228f6bd945c2d1e3e81438a111ba042b31c | 4094a7d3bba1f55d8b1ef4914ae200275745d66c | /TinyBitmapMaker/tinybmp_maker/tinybmp.h | 17f1cf06b58ee662be9dc1400ccfe565d9e85432 | [] | no_license | SanJeong/21400684 | 255f44ae6642f680511a568398f90919a7e9fc94 | 02a8b995255d9edfc1b2f7691a638546dcb8c3e2 | refs/heads/master | 2021-01-20T00:50:48.411475 | 2017-06-22T13:06:15 | 2017-06-22T13:06:15 | 89,196,666 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 630 | h | tinybmp.h | #pragma once
#include <iostream>
#include "tinybmp_def.h"
class TinyBitmap
{
public:
TinyBitmap();
TinyBitmap(const char* _path);
TinyBitmap(const TinyBitmap& rhs);
virtual ~TinyBitmap();
public:
void print_header(std::ostream& strm);
void print_info_header(std::ostream& strm);
public:
BITM... |
e8c6564ed725358b01a054e2fad5cac41c6aac6c | d601a1278001292cc76d089013e31cba83109233 | /Mando Engine/Motor/Graficos/textura_arreglada.h | 39c437310ae5ceadb57ae0321b05c6bc09ab6fe9 | [] | no_license | MANDO11121/Mando_Engine | cab47d3aab710fd2db6e7b4af84b6955db2e4749 | 8099ac83f37b08a28c9772e7e364efe603453361 | refs/heads/master | 2021-01-01T05:28:12.811231 | 2016-05-27T23:48:34 | 2016-05-27T23:48:34 | 59,664,306 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 708 | h | textura_arreglada.h | #pragma once
#include "textura.h"
#include "modelo.h"
#include "recurso.h"
namespace graficos{
class Textura_Arreglada : public Recurso
{
public:
Textura_Arreglada();
Textura_Arreglada(Textura2D *textura,GLuint numeroframes,const char* nombre);
Textura_Arreglada(Textura2D *textura,GLuint numeroframes,Trans... |
41f05117be2165fe57deca7b3839392dee438024 | ef2d829c0ac2bf2367ec61d1972913c13917ff99 | /306_additiveNum.cpp | 41b6e458709a26e07176a1f24cc907625b867bb7 | [] | no_license | yuweichen1008/leetcode-1 | 9c87c6e762f6dfc34e5e2f44feaa1b60ac3e7f91 | 713eed352ae075840b762d8082e5590906b52192 | refs/heads/master | 2021-06-12T04:15:00.909986 | 2017-01-07T17:18:22 | 2017-01-07T17:18:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,105 | cpp | 306_additiveNum.cpp | class Solution {
public:
bool isAdditiveNumber(string num) {
for(int i = 0; i<num.size()/2; i++){
if(dfs(stoll(num.substr(0, i+1)), i+1, num))
return true;
if(num[0]=='0')
return false;
}
return false;
}
bool dfs(long long int p... |
532f612a9d2f55b4649558b85ee38efa9b344f4c | 55676aced145d877d6b8649edab5085c995e3c84 | /Codes/Control_Board_Atmega32/10motors/10motors.cpp | 2b9d0ff5acdb564024c0e5bc63784fcfc48a4caa | [
"MIT"
] | permissive | rhitvik/Smart_Vending_Machine | 2a0ffc5cbd11731f7ce4673759ae97127b010010 | c2083ffb0be3e22aff474cace7e6d560f70e78ee | refs/heads/master | 2021-01-04T04:57:44.335655 | 2020-03-02T01:27:21 | 2020-03-02T01:27:21 | 240,396,566 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,638 | cpp | 10motors.cpp | /*
* _10motors.cpp
*
* Created: 10-Nov-16 1:44:31 PM
* Author: RHITVIK
*/
/*
* coinAcceptor_innterruptProgram.cpp
*
* Created: 26-Jul-16 7:34:29 PM
* Author: RHITVIK
*/
// #include <avr/io.h>
//
// int main(void)
// {
// GICR |= (1<<INT1);
// MCUCR |= (1<<ISC10) | (1<<ISC11);
//
// while(1)
//... |
f93752cf032762ba4c4f42d3e9af7bf2ea9d3742 | 2703a7d33aa8dca99c446b33f59cc986ba638dff | /chapter_10/10ـx.cpp | fa5d6e18571af635bac59794cb91773c9cd76cdd | [] | no_license | TamijiMehrdad/learning_cpp | 99808fe918c943aba8491a14cd57ab3fb214125a | 3c25add55cf870e83d17b0ede22720807f87dcac | refs/heads/master | 2023-02-19T19:52:25.646079 | 2021-01-20T05:46:13 | 2021-01-20T05:46:13 | 324,397,691 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,028 | cpp | 10ـx.cpp | #include "cpp_tools.h"
#include <iostream>
#include <iterator>
#include <algorithm>
#include <limits>
#include <random>
#include <ctime>
#include <cstdlib>
#include <string>
#include <typeinfo>
#include <array>
#include <vector>
#include <string_view>
#include <numeric>
#include <cassert>
#include <tuple>
#include <chr... |
2e50afd75fc3e69f755734bef22c1fe494ce3851 | f4e5527938a6378e40100d4d7cdb96dd28032a7e | /onda.cpp | 5261f9a0b291719aa04dbae3cba08888ad779e36 | [
"MIT"
] | permissive | LorenaL10/LorenaLarrota_Ejercicio30 | d6028fce90982f1306ee10753ca9c46b626ea399 | aef7a3d052a0ed1083f26a6d2e07d20a7ce5b9ff | refs/heads/master | 2020-05-20T22:43:26.768421 | 2019-05-09T12:54:07 | 2019-05-09T12:54:07 | 185,787,866 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,215 | cpp | onda.cpp | #include <iostream>
#include <fstream>
#include <cmath>
using namespace std;
int main(){
int m=100;
double c=1;
double t_max=2.0;
double t=0.0;
double u[m+1];
double u_final[m+1];
double u_inicial[m-1];
double delta_t=0.01;
double delta_x=0.01;
double beta= c*delta_t/delta_x;
... |
6a31d04cc023179033e1207b9de451c6697ae633 | 2365c324eb4046a2cc1c3cbf9010ee718b6918ab | /Assignment1/check.cpp | c605cb9fcfb5b034ef46eb2c7ad67fdc96e8bfc3 | [] | no_license | parinaya-007/Pattern_Recognition | 7b9ea1e0603043b009105dd8dac53e0aaf3cd3a9 | 2c3073650dc518913959711241cd4895eda3b968 | refs/heads/master | 2021-01-23T11:40:09.010168 | 2017-09-06T17:51:33 | 2017-09-06T17:51:33 | 102,634,049 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 799 | cpp | check.cpp | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int t, n;
cin >> t;
while(t--){
cin >> n;
long a[n];
vector<bool> c(n+1, false);
for(int i=0; i<n; i++){
cin >> a[i];
}
... |
951ec2b8204dcb6a55d76bce615796de83e3c12b | e85f5698d351bacf62a41e6fc1b684b1f1a287eb | /RougeLike/DX9Game/ModelManager.cpp | 7a7424d47255c050ed34c03d083c930cb1ced022 | [] | no_license | Tetetenon/RoguelikeProject | 1117405df2112308b2875d14256aa9a1245dc5d7 | 1b1b73f40017a829f56441c43f8182b37261e369 | refs/heads/master | 2021-01-12T17:25:01.186392 | 2016-10-21T13:16:59 | 2016-10-21T13:16:59 | 71,565,659 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 4,926 | cpp | ModelManager.cpp | #include "ModelManager.h"
CMesh CModelManager::m_MeshData[MODEL_MAX]; //メッシュデータ保存用
bool CModelManager::m_MeshLoadFlg[MODEL_MAX] = {false}; //モデルデータ読み込みフラグ
//-----モデルデータパス-----
#define PATH_MESH_PLAYER _T("../data/model/model/RedHood.x") //プレイヤー(赤ずきん)
#define PATH_MESH_BEE _T("../data/model/model/Bee.x") ... |
8d6593df8c9f663d1e4b527a14767b26dca369b0 | 0a70cf01bf16fc0cd1a696e08f657739eb4fd87c | /hdu/4912.cpp | 232d302883801244e961c4e53eef3a5e7876b824 | [] | no_license | erjiaqing/my_solutions | ca63b664cb6f7ecb7d756a70666fdf3be6dc06b3 | 87bf90af4aca2853f30a7c341fe747d499728ba3 | refs/heads/master | 2022-09-05T17:45:19.902071 | 2022-08-13T02:18:30 | 2022-08-13T02:18:30 | 20,209,446 | 10 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 1,671 | cpp | 4912.cpp | #include <bits/stdc++.h>
using namespace std;
const int maxn = 100000 + 5;
int dep[maxn], fa[22][maxn];
int n, m;
vector<int> e[maxn];
int vis[maxn];
struct que{
int x, y, a, d;
que(){}
que(int _x, int _y, int _a, int _d):
x(_x), y(_y), a(_a), d(_d){}
};
void dfs(int u, int f)
{
fa[0][u] = f;
for (int v : ... |
d3a710736be592d41cb1da2064c228c1df6321ba | 3a933103ae20bef6c1d1b6d0aefa7526bef6b055 | /main.cpp | 32281e73c02d580719e3c9a01080f56630fee214 | [] | no_license | Daniel-TEC-17/Case-2-AA | c6b882755c44df56cb3047aaca5a5f4469393fe5 | b9c52709abde1321fad5179f9f5bb1d9e8db0099 | refs/heads/main | 2023-03-11T11:39:13.051539 | 2021-03-03T01:55:47 | 2021-03-03T01:55:47 | 343,969,151 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,515 | cpp | main.cpp | #include <iostream>
using namespace std;
class Delivery{
public:
double speed; // km/h
double type; // 1=bicycle, 2=moto, 3=car
double getTimeRestaurantHome(double pDistance, double pSpeed){ // Distancia en kilometros
cout<< "Dura "<<(pDistance/pSpeed)*60 << " minutos en... |
699c4862e7e5b1cc56bfe9ce109a96d3404cc4aa | 1c3f4d69e3eb58a3e601f6240e7bd91bdcbe34d7 | /ChapterTime/Chapter.h | 8cb487f3b92f078564935b2d18b9fe3eb3b93557 | [] | no_license | Elegant996/ChapterTime | 10b2e2bed175aa68acfa196402209dce20e7722e | 5544f560ba075a94b2f5de5204fec62761e23c48 | refs/heads/master | 2016-09-15T15:43:24.392730 | 2016-04-22T00:46:18 | 2016-04-22T00:46:18 | 34,589,196 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 637 | h | Chapter.h | #pragma once
#include <string>
#include "Time.h"
using namespace std;
class Chapter
{
public:
Chapter(Time time, int index = 0, string name = "");
Chapter(const Chapter &chapter);
~Chapter();
Chapter& operator-=(const Chapter &right);
Chapter& operator-(const Chapter &right);
Chapter& operator*=(const float ... |
1bd6223a83faf7f5c8287c8f9bb02a04ed31e6ed | 9ee36bd00b676e9b59bdcc1cc9134854ccedb7dd | /matrix.cpp | f0c5b8f23a92dc5aca037907f02a52254682305d | [] | no_license | dragly/vmc | 711508c31354d871330d3903712cd544e0bbdda8 | f523ecf3b212272978a43986027035c713a74b01 | refs/heads/master | 2020-06-04T19:43:56.109510 | 2013-09-13T09:39:17 | 2013-09-13T09:39:17 | 3,335,986 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,623 | cpp | matrix.cpp |
#include <cmath>
#include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip>
using namespace std;
/*
* The function
* void **matrix()
* reserves dynamic memory for a two-dimensional matrix
* using the C++ command new . No initialization of the elements.
* Input data:
* int row - n... |
992305e968542b0c4671d3e7133508b55f37e89b | 9a65215216f6685c405721199d068e6b7f687d4f | /tracer.cpp | c17a77da3c03eda8b53ce00b848caba21167f302 | [] | no_license | ylshan/CAD_TRACKER | 9e5a97692e04a19eebd372d5545810f8bcc8faf5 | 63eb8bbc66c5d920011e31ccfb333a6723fa7b8a | refs/heads/master | 2021-08-29T01:54:34.155610 | 2017-12-13T10:40:12 | 2017-12-13T10:40:12 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 14,358 | cpp | tracer.cpp | #include"tracer.h"
/*
矩阵相乘
pragma one:内参矩阵
pragma two:相机坐标系采样点集
pragma three:前一帧姿态矩阵
pragma four: CAD模型可见采样点
pragma five: 采样点和搜索点相对位置误差
pragma six:采样的个数
pragma seven:法向量
*/
//求加权矩阵W,W对应的是一个对角矩阵
static int weight_error(int gesture_nnum,MARTIX randomError, MARTIX* weight_martix)
{
int ret = 0;
if (!weight_marti... |
a4cd2f27867f225b2c1e00816b0b04a3ec606128 | 023763d9f86116381f5765c51fb8b403e8eef527 | /ABC/117/a.cpp | df2a9b961afdf6eda1025429de916e41a241bff4 | [] | no_license | Hilary02/atcoder | d45589682159c0f838561fc7d0bd25f0828e578b | 879c74f3acc7befce75abd10abf1ab43967fc3c7 | refs/heads/master | 2021-07-18T11:34:22.702502 | 2021-07-11T09:04:12 | 2021-07-11T09:04:12 | 144,648,001 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 223 | cpp | a.cpp | #include <iostream>
using namespace std;
int main(int argc, char const *argv[]) {
cin.tie(0);
ios::sync_with_stdio(false);
int t, x;
cin >> t >> x;
double ans = (double)t / x;
cout << ans << "\n";
return 0;
} |
f634767f9fa3cde7740c5c8a232910c19ec491ae | b181ef00bfaaeac1908533df12ec5ddde801003c | /示例代码/CH09_C2.cpp | 90a8c4383c08f943bacd7ea10bc8559f10e03d8b | [] | no_license | clarencehua/candcpp | b5c3ab9ea86efc12537df29cee3634f335b7f358 | 77022a497cc5ec443c1de437983986d811e58090 | refs/heads/master | 2020-07-26T16:26:46.058862 | 2019-10-06T08:47:44 | 2019-10-06T08:47:44 | 208,703,235 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 172 | cpp | CH09_C2.cpp | #include <stdio.h>
int main()
{
int arr[4] = {1,2,3,4};
int* p = arr; // arr本身的类型就是int*
int* p2 = &arr[0]; // 第一个元素的地址
return 0;
}
|
1d790fb5e1d9c637ba1a65df63beeaae8462ec8c | ca170d96a960e95a7822eb69c65179898a601329 | /plugins/crg_spherical_view/main.cxx | 45a59ba68d9a85cf9df58a29e63cb2ebbe093a6a | [] | permissive | sgumhold/cgv | fbd67e9612d4380714467d161ce264cf8c544b96 | cd1eb14564280f12bac35d6603ec2bfe6016faed | refs/heads/master | 2023-08-17T02:30:27.528703 | 2023-01-04T12:50:38 | 2023-01-04T12:50:38 | 95,436,980 | 17 | 29 | BSD-3-Clause | 2023-04-20T20:54:52 | 2017-06-26T10:49:07 | C++ | UTF-8 | C++ | false | false | 323 | cxx | main.cxx | #include <cgv/base/register.h>
#include "spherical_view_interactor.h"
#ifdef _USRDLL
# define CGV_EXPORTS
#else
# define CGV_FORCE_STATIC_LIB
#endif
#include <cgv/config/lib_begin.h>
extern CGV_API cgv::base::object_registration_1<spherical_view_interactor,const char*> spherical_view_interactor_instance("trackball")... |
65c1e01edfb2dbd3caa8ed94d6c8c8b33b26d98a | cbd0a3af7c57e901896a5132928287ed78527c5b | /modules/kernel/src/process/ProcessUnlockAndSchedule.cc | f72757f853d7026b8bac82e0ea5f6fb8d0514805 | [
"LicenseRef-scancode-unknown-license-reference",
"Beerware",
"BSD-2-Clause"
] | permissive | eryjus/century-os | ad81a8a29e8b6c8cf0d65242dcb030a5346b5dc9 | 6e6bef8cbc0f9c5ff6a943b44aa87a7e89fdfbd7 | refs/heads/master | 2021-06-03T11:45:02.476664 | 2020-04-17T22:50:05 | 2020-04-17T22:50:05 | 134,635,625 | 13 | 2 | NOASSERTION | 2020-06-06T16:15:41 | 2018-05-23T23:21:18 | C++ | UTF-8 | C++ | false | false | 1,594 | cc | ProcessUnlockAndSchedule.cc | //===================================================================================================================
//
// ProcessUnlockAndSchedule.cc -- Exit a postponed schedule block and take care of any pending schedule changes
//
// Copyright (c) 2017-2020 -- Adam Clark
// Licensed under "THE BEER-... |
45ef40754e584984b7a5d671f3b80f5ed2e0839e | 5d62ab24849dcac18290641c8dcd137bba105843 | /util.cpp | d23c999a2c0fdb1a1c550f3afd138952b2e96cc6 | [] | no_license | desonses/Juego-de-naves-en-C | 4f9b69c56a44cc66a36ad3ecfa443692be8c2d38 | 76d2294286425ede087b135dc4ee7cb7a8fefaf8 | refs/heads/master | 2020-12-21T11:00:24.699765 | 2020-02-17T21:31:53 | 2020-02-17T21:31:53 | 236,411,279 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,303 | cpp | util.cpp |
#include"util.h"
#include<time.h>
#include<stdio.h>
#include<stdlib.h>
#include<string>
#include <SDL/SDL_ttf.h>
SDL_Surface *texto;
TTF_Font *fuente;
SDL_Color bgcolor,fgcolor;
SDL_Rect rectangulo;
/* ******************************************************************************* */
/*se realiza el... |
92a131bb1a4c2f4ec878cb53bf2c926029d06b84 | a2622fadea7ae1580a64a65022f3d127b444b4b0 | /CS495/MazeRunner/MazeRunner/MazeRunner/Rect.cpp | 48784f3c5a22a12ef6037fa529384bbc9cee3925 | [] | no_license | zahnur/assignments | 489e2a07508836bb836dd54d1712202a183ab9c3 | afb08feb61b3125a412ffde829c1b4f12f9c7c72 | refs/heads/master | 2023-03-30T19:23:49.629551 | 2016-08-25T23:22:49 | 2016-08-25T23:22:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,236 | cpp | Rect.cpp | //
// Rect.cpp
// RubixCube
//
// Created by Cohen Adair on 2015-10-04.
// Copyright © 2015 Cohen Adair. All rights reserved.
//
#include "Rect.h"
// constructors
Rect::Rect() {
this->topRight = new Point(0, 0, 0);
this->topLeft = new Point(0, 0, 0);
this->bottomRight = new Point(0, 0, 0);
this->... |
37c3da4f590a55ca30757f704838e1390965d732 | 46ab07f4f6d54acf310eff79f6669c206408caf8 | /code/include/algorithm/Algorithm.hpp | e2c38083571120bf48cb7eb71413987d4dfab7c1 | [] | no_license | wojciech161/master-thesis | cba03114dcc914eeeccb500b0901da3c260710d2 | dec3cc93dc5369c2ff3b61641e1c53f70b9d726f | refs/heads/master | 2021-01-20T08:44:21.426623 | 2014-07-06T14:47:25 | 2014-07-06T14:47:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 645 | hpp | Algorithm.hpp | #ifndef ALGORITHM_ALGORITHM_HPP_
#define ALGORITHM_ALGORITHM_HPP_
#include "IAlgorithm.hpp"
#include "core/ParametersGetter.hpp"
namespace algorithm
{
class Algorithm : public IAlgorithm
{
public:
Algorithm( const cv::Mat&, core::ParametersGetter& );
~Algorithm();
boost::shared_ptr<cv::Mat> run();
priv... |
c5196fd3f50addbfeb4f12cb0012a28df6c34f25 | 10a0a67eb510cf2a421a45e55b60ea15376532ac | /Controller/Controller/Soft_REV3/TouchGFX/generated/gui_generated/include/gui_generated/containers/NumberEditorBase.hpp | f1bd41a6fc2b65897319492cd814d77adf05d3dd | [] | no_license | arneman44/Modular-Lab-PowerSupply | d63bf60a5a983d1d11a08e106d19799875eed9f4 | 7e806c540778e56692f621f55c7e4cc4db033afe | refs/heads/master | 2023-04-25T00:46:29.130486 | 2021-05-24T02:30:41 | 2021-05-24T02:30:41 | 345,243,783 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,423 | hpp | NumberEditorBase.hpp | /*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#ifndef NUMBEREDITORBASE_HPP
#define NUMBEREDITORBASE_HPP
#include ... |
9f7d0d3bb436d729263408d69d7caacabaa7d841 | cb142e98b043e7088f0fe009f5159928877acf1b | /LCD_All/OLEDx/example3/example3.ino | 1884930cb21f8981149522161b72d72d447b50ea | [] | no_license | wetnt/Arduino_public | ef30502b4a30e099a09e2617fd58fd3a9801cf13 | 4cc331e2f43dda0df8f78d9cfe924da130ca5df3 | refs/heads/master | 2021-01-23T09:38:43.302783 | 2019-09-12T00:29:43 | 2019-09-12T00:29:43 | 33,909,041 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 971 | ino | example3.ino | #include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);
void setup() {
Serial.begin(115200); delay(500);
display.begin(SSD1306_SWITCHCAPVCC, 0x3C); //I2C addr 0x3D (for the 128x64)
display.display(); delay(1000);
display.clearDis... |
95992ffefbb63f0d9bc796b9cfb2fa2ad9af5271 | b613a0065bc552577908326d7acf1ee4927c31b4 | /SCRABBLE[CODE]/Pool.h | 36cdbc48619d888d96869045fd9a70b72d938a88 | [
"MIT"
] | permissive | RuiMoreira1/Prog-Project-2019-2020 | acca2433afe8adb65ecc09db222e2f0846783a93 | ed181e40fa639d91d5f4a8ddd7d199e9775bbed5 | refs/heads/master | 2022-07-26T02:26:37.285139 | 2020-05-20T20:42:21 | 2020-05-20T20:42:21 | 257,694,716 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,976 | h | Pool.h | #pragma once
#include <iostream>
#include <iostream>
#include <vector>
#include <string>
#include <time.h>
#include <stdlib.h>
#include "BOARD.h"
using namespace std;
class Pool {
public:
Pool() = default;
void FormPool(); //Formar as peças necessárias para completar o jogo
void Form_init_coor(); //Obter ... |
4095c489cec3b512ca3812ba106349f7e24699bb | e3e4d41d5bc6663189334ec6550c6a4842ef2491 | /contest_test/D-jumping-mario.cpp | 00526461f70c037b6085c1e20b9d6b4d16f2b833 | [] | no_license | morshedmasud/programming_contest | 7533ddc7ad55eff0816e575152abb36bff084d2d | ee8a84abb50ef734f6607ddf77f3b7c52bfc6349 | refs/heads/master | 2020-06-18T20:52:56.921855 | 2019-09-28T04:18:58 | 2019-09-28T04:18:58 | 196,444,170 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 488 | cpp | D-jumping-mario.cpp | #include <iostream>
using namespace std;
#include <stdio.h>
#include <vector>
int main() {
int k;
cin>>k;
for(int j = 1; j <= k; j++){
int heigh=0, low=0, temp=0, n, t;
cin>>t;
for(int i=0; i<t; i++){
cin>>n;
if (i == 0){
temp = n;
}
else if(n > temp){
heigh++... |
7b7ef0a85f8b9ac3720919f8c6b88b6bab0c1328 | 86d1379ba12df590132073833a7ac9a6d68c32e5 | /UnitTest1.cpp | 4eb4336b5d2d3c1caf988526725b0a50e32c6409 | [] | no_license | Maria16339/5.1E | 127d3aa7fbf3b26a0197c1ddc898e13a4115d815 | 83e69f5f0887faeca9c51205350d80270399edb4 | refs/heads/main | 2023-04-16T14:31:47.908660 | 2021-04-26T18:04:10 | 2021-04-26T18:04:10 | 361,846,264 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 441 | cpp | UnitTest1.cpp | #include "pch.h"
#include "CppUnitTest.h"
#include "C://Users/User/source/repos/5.1E/5.1E/myerror.h"
#include "C://Users/User/source/repos/5.1E/5.1E/myerror.cpp"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace UnitTest1
{
TEST_CLASS(UnitTest1)
{
public:
TEST_METHOD(TestMe... |
63465529de3c82010cf774fa943efd4d67601ef4 | 5014f8e91975e14647b17283de4ce0e1dcad4347 | /projects/static_library/source/greeting.cpp | efa3650c7b68c92ec419ae0e1f51360c09e1a4d3 | [] | no_license | MarleneSimtec/vs2019-cmake-template | 0a8b0762cde700a9f8ec981d79eb024cb6d6bbb0 | f1c870c4234ebdc018e6e8934090835903d0311e | refs/heads/master | 2023-03-24T14:57:18.410984 | 2021-03-15T19:36:26 | 2021-03-15T19:36:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 198 | cpp | greeting.cpp | #include "static_library/greeting.hpp"
#include <iostream>
int Foo::answerToUltimateQuestion() const {
return 42;
}
void library_func()
{
std::cout << "Hello from static library!\n";
}
|
0e5e4a2c14ce634bd01891384aa8505c2d842661 | 4ff2f0281e7ac90314935a564223f8f810a906ef | /Source/AnalyserComponent.h | 9c6e4a5f4b54f05fedec4866555ba73604ea2d3d | [] | no_license | drinkWater22/ClarityBeta | 3791aab3b2cdd5c9a5c5247374319fab04f808d0 | 14e065f63d23c35acb779df65c0d911d84d239fa | refs/heads/main | 2023-04-03T03:53:48.068235 | 2021-03-29T14:16:11 | 2021-03-29T14:16:11 | 352,440,616 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,405 | h | AnalyserComponent.h |
#pragma once
class AnalyserComponent : public juce::AudioAppComponent,
private juce::Timer
{
public:
AnalyserComponent()
: forwardFFT(fftOrder),
window(fftSize, juce::dsp::WindowingFunction<float>::hann)
{
setOpaque(true);
setAudioChannels(2, 0); // we want a... |
c173bcc62fb127c15f972c891eb06545f602cb04 | 45316e2ae6d0fa3ee7f25187fab1122c51253b83 | /RepeatingElements/RepeatingElements.cpp | 7ba3c9ec669d43777591c3f007310b6c223afd0a | [] | no_license | KajalGada/coding-practice-cplusplus | edddc0c77d7bf6e0be17474d27a6334a18c04ece | 8bad940ee44d3c7a988cb45c996e2dfb451cd9ab | refs/heads/master | 2021-09-11T13:31:43.682865 | 2018-04-08T00:37:14 | 2018-04-08T00:37:14 | 109,053,232 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,573 | cpp | RepeatingElements.cpp | /* Problem Statement: Given an array of n+2 elements, all elements from 1 to n occur
* once except 2. Find the 2 repeating elements.
* Author: Kajal Damji Gada
* Date Created: 7th April, 2018
*/
#include <iostream>
#include <vector>
#include <math.h>
int func_fact(int n)
{
if (n == 1)
{
return 1;
}
else
{
... |
edf117b328354cafe3d649db1b6c72093632df70 | b886b5e17872191a996559c87f717f91e370ea09 | /ProgramEntrance.h | 5bc886e9dc86d05e64f0c1de05775d58a326c5aa | [] | no_license | upupupY/Sheller | a2afcaa5c7f25fd72e749d9fc510637d3e6a9a69 | 917405fc6e9293cfc4738783fc8e6b34e31e1f17 | refs/heads/master | 2022-01-08T08:55:33.788156 | 2019-04-28T13:57:12 | 2019-04-28T13:57:12 | 198,168,089 | 5 | 2 | null | 2019-07-22T07:13:22 | 2019-07-22T07:13:22 | null | UTF-8 | C++ | false | false | 265 | h | ProgramEntrance.h | #pragma once
#ifndef PROGRAMENTRANCE_H_
#define PROGRAMENTRANCE_H_
#include "stdafx.h"
class ProgramEntPoint : public CWinApp
{
public:
ProgramEntPoint();
~ProgramEntPoint();
private:
virtual BOOL InitInstance() override;
};
ProgramEntPoint g_WinApp;
#endif |
e7a536d7f649742e0ca11988970aa9b10c4d6552 | 655825d8684a8d43028bc945e3179ab1048c0914 | /Editor/SceneTab.h | 121c3d2b5c6c692a12591109c71236efc027630e | [
"MIT"
] | permissive | haohuixin/Urho3D-Toolbox | 0fd32712001932fdb67e3b7c580a3ac5a8988aa6 | 6a069d8522ff811e8a886a32992ad10d4a65d802 | refs/heads/master | 2020-04-17T11:42:00.760953 | 2017-11-11T16:39:34 | 2017-11-11T16:40:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,083 | h | SceneTab.h | //
// Copyright (c) 2008-2017 the Urho3D project.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, m... |
20dc2f6c1cffd6bba9178c504bb7c567630ed3b3 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /Fluid_Engine_Development_Doyub_Kim/src/jet/grid_emitter_set2.cpp | 8cef91149de9e212c3a46c46e1fb7465a74e36e6 | [
"MIT"
] | permissive | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | C++ | false | false | 1,254 | cpp | grid_emitter_set2.cpp | // Copyright (c) 2016 Doyub Kim
#include <pch.h>
#include <jet/grid_emitter_set2.h>
#include <vector>
using namespace jet;
GridEmitterSet2::GridEmitterSet2() {
}
GridEmitterSet2::GridEmitterSet2(
const std::vector<GridEmitter2Ptr>& emitters) {
for (const auto& e : emitters) {
addEmitter(e);
}
}
... |
021bf08005224dd751b8a03d7eee6dd144304bca | 84a14018b6b9ae6abc621da56cd13755454e13a8 | /LetCode5.cpp | df98004f894fd1d817e1ec44812c1bb7df7c5535 | [] | no_license | whhpc19891120/algorithm | 27c9ea9e9cbe41f7f66910dbc240366a4738331e | 1ebe886562383d18930199fa9e7b46b5bfb05bc9 | refs/heads/master | 2022-11-28T15:30:49.969399 | 2020-08-15T06:31:54 | 2020-08-15T06:31:54 | 287,591,567 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,497 | cpp | LetCode5.cpp | /*
给定一个字符串 s,找到 s 中最长的回文子串。你可以假设 ? s 的最大长度为 1000。
示例 1:
输入 : "babad"
输出 : "bab"
注意 : "aba" 也是一个有效答案。
示例 2:
输入 : "cbbd"
输出 : "bb"
来源:力扣(LeetCode)
链接:https ://leetcode-cn.com/problems/longest-palindromic-substring
著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
*/
#include <string>
#include <vector>
#include <algorithm>
... |
2a24948e52249276eeff884f418c5845a788eb7a | 111c3ebecfa9eac954bde34b38450b0519c45b86 | /SDK_Perso/include/Cockpit/Base/Header/AI/States/AI_AnimateModel.h | 9269ffb21fa5d775bffda7cbc396c06c982ac142 | [] | no_license | 1059444127/NH90 | 25db189bb4f3b7129a3c6d97acb415265339dab7 | a97da9d49b4d520ad169845603fd47c5ed870797 | refs/heads/master | 2021-05-29T14:14:33.309737 | 2015-10-05T17:06:10 | 2015-10-05T17:06:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,224 | h | AI_AnimateModel.h | #pragma once
#include "AI/States/AI_IState.h"
namespace gunner_AI
{
struct ArgumentState
{
ArgumentState() : arg_(-1), pylon_(-1), speed_(0.0f), target_(0.0f), init_(UNDEF_VALUE), finished_(false) {}
virtual ~ArgumentState(){}
virtual bool l_read(Lua::Config& config);
int arg_;
char pylon_; /*arg locat... |
40f271f41523158c8ac980ef6d7f3b7a5fe5c416 | 78e6f8b29560c70ca9e1eedcfff6f1111f7370c8 | /OpenGL 3D Game/src/engine/platform/vulkan/rendering/shaders/pbr/VKPBRShader.cpp | 410e20cb2e5db2deb9bf4c63fee52c3f16f8ecbc | [] | no_license | Andrispowq/OpenGL-3D-Game | 511104617e403a5f8c448390e5ee411a47697e8e | 8f0fcf1edcea7673b36e09f177aa75c4416a2d05 | refs/heads/master | 2023-01-29T04:34:12.471328 | 2020-12-01T13:42:51 | 2020-12-01T13:42:51 | 242,340,559 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,810 | cpp | VKPBRShader.cpp | #include "engine/prehistoric/core/util/Includes.hpp"
#include <glew.h>
#include "VKPBRShader.h"
VKPBRShader::VKPBRShader(Window* window) : VKShader(window->getContext(), window->getSwapchain())
{
AddShader(ResourceLoader::LoadShaderVK("vulkan/pbr/pbr_VS.spv"), VERTEX_SHADER);
AddShader(ResourceLoader::LoadShaderVK(... |
8720afc03d85936e6e67223b5f7e605f5e63ba07 | 2b79678e272b77210e3ceabd671e5e8914d8b2c7 | /point-sum.cpp | 0205dff26660942ef7042cb2e376cd72bf88107c | [
"LicenseRef-scancode-bsd-3-clause-jtag"
] | permissive | jackbackrack/stanza-benchmarks | 25e0032c0d463b8a3ba86cfc054f940e9599e4e1 | 109377abb4003ece25c2c21ba47f7cd218dc9969 | refs/heads/master | 2016-09-12T13:09:20.380957 | 2016-04-19T01:45:16 | 2016-04-19T01:45:16 | 56,455,369 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 789 | cpp | point-sum.cpp | // See license.txt for details about licensing.
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <time.h>
class vec_t {
public:
float x, y, z;
vec_t (const float x, const float y, const float z) : x(x), y(y), z(z) {}
vec_t operator+(const vec_t& b) const {
return vec_t(x + b.x, y + b.y,... |
290eeae013dc23c6f220a85683d6da8bc6663823 | 620596a6f32271c165a9797e3dc7045115c3cb9d | /UBC_Sailbot_Unit_Tests/SailbotUnitTest.cpp | 3f68eedc9febf1d9306858b2933b226babb7a1a0 | [] | no_license | stanleyye/UBC-Sailbot | 885ff7f79d8fb2b11dac6bc28be17392c60d2b75 | a7c556e0d33c67b4d7ab5628d39587300d3449b2 | refs/heads/master | 2021-05-16T07:29:32.652329 | 2017-09-17T02:01:37 | 2017-09-17T02:01:46 | 103,796,026 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,321 | cpp | SailbotUnitTest.cpp | #include "stdafx.h"
#include "CppUnitTest.h"
#include "../UBC_Sailbot/StandardCalc.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace UBC_Sailbot_Unit_Tests
{
TEST_CLASS(UnitTest1)
{
public:
TEST_METHOD(TestMethod1)
{
StandardCalc standard_calc;
// already bound within the ... |
6cbe63afc94f9cb67e165ef6f351c21e3e2d13d8 | 6f62ebea07a193c19ba54425b20f88397b6506bf | /Algorithm/Sort/QuickSort.h | 4200715a3a3b7cb5c22269abc93baa182315a5f8 | [] | no_license | wuzeyu2015/Algorithm-4th-edition-C | 390e56170cb623b9075cbb180b31519a37608116 | 20f0abc0343e4f45325847394b7b5550d7956593 | refs/heads/master | 2022-07-24T11:23:19.097198 | 2022-07-18T15:21:31 | 2022-07-18T15:21:31 | 96,655,795 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 21,251 | h | QuickSort.h | #ifndef QUICKSORT_H
#define QUICKSORT_H
#include "InsetionSort.h"
#include "SortTestHelper.h"
#include <time.h>
#include <vector>
/*打算重新学习下算法,顺便把相关的东西整理到自己博客上,博客一搜重复的内容一大片,不论是正确还是错误的都带着很多主观看法,所以写这个不是为了成为参考资料,只为整理下自己的思路、备忘,如果被网路上的同学们检索到,希望大家能够自己甄别其中好坏,有问题的地方,也希望能够提出来大家共同学习。
这里从快速排序和归并排序开始,因为对于新入行的同学来讲,这两个排序是理解递归的一个很好的... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.