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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15b80d7963d37f7434b2bf5b146cd9c697351767 | e7af25e1e1f1bc5e222ac3487869023cc06f2986 | /src/libraries/feature/Windowing.h | e3b5b6336c666d6d6f21bb7719056446e7f44369 | [
"BSD-3-Clause"
] | permissive | samin9796/wav2letter | 688d92297eccb6b1cd37b0a950018c73bc62c3bf | 6fdb54bbc37938c1663d9d263a3d33a5cc3168d9 | refs/heads/master | 2022-09-12T00:13:20.135436 | 2020-06-03T02:20:51 | 2020-06-03T02:22:20 | 269,457,835 | 1 | 0 | NOASSERTION | 2020-06-04T20:23:26 | 2020-06-04T20:23:26 | null | UTF-8 | C++ | false | false | 717 | h | Windowing.h | /**
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <stdint.h>
#include <vector>
#include "FeatureParams.h"
namespace w2l {
//... |
1af4d4985dc38a8e65cf114ff176d2f80666eb09 | 639b4e6f1361a34e0b3bc2b8bc26ebc11232cc9b | /src/appwindow.cpp | 50a8ef4e86efd072cc117f7d03ca8a4221de61fd | [] | no_license | RoseySoft/Arcadia | c2249c651cea5dca8cfd94ba1ceb10fd20c092e1 | 7b2b38291d90cc1f53d786a29a24929c3ee84d78 | refs/heads/master | 2018-03-22T15:57:27.269217 | 2015-05-02T05:49:21 | 2015-05-02T05:49:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,569 | cpp | appwindow.cpp | #include "appwindow.h"
#include "urlbar.h"
#include <QGridLayout>
AppWindow::AppWindow(QWidget *parent)
: QMainWindow(parent)
{
setWindowTitle("Arcardia");
setWindowState(Qt::WindowMaximized);
m_actionCollection = new ActionCollection(this);
m_standardActions = new StandardActions(this);
m_s... |
872e91ae8293f61573e4b9d6ee64bcfd50305708 | 3b1cfc21ef161459878445f729baa91845e6118f | /CPPrimer4/Person.h | f645bffe7dd6092610c23bde6a4de52cf579613c | [] | no_license | LennonT/CPPrimer | b1f896d2a4c7e7d8cdc103b291bc3b03e11e7894 | eb5c16dd716e2b9462214361ec9b3d0bb4ed4925 | refs/heads/master | 2020-05-20T13:47:53.311723 | 2015-01-27T13:02:29 | 2015-01-27T13:02:29 | 29,841,784 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 245 | h | Person.h | #include <string>
class Person {
private:
std::string name;
std::string address;
public:
Person(const std::string &name, const std::string &address) :name("Tom"), address("Nothing.") {}
std::string getName();
std::string getAddress();
}; |
73e88673a352b0f49b1de79813ca17d7fc665a7e | 71c1c86b30c1518e21728f7d5e0f09b5e602baac | /Algo_Engine/ROM_Handler/AceRom/typedef.h | e4247ea0035c9d024e2269a789796f237a5da931 | [] | no_license | ssh352/ronin | 3ddf360fec5f106015c6902b5107aedefe934836 | 33301b6c5e68fa9d02c7d54bc86f6b7732985fc2 | refs/heads/master | 2023-05-03T11:00:39.368460 | 2021-05-17T18:41:08 | 2021-05-17T18:41:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 454 | h | typedef.h | #ifndef _TYPEDEF_H__
#define _TYPEDEF_H__
#include "ace/Message_Block.h"
#include "ROMMessage.h"
#include <string>
#include <list>
typedef std::list<ACE_Message_Block*> tMsgBlkList;
typedef tMsgBlkList::iterator tMsgBlkListIt;
typedef std::list<ACE_Message_Block*> tMsgBlkList;
typedef tMsgBlkList::iterator... |
bbc9e53ee7430bf0f8a6c1c131e6a69aa1d39cae | a56e70a2f4af9a4bded99e3489de3262c0c31c64 | /main.cpp | bca4d820b2b918cb67ea5aa62bacd1d5d515fbb2 | [] | no_license | Sanchikuuus/SFML_Checkers | c12f4418078692b869621102c78a5c98d7e3727a | 441eb43946ceb6023d4a777e3cd33751219d8a2e | refs/heads/master | 2023-03-02T06:50:35.353397 | 2021-02-07T20:55:51 | 2021-02-07T20:55:51 | 331,062,401 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,191 | cpp | main.cpp | #include "iostream"
#include <SFML/Graphics.hpp>
#include "PlayField.h"
using namespace std;
int main()
{
const float windowSize = 800.0;
sf::RenderWindow window(sf::VideoMode(windowSize, windowSize), "Checkers");
window.setFramerateLimit(60);
PlayField board;
sf::Vector2<float> scale(windowSize... |
003bc8e18f9927dbfdf5b2d656069d76f257fd6f | d87252c15bc71ccd2dd4c7afaadcb6425e826924 | /Geometry/cpp/XCircle.cpp | 07e9da210356b633bf1f1f62094faf1add82dd05 | [] | no_license | eglrp/ETE | d55d940efca2d6b4831742d100f73019109c14ce | af969b02b14f63c7eb994e147d95b74c27433a81 | refs/heads/master | 2020-05-15T17:36:56.336473 | 2015-06-08T10:22:10 | 2015-06-08T10:22:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,651 | cpp | XCircle.cpp | #include "StdAfx.h"
#include "xcircle.h"
XCircle::XCircle(void)
{
m_ObjectType = OBJECT_CIRCLE;
m_Name = "Circle";// check if it's correct
m_Color = 7;
m_bShow = true;
m_BndBox.Reset();
m_DispType = 1;
m_bObjChanged = true;
m_Norm_plane = PNT(0,0,1);
m_LineStyle = 1;
m_LineWidth = 1.0;
m_Radius = 0.0;
... |
cb8ad2ae83d520566f872ae5c0c93a354d70fb3d | 6a998fa919492daef1b82b9f769974ff48444060 | /Lab6/array.cpp | ffa41e3e510c432aff025b2a1bad25882a27bf2a | [] | no_license | platinumyute/cs203Code | f3dc012bc5f1767712a0cda0c089ee5a2ac3a9bb | 5749986897f1138e8956a1d15a5a46e3e9116e52 | refs/heads/master | 2021-01-19T11:26:20.136523 | 2017-05-13T15:33:59 | 2017-05-13T15:33:59 | 82,243,043 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,221 | cpp | array.cpp | #ifndef array_h
#define array_h
#include <iostream>
#include <cmath>
#include <iomanip>
//width for iomanip setw
const int w = 7;
using namespace std;
//***********************************
//start of prime class prototype
//***********************************
class prime
{
private:
int userInput;
int numOfPr... |
da5ae11259d96387e17724ca9d7adcb46f6f7a7e | e0161e43be72e386e192ca799d552fe23bcd328a | /src/IImageListEventHandler.h | 4e93442273965ca1302ed4d305f68df6e207ef66 | [] | no_license | bikemike/quiver | 1851919ec8d545801e2b89e8c063f87652d3729f | 382bb39ca6b8566bb8040d4b0cb4242f7f1f5e0e | refs/heads/master | 2022-01-09T02:51:19.648194 | 2011-09-15T16:55:12 | 2011-09-15T16:55:12 | 113,552,736 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 690 | h | IImageListEventHandler.h | #ifndef FILE_IIMAGE_LIST_EVENT_HANDLER_H
#define FILE_IIMAGE_LIST_EVENT_HANDLER_H
#include "IEventHandler.h"
#include "ImageListEvent.h"
class IImageListEventHandler : public IEventHandler
{
public:
virtual void HandleContentsChanged(ImageListEventPtr event) = 0;
virtual void HandleCurrentIndexChanged(ImageListE... |
62735f3a4ef8ae8d6887b97e0d3322dfde3ed8ed | 9fa3799d9f7db33c11a810ac32e9c14a745731a4 | /pca9685.h | 0e6d9e5bcbcc45f4c67150c8ef6342391ab69522 | [
"MIT"
] | permissive | 980f/arduino | ba20462be7485727e62822cca9569443a4aec25d | 3e11a7f7be50d14b6b82c8edd490e62e8ea07d31 | refs/heads/master | 2023-03-06T14:45:12.456391 | 2023-03-04T05:43:12 | 2023-03-04T05:43:12 | 157,929,086 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,982 | h | pca9685.h | #pragma once ////(C) 2019 Andy Heilveil, github/980F
#include "wirewrapper.h" //wrap usage of TwoWire class
/** PCA9685 interface, using Arduino Wire library for i2c access.
The Strangest thing is the 'shadow' feature, where one is slaved to another. This can be used for a hot spare, split load without redoing s... |
597c611a00cf63e108e089d585b8a49b7e961731 | 801c5aa9832aae5d45ebca04f39410bbec8866c0 | /src/utils.h | 80b5a4fc94b4907781255fe1440ffcf97cfa72bd | [] | no_license | varunhisaria/P2P-LAN-FS | c363fd5cc98da7752d27b8e62d33daec424835ef | 385dcff0cfdb5cc520a9e64c248227147f35dd88 | refs/heads/master | 2020-12-24T12:13:11.119996 | 2016-02-21T15:02:57 | 2016-02-21T15:02:57 | 50,501,775 | 0 | 0 | null | 2016-01-27T11:07:31 | 2016-01-27T11:07:31 | null | UTF-8 | C++ | false | false | 493 | h | utils.h | #ifndef __UTILS_H_INCLUDED__
#define __UTILS_H_INCLUDED__
#include <vector>
#include "metadata.h"
using namespace std;
class Utils
{
public:
vector<string> getFilesInDirectory();
pair<long long int,long long int> getSizeAndNoOfBlocks(string fileName);
string getMD5(string text);
vector<string> getMD5OfAllBlocks... |
91bb0ee5f24212b1374bb7aabbe8c54a90738847 | 15b84964763f0e88f114812aa3ee654263a59025 | /HeadFirstDesignPatterns/Proxy/GumballMonitor/SoldState.cpp | 2512db4344ce289633264389d1e107f6d1c3bb1b | [] | no_license | RussDHill/hfdp-cpp | a0524248fcf90dba06ff4e106ac315f9080b5826 | 2459c3e4564531184123256049d9b5515ce451a9 | refs/heads/master | 2021-01-10T15:29:07.353612 | 2020-08-29T13:02:43 | 2020-08-29T13:02:43 | 46,441,962 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 921 | cpp | SoldState.cpp | #include "stdafx.h"
#include "SoldState.h"
#include "GumballMachine.h"
SoldState::SoldState(shared_ptr<GumballMachine> machine)
:gumballMachine(machine)
{
}
SoldState::~SoldState()
{
}
void SoldState::insertQuarter()
{
cout << "Please wait, we're already giving you a gumball" << endl;
}
void SoldState::ejectQua... |
b0d9542eea31eb39f5c943b82b979cb806dccf40 | cd790fb7e8ef78b1989531f5864f67649dcb1557 | /uva11743(Credit Check).cpp | 80264d9d04210f00663c16bd3a0db4f850e793f6 | [] | no_license | FatimaTasnim/uva-solution | 59387c26816c271b17e9604255934b7c8c7faf11 | c7d75f0a5384229b243504dfbef4686052b9dea8 | refs/heads/master | 2020-03-27T22:23:18.611201 | 2018-10-23T05:53:46 | 2018-10-23T05:53:46 | 147,226,519 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 823 | cpp | uva11743(Credit Check).cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n1,n2,n3,n4,r,sum,i,n;
scanf("%d",&n);
while(n--)
{
scanf("%d%d%d%d",&n1,&n2,&n3,&n4);
sum=0;
for(i=1;i<=4;i++)
{
if(i%2==0)
{
r=(n1%10)*2;
while(r!=0)
... |
949e11f60280ad3e55ba6f72a08bd3f96ba497ef | 65742821a3b2ead5bcbf92a5e47c4ffc61d19b21 | /Algorithms/Search/missing_number.cpp | e4781cc8c83bbb7c8c6492340684d9eca832b049 | [] | no_license | sarveshgpt1991/hackerRank | 87a15a9a25bdd1a8908eb59df11e0f362f9b77d9 | e89cc5856ebd71858797c06a719ede14378eca92 | refs/heads/master | 2021-01-20T17:23:39.610643 | 2015-08-16T19:01:32 | 2015-08-16T19:01:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 687 | cpp | missing_number.cpp | #include <iostream>
#include <climits>
#include <cstdio>
//#include <cmath>
//#include <vector>
//#include <string>
using namespace std;
void func(int A[], int B[], int n, int m){
int helper[100] = {0};
int min = INT_MAX;
for (int i = 0; i < m; ++i){
if(min > B[i])
min = B[i];
}
for (int i = 0; i < m; ++i)
... |
fe2966d8e99f7ac92f3c0dcc2c9f099483867dd6 | 64b5c5e0e86733601c268c173c6c89a8dbe9b093 | /BainBoin/cpp&h/3Deffect.cpp | e463b557b4cbde1e692b047068c4d96cbf2bd3da | [] | no_license | Nishin3614/KOKI_NISHIYAMA | ab2ef12de5072b73fe49318a4742fedc5fc23f14 | 64bc2144f3c7655ab501606fe41bba68ea46f2e0 | refs/heads/master | 2020-09-30T13:45:25.199250 | 2020-01-31T07:26:06 | 2020-01-31T07:26:06 | 227,298,698 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 26,856 | cpp | 3Deffect.cpp | //*************************************************************************************************************
//
// パーティクルの処理[particle.h]
// Author : Sekine Ikuto
//
//*************************************************************************************************************
//--------------------------------------... |
4677ed534d2154ff8d8bf132778923be6da81500 | b4c3f544af59acc32288e8a4b8ea5098b7a19457 | /pathtracer/dof.h | 446fb2279949d15033551c696e762e767bfdbb81 | [] | no_license | oherik/TDA361 | 095ab19b00c9a3a3c06735abfc19e310bda51cb4 | 7c6875913d0db69abfde0cc5c5b8f3b5a71827b5 | refs/heads/master | 2021-09-15T06:53:25.085065 | 2018-05-28T04:05:34 | 2018-05-28T04:05:34 | 109,001,536 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 25 | h | dof.h | namespace pathtracer
{
} |
53f66af512639207652726983e3aee75a3284f50 | 7bfe1fa72b2d595e500cc0bb4a535f34d3d36444 | /Source Code/ArbolAVLEstructura.h | 22777e242efd03e70436c6c7b7861275f57a828c | [] | no_license | SergioEGGit/Project_Asset_Manager_SEG | 84150e4ac3a23519b2cd8224106889858f088b62 | 262517574e553eb5bf0ebf89130692c98ef8ba49 | refs/heads/master | 2023-07-13T06:52:53.444315 | 2021-08-16T17:26:52 | 2021-08-16T17:26:52 | 268,591,121 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 4,975 | h | ArbolAVLEstructura.h | //------------------------------------------------------------------------------
#ifndef ArbolAVLEstructuraH
#define ArbolAVLEstructuraH
//-----------------------------Librerias----------------------------------------
#include <iostream>
#include <string>
#include <cstring>
using namespace std;
//-----------... |
a344e6f083a4d6ab27e16028cef979196574dec6 | d498af7e8d3ab7a58a60371dda47476e9d6cb3c4 | /src/libs/Common/DropImageWidget.hpp | ce7319f63ba61cedf84875b36f2980d79923ff30 | [] | no_license | SvOlli/SLART | 3121e5fa310f7b7f34309a3b15c084ee5e023ad4 | 85b42c9ec874f32afdecedb49c84b0ad7416ec0b | refs/heads/master | 2020-12-24T17:55:05.152518 | 2018-01-26T07:40:11 | 2018-01-26T07:40:11 | 2,235,857 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,512 | hpp | DropImageWidget.hpp | /*
* src/libs/Common/MainWidget.hpp
* written by Sven Oliver Moll
*
* distributed under the terms of the GNU Lesser General Public License (LGPL)
* available at http://www.gnu.org/licenses/lgpl.html
*/
#ifndef DROPIMAGEWIDGET_HPP
#define DROPIMAGEWIDGET_HPP DROPIMAGEWIDGET_HPP
/* base class */
#include <ImageWi... |
3ef91a3ad58cec199e42fe0e1741d9366d426bd4 | 1b9a67a80d80afdf363dabba162eddd4c3886e69 | /cpp/openssl/rsa_sign/signature.hpp | ecbc3f282ca05eb6b775cb9dff1f76919197f863 | [
"MIT"
] | permissive | LehmRob/tmp | 56dece03ef22ec1254fc61116ea9b41d404c6533 | cd3f90b7a27a39db3d1a5a177b94fb9dec3b3316 | refs/heads/main | 2022-01-27T11:02:20.321340 | 2022-01-16T19:26:14 | 2022-01-16T19:26:14 | 81,474,939 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 249 | hpp | signature.hpp | #pragma once
#include <vector>
namespace sign {
class Signature {
public:
Signature(const unsigned char* signature, int len);
void printIt();
std::vector<unsigned char> getSignature();
private:
std::vector<unsigned char> signature;
};
} |
47560e87354d2d1386a2d6045e215687f5b6e37a | e04f52ed50f42ad255c66d7b6f87ba642f41e125 | /appseed/core/filesystem/filemanager/filemanager_child_frame.h | 5cdf8cafec7abd910fe6921969829775057870f6 | [] | no_license | ca2/app2018 | 6b5f3cfecaa56b0e8c8ec92ed26e8ce44f9b44c0 | 89e713c36cdfb31329e753ba9d7b9ff5b80fe867 | refs/heads/main | 2023-03-19T08:41:48.729250 | 2018-11-15T16:27:31 | 2018-11-15T16:27:31 | 98,031,531 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 724 | h | filemanager_child_frame.h | #pragma once
namespace filemanager
{
class CLASS_DECL_CORE child_frame :
public simple_child_frame
{
public:
child_frame(::aura::application * papp);
virtual ~child_frame();
void install_message_routing(::message::sender * pinterface) override;
void OnChangeEditSearch();
... |
400e28141b636d8ef1ccd5b4ea0d0ed949a62696 | a84cf8f85d9716e18e57af9db56bb641d255e239 | /include/basic3d/real.hpp | dc27cc52f4f3a47f8e2e7fe33cab990e7e91d90a | [
"MIT"
] | permissive | MasterQ32/Basic3D | a111f2671920f37dd878a8df83f4abcde4abea24 | 1da1ad64116018afe2b97372d9632d0b72b1ff95 | refs/heads/master | 2021-04-12T08:40:30.669693 | 2018-04-01T09:47:40 | 2018-04-01T09:47:40 | 126,181,931 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 90 | hpp | real.hpp | #pragma once
namespace Basic3D
{
// Configuration
using real_t = float;
}
|
950dc8ff0a995761ff9305f1a9ef73f045f503ac | 9de0cec678bc4a3bec2b4adabef9f39ff5b4afac | /PWGLF/RESONANCES/extra/AliXiStar.h | e10bcf1a41a98dbab0f7842fbbefbcfa0323cb28 | [] | permissive | alisw/AliPhysics | 91bf1bd01ab2af656a25ff10b25e618a63667d3e | 5df28b2b415e78e81273b0d9bf5c1b99feda3348 | refs/heads/master | 2023-08-31T20:41:44.927176 | 2023-08-31T14:51:12 | 2023-08-31T14:51:12 | 61,661,378 | 129 | 1,150 | BSD-3-Clause | 2023-09-14T18:48:45 | 2016-06-21T19:31:29 | C++ | UTF-8 | C++ | false | false | 4,112 | h | AliXiStar.h | #ifndef ALIXISTAR_H
#define ALIXISTAR_H
//
// Class AliXiStar
//
// AliXiStar
// author:
// Dhevan Gangadharan (dhevan.raja.gangadharan@cern.ch)
//
class TH1F;
class TH1D;
class TH2D;
class TH3D;
class TProfile;
class AliESDEvent;
class AliAODEvent;
class AliESDtrackCuts;
class AliESDpid;
#include "AliAnaly... |
7f0025ddf2d7fdb1cee0072b6452ba049e67d6b9 | e235297b31ed100cbc83ec8c8a59d96f535e436a | /Cc++/IO/printf_sprintf_sscanf_支持正则表达式.cpp | 98ce293c8672bb47452e38f6bbe4e7956d6742ca | [] | no_license | FunctionDou/Code | e041c812ebca004b94ea2497c5d200fd5e870125 | 90f912fba0043b7d654efe8f09c96b11c0288a6b | refs/heads/master | 2021-05-16T16:44:30.335816 | 2018-05-07T07:47:31 | 2018-05-07T07:47:31 | 120,062,054 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 803 | cpp | printf_sprintf_sscanf_支持正则表达式.cpp | /*************************************************************************
> File Name: printf_sprintf_sscanf_支持正则表达式.cpp
> Author: Function_Dou
> Mail:
> Created Time: 2018年02月26日 星期一 23时23分24秒
************************************************************************/
#include <stdio.h>
#include "apu... |
cccd4656aaed8ae7f0aa84721c01536ab39b54c2 | 0577a46d8d28e1fd8636893bbdd2b18270bb8eb8 | /chromium/components/autofill_assistant/browser/android/ui_controller_android.cc | b6e92e4691b359c5545fbfd4cff9d9c7c1d67add | [
"BSD-3-Clause"
] | permissive | ric2b/Vivaldi-browser | 388a328b4cb838a4c3822357a5529642f86316a5 | 87244f4ee50062e59667bf8b9ca4d5291b6818d7 | refs/heads/master | 2022-12-21T04:44:13.804535 | 2022-12-17T16:30:35 | 2022-12-17T16:30:35 | 86,637,416 | 166 | 41 | BSD-3-Clause | 2021-03-31T18:49:30 | 2017-03-29T23:09:05 | null | UTF-8 | C++ | false | false | 93,230 | cc | ui_controller_android.cc | // Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/autofill_assistant/browser/android/ui_controller_android.h"
#include <memory>
#include <utility>
#include <vector>
#include "base/android/jni_android.h"
... |
09af8b74e62c05e7b53dd61fd27b81ef05eb1942 | eca334bfc0d62cfe43e4f5d1e22c04a07690d6e6 | /homeTask1/0.16/nut | 3d45221d535dbcf1db4bbeb106d2691bf38a12b6 | [] | no_license | ssizova/open_foam | 7ab4709555667c52a0ee80689fd3bec2a462a987 | d08bce05ff7895d7be4b3e30de19e85befd4a525 | refs/heads/master | 2020-04-26T22:52:32.809934 | 2019-03-22T10:01:05 | 2019-03-22T10:01:05 | 173,886,311 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,566 | nut | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.0 |
... | |
4f8c6cb02c627171e0e8a5ec467f8c551d6a67b0 | d3bcca0cc1be5d5716b7a4934a2d6bb3475b1a52 | /src/auxiliary/aux.cpp | 68bb0bf123d7f822bbbc0fed597275989cfb93bb | [
"MIT"
] | permissive | AOE-khkhan/PSO | f5bc1b383192039b13e85c466b3b8c228e682cf8 | 6cd159b94117e55534b3087e6971b4adda35f37c | refs/heads/master | 2021-09-29T13:02:47.723385 | 2018-11-24T11:26:43 | 2018-11-24T11:26:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 497 | cpp | aux.cpp | #include "aux.h"
#include <fstream>
std::pair<std::string, bool> aux::loadFileToString (const std::string &filename) {
std::ifstream file (filename, std::ios::in | std::ios::binary);
std::string string;
bool success;
if (file) {
success = true;
file.seekg (0, std::ios::end);
string.resize ((unsigned) file.te... |
d3c4ccfb624b43ea91c886ea22ac0dcfc0b9b885 | 52f86e1b8e082405bb501341abf6b98ccceb5701 | /src/lib/rl_old/components/Level.h | d0da339488b9e5788446eedf01344f9054d3499c | [] | no_license | esrever/pagan | 367dcce63df9e4ca73d018f24783776df0693bb4 | eb8dfeeeaa127114b79d41b72855d6e7fcbf463b | refs/heads/master | 2020-03-31T09:11:32.566241 | 2014-04-01T15:12:20 | 2014-04-01T15:12:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,324 | h | Level.h | #pragma once
#include <vector>
#include <oxygine-framework.h>
#include <core/container/Array2D.h>
#include <core/util/json_conversions.h>
#include <ecs/EntityData.h>
#include <rl/util/visit.h>
namespace pgn
{
namespace cmp
{
//!
struct cLevel
{
cLevel() :mLevelNode(new oxygine::Actor){}
// Members
... |
bcfd142a1ffaf5aea63dc9f9a11005f6fd6decaa | 449184522e23a01cf541c7cc92e903029765bb43 | /FlightFDRClient/FlightFDRClient/Sensor.h | d8e62e80d46bd5b26794e66dd255f16546a12bf0 | [] | no_license | WPtollemy/UniFDR | 9e4a277f78845225773a69c8f5ececd3a05cd272 | c00def1babc5f6a0df576b3e9db28a17d7e0a5fd | refs/heads/master | 2020-06-06T12:58:02.971391 | 2019-06-19T14:22:47 | 2019-06-19T14:22:47 | 107,007,845 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 81 | h | Sensor.h | #pragma once
class Sensor
{
public:
virtual void update() = 0;
};
|
12ce8238b0aa88c721bf3d5e797f2f68b002d030 | de524decca8e1df03a81bd47c23a1b4a8283ef8a | /genetic_algorithm/src/_genetic_algorithm.cc | c9c9b98c4a763156a198f8b3f6b00b42806e734d | [] | no_license | YToyCoder/evalutionary_optimization_algorithm | 380b2f4748717b68e9e0d9ff4c8bb4871437a67a | 381f6c4e36e588e7ac131e9fce4f23f6cc8ac620 | refs/heads/master | 2023-05-12T07:35:01.018808 | 2021-01-24T12:16:45 | 2021-01-24T12:16:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,014 | cc | _genetic_algorithm.cc | # include"../include/_genetic_algorithm.h"
# include"../include/load_infor.h"
# include<vector>
# include<iostream>
# include<ctime>
namespace _M_evalutionary_optimization_algorithm
{
// @param double min
// @param double max
// @return double Uniform-distribution-val
double Uniform(double min,double max){
return (... |
d2c4fac5b17e46171883154a316a426ce94b9646 | 2fa275ac6a17d15b9ad28e09a5295e2ae7bcd8b3 | /potpourri/raspberry.cpp | d32440c22815c5f13e96eac0066fd6b11fd1b9b6 | [] | no_license | arnabgho/competitive_programming | bcd46cbcafad06dce80efaae28048de149b0fe5d | 13af2a371d7d973f3fed244daf04a1c6252db53b | refs/heads/master | 2021-01-17T13:38:17.464779 | 2016-06-27T22:41:32 | 2016-06-27T22:41:32 | 33,666,144 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 484 | cpp | raspberry.cpp | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<iostream>
using namespace std;
int arr[501];
int main(){
int i,n,c,maxdiff;
cin>>n>>c;
for(i=1;i<=n;i++){
cin>>arr[i];
}
maxdiff=0;
for(i=1;i<n;i++){
if(arr[i]>arr[i+1]){
if(arr[i]-arr[i+1]>maxdiff){
maxdiff=arr[i]-arr[i+1];
}
}
... |
078e6932fa2f526f92253e47dab3c977c4f1730c | 8be083e9fbf15606201217d6c4b87c929e418065 | /tags/release-0.6/util/split_string.hh | 212d95f3e5dfc288bd1a0529ce22b56ad1fed313 | [
"Apache-2.0"
] | permissive | BGCX067/faint-graphics-editor-svn-to-git | 430768d441f3e9b353fbc128e132f7406ee48c0e | dad252f820d29ab336bcfa57138625dae6dfed60 | refs/heads/master | 2021-01-13T00:56:26.685520 | 2015-12-28T14:22:44 | 2015-12-28T14:22:44 | 48,752,914 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 913 | hh | split_string.hh | // Copyright 2012 Lukas Kemmer
//
// Licensed under the Apache License, Version 2.0 (the "License"); you
// may not use this file except in compliance with the License. You
// may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... |
15541a4f0031f81313dc31ee4f1b672d87b17228 | e67b5c1903b1268f08cbc76e9a0de10cf475d489 | /IntegertoRoman.cpp | 7b8e684049d534545b020a19bcfd74cfcdc0a7ed | [] | no_license | hmjmf/LeetCode | 8743b49cff130f1eee0cda4b2234449d48978332 | e0bbeae532b6361cf6c70af6cb2847279690543a | refs/heads/master | 2021-04-06T00:55:22.130780 | 2018-07-30T12:14:13 | 2018-07-30T12:14:13 | 124,859,217 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,536 | cpp | IntegertoRoman.cpp | /*******************************************************
* IntegertoRoman
* My Website https://zhangqixiang.cn
* My Github https://github.com/hmjmf
* Email zqx5449@gmail.com
*
* Created by 启翔 张 (QiXiang Zhang) on 2018/7/29.
* Copyright (c) 2018 . All rights reserved.
*... |
09099dc3bbfc84e544819214dcb4ce2b804a206f | 89b1dc2dad5e77e56bf62dd9cdbce7612c5d8c0c | /Transform.h | 044bbaa74800347c916acd2ea1fdf85e8e6da4ea | [] | no_license | FreshesBrot/D3D11Test | 407df4c523b597293ca8ce4c087a429c8121c628 | e5c8f1b818462563bff3f050bfbf5deba3c02032 | refs/heads/master | 2022-12-20T12:13:37.910945 | 2020-10-22T01:04:38 | 2020-10-22T01:04:38 | 192,126,928 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,611 | h | Transform.h | #pragma once
#include "Component.h"
//this class represents the transform of an object
class Transform : public Component {
public:
Transform();
~Transform();
//returns the world transform matrix
ComponentStruct* getComponentStruct() override;
//returns buffer information
UINT bufferSize() override;
UINT byt... |
c6082a1c96a2293ff2bef2c22a9b4c55171682e1 | 49fa0df5361951169b31b6839a16f8997d0d8e9c | /Mesh.cpp | 877a0859b6bf78e3ba7357ec0f1d585da7b54be0 | [
"MIT"
] | permissive | erodriguezg/sdlogl | ddfa37c984774f8bcb70430d8809a4a1a79d45f4 | 56785de82a90bfb2b7132c7d46249ac358f673ff | refs/heads/master | 2020-03-11T12:21:37.948480 | 2018-05-13T12:30:10 | 2018-05-13T12:30:10 | 129,995,062 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,811 | cpp | Mesh.cpp | //
// Created by lalo on 16-04-18.
//
#include "Mesh.h"
#include <vector>
Mesh::Mesh(Vertex *vertices, unsigned int numVertices, unsigned int *indices, unsigned int numIndices) {
IndexedModel model;
for(unsigned int i = 0; i < numVertices; i++) {
model.positions.push_back(vertices[i].getPos());
... |
f6f7ac8c31934e62ad354d973a61fc60469daa15 | 99eba6b9d3ce45d73d41502c55df0be282b4f4a3 | /OnlineJudge/Euler/old/danger.cpp | c823dac8e3b55c36bd8f6ff98a438cfe148eb7a4 | [] | no_license | hajindvlp/Algorithm | ad7268b468c162bb9244d09b7c7f269c61bcacf9 | f9b4b530a177013f386d4f7f1f038c006ccbd9f0 | refs/heads/master | 2021-06-28T21:13:25.849062 | 2020-11-06T10:14:02 | 2020-11-06T10:14:02 | 172,189,561 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 543 | cpp | danger.cpp | #include <stdio.h>
int n, m, a[101][101], l[100001], sum;
int main()
{
int i, j, k;
scanf("%d %d", &n, &m);
for(i=1 ; i<=m ; i++)
scanf("%d", &l[i]);
for(i=1 ; i<=n ; i++)
for(j=1 ; j<=n ; j++)
scanf("%d", &a[i][j]);
for(k=1 ; k<=n ; k++)
for(i=1 ; i<=n ; i++)... |
d2883afbc5347ed015ef49518c905c430307f396 | 796198b4613ae30ff7735d7a8473064b8ecb0247 | /abc136/abc136-4.cpp | 587ac7fb9d5df9c67e979b34012398d2a0bd0d30 | [] | no_license | Tomoki-Kikuta/atcoder | 993cb13ae30435d02ea2e743cf3cead1a7882830 | 97b886de867575084bd1a70310a2a9c1c514befe | refs/heads/master | 2021-07-16T15:14:00.706609 | 2020-06-29T06:15:13 | 2020-06-29T06:15:13 | 184,001,549 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,150 | cpp | abc136-4.cpp | #include<iostream>
#include<algorithm>
#include<string>
#define MAX 100005
using namespace std;
int main(void){
string S;
cin >> S;
int stage[MAX] = {0};
for(int i=0;i<S.size();i++){
int count_A = 0;
int count_B = 0;
char a = S[i];
int t = i;
while(a == S[t]){
... |
b478558e6463f641abf3e3e82d05a5f99d644348 | ecb8f1498d04f1c56837c4bf7c28c15e430d2906 | /src/main.cpp | 201b94176ce5b2cd9198d1f32b55f8df7b236ee2 | [
"MIT"
] | permissive | xbeaudouin/m5panel | 056156611500aed2bce103aff36908a4e06eb3a6 | cce5b8f9ef37ebe3949e96e0188096d739b7a4ba | refs/heads/main | 2023-03-21T00:40:47.861678 | 2021-02-04T21:17:42 | 2021-02-04T21:17:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,760 | cpp | main.cpp | #include <M5EPD.h>
#include <WiFi.h>
#include <ArduinoJson.h>
#include <HTTPClient.h>
#include <FS.h>
#include <LITTLEFS.h>
#include <ezTime.h>
#include <regex>
#include "M5PanelWidget.h"
#include "defs.h"
#define ERR_WIFI_NOT_CONNECTED "ERROR: Wifi not connected"
#define ERR_HTTP_ERROR "ERROR: HTTP code "
#... |
785facdb618d897e4fa63ab1834aa95c5f923884 | 7c6119ba71c1b28a379f2bab5b4f2366fce42fbf | /hangman.cpp | 0a3fd3561314514fc45fea652f46bbdbe416e6bb | [] | no_license | Deepak15115042/games | be2789affaa32c0846b87f072ae7a38fae2064b6 | 3e29e9c833c1b4c42ad5d9ed50997321a2aa6120 | refs/heads/master | 2021-09-06T10:22:14.673354 | 2018-02-05T13:56:42 | 2018-02-05T13:56:42 | 119,282,762 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,492 | cpp | hangman.cpp | #include<iostream>
#include<iomanip>
#include<cstring>
#include<cstdlib>
#include<conio.h>
#include<time.h>
using namespace std;
const int max_count=5;
int n,size=0,count,key,score;
bool gameover;
struct WORDS
{
char name[20];
int flag[20];
}words[5];
void setup()
{
gameover=false;
for(int i=0;i<5... |
541aef824445a49f6a1bb798237bc17aa6851718 | 437a322e2ef4d19f413c574be3373e4e9d60ba5e | /src/model/DNA/dnaSequence.cpp | 3c7a8a708c510defffd448d1f10155dd51666a25 | [] | no_license | shreibers/DNA-analyzer | be9d3ed7cf501163488c724f36028b383c0b991e | ea5f587d2eb96c15ce5bd277e1be0d5f8b3c5a3d | refs/heads/main | 2023-01-10T06:57:57.633606 | 2020-11-08T22:37:56 | 2020-11-08T22:37:56 | 304,944,822 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,122 | cpp | dnaSequence.cpp |
#include "dnaSequence.h"
#include <cstring>
const char* DnaSequence::DNA_CHARS = "AGCT";
bool DnaSequence::Nucleotide::isValidChar(const char& c){
return strchr(DNA_CHARS, c);
}
bool DnaSequence::isValidSequence(const char* dnaSequence){
for(size_t i=0; i < strlen(dnaSequence) ;++i){
if(!Nucleotid... |
9c276249a7d38b8097ff25452253a186523f8623 | 85b3bb9fecd39004881e80cf20f4a737d6ef9ea2 | /LostRealms/.svn/text-base/player.h.svn-base | 2f6b5e2b9137cfa6145865bc71207c574412d761 | [] | no_license | scottscaccianoce/LostRealms | e6d9e6167c2ed023072d6cb083bd266740ba3109 | ac075ec39a5bd11d804890759956c8b2d06975f2 | refs/heads/master | 2021-01-20T05:29:08.773670 | 2015-04-28T17:15:43 | 2015-04-28T17:15:43 | 34,744,396 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,852 | player.h.svn-base | /*
* Player.h
* LostRealms
*
* Created by Scott Scaccianoce on 12/4/12.
* Copyright 2012 Scotronics. All rights reserved.
*
*/
#ifndef __PLAYER_H
#define __PLAYER_H
#include "math3d.h"
#include <string>
//#include "Buff.h"
//#include "Spell.h"
#include <vector>
#include "SPEntity.h"
#include "quadterrain.h... | |
69f1e490c84547132638b066c99202b1719cff39 | b2d35224b2672b05f64a954f8252f99870d6e4dc | /stack/stack/stack.hpp | 82af2ca7675928ec83a4bcf2b6464f0f68c22f46 | [] | no_license | AKL-FIRE/DataStruct | 2119c49c7a1c2bf3b6682e32658d9ebccfa7efda | d89c2b7873ea90345e3830bc02a2e4a4dc5644a6 | refs/heads/master | 2021-06-24T12:57:46.937095 | 2017-09-12T14:04:03 | 2017-09-12T14:04:03 | 103,277,840 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 552 | hpp | stack.hpp | //
// stack.hpp
// stack
//
// Created by Apple on 19/06/2017.
// Copyright © 2017 Apple . All rights reserved.
//
#ifndef stack_hpp
#define stack_hpp
#include <stdio.h>
#include <stdlib.h>
#define maxsize 1024
typedef int datatype;
typedef struct
{
datatype data[maxsize];
int Top;
}SeqStack;
void Init... |
282cf1f6a30b65710edf72c7aa6396ab0d09224b | 538238b652368c7ccfd08dff1220744855f5b554 | /main.cpp | a237835b621bdce27931b701fb48a8d6e79f1ed3 | [] | no_license | smiiguel/Chess-Game | 7e689ea91637dff7849f2ec83586417fc877dc67 | 51d7a9a09cefd3cb8fe60d8dafd11845e907beac | refs/heads/master | 2021-01-19T07:22:34.279672 | 2017-05-12T03:49:47 | 2017-05-12T03:49:47 | 87,541,651 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,103 | cpp | main.cpp | #include <iostream>
#include <vector>
#include <SDL.h>
#include <SDL_image.h>
#include "Table.h"
#include "PieceTexture.h"
#include "Dot.h"
#include "Texture.h"
#include "TextTexture.h"
#include "PiecesManager.h"
#include "EventManager.h"
using namespace std;
const int SCREEN_HEIGHT = 670;
const int SC... |
1da35881125c668999cff07c5189caec90e5c051 | 2ac9b7dd59a11ab5efe480450fbd9874454460cd | /copy/include/copy.h | 4caf21d1800bfa0e774d467354e49686b4ca355d | [] | no_license | joaofilipenasc/lp1_lista2 | 3425e87a36a1723522c283ddcd1e2ad7bbba2f4f | eb5216082fb91a4b7f7832764d32666604bce46a | refs/heads/main | 2023-06-02T22:00:13.107317 | 2021-06-27T20:38:44 | 2021-06-27T20:38:44 | 379,619,044 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 635 | h | copy.h | #ifndef GRAAL_H
#define GRAAL_H
#include <utility>
using std::pair;
#include <iterator>
using std::distance;
#include <algorithm>
using std::sort;
namespace graal {
/*!
* @param first posição do primeiro elemento do range
* @param last posição logo após o último elemento do range
* @param d_first posição inic... |
04539980b30101139b3e3de3aaa0e3dda89bcb0f | 775acebaa6559bb12365c930330a62365afb0d98 | /source/public/interfaces/incopy/IInCopyInterchangeExportOptionsCmdData.h | d2eac7fa91f3f70cbb6817b41e212673688c88a6 | [] | no_license | Al-ain-Developers/indesing_plugin | 3d22c32d3d547fa3a4b1fc469498de57643e9ee3 | 36a09796b390e28afea25456b5d61597b20de850 | refs/heads/main | 2023-08-14T13:34:47.867890 | 2021-10-05T07:57:35 | 2021-10-05T07:57:35 | 339,970,603 | 1 | 1 | null | 2021-10-05T07:57:36 | 2021-02-18T07:33:40 | C++ | UTF-8 | C++ | false | false | 2,821 | h | IInCopyInterchangeExportOptionsCmdData.h | //========================================================================================
//
// $File: //depot/devtech/16.0.x/plugin/source/public/interfaces/incopy/IInCopyInterchangeExportOptionsCmdData.h $
//
// Owner: Michele Stutzman
//
// $Author: pmbuilder $
//
// $DateTime: 2020/11/06 13:08:29 $
// ... |
c138033045ef11a280119548a4a80ebb04600627 | 349a513453615003126ae622702bd69e31f2d7f3 | /caffe_opencl/src/caffe/greentea/cl_kernels_bk.cpp | 52ef80226aa649d113bd1a6986137791d01b9564 | [
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | MagicSen/source_read | 9ab4353d9059d3fcf8cb2006d9548c8e1f1139a5 | 106ebe01fcfedc857b08096061045f560ac682a9 | refs/heads/master | 2022-12-03T01:36:10.278582 | 2020-05-07T07:41:26 | 2020-05-07T07:41:26 | 158,936,446 | 4 | 0 | null | 2022-11-22T05:09:56 | 2018-11-24T12:57:26 | C++ | UTF-8 | C++ | false | false | 518,241 | cpp | cl_kernels_bk.cpp | // AUTOMATICALLY GENERATED FILE, DO NOT EDIT
#include "caffe/common.hpp"
#ifdef USE_GREENTEA
#include "caffe/greentea/cl_kernels.hpp"
#include <sstream>
#include <string>
#include <type_traits>
#include <vector>
#ifdef DISABLE_DOUBLE_SUPPORT
#define DOUBLE_SUPPORT "#define DISABLE_DOUBLE_SUPPORT\n"
#else
#define DO... |
b0f0be4370785dec88093ca1dc403494e60b3127 | 4dbaea97b6b6ba4f94f8996b60734888b163f69a | /NowCoder/Netease/2020_alg_1.cpp | 4eb47ba80ca9ba50dc58090dfe2d6e095c7d9230 | [] | no_license | Ph0en1xGSeek/ACM | 099954dedfccd6e87767acb5d39780d04932fc63 | b6730843ab0455ac72b857c0dff1094df0ae40f5 | refs/heads/master | 2022-10-25T09:15:41.614817 | 2022-10-04T12:17:11 | 2022-10-04T12:17:11 | 63,936,497 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 461 | cpp | 2020_alg_1.cpp | #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int ca;
cin >> ca;
long long a, b, c;
while(ca--) {
cin >> a >> b >> c;
if(a < b) {
swap(a, b);
}
if(b < c) {
swap(b, c);
}
... |
55049af0615337a428ceec880280932bc00a719b | fdbf2029fe807077e30784b46441de85969b2838 | /面经编程题/13.cpp | b601cac8bfd1aef7ec09824ea633d7436e581771 | [] | no_license | jing1900/mianjing_v1 | e6ab36ed1eec1fa26748b929d4529c92f3538158 | 17ea87e977452351f7daa8afbaee6e24e028a943 | refs/heads/master | 2020-03-08T19:13:02.368746 | 2018-05-14T06:08:31 | 2018-05-14T06:08:31 | 128,343,008 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,467 | cpp | 13.cpp | /*
问题:一个数组存1-1000的连续整数,如果取出其中一个,如何快速找到*/
/*思路:
由于数组存储的是1,2,3,4这样的有规律的数组,所以这些数组中的元素和下标之间有着紧密的联系。所以没有移位的元素与下标之间相差1,移位了的差2.所以从头向后一次查找,找到第一个元素和下标相差2的位置,该下标加1就是被删除的数。*/
#include<iostream>
#include<cstdlib>
#include<string.h>
#include<time.h>
#include<stdio.h>
using namespace std;
int main()
{
int i,*a;
int n = 1000000000... |
fb06641d1161808e4cf9f67e4f548b5947bdf3d1 | 18dc5c24f3659ee86bc133a3940963490af86028 | /chapter13-4/Storage.h | 6e4d4021f5a14ef4be724f11716d1a030cbb8dbc | [] | no_license | hyoilll/hong_cplusplus | 91fb4d126179894f025643ca6b86daaf01560281 | 1015cdc8ccb651a0d3aa0749a1b5797d61f266fe | refs/heads/master | 2021-02-17T20:40:03.106536 | 2020-03-07T15:04:53 | 2020-03-07T15:04:53 | 245,126,483 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 345 | h | Storage.h | #pragma once
#include <iostream>
template <class T>
class Storage
{
private:
T m_value;
public:
Storage(T value) :m_value(value) {}
void print()const
{
std::cout << m_value << std::endl;
}
};
template<>
void Storage<double>::print()const
{
std::cout << "Double Type" << " ";
std::cout << std::scientific <... |
1ac29c70317d8eb419b872269fcefc8ae3d43957 | 4882512d4e31efcaa46a41e39f7519ef8ffbf6a7 | /Sesion 9/Ejercicio1.cpp | f486e69b5e6e4772a47d0a99977a78b0ac15d502 | [] | no_license | lmchaves/GII-FP | 73887d842c4be5a253f65e1541c7f4a83f664bda | 986a781a149a83a789c771755f7e897de668a2ac | refs/heads/main | 2023-06-05T10:25:21.068678 | 2021-06-23T18:36:44 | 2021-06-23T18:36:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,043 | cpp | Ejercicio1.cpp | Ejercicio1.txt
int ValorAbsoluto(int entero){
if (entero < 0)
entero = -entero;
else
return entero;
}
// Error ya que solo devolveria algun valor / haría un return si entero fuese > 0. Para arreglarlo podemos hacer lo siguiente
int ValorAbsoluto(int entero){
if (entero < 0)
entero =... |
c843dcc743dd6ec866510f4e4b4c7fd7f86c911c | dfb0999c9d0e6f54afba0d805d3d539549998bd7 | /const_apply02.cpp | 3214edfaaf054b70c5fda05cc96d4bfdeff3f555 | [] | no_license | yuhwanwoo/cpp_review | e59f4b20ff00ff55852f38c03bc156a166906d44 | 2f7c554a38569821c64b5cf3259840cf35e6f834 | refs/heads/main | 2023-06-05T11:36:50.593551 | 2021-06-30T10:15:31 | 2021-06-30T10:15:31 | 312,021,688 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 665 | cpp | const_apply02.cpp | #include <iostream>
using namespace std;
//Car 클래스 선언
class Car{
private:
int num;
double gas;
public:
Car();
Car(int n,double g);
void show();
};
//Car 클래스 멤버 함수의 정의
Car::Car(){
num=0;
gas=0.0;
cout<<"자동차가 만들어졌습니다.\n";
}
Car::Car(int n,double g){
num=n... |
5644a4d123ddcd732c5181f08bed0a17fb98eb16 | fdb54ad118ebdc572ed223dc0f3686d4940c803b | /shill/mock_virtual_device.cc | 49396d20ee263ce035deeb72043e012c4604e674 | [
"BSD-3-Clause"
] | permissive | ComputerStudyBoard/chromiumos-platform2 | 6589b7097ef226f811f55f8a4dd6a890bf7a29bb | ba71ad06f7ba52e922c647a8915ff852b2d4ebbd | refs/heads/master | 2022-03-27T22:35:41.013481 | 2018-12-06T09:08:40 | 2018-12-06T09:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 854 | cc | mock_virtual_device.cc | // Copyright 2018 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "shill/mock_virtual_device.h"
namespace shill {
MockVirtualDevice::MockVirtualDevice(ControlInterface* control,
... |
6bbd1916e09808c432a29647fed59cad3409c6f4 | d5711bf1c0306a6d9e3de223f65e3eb4154eb6dd | /DataStructure/Chapter/Graph/txt/ass2.cpp | b966e6ab5a0f9f08c8b925f6f5af3e73ed74ffb2 | [] | no_license | zyl-hub/wiki | 12c369bf7a9d711d5102b0b93c7cf17966e95be6 | 448d4bfcae769fb34898359b89b49893f84df8f8 | refs/heads/master | 2023-03-14T02:00:09.081009 | 2021-03-03T15:00:56 | 2021-03-03T15:00:56 | 291,210,727 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,517 | cpp | ass2.cpp | #include <iostream>
using namespace std;
template <class Ver, class Edge>
class Graph {
private:
int Vers, Edges;
struct edgeNode {
int end;
Edge weight;
edgeNode* next;
edgeNode(int e, Edge w, edgeNode* n = NULL)
{
end = e;
weight = w;
... |
2cd736623d27e82de61a0c59e4a37072a5e15727 | cca5b21aec8e6331b2416d50209d513738d6a5f2 | /Snakes && Ladders/Snakes && Ladders.cpp | 592a798a8e334bb279d302b53a1e128da575f4d5 | [] | no_license | HamudiHasan/C-Projects | c90063858392e131146552ab46e6b839cdc5c505 | 7c96513aa96e0c859f67a281a4abee558f90667e | refs/heads/master | 2021-01-11T22:22:45.647233 | 2017-01-14T18:29:01 | 2017-01-14T18:29:01 | 78,955,396 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,401 | cpp | Snakes && Ladders.cpp | /*
Snakes && Ladders !!
United International University.
Guide By : Rizve Sir .
Developed By :
# Hasan Sonet .
# Tanvir Sifat .
# Nasrin Jahan .
*/
#include "iGraphics.h"
#include<string.h>
#include <stdlib.h> /* srand, rand */
#include <time.h> /* time */
int dx=215,dy=42,sx=226,sy=30,dice=0,show_dice=0,la... |
d7078f97b065714be4ca110a3f4cd31b6312648a | 0b5d3299daa643a0122f7ea5b72978dc4a2d47cc | /smart_dustbin-code.ino | 9e1e1edfdae6a2f09f025b3e36083247171dbb4f | [] | no_license | DiyaZ17/SmartDustbin | ca719fa2f9da4b4e13128b737ff8bc1b8de4b2bf | 99a49a238fdbf4a581855ccf4cce7db7c1324d13 | refs/heads/master | 2020-04-09T00:08:01.838850 | 2018-11-30T17:09:06 | 2018-11-30T17:09:06 | 159,854,573 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,369 | ino | smart_dustbin-code.ino | #include <Servo.h>
/*
HC-SR04 Ping distance sensor:
VCC to arduino 5v
GND to arduino GND
Echo to Arduino pin 6 & 8.
Trig to Arduino pin 5 & 7.
sensor-1 is usd for automatically open the lid
sensor-2 is usd to show garbadge level
*/
Servo servo;
int trigPin = 5; // sensor 1
int echoPin = 6; // sensor ... |
bbbd72e199800a112585f6a58a93a55958c76be6 | dae70ba33a64f30e65367e5f95f13965fe89558c | /20190722/new.cc | 2da0c878508ffe436be22ea8176df8f43eb5a535 | [] | no_license | stz91/wangdaoC- | 23b2e213a6361574a5d695b5f62a4fa5ac2c1ba3 | 2e4025523cbd4c636cb74231ede5a15e98b006c9 | refs/heads/master | 2020-06-25T03:16:54.927041 | 2019-08-16T09:47:05 | 2019-08-16T09:47:05 | 199,183,297 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 292 | cc | new.cc | #include <stdlib.h>
#include <iostream>
using std::cout;
using std::endl;
int main()
{
int * p = new int(1);
cout<<*p<<endl;
delete p;
int * p2 = new int[10]();
for(int index = 0; index <= 10; index++)
{
p2[index]=index;
}
delete []p2;
return 0;
} |
da69628bde24b114e8da54f614aedf0a48a5f0da | e1b4c6457bfa58d441ec144b324982c64cc69e5a | /libsgp4/SatelliteException.cc | 5fe12127789bb18254e324b127d60eaf0931d17d | [
"Apache-2.0"
] | permissive | dnwrnr/sgp4 | 3aca0a5bfbb7002a6a40861f84cabbd0b1fd424c | 6a448b4850e5fbf8c1ca03bb5f6013a9fdc1fd91 | refs/heads/master | 2023-05-25T02:17:21.994093 | 2022-11-13T13:22:13 | 2022-11-13T13:22:13 | 78,276,222 | 113 | 54 | Apache-2.0 | 2023-05-23T08:38:35 | 2017-01-07T11:54:14 | C++ | UTF-8 | C++ | false | false | 32 | cc | SatelliteException.cc | #include "SatelliteException.h"
|
bd2388a7a56f8088a0fd06c8a52a30d67b11f141 | 4dc39574d7cb4f7aa5089d2d72ed6f82bab10400 | /cls.cpp | d274fb5ee23afd704c1dad66b9af13e1102fd0ce | [] | no_license | Taslim-M/mazeSolver | 504db5acc4fef2e1bd7a249c3db79a6c96d5733f | 7fd4ca6b45169960632109f2af7009b0a2051936 | refs/heads/master | 2020-08-26T16:53:39.574671 | 2019-10-23T14:51:04 | 2019-10-23T14:51:04 | 217,079,838 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 496 | cpp | cls.cpp | #include "cls.h"
#include <windows.h>
void cls()
{
HANDLE console = ::GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_SCREEN_BUFFER_INFO csbi;
::GetConsoleScreenBufferInfo(console, &csbi);
COORD origin = { 0, 0 };
DWORD written;
::FillConsoleOutputCharacterA(console, ' ', csbi.dwSize.X * csbi.dwSize.Y,
ori... |
40d780c0214b9102e3a32a992b4a8ac89ce9b604 | 3ba7b864f2df09ee7b394d19072ebe13b29937bc | /DirectX12_2018/DirectX12_2018/App.cpp | 99192359c24518a1e31f4ef8923661645d6a36f1 | [] | no_license | SyDsArchives/DirectX12Test | 32452b8d57ca5a4295051eb7e9a5ac977a38c02f | a777a3fdd5a63457f6af5b0056c4759573e293b3 | refs/heads/master | 2020-03-27T21:24:48.953163 | 2018-12-17T06:14:53 | 2018-12-17T06:14:53 | 147,141,376 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,808 | cpp | App.cpp | #include <iostream>
#include <Windows.h>
#include "App.h"
#include "Geometory.h"
#include "MyDirectX12.h"
LRESULT CALLBACK WindowProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
{
switch (msg)
{
case WM_DESTROY:
PostQuitMessage(0);
return 0;
}
return DefWindowProc(hwnd, msg, wp, lp);
}
App::App()
{
CoIniti... |
9e42a43f0ef788c8a3bc32e49a07defac48bd1a9 | 4ecab1190b24f6866cb3b0e8c5d4a6e74d911c26 | /programs/codes/codeforces/433A.cpp | 4c7dc948ad1e34a4e4050730616d35cb21db1bb7 | [] | no_license | bhupkas/Backup | f15ccfa8bc44a2dc3544b204dfeaeea6d8728ded | 67d5343cf9de9267488414aa4da0eb2ada867464 | refs/heads/master | 2020-06-08T09:37:48.140088 | 2015-05-22T21:00:15 | 2015-05-22T21:00:15 | 32,330,228 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 404 | cpp | 433A.cpp | #include "bits/stdc++.h"
using namespace std;
int main()
{
int n;
cin >> n;
vector < int > v(n);
int c1,c2;
c1 = c2 = 0;
for(int i = 0 ; i < n ; ++i)
{
cin >> v[i];
if(v[i] == 100) c1++;
else c2++;
}
if(c1 & 1) { puts("NO"); return 0;}
else
{
if(c2&1)
{
if(c1 != 0) { puts("YES"); return 0;}
... |
19abe522be5e695e6b72ee4c83229757eab1b067 | 968f4fd21d9354f615a3cd98b52a2e04b3051238 | /Projects/rtv1/aide3/CPlane.cpp | 67685df40dcf11587af89e2bacb1a000a6a21ffd | [] | no_license | svelhinh/Projects | e6f08bb8a8e173b69ff9c3997f69f6dd4344a7ff | 2dcd35934078f731cbe6e75150338523c06f41ad | refs/heads/master | 2023-08-07T20:33:29.793393 | 2023-07-28T14:38:31 | 2023-07-28T14:38:31 | 60,209,430 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 898 | cpp | CPlane.cpp | #include "CPlane.h"
CPlane::CPlane(const CVector3D& pointplane, const CVector3D& normal)
{
mNormal = normal;
mNormal.Normalize();
mPointPlane = pointplane;
}
bool CPlane::IntersectsNode(const CRay& ray, CInter... |
4f1e0b92345a1ff95f61088fd2b1bf8639b0478a | 97b0a21c98cbadb5324bd929a3152273878c78f5 | /edge_connectivity_decomposition/main.cpp | a9509a424554cba225039b52c09840ab494b2fbc | [] | no_license | LijunChang/Cohesive_subgraph_book | fb096a76d1439e3d98306b3c1e549e0faee84b46 | 3e211b9cc37fe524ba09ed388c6cd344d5ebab58 | refs/heads/master | 2022-05-01T20:48:13.176923 | 2022-04-24T05:35:38 | 2022-04-24T05:35:38 | 112,986,003 | 25 | 10 | null | null | null | null | UTF-8 | C++ | false | false | 1,011 | cpp | main.cpp | /*
* main.cpp
*
* Created on: 5Dec.,2017
* Author: Lijun Chang
* Email: ljchang@outlook.com
*/
#include "Graph.h"
void print_usage() ;
int main(int argc, char *argv[]) {
#ifndef NDEBUG
printf("!!! You may want to define NDEBUG in utilities/Defines.h to get better performance!\n");
#endif
if(argc <... |
66e149e206c9b39df865e4b55a879f07ff2c6ce0 | bf26328f435fcea2bcfef3e1221907df653cb455 | /src/ut_minmaxheap.cpp | 3ec09b23cdd523f81cea3187806f96d711083b3b | [
"BSD-2-Clause"
] | permissive | sromberg/sway | 3073fc5177a1e888b60d23cdb7b7f45597bc4c91 | 6d3d27a29b45f275f1af79767e4390d248fd2230 | refs/heads/master | 2021-01-21T06:10:31.102777 | 2014-01-19T17:06:19 | 2014-01-19T17:06:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,975 | cpp | ut_minmaxheap.cpp | /*
Copyright (c) 2011, Andrea Sansottera
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this
list of conditions and the follo... |
64ac0eaa6d80d6e686798817da396ab965ed3b3d | c5ba5268e6eca1bc3168f51bae91ba8ac1b5fb92 | /source/algorithms/flbit.cpp | fdcd8bdb34d556c6bbbfa77d40de45aac82e5d4a | [
"MIT"
] | permissive | DavidAce/DMRG | ee77ad50812946ec272334e58d862298065ca4b0 | e65be677bc4e3e61c8b38b982e5bbf5dad797063 | refs/heads/master | 2023-08-16T19:30:16.568518 | 2023-04-14T06:27:43 | 2023-04-14T06:27:43 | 98,307,786 | 11 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 51,386 | cpp | flbit.cpp | #include "flbit.h"
#include "config/settings.h"
#include "debug/exceptions.h"
#include "debug/info.h"
#include "general/iter.h"
#include "io/fmt.h"
#include "math/linalg/tensor.h"
#include "math/num.h"
#include "math/tenx.h"
#include "qm/lbit.h"
#include "qm/spin.h"
#include "tensors/model/ModelFinite.h"
#include "tens... |
8ba9d0ef5475cb78759380b8aa7221476fd1bd93 | a5672685d4efb0121329ae4c9f243c1a14199810 | /gtk/window_impl-gtk.hpp | 362eed981f3a0360ad781592cd73bfc1487773cf | [] | no_license | zawata/SFML_Menus | 5a04c40992b4ace760b2c742ecbc96bab5fb7e7e | 4ca1d51d7c0ca99c9ddbf84abe02ac0cb5152978 | refs/heads/master | 2020-05-27T16:57:44.448446 | 2019-05-31T09:48:54 | 2019-05-31T09:48:54 | 188,712,319 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,066 | hpp | window_impl-gtk.hpp | #pragma once
#include "window.hpp"
#include <gtkmm/applicationwindow.h>
#include "gtk/sfml_widget.hpp"
struct NUI_Window_gtk : public NUI_Window, public Gtk::Application {
// NUI_Window
NUI_Window_gtk(const std::string &title);
NUI_Window_gtk(const std::string &title, int w, int h);
bool add_menubar... |
5a0846dee9974eab948311581978bda109550574 | d012308e09c5c4accc3882615a3dcfde3c88d3fd | /Tarea5/main.cpp | f46b77998d0d99fba1369c4568b407d16190efd3 | [] | no_license | lisaula/Tareas_1er_ED | 8888d8bd39d66e5479c657cea878056faf535145 | b6d80d143af5afb217bcbc504a2ab1fe1974ee80 | refs/heads/master | 2020-04-10T07:52:22.990140 | 2015-08-24T23:49:30 | 2015-08-24T23:49:30 | 39,801,938 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 327 | cpp | main.cpp | #include "widget.h"
#include <QApplication>
#include<iostream>
using namespace std;
void print(Nodo* arr[]){
for(int x =0;x<10;x++){
cout<<x<<" "<<arr[x]->valor<<"|"<<arr[x]->sig<<endl;
}
}
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Widget w;
w.show();
return a.exe... |
9d11761e2b62bd315186e25d87631421cf3694de | 548bb6a9b7366071eeefd4ce457a8aa2ab22a591 | /Node_Mois/Node_Mois.ino | d7118ae51cee9c819780a594bc32bdc8a5232c88 | [] | no_license | haok60/Sensor | 0192e875eb40fa15a179f8751010ad6abeaafca3 | 4c650b81b31fcd6465481234fe954cc00cc0b516 | refs/heads/master | 2021-07-24T05:12:13.963923 | 2020-07-02T08:31:07 | 2020-07-02T08:31:07 | 194,119,626 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,446 | ino | Node_Mois.ino | #include <TimerOne.h>
//#include <SHT1x.h>
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11);
// Specify data and clock connections and instantiate SHT1x object
#define dataPin A4
#define clockPin A5
int cnt=1;
int temp_c;
int humidity;
//SHT1x sht1x(dataPin, clockPin);
String cmd;
int moisps;
... |
c7441a822b54a6f042a0ffcc1b31f4dd55189f12 | c5c50c498db58418d3cffcd3356f7479df40804b | /wzrd_editor/enum_to_int.cpp | ba55229b2ee1257517fafde60528f579c7a0ec0c | [] | no_license | maximebl/wzrd_editor | ec45fe29bc8585e01c32ecfab94ded5a36015a51 | 5a3f747c2539939958c10b87b8828555dca94438 | refs/heads/master | 2020-03-24T23:12:43.414906 | 2019-05-01T06:09:09 | 2019-05-01T06:09:09 | 143,123,711 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,717 | cpp | enum_to_int.cpp | #include "pch.h"
#include "enum_to_int.h"
using namespace winrt;
using namespace Windows::UI::Xaml;
namespace winrt::wzrd_editor::implementation
{
Windows::Foundation::IInspectable enum_to_int::Convert(Windows::Foundation::IInspectable const& value, Windows::UI::Xaml::Interop::TypeName const& targetType, Windows::F... |
96ce19504593cde23dc3e56882f7732e2900df72 | 3b21f6436c53d9c74d345a3b4fb743e3ce1e1a41 | /Volume_101/10130/supersale.cpp | 54f52b2156a2419ae4fe01e49a82924f595d5c7f | [] | no_license | wilson100hong/UVAOJ | c8202e0e844b82f7a9861b9844b1092eb1468cfc | fa88f79f38ce1261fcb72fb452648d488db49f2f | refs/heads/master | 2022-02-10T17:16:47.802137 | 2022-02-08T06:18:12 | 2022-02-08T06:18:12 | 9,843,018 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,515 | cpp | supersale.cpp | // 2016/09/25
// STARS: *
// SKILLS: dp
//
// trap: every person can take only one object of each kind
#include <iostream>
#include <vector>
using namespace std;
struct Object {
int w; // weight
int p; // price
};
int max(int a, int b) {
return a > b ? a : b;
}
int solve(const vector<Object>& objects,
... |
23ceb6caa3679f02fe4791871bc0c5a149c4adc3 | cb1909b06c3dac07d2ab9569f47dd287364a67d0 | /src/environ/TVPWindow.h | 582045ec9a18fe1b421cbdc6294314639f7e98c2 | [] | no_license | zhangguof/mkrkr | 34c3215ac05fcfbdf823b48df4d5dd8c814f5e54 | b99bb4b757309f64dbbcbcc9bd04c9c7939dfa6c | refs/heads/master | 2021-06-22T18:27:54.900399 | 2020-12-21T14:42:57 | 2020-12-21T14:42:57 | 175,441,180 | 6 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 9,353 | h | TVPWindow.h |
#ifndef __TVP_WINDOW_H__
#define __TVP_WINDOW_H__
#include <string>
// #include <shellapi.h>
// #include <oleidl.h> // for MK_ALT
// #include "tvpinputdefs.h"
#include "SystemImpl.h"
// #include "ImeControl.h"
#include "GLDevice.hpp"
#include "DebugIntf.h"
#include "utils.h"
#ifndef MK_ALT
#define MK_ALT (0x20)
#en... |
dca2d0e850fc7271050c974a4e350419baf3bea2 | f3c2026baf2ec2e56fc76181ff0e6d756a08e0d1 | /oldstudycode/qt/ch07/pcThread/widget.h | 6a3414343ab44f98db9fb0d1d08138407615e9d4 | [] | no_license | Lava-Liu/media | 9572e8bece6187c26e122d02481a886e9a9f6f07 | ab77d860889655c899206a032462266dd5a42d84 | refs/heads/master | 2023-02-04T16:25:50.091020 | 2019-12-12T01:27:31 | 2019-12-12T01:27:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 318 | h | widget.h | #ifndef WIDGET_H
#define WIDGET_H
#include <QtGui/QWidget>
#include "costomer.h"
#include "producer.h"
class Widget : public QWidget
{
Q_OBJECT
public:
Widget(QWidget *parent = 0);
~Widget();
private:
Costomer cTh1;
Costomer cTh2;
Producer pTh1;
Producer pTh2;
};
#endif // WIDGET_H
|
c16a93cc220a0cd012c0540cdb56375aeb4a3c8a | e2de85f83de242fc5b066a81eb55205c750ebc29 | /omaha/goopdate/app_command_ping_delegate.h | 4584e133832508a1f35f04620c6aaef512c5b759 | [
"Apache-2.0"
] | permissive | google/omaha | 1a1c7f985388c0acedb05e9cee4e208de900f41c | 8fa5322c5c35d0cede28f4c32454cb0285490b6d | refs/heads/main | 2023-08-30T21:01:52.783638 | 2023-05-31T23:48:27 | 2023-05-31T23:48:27 | 38,279,227 | 2,705 | 805 | Apache-2.0 | 2023-09-07T17:36:59 | 2015-06-30T00:49:42 | C++ | UTF-8 | C++ | false | false | 1,636 | h | app_command_ping_delegate.h | // Copyright 2013 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
fd40ff3c861bf7b5678be5ac7ac0b1c91ca56bc0 | 32dc5ad51ec66babff7bd6861b2c8a050f44319c | /public/NvPhysXFramework.h | bd4ea5663e8fa471096e159ea809b5cc35e41fc9 | [] | no_license | jratcliff63367/physxframework | 2a1ab184d6dd43ce33b3518e98a5ffe17d889293 | e8dcc9913ef9f87c21eb71e981bbe58b6c3e90ad | refs/heads/master | 2021-01-19T07:43:02.070631 | 2017-12-04T21:33:34 | 2017-12-04T21:33:34 | 100,644,906 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,208 | h | NvPhysXFramework.h | #ifndef NV_PHYSX_FRAMEWORK_H
#define NV_PHYSX_FRAMEWORK_H
// The PhysX framework is a DLL which provides a very simple interface to perform
// physics simulations using the PhysX SDK. It also contains bindings to do debug
// visualizations of the current simulation using the NvRenderDebug remote visualization
// API ... |
fb525f3c826345f4d66437f69e1659896785520b | 011006ca59cfe75fb3dd84a50b6c0ef6427a7dc3 | /codeforces/global2019-4/e.cpp | 78066e7eabf2975b74e5222688711554786ece0b | [] | no_license | ay2306/Competitive-Programming | 34f35367de2e8623da0006135cf21ba6aec34049 | 8cc9d953b09212ab32b513acf874dba4fa1d2848 | refs/heads/master | 2021-06-26T16:46:28.179504 | 2021-01-24T15:32:57 | 2021-01-24T15:32:57 | 205,185,905 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 2,509 | cpp | e.cpp | #include <bits/stdc++.h>
//For ordered_set
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define MOD 1000000007
#define test int t; cin>>t; while(t--)
#define init(arr,val) memset(arr,val,sizeof(arr))
#define loop(i,a,b) for(int i=a;i<b;i++)
#define loopr(i,a,b) for(int i=a;i>=b;i--)
#de... |
faa3f6774d7c3b03fe4f8d8eb568fbcdc5cda295 | 155cd3daaf02228f3e2dacef7d0ae3297ec51991 | /source/jaccardaprox.h | 5efa5b02f7146b271766c7507da9bc2130dac0ed | [] | no_license | adriacabeza/Document-similarity-detection-using-hashing | fc0893ca4c994bedf1ee4606c15c9b6f0b89eb4f | 2069106aa6b348a221fdfcca101a2db2c8fb7dcc | refs/heads/master | 2020-04-08T16:36:33.897545 | 2018-12-27T12:05:53 | 2018-12-27T12:05:53 | 159,526,258 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,258 | h | jaccardaprox.h | #ifndef JACCARDAPPROX_H
#define JACCARDAPPROX_H
#include <iostream>
#include <fstream>
#include <cctype>
#include <string>
#include <vector>
#include <set>
#include <cmath>
#include <map>
#include <climits>
#include "kshingles.h"
#include "ModularHash.h"
#include "MultiplicativeHash.h"
#include "MurmurHash3.h"
using na... |
3ab8bb32c145fcbbfe73d0679a307c2e111665c7 | 61694d7b7f950638f82ec97d67994a7dafcbf788 | /src/Variables/MatrixVector.h | ef4670c8f042cefb0488eeacc267a6fac9fdb3bb | [] | no_license | danny-wilson/gcat-project | 5fbe72b2a52568ff7b8d9f4facaeeb84d8edd185 | d384fd001d914fc78fd816cd2d203e819c8be284 | refs/heads/master | 2021-05-04T11:18:05.794997 | 2020-01-29T13:54:12 | 2020-01-29T13:54:12 | 46,374,958 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,116 | h | MatrixVector.h | /* Copyright 2012 Daniel Wilson.
*
* MatrixVector.h
* Part of the gcat-core library.
*
* The gcat-core library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the Licens... |
40fa4ad92b64833b336805743108d04da17ecf99 | e5dc9d8142d807b87e6a7980670ecba28e4a9523 | /KsEngine/timer/KsTimer.h | 8b60726ba4c3e551973af654c9c4977b2cb28904 | [
"MIT"
] | permissive | a567w/AriaGame | e2c692e32d0afcf3e7ec7a676456e4d4a35c19d7 | bf90f79cecd5e27e221fa0e791a784d9be5ef06f | refs/heads/master | 2020-07-01T05:03:26.856425 | 2019-11-05T13:45:56 | 2019-11-05T13:45:56 | 201,052,112 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 3,818 | h | KsTimer.h | /************************************************************************************************/
/**
* @file KsTimer.h
* @brief タイマー
* @author Tsukasa Kato
* @data 2005/06/27
* @since 2005/06/27
* @version 1.0.0
*/
/****************************************************************************************... |
37aacfcd0fb423ebfc940f773e6ae1f6e4a20a7e | 9bf6eb918c47c1cb51c3d2f2fcb94c041be14dcd | /include/extras/support.hpp | 1db87098cdd92c6647b513d08f05c797fecd7b18 | [
"MIT"
] | permissive | dmgblockchain/extras | e3fb17a50af0b4b0349ae8648407bc4a38a1df49 | 4512eebbe9d9982372df5ba3ea48183c0f072bbc | refs/heads/main | 2023-07-13T05:30:08.439924 | 2021-08-18T18:53:13 | 2021-08-18T18:53:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 504 | hpp | support.hpp | #ifndef _EXTRA_SUPPORT_HPP
#define _EXTRA_SUPPORT_HPP
/**
* @file support.hpp
* @author Perry Anderson (perryanderson.com)
* @brief Adds general support for C++ applications
* @version 1.2.1
* @date 2021-07-25
*
* @copyright Copyright (c) 2021 Perry Anderson,
* All Rights Reserved, MIT License.
*
*/
#include... |
925744e9aa1174b1c167c89c8f96ee333ec1c885 | 89fa0c5f871881d0a2dc08faeb5697523604aa11 | /TongNghichDaoCacSoTu1DenN.cpp | b696f96a232d8faefd161f8125867012171d884d | [] | no_license | phuongpham145/phuongpham | 1908a38d8decf551cd42baede61e311fb140d916 | 6df01a9c906f198b08c9865b7091c4083f82267c | refs/heads/master | 2020-07-31T05:15:27.263830 | 2019-09-26T02:14:33 | 2019-09-26T02:14:33 | 210,496,329 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 257 | cpp | TongNghichDaoCacSoTu1DenN.cpp | #include<iostream>
using namespace std ;
int main()
{
int i , n ;
float s=0 ;
cout<<"Nhap so nguyen N = " ;
cin>>n ;
for(i=1;i<=n;i++) s+=1./i ;
cout<<"Tong Nghich Dao Cac So Tu 1 Den "<<n<<" = "<<s<<endl;
system("pause");
}
|
39ed7c593b28d3868f3297f61c06653fb823d697 | 583d603f14c600266d0a9ba375b2ab1faacc30f8 | /PlanetFramework/Context.h | 7c47d59d57e5493ffcfeec8d5a525cec78a54a22 | [
"MIT"
] | permissive | DucRP/PlanetRenderer | fac47abc3c7eca6625a0bdd2aa0def75405584b0 | 3bfa3053925a24eaa30497f734d471c4525fd2b1 | refs/heads/master | 2023-01-21T12:14:48.129943 | 2020-12-03T11:01:26 | 2020-12-03T11:01:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 490 | h | Context.h | #pragma once
#include "Singleton.h"
#include "Time.h"
#include "Scene.h"
class Camera;
class ContextObjects
{
public:
ContextObjects()
{}
~ContextObjects()
{
}
Time* pTime;
Camera* pCamera;
Scene* pScene;
};
struct Context : public Singleton<Context>, public ContextObjects
{
public:
Context():ContextObject... |
4ccf899e614b8949223e0e40be49749aa55f8c2d | 5d098febee87ed2632758bdd90a0d5dc59a12658 | /src/objects/abstract_classes/View.h | 466020c2a895df9089cd3ee9e16cfdb3c5de3e17 | [] | no_license | manomarichal/space-invaders | 62f731512a46b389c0eacc6bd4ba63b79d579f44 | bbb56cfeeb0bf2244c08351ac6e8ba1b595bc050 | refs/heads/master | 2022-03-29T19:40:50.700971 | 2020-01-17T16:52:22 | 2020-01-17T16:52:22 | 222,239,806 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,038 | h | View.h | /** \file View.h
* project: space_invaders
* author: Mano Marichal
* date: 01.12.19
*/
#ifndef SPACE_INVADERS_VIEW_H
#define SPACE_INVADERS_VIEW_H
#include <SFML/Graphics.hpp>
#include "../../util/Transformation.h"
#include "./Entity.h"
namespace objects {
class View : public Observer
{
protected:
View... |
9e3968a10fb74813e9d768be6de59613f14af6db | 8063cf168bd0c010c8762fd363e4675c81890e5a | /src/meshrenderable.hpp | e847c25950d904b4f6124535e718a6bb9fdd3753 | [
"MIT"
] | permissive | DeanoC/render_meshmodrender | 9f89d518fc5dd6eccd6bbf979ed26668aac82a2a | c048e84009174cd358af156160aa94c005286f54 | refs/heads/master | 2020-08-28T15:42:29.008248 | 2019-11-24T20:49:44 | 2019-11-24T20:49:44 | 217,743,721 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,269 | hpp | meshrenderable.hpp | #pragma once
#include "render_basics/api.h"
#include "al2o3_cadt/vector.h"
#include "render_meshmod/mesh.h"
#include "render_meshmodrender/render.h"
#include "al2o3_cmath/vector.h"
#include "al2o3_cmath/matrix.h"
#include "render_basics/view.h"
struct MeshMod_MeshRenderable {
MeshMod_MeshHandle MMMesh;
MeshModRende... |
6519d1007427b9009a610c18206e9e612347c003 | a0fa63da6e31a7fa889b2f143622bf6771862ddd | /arduino_pid_controller/examples/SharpIRSensor_example/SharpIRSensor_example.ino | 8b05b587f6246f82bd6292b5278c963c7360e2b3 | [
"MIT"
] | permissive | NIAGroup/2020_Arduino_Pi_IOT_Project | 9034dad2311b1fac0e0a8dc21ddc84379dc000f4 | c414445b54691b73bb9e38296070ec4c66e91b5f | refs/heads/master | 2023-08-16T23:30:20.823491 | 2021-02-11T17:28:28 | 2021-02-11T17:28:28 | 277,882,308 | 1 | 8 | MIT | 2021-02-11T17:28:29 | 2020-07-07T17:35:30 | Python | UTF-8 | C++ | false | false | 1,224 | ino | SharpIRSensor_example.ino | #include <SharpIR.h>
SharpIR SharpIR( SharpIR::GP2Y0A21YK0F, A0 );
unsigned long eventInterval = 250;
unsigned int previousDistance;
unsigned int currentDistance;
unsigned long previousTime = 0;
unsigned long currentTime = millis();
String startMsg = "################################\n" \
" run... |
20b6d66f1a586a2b51fb16c754c59114ba6d2d9f | 7af96d00e1811bb9105a5f7bd037d962d073022a | /src/custom/render/simplerenderer.h | d25a8e6b1c2b710b6287e879d7a1d3683837f54f | [] | no_license | feather-light/pathtracer | 236704bb0627d2fe73b55cb9f19ea75d9d87d270 | b075fcf6369ed2dbe7800b658f5bd2f91f171ccb | refs/heads/master | 2020-09-14T22:37:26.666807 | 2019-11-28T21:01:12 | 2019-11-28T21:01:12 | 223,280,514 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 743 | h | simplerenderer.h | /*
* SimpleRenderer is a basic implementation of IRenderer, but it is likely,
* that you do not need anything more complicated, than this.
*
*/
#pragma once
#include "../../core.h"
namespace custom::render
{
class SimpleRenderer : public core::render::IRenderer
{
public:
virtual void process(... |
4863d3d2dfb2523211ef0a5f7a5636c689b537b2 | 9f50ed667c0096ec44621c0bf1d96ed6269bbc2d | /NFA/include/NFA.h | f99b8c707ad0fc4fe1b89c587686e8ebb100f99a | [] | no_license | Javier-Alonso/Code | 6bb5ff7bb11501bfa7f73b9467422d8dafb3a269 | ea179c722ba86105e0af8615c0fa291519f3dedf | refs/heads/master | 2020-04-15T11:07:05.487743 | 2019-11-05T08:44:24 | 2019-11-05T08:44:24 | 164,614,770 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,706 | h | NFA.h | /**
* @class NFA
*
*
* @brief Automata Finito No Determinista
*
* @details Esta clase simula un automata finito no determinista con o
* sin epsilon-transiciones. Soporta automatas no definidos
* completamente. Los datos se cargan desde fichero con un
* formato definido previamente.
*
* @note Los bucles infit... |
71c89a0bdbcf1e8d830b532cc5e262debe77be7e | 6c27a69454d2f708a4b38dfe2b0983efcda8d6da | /main.cpp | ba4de9e9bc2a51d7bf3e7a430d263fb6cb8f4ff0 | [] | no_license | aliakbarRashidi/QtMousePressTimer | f018e5b73b451a7bbba8e440bcb91f057a6eef44 | aa88cd185a861bc0a2b653f10e3a5323cc9f6bd6 | refs/heads/master | 2020-04-26T22:20:30.151795 | 2017-08-22T08:22:32 | 2017-08-22T08:22:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 218 | cpp | main.cpp | #include "widget.h"
#include "myQApplication.h"
int main(int argc, char *argv[])
{
myQApplication a(argc, argv);
Widget w;
w.show();
a.setUpdate(&w);//connect signal and slot
return a.exec();
}
|
d81e1c42bb4515369b399feb0d1fc977bd04cb77 | c7468aedc176931b46f5b97e1d2ec4c372bf50dd | /src/server/scripts/EasternKingdoms/ZulGurub/boss_renataki.cpp | b0c14fc81c1de797f0970f3908c98bfe057b0054 | [] | no_license | planee/new | 68069f16dcb49714a16c2077d22e0f563c600e59 | d6afe0cd87c5e8423855b909682271ad075d6479 | refs/heads/master | 2021-05-10T13:54:52.148537 | 2016-07-07T12:51:07 | 2016-07-07T12:51:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,630 | cpp | boss_renataki.cpp | /*
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software ... |
16e4d3bbe23d16e15b9af042de1bd520d01135b8 | 387dea857ad82228d4fcf71373c3c5e3a349b95b | /pracs/HPC/a2add.cpp | 0b7f647524bde3941b1845e7a4763a594cd8d01c | [] | no_license | leenabhandari/pracs | c306140103cd80e852921c7132fc0cb98e42bd54 | eb7c75a4f0a917da03a6fdfc6f692cabad26978d | refs/heads/master | 2020-03-08T19:48:14.345291 | 2019-04-12T19:37:12 | 2019-04-12T19:37:12 | 128,364,484 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 397 | cpp | a2add.cpp | #include<stdio.h>
#include<omp.h>
#include<stdlib.h>
int main()
{
int a[100],b[100],c[100];
omp_set_num_threads(4);
#pragma omp parallel for
for(int i=0;i<100;i++)
{
a[i]=rand()%1000;
b[i]=rand()%1000;
}
#pragma omp parallel for
for(int i=0;i<100;i++)
{
c[i]=a[i]+b[i];
printf("Thread id:%d, for i=%d... |
801e447539c8122607c9a8f1ba988c9865a0b199 | 13a8237cf5b048c98b60f11ba9a5a465c86fbb99 | /rzs5/src/main.cpp | 83851c3d2a727f6c831349d43bfc6c94e39cb2ff | [] | no_license | Alexander-Wilms/STM3240G-EVAL | b7c2f6f6902cc696a9cfc34b35f0f9fcb36144e5 | 70b5e2eaa7e22dee07e5721abb977619463b9f10 | refs/heads/master | 2020-04-12T10:23:30.424131 | 2016-01-26T00:27:56 | 2016-01-26T00:27:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,241 | cpp | main.cpp | /**
* @file main.cpp
* @brief system start code
* @author Dr. Klaus Schaefer schaefer@eit.h-da.de
* @mainpage
* Sample Projekt for the STM3240G-Eval Evaluation-Board
*/
#include <string.h>
#include "stm324xg_eval.h"
#include "stm324xg_eval_io.h"
#include "stm324xg_eval_ts.h"
#include "stm324xg_... |
01eace55497a5756b3083d3c1a62a2940645e236 | 97356bf71b8630917e59c7ca23e56a6ce7a8e32a | /src/lcov_src/lcov/LCoVFunc.cpp | 8b3951a6ebbceecbd874a003e54fd3ef1feea2f2 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | okamepowder/BSch3V | 06323c2da5c85f04141e66787a67015434d6775f | 953d57aba1585ac9d9c09898309e2741a33018cd | refs/heads/master | 2020-07-11T08:07:38.986021 | 2019-09-05T12:01:28 | 2019-09-05T12:01:28 | 204,484,961 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,823 | cpp | LCoVFunc.cpp | #include "StdAfx.h"
#include ".\lcovfunc.h"
#include "LCoV.h"
#include "pintype.h"
//PinPropsモードレスダイアログのグリッドで、ピンタイプを描画するのに使う。
//当初、グリッドで使うピンタイプドロップダウンリストをオーナードロウで
//実装しようとしたため、このように独立した描画クラスにした。
void LCoVFunc::DrawResourceBMP(CDC* pDC,int x,int y,int cx,int cy,UINT id,int sx,int sy)
{
CBitmap bmp;
bmp... |
dba81845ddef0369cbbe2687f88152fdc129d7cc | 5cb84aa701daa186338ef46474fa60ce4c37d1c4 | /Liquidacion-de-sueldo-main/Liquidacion-de-sueldo-main/Liquidacion-de-sueldo-main/Liquidación de Sueldos/clsCargo.h | f33fce94b04d7b6000593d6b8f4e739dcedb2e3d | [] | no_license | FranciscoCrestanello/Liquidacion-de-sueldo | a8258f51b116ad46b4435aeb73a44a3e42e04c07 | a44413e39e74259a103c8a6ef3053dc05dc7b970 | refs/heads/main | 2023-06-24T00:59:58.459971 | 2021-07-22T12:09:14 | 2021-07-22T12:09:14 | 376,625,458 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,548 | h | clsCargo.h | #ifndef CLSCARGO_H_INCLUDED
#define CLSCARGO_H_INCLUDED
#include "rlutilFunciones.h"
int contadorDeCargos();
void cargarCadena(char *pal, int tam);
class Cargo{
private:
int cargo;
float sBasico,antiguedad,asistencia,puntualidad,plusFeriado;
char nombreCargo[25];
public:
... |
3ccb6b854b77ac5b62a8bedfb1c2aa4d66d5aaa4 | 05da79c58287fd9cc0ab30627b268d262a92832e | /Source/DaishoProject/Private/Animations/Character/DP_ANSComboEnable.cpp | 81eb18430be59addc58a3f2b491f6e53044a548b | [] | no_license | gomezjc/Daisho | e898d4b32e458a7d825f1bed783947260432ae68 | 283f056b496e345e752b13ebdbabab1dc33b65d4 | refs/heads/master | 2022-08-23T13:19:56.280519 | 2020-05-20T04:04:32 | 2020-05-20T04:04:32 | 247,565,655 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 934 | cpp | DP_ANSComboEnable.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "Public/Animations/Character/DP_ANSComboEnable.h"
#include "DaishoProjectCharacter.h"
void UDP_ANSComboEnable::NotifyBegin(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation, float TotalDuration)
{
AActor* CharacterA... |
a0b3adb57ec72f21823506cccc46659251a75c46 | 010279e2ba272d09e9d2c4e903722e5faba2cf7a | /library/cpp/testing/common/env.h | 6cd840442f86e38180b5117935993b4959a4195c | [
"Apache-2.0"
] | permissive | catboost/catboost | 854c1a1f439a96f1ae6b48e16644be20aa04dba2 | f5042e35b945aded77b23470ead62d7eacefde92 | refs/heads/master | 2023-09-01T12:14:14.174108 | 2023-09-01T10:01:01 | 2023-09-01T10:22:12 | 97,556,265 | 8,012 | 1,425 | Apache-2.0 | 2023-09-11T03:32:32 | 2017-07-18T05:29:04 | Python | UTF-8 | C++ | false | false | 3,127 | h | env.h | #pragma once
#include <unordered_map>
#include <util/folder/path.h>
#include <util/generic/string.h>
#include <util/generic/strbuf.h>
#include <util/system/src_location.h>
// @brief return full path to arcadia root
TString ArcadiaSourceRoot();
// @brief return full path for file or folder specified by known source ... |
00f18459a31f065784ac2f02e26f8185ba03d288 | ed328cf4a9fced51c65bb8ed119c0e0ab1757155 | /FacedetectionPlugin/facedetectionplugin.cpp | e07af5b34040349711b6258a05a4130ee2fd573b | [] | no_license | charithwije/nooba-plugin-face_detection | ab209740e1162b4364286fc2d80f63a321cdcb86 | 65e9f20367ba65edc7f39987b44494e76b4fa1c7 | refs/heads/master | 2020-12-29T18:52:47.477094 | 2013-12-07T05:05:31 | 2013-12-07T05:05:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,144 | cpp | facedetectionplugin.cpp |
/*@file facedetectionplugin.cpp
@author Charith Wijenayake <charithwije21@gmail.com>
@section LICENSE
Face Detection PLugin API source file
Copyright (C) 2013 Developed by Team Nooba
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License... |
5392ca1cac1ef95efbd768f2dca915fda749e755 | a8017b1b66b6f392cb7e67d479e9a12bbedc5aaf | /arduino/ldrjobby2/applet/ldrjobby2.cpp | 41ab1643319061bc5b8afcd8302a8114281ffe6b | [] | no_license | C5202494/idac | bcf0bec7b8f9e3474dd50172d8ff6d7f7839bb1a | 9ab0a6491934011dbd7b911ff3dbe956655659e9 | refs/heads/master | 2020-12-28T06:58:53.141089 | 2010-05-03T12:15:34 | 2010-05-03T12:15:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,512 | cpp | ldrjobby2.cpp | #include "WProgram.h"
void setup();
void loop();
void setup();
void loop();
const int pin1 = 2; // connected to the base of the transistor
const int pin2 = 3;
void setup() {
// set the transistor pin as output:
pinMode(pin1, OUTPUT);
pinMode(pin2, OUTPUT);
}
void loop() {
digitalWrite(pin1, HIGH);... |
007928c2fbf43b617710440edb8630551ce728ce | 3f6b5768f50a4a31486c9392f08b10dc80218a29 | /source/countdown/TrieNode.cpp | 1538397adab1917e457bf9ecd8a641bafa6c503e | [] | no_license | Zmote/CountdownWordSearch | bea47a095500562e1efb712a2db6a708645df358 | 4cd1b4f7b843fb134048352ee454c30afdf3188e | refs/heads/master | 2020-04-10T11:35:32.766389 | 2018-12-14T03:33:34 | 2018-12-14T03:33:34 | 160,998,001 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,587 | cpp | TrieNode.cpp | #include <algorithm>
#include "../../headers/countdown/TrieNode.h"
namespace zmote::countdown {
TrieNode::TrieNode() : _value{'\0'} {}
TrieNode::TrieNode(char value) : _value{value} {}
auto TrieNode::find_element(char letter) {
return std::find_if(_children.begin(), _children.end(),
... |
287db7576d4aa2914eae405ec043afa6707d331d | 4fa91fdf0d32424f676c267a5e1479b60c8c5650 | /WebSocketServer/Code/WebSocketServer/Common/NetPackage/EventPackage.h | 13a32c3661275d4f54a61d80bc645df3bcef2456 | [] | no_license | baijiudao/WebSockerServer | 4bf944c43cd3483a35233e89dffbaad31003146d | ba925af65465ee46254c1d5165dac4385db287c9 | refs/heads/master | 2021-08-24T04:16:03.419524 | 2017-12-08T01:38:15 | 2017-12-08T01:38:15 | 113,518,645 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,084 | h | EventPackage.h | //------------------------------------------------------------------------------
// 创建日期:2017-09-12 10:30:44
// 文件描述:事件相关的数据包的解析/组建
//------------------------------------------------------------------------------
#ifndef _EVENT_PACKAGE_H_
#define _EVENT_PACKAGE_H_
#include "PackageBase.h"
class CEventPackage : public... |
6cd850fe99192e25cfa8866827f94791eae4024c | f96c81317540b81ba0a23f314dae26ff0c0dd86d | /QSEETrustlet.h | 0501f1b39b1a6a1583808d586586cee958e2fcc6 | [
"Apache-2.0"
] | permissive | sonyxperiadev/vendor-sony-oss-fingerprint | 75ee36ee1f6198fff896fe6ab9b04bea2015e415 | 89bdcd1fef6ab3f1611852f5754733e339a8095e | refs/heads/master | 2023-09-01T01:48:59.805525 | 2023-08-28T01:54:31 | 2023-08-28T07:14:58 | 94,743,117 | 18 | 40 | null | 2023-08-28T07:15:00 | 2017-06-19T06:21:09 | C++ | UTF-8 | C++ | false | false | 2,264 | h | QSEETrustlet.h | #pragma once
#include "QSEEComAPI.h"
#include <inttypes.h>
#include <mutex>
class QSEETrustlet {
public:
QSEETrustlet(const char *app_name, uint32_t shared_buffer_size, const char *path = "/vendor/firmware_mnt/image");
~QSEETrustlet();
// QSEETrustlet(const QSEETrustlet &) = delete;
// Move cons... |
d83205c1cd0fbca2dc1d63eb56fd3283352202fa | eab1005a66e019db01fe5d1dfcb18d8fc3763918 | /source/Shuffle.cpp | a171620ca71a078bc7889534aef68f0e47392c82 | [
"MIT"
] | permissive | HaikuArchives/Tipster | 27be1fc9be8be0fbe9980fbff516bd49f2ad7e01 | 78b011be0e1dac5e225f5d5a6dbe377b11a21979 | refs/heads/master | 2021-08-29T11:18:13.338717 | 2021-08-03T11:53:08 | 2021-08-03T11:53:08 | 48,438,439 | 2 | 13 | MIT | 2020-12-21T18:27:38 | 2015-12-22T15:08:20 | C++ | UTF-8 | C++ | false | false | 521 | cpp | Shuffle.cpp | /*
* Copyright 2017 Akshay Agarwal <agarwal.akshay.akshay8@gmail.com>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "Shuffle.h"
// don't use random_shuffle deprecated in the future...
void
Randomize(std::vector<int> &arr)
{
srand ( time(NULL) );
for(int i = arr.size() - 1;... |
81969488689b8f24f94dcc87599d2786f4bef69f | 6204fae696932f831d18b77bc1ebcc2cb1bff1df | /project-euler/volume08/371.cc | a933dd8e9debc12abbe561731a857fd402bc1a97 | [] | no_license | Pentagon03/competitive-programming | 3e725bab66ba75f5e8c8489bada41c5ee51fed91 | 8ca7cec0ff7bb7c096d4b8d7100840cef6ae0c99 | refs/heads/master | 2022-11-15T15:36:18.595463 | 2020-07-02T15:27:37 | 2020-07-02T15:27:37 | 287,737,119 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 337 | cc | 371.cc | #include <bits/stdc++.h>
double run(int n) {
double E0 = 0, E1 = 0;
int t = n / 2 - 1;
for (int i = t; i >= 0; --i) {
E1 = (2 * (t - i) * E1 + n) / (n - 1 - i);
E0 = (2 * (t - i) * E0 + E1 + n) / (n - 1 - i);
}
return E0;
}
int main() {
std::cout.precision(20);
std::cout << run(1000) << std::end... |
4004cd93c3072d4c14c0d2706e5fb33c3cd3cd86 | 0b4709476170a8395b62df0f74be51a9b601d36c | /consistent_hash_map.h | abfd29f4b238509e3b20604e69a1d209dc6b78c3 | [] | no_license | SunshineZzzz/consistent_hash | 70c758cce3e89ec4389b291dfa22bc6173885490 | 3ea6197a4e5c1b75a58353984fcba415802f580d | refs/heads/master | 2021-01-26T18:29:42.607493 | 2020-02-27T10:29:47 | 2020-02-27T10:29:47 | 243,461,203 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,078 | h | consistent_hash_map.h | // 封装对一致性哈希的操作
#ifndef __CONSISTENT_HASH_H__
#define __CONSISTENT_HASH_H__
#include <string.h>
#include <assert.h>
#include <stdint.h>
#include <string>
#include <list>
#include <map>
#include <algorithm>
#include "city.h"
#ifdef _WIN32
#pragma warning(disable:4996)
#endif
// 虚拟节点数组大小
#define temp... |
7872cd9f2e0dd90aeeb1f64f869021426e7fa65b | 32624964ac9a5ccac8a0b1828bad8e2e8d8733b4 | /模拟/八数码.cpp | d2beb6eb710724d6f496bf642d0f5a3f06d40f9a | [] | no_license | lanmaoac/acm_icpc | 6a8776765bcdae2b066c1907722ebdf01c41a007 | 092b3dbcdc538430e7ecd49bc03e639effbde836 | refs/heads/master | 2016-09-03T07:04:11.756774 | 2014-06-18T10:33:58 | 2014-06-18T10:33:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 204 | cpp | 八数码.cpp | #include <stdio.h>
#include <algorithm>
#include <cmath>
#include <iostream>
#include <string.h>
#include <vector>
#include <utility>
#include <ctype.h>
using namespace std;
int main()
{
return 0;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.