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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4b7c47b161ced906733f4e6ecbb8836f4db5af9a | 7244ba41a52f0d33d36d793e9ef52429ff8198f0 | /src/aimp_dotnet/AimpDotnetPlugin.cpp | 8973bd707f732f6d69a8c0cb4414f2a7de1f4bc9 | [
"Apache-2.0"
] | permissive | strogo/aimp_dotnet | 556af01ec289fe02da0525d0a0f7889c9942fcee | 896869d4f1a22e1041e5b426f26ad2e60fa15adc | refs/heads/master | 2023-02-21T07:05:49.124306 | 2021-01-21T08:45:39 | 2021-01-21T08:45:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,285 | cpp | AimpDotnetPlugin.cpp | // ----------------------------------------------------
// AIMP DotNet SDK
// Copyright (c) 2014 - 2020 Evgeniy Bogdan
// https://github.com/martin211/aimp_dotnet
// Mail: mail4evgeniy@gmail.com
// ----------------------------------------------------
#include "stdafx.h"
#include "DotNetPlugin.h"
System::Reflection::... |
c58b374d919195438e084199b2c83965c014abd8 | ff1f2cd5782dc0f95ccc99b2c056993201734891 | /19.simpleProgramUsingLoopTheNewBostonC++/main.cpp | 2616b00214f6a44666f4b85fe04881d2f78eaecc | [] | no_license | atindall728/TheNewBoston.CPlusPlus_RunningPrograms1-40WithNotes | 3eb93ec4807aa46561cd5e238760928333aa49a7 | 2597de10f307fe553c793fc8a13423c5cfb7b4aa | refs/heads/master | 2021-01-18T14:38:36.540205 | 2015-10-29T22:58:24 | 2015-10-29T22:58:24 | 38,638,973 | 1 | 2 | null | 2015-07-24T04:42:03 | 2015-07-06T18:45:33 | C++ | UTF-8 | C++ | false | false | 1,605 | cpp | main.cpp | // The New Boston
// Simple program using a loop
//*Programing Tip! Break your program into tiny segments and test your program/function(s) as you go. This way you don't have
//to go back through a bunch of code. Think of it like saving a file every five minutes in reverse. Great feedback and you
// get to see what... |
d3c444c9ceea6fd7a80183596c8ca66a6fcfb67e | 5dcfd99a4663893c95b27d0889c08658204b65c4 | /Paquete.h | 1a8333d56f69dc9b1ee3685f715295e1048a0867 | [] | no_license | HectorGuerreroDiaz/ListaSimplementeEnlazada_SEM_ALG | 567abc7f92b2e5df95648eb64778f880aa95711f | 661b27d98b447f0ff453cfdee71fb301a6c0c96b | refs/heads/master | 2022-12-17T07:27:32.291169 | 2020-09-14T02:25:59 | 2020-09-14T02:25:59 | 295,044,323 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 805 | h | Paquete.h | #ifndef ALUMNO_H_INCLUDED
#define ALUMNO_H_INCLUDED
#include <string>
#include <iostream>
using namespace std;
class Paquete
{
private:
string id;
string origin;
string destination;
string weight;
public:
Paquete();
~Paquete();
void setId(const string&... |
00b0311b2ca139939edc6e16d89480b2b8bc0ee2 | 61a7189e2f56434ac704302d0cf56bb3e5d71f60 | /SSTP_Client.ino | 079c5aeab5d96d2ccb1b1b9d91c1ed035c1cea20 | [
"MIT"
] | permissive | sun89/SSTP_client | cac94c59d949797d0212c5a2513b7e593fd5d519 | 8b6620a51c56e0c0228dd18e6bc9c60860079bc2 | refs/heads/main | 2023-02-09T03:29:41.231992 | 2021-01-08T07:49:46 | 2021-01-08T07:49:46 | 326,619,239 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,951 | ino | SSTP_Client.ino | /*
This sketch establishes a TCP connection to a "quote of the day" service.
It sends a "hello" message, and then prints received data.
*/
#include <ESP8266WiFi.h>
#define DEBUG_ESP_SSL 1
#define DEBUG_ESP_PORT Serial
#include <WiFiClientSecureBearSSL.h>
#ifndef STASSID
#define STASSID "Solution Team"
#defin... |
228e660dffac567d9a40366bfdddf1042e56f9ab | 3c34d9d86762073aab109ca892465bf577583114 | /src/main.cpp | eea4381ad16049e2dce523aec8b37151613ab2f7 | [] | no_license | mciver24/CS1C---Class-Project-Warehouse | 80c0df461505eba5845daf669b6f466934ec085a | 37e940f6886fdd6e911fc5dd48e086dec7ff9542 | refs/heads/master | 2021-01-21T01:05:42.861923 | 2015-03-17T18:16:24 | 2015-03-17T18:16:24 | 31,742,112 | 0 | 1 | null | 2015-03-12T22:53:18 | 2015-03-05T23:17:24 | C++ | UTF-8 | C++ | false | false | 60 | cpp | main.cpp |
//BLANK MAIN FILE
//TODO FIX IT.
int main()
{
return 0;
}
|
616a60029fea5a2a5dd103ec5ccae714e06a3c9f | 72843da20942b6075f83d31d737957f86191b01e | /Review/Optmize/GD.cpp | 87ae08ad295d19e346c83b297b741d212b39a9bf | [] | no_license | dtcxzyw/OI-Source | cb641f2c7e203a32073f4cae98e690f1cad3dc22 | aa041e2af7e1546e8c7ac5a960a27a3489cfcff8 | refs/heads/master | 2021-12-17T17:52:05.043490 | 2021-12-17T12:52:52 | 2021-12-17T12:52:52 | 140,553,277 | 43 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 508 | cpp | GD.cpp | #include <cmath>
#include <cstdio>
typedef double FT;
const FT p = 1e-12, g = 1e-3;
const int maxStep = 1 << 20;
FT f(FT x) {
return (x - 3.0) * x * x * x + 2.0;
}
FT df(FT x) {
return (4.0 * x - 9.0) * x * x;
}
int main() {
FT cur = 6.0;
int step;
for(step = 0; step < maxStep; ++step) {
FT ... |
96d37fb6bcdca05d859611c6aa626ac5edb84e23 | 964c666b83bdf54a4369db55a1778a39fbdddeb2 | /Main.cpp | ea9c8fcb293155cffbcf043190d7a061669e93ce | [] | no_license | JohnZavisa/Graph-and-Tree-Algorithms | 95aaa4f71812da9c2dba34e042ab4e501b942bc0 | 2353730059030117eb3b5b0e660578f00ed49bdf | refs/heads/master | 2021-01-01T06:02:21.454441 | 2017-07-15T19:39:27 | 2017-07-15T19:39:27 | 97,337,818 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,177 | cpp | Main.cpp | /*
Programmer: John Zavisa
Description: This program uses maps and graphs to build graph, add node, add edge, BFS, DFS, and Shortest Path
*/
#include "Graph.h"
#include <string>
#include <iostream>
using namespace std;
int main()
{
Graph Graph1; //Create object of Graph class
int count = 0;
//Ad... |
557ab36df556d2607ca59b2e52a4ef0f799b1d6d | 5c820f5199b439c8da7647d6ee948012dcaca41c | /lab8_9/lab8_9/lab8_9.cpp | 501d61cd9ab774c759c5688efd20cdbfc4606c6a | [
"MIT"
] | permissive | wjingzhe/Jingz_C_lab | db9a92ce347c053ec85394082d605365dbbc1ea7 | 4bcf77655621ea1f96f64af47d2d8a7614df8aae | refs/heads/master | 2020-03-30T05:46:23.071523 | 2014-12-26T09:06:51 | 2014-12-26T09:06:51 | 28,505,199 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 639 | cpp | lab8_9.cpp | // lab8_9.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
#include<stdio.h>
int static i=0;
void main()
{
void hanoi(int n,char one,char two,char three);
int m;
printf("input the number of diskes:");
scanf("%d",&m);
printf("The step of moving %d diskes:\n",m);
ha... |
858b4af10898921450161d8a854a118158e378dc | bdec684af41a89175c2dffe95dda9ab565913118 | /CNP-digger/SAXErrorHandler.h | 55c97a13357bae25c2e08eb7c399fb50e68213d0 | [] | no_license | laurdimana/cnp-digger | 3608afd24b5e8d2cffefd5c9766696a3ea5ea506 | f15c89b0734a803ddaa7956abe501a2324070399 | refs/heads/master | 2020-05-04T14:37:10.774333 | 2011-08-21T14:40:18 | 2011-08-21T14:40:18 | 33,174,630 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,359 | h | SAXErrorHandler.h | #pragma once
//#include <MsXml2.h>
class SAXErrorHandler : public ISAXErrorHandler
{
long m_RefCount;
public:
SAXErrorHandler() : m_RefCount( 0 ) {}
virtual ~SAXErrorHandler() {}
long __stdcall QueryInterface( const struct _GUID &riid, void **ppObj )
{
if ( riid == IID_IUnknown )
{
... |
0e8de382cf26e05da84f4c6a6dbb86e4563ad60a | c5de6ecd2754e391c136e80e8e038e23f4a4ae2f | /LearnDesign/Observer/subject.h | b35828889a43151aa3d5d4241656202bb39aff4e | [] | no_license | wangyun123/Learn | 8f0a4862d4156264e3132c1374c655358c4e52cb | 753ac37aae0de5207e345f10123b7155a57f537e | refs/heads/master | 2021-01-21T19:07:25.619395 | 2017-09-14T14:23:26 | 2017-09-14T14:23:26 | 92,119,451 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 265 | h | subject.h | #ifndef _SUBJECT_H_
#define _SUBJECT_H_
class Observer;
class Subject
{
public:
Subject() {};
virtual ~Subject() {}
virtual void registerObject(Observer *)=0;
virtual void removeObject(Observer *)=0;
virtual void notify() const=0;
};
#endif
|
be7d7c818408b16fb9b6052695a8ba06c23d8a88 | b7f3edb5b7c62174bed808079c3b21fb9ea51d52 | /chrome/browser/ui/extensions/application_launch_browsertest.cc | 28bc546b8f929a38bbda7f9294f6e06bc61d46f8 | [
"BSD-3-Clause"
] | permissive | otcshare/chromium-src | 26a7372773b53b236784c51677c566dc0ad839e4 | 64bee65c921db7e78e25d08f1e98da2668b57be5 | refs/heads/webml | 2023-03-21T03:20:15.377034 | 2020-11-16T01:40:14 | 2020-11-16T01:40:14 | 209,262,645 | 18 | 21 | BSD-3-Clause | 2023-03-23T06:20:07 | 2019-09-18T08:52:07 | null | UTF-8 | C++ | false | false | 4,508 | cc | application_launch_browsertest.cc | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_browsertest.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/ui/browser_... |
fbc1c2b6b5b427461568d57fc0abf985b498d2d0 | 8ccd228854a020c152002da1e0f4b9487b2febaa | /src/Orbit/Core/Time/Clock.cpp | 371133c76d1152cbeda8d11df83c28c7568b7556 | [
"Zlib"
] | permissive | Gaztin/Orbit | 4cb079800290fcd07670aa27439cb3ab5eaa5d74 | 4589f3f0165d287482ab4b367f02633ea4e7c9a5 | refs/heads/dev | 2021-09-28T19:41:31.875451 | 2020-09-12T11:34:04 | 2020-09-12T11:34:04 | 142,024,351 | 42 | 4 | Zlib | 2020-09-15T22:25:45 | 2018-07-23T14:17:16 | C++ | UTF-8 | C++ | false | false | 1,705 | cpp | Clock.cpp | /*
* Copyright (c) 2020 Sebastian Kylander https://gaztin.com/
*
* This software is provided 'as-is', without any express or implied warranty. In no event will
* the authors be held liable for any damages arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpo... |
d1a3c6f6519886bc4abd3dd2fbc37e465d8dd6d6 | 82815230eeaf24d53f38f2a3f144dd8e8d4bc6b5 | /Airfoil/wingMotion/wingMotion2D_pimpleFoam/2.08/Uf | d2e71cb7e58ed0feaf10f9533b7fa5dcb6b341c2 | [
"MIT"
] | permissive | ishantja/KUHPC | 6355c61bf348974a7b81b4c6bf8ce56ac49ce111 | 74967d1b7e6c84fdadffafd1f7333bf533e7f387 | refs/heads/main | 2023-01-21T21:57:02.402186 | 2020-11-19T13:10:42 | 2020-11-19T13:10:42 | 312,429,902 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 966,857 | Uf | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
... | |
b7350919e0771ea369d7862674bfad4fd0cf4504 | 350bef364f4852ae428e6e7e6b0e2ed1b31e1bfd | /ebook_GameServerProgramming/ServerCore/ServerLibrary/Net/SessionManager.cpp | 13688d5b4849fe3265034ccd505ad70572f09c9b | [
"MIT"
] | permissive | true-bear/cpp_server_study_projects_Pub | 224e9b1c11dcb2345ae080835abd369d2ada564e | 070802570442e6ad91b7dc17f6d3685330de9eed | refs/heads/master | 2020-05-03T12:40:29.924827 | 2019-03-30T09:38:01 | 2019-03-30T09:38:01 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 4,741 | cpp | SessionManager.cpp | #include "stdafx.h"
#include "SessionManager.h"
#include "./Iocp/IOCPServer.h"
SessionManager::SessionManager()
: lock_(L"SessionManager")
{
idSeed_ = 1;
maxConnection_ = SESSION_CAPACITY;
this->commandFuncInitialize();
}
SessionManager::~SessionManager()
{
vector<Session *> removeSessionVec;
... |
74fcbff8bc8d316baf5d02e12a176282b3cd8c2a | 0628843aaa07fde97d435582dc44def0ee6ed58a | /libs/q/include/q/options.hpp | 81f4a206ac5b8dff7df452e7183841cc3c5667b6 | [
"Apache-2.0"
] | permissive | nholthaus/q | 631d0604edfd03bdbf4de9137409b363b61668be | 833f231f66a8f4904f2cfff830603e5dc3c28c2b | refs/heads/master | 2021-04-09T11:18:53.057448 | 2018-05-01T17:13:20 | 2018-05-01T17:13:20 | 125,515,710 | 1 | 0 | null | 2018-03-16T12:49:09 | 2018-03-16T12:49:09 | null | UTF-8 | C++ | false | false | 6,151 | hpp | options.hpp | /*
* Copyright 2015 Gustaf Räntilä
*
* 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 i... |
5db95766a931aa6219aa3f699ad109f275309bae | 71c7683331a9037fda7254b3a7b1ffddd6a4c4c8 | /PhysFit/P2VV/standalone/src/RooMultiCatGenerator.cxx | 6cc7cf51bc79201349b9bdf853e94c702c47001a | [] | no_license | pseyfert-cern-gitlab-backup/Urania | edc58ba4271089e55900f8bb4a5909e9e9c12d35 | 1b1c353ed5f1b45b3605990f60f49881b9785efd | refs/heads/master | 2021-05-18T13:33:22.732970 | 2017-12-15T14:42:04 | 2017-12-15T14:42:04 | 251,259,622 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 34 | cxx | RooMultiCatGenerator.cxx | ../../src/RooMultiCatGenerator.cxx |
91e5906a84f26ce846dcb3285356e90ae42cf1f2 | d8d0106503caaefeeef6a2d9fb9644e5c44c6c94 | /advanced/1001.cpp | 341703b73a483d5acaacd8552283492c4cb067d3 | [] | no_license | wjwzju/pat | 74badae9df963c3714a92eb6215742e4efe3e2d2 | 8aebd7da97e04dd49fd2a549eb4bf52fb487470c | refs/heads/master | 2022-04-04T09:27:44.569033 | 2020-02-05T02:22:35 | 2020-02-05T02:22:35 | 116,119,340 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 272 | cpp | 1001.cpp | #include <iostream>
void format(int n){
if(n < 1000){
printf("%d", n);
}else{
format(n/1000);
printf(",%03d", n%1000);
}
}
int main(){
int a, b;
scanf("%d %d", &a, &b);
int c = a + b;
if(c < 0){
printf("-");
c = 0 - c;
}
format(c);
system("pause");
} |
5fa836a5885f79124aed63cf0a958fd26d0546ea | 3c4795507de1e56ee50c2a2b88a118b53422f60e | /contrib/experiments/cpp/maindemo/ring_buffer.cpp | 102d7ef7c243a006bbd410bd46583160a6dcba5c | [
"Apache-2.0"
] | permissive | crc32a/glbbackend | 496299afb869f150edcff0db793404bcb7e56258 | 1c877f921f3dfc555e7e487010a409741805c517 | refs/heads/master | 2020-08-28T05:12:23.594306 | 2014-04-15T23:23:43 | 2014-04-15T23:23:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,884 | cpp | ring_buffer.cpp | #include<string>
#include<iostream>
#include<iomanip>
#include<sstream>
#include<boost/shared_array.hpp>
#include<string>
#include<vector>
#include<sstream>
#include "ring_buffer.h"
#include"BitArray.h"
const int STRBUFFSIZE = 4096;
ring_buffer::ring_buffer(int ds) {
std::cout << "ring_buffer(" << ds << ") const... |
1baa2683dd5ed3ba1bdc5448058ac02b95cfc414 | c86ee9cdd3a3b272885884a8f518d05d85a728fe | /main.cpp | cbf4553a5ae83b5c3ff6ffe2c879b948343b050e | [] | no_license | Denison904/ChisMetodDU | 4a9277a01838a4bc1a9b8d941b6a25978f293030 | 173c1ebf08ba9f8fa4c93a02ef4a127376a46838 | refs/heads/master | 2020-08-18T22:52:25.302632 | 2019-10-17T17:03:31 | 2019-10-17T17:03:31 | 215,844,095 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 780 | cpp | main.cpp | #include <cmath>
#include <iostream>
using namespace std;
int main()
{
setlocale(LC_CTYPE,"russian");
int i=0,j =0 , N;
double h, dmax;
double* x, * y;
cout<<"Введите шаг: ";
while (true)
{
cin>>h;
N=2./h;
cout<<N<<endl;
x=new double[N+1];
y=new double[N+1];
int iter;
x[0]=0;
y[0]=0;
dma... |
b430a082aa6c419f6c7341fcb0c3203d8637604c | 280fdb935b55682a09c3a037346e1766a79e7874 | /rush00/includes/defines.hpp | ea597d364c2c1e2598c54379af4d5a766a00f21b | [] | no_license | NataliVol4ica/UF-CPP-Pool | 9dea342d9a15d704463a71daff6b8ec1011a6960 | 8c70b97abdfa70733ea84a8f006b1f32dfcf4080 | refs/heads/master | 2020-03-14T11:21:38.395928 | 2018-04-23T18:28:06 | 2018-04-23T18:28:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 344 | hpp | defines.hpp |
#ifndef DEFINES_H
# define DEFINES_H
#include <iostream>
#include <iomanip>
#include <ncurses.h>
#define cout std::cout
#define cin std::cin
#define endl std::endl
#define string std::string
#define getline std::getline
#define max(x, y) x < y ? y : x
#define min(x, y) x > y ? y : x
enum keys {UP = 0, DOWN, LEFT, R... |
ce1ba99de775bba57a19b7e2609b1edb23bec978 | adb80a76ada1ae26d6868a1d87c2a37945e2516b | /src/ContactReport.h | e27f5d75800f7a03b8d4d68d771363f6a716f3b2 | [] | no_license | fluvee/SimFluVE | b8d2242ae59b86a70004c9851f7bae4cd380057a | 14efd8e029790eafc43f5e40d6d8c91cb127171b | refs/heads/master | 2020-03-22T04:07:20.342408 | 2018-12-11T16:45:33 | 2018-12-11T16:45:33 | 139,474,459 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 467 | h | ContactReport.h | #ifndef CONTACTREPORT_H
#define CONTACTREPORT_H
#include<vector>
class ContactReport {
public:
std::vector<unsigned> s;
std::vector<unsigned> d;
std::vector<unsigned> ii;
std::vector<unsigned> stratum;
std::vector<unsigned> x;
std::vector<unsigned> u;
std::vector<unsigned> vac;
std::vect... |
261e0525e9185e4341b35b059f8763497b97b724 | c56c35d8c926c7cd2f43d0a77c07adc552858e14 | /vtStorAtaProtocol/Platform/Windows/ProtocolAsynIo.cpp | d1c5f8dd3f10918696229b88f69a4e18bb557725 | [
"Apache-2.0"
] | permissive | virtium/vtStor | b7e418c5b057d2ec38894d35c00c3720efcfcd04 | 069d3e1ddb1c5589826dfe59714a1479c4af8f51 | refs/heads/master | 2020-12-25T16:48:20.071678 | 2016-09-07T07:46:37 | 2016-09-07T07:46:37 | 33,378,855 | 5 | 19 | null | 2016-09-07T07:48:03 | 2015-04-03T19:21:31 | C++ | UTF-8 | C++ | false | false | 2,799 | cpp | ProtocolAsynIo.cpp | /*
<License>
Copyright 2016 Virtium Technology
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 writing... |
8adb64e31438c6f4ed25075fa70f4410ac667ddf | 053f1a3df314db938107e6aec66ecdd8caf75042 | /1225 - Digit Counting/digit.cpp | b2c169e2954d24b729829eb5cb6c816e923ba8d8 | [] | no_license | yuting-zhang/UVa | 70cedd7f12b1cdca31688f2926ceac8c4c48f8e5 | 9ab1380d62f1b9479b8a82af7233d6f2a7d07732 | refs/heads/master | 2021-01-20T17:03:30.651083 | 2017-03-01T07:15:57 | 2017-03-01T07:15:57 | 48,550,831 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 557 | cpp | digit.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
int T;
scanf("%d", &T);
while (T--) {
int N;
scanf("%d", &N);
int counter[10] = {0};
for (int i = 1; i <= N; i++) {
int temp = i;
while (temp) {
int digit = temp % 10... |
8cab172dc6e2ff62c438ffd607cdb18fb7ed909b | 1910d5c20db0bed5a435643eb6f27d473e38dc86 | /Client/Hide-and-Seek-GTA-V/GTA_Menu_Base-master/GTA_Menu/Invoker.cpp | 9a981d34fcf30ee06696605d16e63f00022ec27b | [] | no_license | HeavyGem/hide-and-seek-gta-v | 8529a61e2e9477f96d1b5f38ce317f456386fb69 | c0c4cac8d9c357c656a8198f9e0e251bce32c822 | refs/heads/master | 2021-05-06T19:01:03.677950 | 2017-11-26T17:49:58 | 2017-11-26T17:49:58 | 112,008,802 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,145 | cpp | Invoker.cpp | #include "Utils.h"
#include "Invoker.h"
unsigned int FindNativeTableAddress()
{
unsigned int l_uiNativeTableAddress = 0;
unsigned int l_uiStartAddress = 0x390000;
unsigned int l_uiAddress = 0;
for (unsigned int i = 0; i < 0x10000; i++) {
if (*(unsigned int*)(l_uiStartAddress + i) == 0x3C6072BD && *(unsigned int... |
4495c01093187041b6cdd4fb9ef222ca41e1ee36 | 06c50a42fb4c8ee0aaf8b8ffb3681c14873db01a | /include/Editor/Tools/localization_tool.h | 80922ec76150afd14f622cdb2427607b0e3ed906 | [] | no_license | Toadsword/PokEngine | 4e42f88ec781c23421db159129642657ad7ce56f | bbf4d68cc2bf96c34cb16a6c19d3c5b849c4d811 | refs/heads/master | 2022-11-16T08:04:33.947034 | 2020-07-07T20:49:12 | 2020-07-07T20:49:12 | 277,910,114 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,672 | h | localization_tool.h | //----------------------------------------------------------------------------------
// Copyright (c) 2019-2020, POK Family. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributi... |
5198b10d54d38d65c406396e91532c50ed0cef18 | f4677cc43b41d42034182be380fc289b125637b6 | /BankAccountEntryFilterFunctions.h | ba290ffe1745f0cbafe757d6c2c7d2a4dc9dfaa8 | [] | no_license | adriaan1539/Bank_data_import | 32f0a65ca65a6f48a9b8157799ba4636c85988a8 | 997ca63e986a8cc7d0d81680fde78ebeab88e8de | refs/heads/master | 2021-01-11T18:54:53.522664 | 2018-05-17T19:53:24 | 2018-05-17T19:53:24 | 79,654,553 | 0 | 0 | null | 2018-02-08T21:13:51 | 2017-01-21T15:39:39 | C++ | UTF-8 | C++ | false | false | 656 | h | BankAccountEntryFilterFunctions.h | #ifndef BANKACCOUNTENTRYFILTERFUNCTIONS_H
#define BANKACCOUNTENTRYFILTERFUNCTIONS_H
#include "BankAccountEntry.h"
#include <string>
bool AccountNumberConsideredEqualTo(BankAccountEntry,std::string);
bool AccountNumberContraEqualTo(BankAccountEntry,std::string);
bool AmountBetweenAndEqualTo(BankAccountEntry,double,dou... |
2d5768279d71ab851c82faa99b4c49113ca9d1c5 | 7766e7628c4fc8e8832c037ff0d79f17d90e0ceb | /TC4/aviao.cpp | 5fc9e6bcfa08525f9015130f06e72bd62147c6a4 | [
"MIT"
] | permissive | luanripax/CGTC | 0b3a6d599a0c40607167399447bd7ed37e6f2125 | 6e836282676b2ea4ff601bafe928e4c384a1f8b7 | refs/heads/master | 2022-09-17T07:28:43.115307 | 2019-11-08T13:13:46 | 2019-11-08T13:13:46 | 208,334,750 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,584 | cpp | aviao.cpp | #include "aviao.h"
#include <math.h>
#include <stdio.h>
//#define deltaX 8.5
//#define deltaY
#define deltaX 4.0
#define deltaY -0.5
#define deltaX2 4.0
#define deltaY2 8.9
#define deltaX3 1.0
#define deltaY3 9.8
#define deltaX4 3
#define deltaY4 1
#define x5 -4.8
#define y5 4.26
Robo::Robo(... |
1c6c5e054c4d396ae9420bc030862c4ab09bd25a | 344d7092ded07666ffcb6c3e6d819c183d54f4d1 | /netsynth/ModuleDriver.cpp | 094cfd25924133be838e97a8f78eba4a356ab868 | [] | no_license | naokiiwakami/analog3 | 971de5106c05daa80a7e1f1bb41265aa12d4d3e9 | e39cf54b0fef3415b0aef6b4828e41a7acff0949 | refs/heads/master | 2020-12-25T17:25:09.037999 | 2018-03-18T19:43:20 | 2018-03-18T19:43:20 | 34,965,422 | 6 | 0 | null | 2018-03-18T19:43:32 | 2015-05-02T22:26:38 | Java | UTF-8 | C++ | false | false | 7,015 | cpp | ModuleDriver.cpp | #include "ModuleDriver.h"
#include "FileModuleDriver.h"
#ifdef __linux
#include "I2cModuleDriver.h"
#endif
#include "connector.pb.h"
#include <pb_encode.h>
#include <pb_decode.h>
#include "compact_descriptor.pb.h"
#include "nano_compact_descriptor.pb.h"
#include <google/protobuf/text_format.h>
#include <google/pro... |
c6034dd99501fb4b71a2c5c43a7f5cfec31a08c7 | 69dd4bd4268e1c361d8b8d95f56b5b3f5264cc96 | /GPU Pro1/03_Rendering Techniques/04_VirtualTextureMapping101/Virtual_Texture_Mapping_Sample/App/TileIDMaterial.h | 8bacbd56fa7a40376a3551129dfe36687dc9b755 | [
"MIT"
] | permissive | AnabaenaQing/Source-Code_ShaderX_GPU-Pro_GPU-Zen | 65c16710d1abb9207fd7e1116290336a64ddfc86 | f442622273c6c18da36b61906ec9acff3366a790 | refs/heads/master | 2022-12-15T00:40:42.931271 | 2020-09-07T16:48:25 | 2020-09-07T16:48:25 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,550 | h | TileIDMaterial.h | /*
Virtual texture mapping demo app
Copyright (C) 2008, 2009 Matthäus G. Chajdas
Contact: shaderx8@anteru.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 Foundation, either version 3 of ... |
4feb6d053cfa9e26062846cfa12e0f7ed0a5d638 | 9f8a069f7d337a022cae89e3e5b75d161c832e2d | /Final_Case/Refined_Grid/Turbulent/600/nut | 42a575ce373da7a24a40c9e8e2df023ae1a88079 | [] | no_license | Logan-Price/CFD | 453f6df21f90fd91a834ce98bc0b3970406f148d | 16e510ec882e65d5f7101e0aac91dbe8a035f65d | refs/heads/master | 2023-04-06T04:17:49.899812 | 2021-04-19T01:22:14 | 2021-04-19T01:22:14 | 359,291,399 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 141,445 | nut | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
... | |
c750ffc743b9365712009f586f8784ff1005c387 | 58496be10ead81e2531e995f7d66017ffdfc6897 | /Sources/Network/Win/SocksImpl.h | ca077d249d3916ee125d2f547e5a4c64e4560e2e | [] | no_license | Diego160289/cross-fw | ba36fc6c3e3402b2fff940342315596e0365d9dd | 532286667b0fd05c9b7f990945f42279bac74543 | refs/heads/master | 2021-01-10T19:23:43.622578 | 2011-01-09T14:54:12 | 2011-01-09T14:54:12 | 38,457,864 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,135 | h | SocksImpl.h | //============================================================================
// Date : 26.12.2010
// Author : Tkachenko Dmitry
// Copyright : (c) Tkachenko Dmitry (TkachenkoDmitryV@gmail.com)
//============================================================================
#ifndef __SOCKSIMPL_H__
... |
7a23a993595c6cc64ff9cebc331d64311982d6b5 | 5fb67a5f965d5522cd0eccbf6f366d4304de782f | /Neon/src/Neon/Platform/Vulkan/VulkanCommandBuffer.cpp | b4b98e7530936e5c06f9a7d75a5ede598170faf7 | [
"Apache-2.0"
] | permissive | FilipHusnjak/Neon | 52bb2a14c4fc93c1ad5f0eb9e8f67415904b3168 | 3981a76f4a35302e0fc70d4e32b2b2ac19b53089 | refs/heads/master | 2023-08-04T10:44:12.250060 | 2021-09-14T21:31:33 | 2021-09-14T21:31:33 | 280,649,766 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,002 | cpp | VulkanCommandBuffer.cpp | #include "neopch.h"
#include "Neon/Platform/Vulkan/VulkanContext.h"
#include "Neon/Platform/Vulkan/VulkanPipeline.h"
#include "Neon/Platform/Vulkan/VulkanShader.h"
#include "VulkanCommandBuffer.h"
namespace Neon
{
VulkanCommandBuffer::VulkanCommandBuffer(const SharedRef<CommandPool>& commandPool)
: CommandBuffer(c... |
ecfd52e881aa5fdc79268ae80ab5aaea135a716c | 6bb17032355b8eb0dfc1ece3c1af891ccadd5ca2 | /Lineclippingalgorithms/cohensutherland.cpp | 8657e100908029e0122e7c45e86b361f0b06d487 | [] | no_license | VasaviSingh/OpenGL | cf375ff6ae8eac9a2c40e870969aa7fa8fa09dc4 | ab46a200da52be115b36c6eedd5f08a84d9daea7 | refs/heads/master | 2020-08-31T15:58:35.488193 | 2019-11-23T04:36:34 | 2019-11-23T04:36:34 | 218,727,531 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,883 | cpp | cohensutherland.cpp | #include<GL/gl.h>
#include<glut.h>
#include<stdlib.h>
#include<stdio.h>
double y_max = 100, y_min = 50, x_max = 100, x_min = 50;
double ny_max = 300, ny_min = 200, nx_max = 300, nx_min = 200;
int TOP = 8, BOTTOM = 4, RIGHT = 2, LEFT = 1;
double x1 = 10, y1 = 120;
double x2 = 120, y2 = 50;
void m... |
7f3d8c5a88220c5e3e3a229fcd5ac2571ade822d | 4c9b22332b4194b522599f7e030fd5511950615b | /TH_AT12E353_38_フォンリウェイ/GoingDownNotSoStraight/Player.h | 0f8a98c50d3c1d34563829816768f2b55124bef3 | [] | no_license | jadurdice/Skill_Check_Feng | 1774be91fe5633f3f7d3b7eae75f9cca132d5aa5 | bc734c38c68adb25aa383095fd7801b61f8ee67e | refs/heads/master | 2022-02-27T17:37:09.787582 | 2019-10-01T06:48:42 | 2019-10-01T06:48:42 | 212,029,974 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,687 | h | Player.h | #pragma once
#include"AABB.h"
class Player : public MovingObject
{
public:
const float cWalkSpeed = 50.0f;
const float cJumpSpeed = -100.0f;
const float cMinJumpSpeed = -50.0f;
const float cMoveInAirMultiple = 0.8f;
const float cHalfSizeY = 26.0f;
const float cHalfSizeX = 7.0f;
int jumpCnt = 2;
enum Cha... |
939072a69b07a7ef0b99b8245b5917c708120a6e | 7b0766744da7cab56797206f9cbfd56ee7537633 | /edge.cpp | ef31bbfec174eebb1fc8a88a0cbfe7a0e4cc6936 | [] | no_license | m-aleem/SocketProgANDOR | 1f79834a972538fceb94f6fcfbe7bb4504f8c822 | c9e69e8d6d8416bff39b23be21f3cf8a8986e517 | refs/heads/master | 2020-12-30T16:01:58.990566 | 2017-05-13T20:07:57 | 2017-05-13T20:07:57 | 91,199,755 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,946 | cpp | edge.cpp | #include "edge.h"
using namespace std;
#define TCP_PORT "3490" // My TCP
#define UDP_PORT "3491" // My UDP
#define SERVER_AND_PORT "3492"
#define SERVER_OR_PORT "3493"
#define MAXBUFLEN 3000
int main(void)
{
while(1) // Keep the server running, until the user manually terminates
{
prog();
}
}
/* This ... |
bf73801c393822903803ac081688905c7c695140 | 61691d29abd235876b70cf22fc8c54bf9d74ccfa | /Source/Common/Public/MoFile.h | 65daa0cec23264ff46dc0c76029a0fc1d5a22002 | [
"MIT"
] | permissive | MarkusRannare/MoRE | 232dabb92ade15c62d8d7ef0b2fa1b8ff9735cb4 | 69403fc0cb9c49563043db4ec3f213fb24ef0393 | refs/heads/master | 2020-03-18T07:51:33.426389 | 2018-07-15T00:19:22 | 2018-07-15T00:19:22 | 134,476,795 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 180 | h | MoFile.h | #pragma once
#include "Common.h"
namespace MoGET
{
COMMON_API bool ReadFileContent(const char* Filename, const char* ReadMode, char** out_FileContent, long& out_ContentSize);
}
|
41fd33b333c55199424fdf5399df49f9a6925353 | 3e7e738b1a1f2cf872627b1c77a332aba6011aa2 | /EnviroTron/firmware/PIR.cpp | 4b0dcf0150c11bd96a1101bbe4d6b561126c70ba | [] | no_license | watsonboyett/marvin | ee567e897b8d746a2635b526ed11f1ba19b0750d | 97e628178310ae57c8d59e26492c36d88f3bcaf2 | refs/heads/master | 2020-12-25T16:55:03.148311 | 2019-10-10T08:53:31 | 2019-10-10T08:53:31 | 49,543,308 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 676 | cpp | PIR.cpp | #pragma once
#include "PIR.h"
#include <Arduino.h>
bool movement_detected = false;
bool movement_read = true;
void PIR_StateChanged()
{
// Get PIR sensor output state
movement_detected = digitalRead(MOTION_PIN);
movement_read = false;
}
void PIR_EnableInterrupt(bool enable)
{
if (enable)
{
attachInter... |
4ccae111a0eec6cbf16de8700934bebde6689f0a | d14bcbcbae7a7f86fa79ce10b0d639256ec46893 | /Struct-Ex1.cpp | a9ed1514a1ab513a73dd5f03c90d5ee9d02e2bbd | [] | no_license | jpenco/C | 996ed548ce007e8601a13768ca9be430b010fb17 | 948a3d1883c62210caeab68b78c9d0f4b9de9f72 | refs/heads/master | 2022-10-03T22:20:16.220314 | 2020-06-08T21:46:20 | 2020-06-08T21:46:20 | 270,835,135 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,588 | cpp | Struct-Ex1.cpp | # include <stdio.h>
# include <stdlib.h>
// area de declaração de protótipos de função
/*struct registro
{
char nome[40];
int mat;
float n1,n2;
};
registro reg_aluno; criação da variavel de estrutura --> reg_aluno do tipo registro*/
typedef struct
{
char nome[40];
int mat;
float n1,n2;
} registro;... |
9827de5c7f9ec4668eadfbef349ded2a12761609 | 88c2e6d785477426f8ffed77265644b4e6ec5fc1 | /include/fastplot/fastplot.hpp | eb1c47f349826110379649a09ec32c52e7f7252c | [] | no_license | FatihBAKIR/fastplot | 388b4430cc004a9a5c4e83d3455f41137bdf1039 | 95612807653518b05705843c9b0db781c344eb57 | refs/heads/master | 2020-05-28T08:22:17.843415 | 2019-07-19T06:14:21 | 2019-07-19T06:14:21 | 188,936,303 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 74 | hpp | fastplot.hpp | //
// Created by fatih on 5/27/19.
//
#pragma once
namespace fastpl
{
} |
098548e2b518b99b409896cffd7e3de104633755 | 54f54c3e497383308dc1dc25e7d03951884b622a | /chapter16_template/Book.h | afeab5b96edc1a022a5c9024fdd2785d8dea0987 | [] | no_license | tcsjzdnlh/PracticeC-VersionOne | 3f5a544ec3f9fe08e9678e82e08bdfd7f7ceb733 | f59fce2b518891d18217fac74c328a301455e1b7 | refs/heads/master | 2021-01-10T02:54:44.049095 | 2016-04-04T15:07:40 | 2016-04-04T15:07:40 | 55,419,905 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 229 | h | Book.h | #ifndef _xfs_Book_h_
#define _xfs_Book_h_
class CBook
{
public:
public:
template<typename T>
void IncrementLevel( T _level )
{
m_level += _level;
}
public:
int GetLevel() const;
private:
int m_level = 0;
};
#endif |
aa04d5d1be998df4716d884e1408ec7579605c3a | 01ab791f54e388c62209ce0af66219bfbc030c3c | /4002/sumton/sumton.cpp | 91a9045e401551c7174c50eff5f43fd789db4b4d | [] | no_license | warpdev/koi-exercise-2011-2016 | d2335696d33fa23bcc9a3f5f33b0a1610d530989 | d948f978a6d32e2e01aa1fdf8dc272e2a4c0384a | refs/heads/master | 2023-04-06T06:58:51.031574 | 2021-04-14T07:27:32 | 2021-04-14T07:27:32 | 357,812,551 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 640 | cpp | sumton.cpp | #include <stdio.h>
#define N 24
FILE *fp1,*fp2;
int n;
int cnt;
void input(void)
{
fscanf(fp1,"%d",&n);
}
void process(int lev,int sm)
{
int i;
if(lev==n)
{
if(sm==n+1)
{
cnt++;
}
}
else
{
for(i=0; i<=1; i++)
{
if(i)
... |
e569485d801365cdd59ac91abc0e4f3015b3ea19 | e5853e188a9b8784436f603480de8d8977d018f8 | /trees/bst.cpp | d910e61630856f6bda5a5409e0f7ba7016bbd332 | [] | no_license | mdever/practice_problems | ceb456bf75a7854ed59be7ae685a5b559e0d81d5 | 49950f24337036497a45be87c8bb054c533dc97b | refs/heads/master | 2021-08-25T09:49:24.261177 | 2021-08-12T02:28:14 | 2021-08-12T02:28:14 | 17,650,365 | 0 | 1 | null | 2018-07-24T14:38:45 | 2014-03-12T00:38:48 | Haskell | UTF-8 | C++ | false | false | 990 | cpp | bst.cpp | #include "bst.h"
Tree::Tree() {
head = new Node();
head->left = 0;
head->right = 0;
head->value = 0;
}
Tree::Tree(int value) {
head = new Node();
head->left = 0;
head->right = 0;
head->value = value;
}
int Tree::top() {
return head->value;
}
void Tree::insert(int val) {
insert(val, &(this->hea... |
ab75cd4f57ae30e359ddfb0ef51687a14df741cf | 6db027835bdd2694a7bb315ffa03f29b8e071279 | /src/lug/Graphics/Render/Texture.cpp | 3487f87c36cd4c5ad64c7122b29f3dc941abe845 | [
"MIT"
] | permissive | Lugdunum3D/Lugdunum | e28e0254a29b1234fe0f1415e7f88edb1b81e5de | b6d6907d034fdba1ffc278b96598eba1d860f0d4 | refs/heads/dev | 2021-01-19T12:07:47.314937 | 2018-05-29T12:14:27 | 2018-05-29T12:14:27 | 69,289,273 | 283 | 39 | MIT | 2018-01-10T20:31:51 | 2016-09-26T20:18:40 | C++ | UTF-8 | C++ | false | false | 223 | cpp | Texture.cpp | #include <lug/Graphics/Render/Texture.hpp>
namespace lug {
namespace Graphics {
namespace Render {
Texture::Texture(const std::string& name): Resource(Resource::Type::Texture, name) {}
} // Render
} // Graphics
} // lug
|
b7938c451ded1610ddb88ce5b0e3c9f85b5d1bae | a33622d9f158784a252151227999efcdb49dd6ea | /src/tests/mocks/web_app_factory_manager_mock.h | 66e9394466a994dac17d84de71b9b0f86502152c | [
"Apache-2.0"
] | permissive | webosose/wam | fc72c536d8ab0fd6905f4fcacb0447db7900034a | 32639c1e6cd0c6a5b0f24045538b7a67ccb91c75 | refs/heads/master | 2023-06-27T01:31:09.935565 | 2023-04-07T07:36:57 | 2023-06-05T04:35:33 | 125,009,322 | 13 | 18 | null | 2020-06-02T19:58:15 | 2018-03-13T07:22:16 | C++ | UTF-8 | C++ | false | false | 2,051 | h | web_app_factory_manager_mock.h | // (c) 2021 LG Electronics, 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 ... |
9f3f1a82303e6fb4308e552e2b5506998391318d | fb5b25b4fbe66c532672c14dacc520b96ff90a04 | /export/release/macos/obj/src/lime/graphics/_OpenGLRenderContext/OpenGLRenderContext_Impl_.cpp | 625faa03f1e83e99941cd6ec97827b6511767b87 | [
"Apache-2.0"
] | permissive | Tyrcnex/tai-mod | c3849f817fe871004ed171245d63c5e447c4a9c3 | b83152693bb3139ee2ae73002623934f07d35baf | refs/heads/main | 2023-08-15T07:15:43.884068 | 2021-09-29T23:39:23 | 2021-09-29T23:39:23 | 383,313,424 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 3,680 | cpp | OpenGLRenderContext_Impl_.cpp | // Generated by Haxe 4.1.5
#include <hxcpp.h>
#ifndef INCLUDED_lime__internal_backend_native_NativeOpenGLRenderContext
#include <lime/_internal/backend/native/NativeOpenGLRenderContext.h>
#endif
#ifndef INCLUDED_lime_graphics_RenderContext
#include <lime/graphics/RenderContext.h>
#endif
#ifndef INCLUDED_lime_graphics_... |
d738b0f47f9eca37e137955965fb55591eba6c81 | 8aef02a28b5ba1c30bc05e6035f5b1f1d24608d6 | /Lab01/Ant.cpp | e63644bfbfefb2cd08bb024e313ad88e3a9fa9c4 | [] | no_license | whaleeej/OOAD-AntSimulation | b38933dc8466814000a99d5f7109731eafe266dd | f209be8f0d1aa368353da7f7f1a5bb14d5e7709b | refs/heads/master | 2023-08-08T11:55:10.133277 | 2018-11-18T09:05:37 | 2018-11-18T09:05:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 525 | cpp | Ant.cpp | #include "stdafx.h"
#include "Ant.h"
Ant::Ant(int pos, bool dir, int v,int number)
{
position = pos;
direction = dir;
velocity = v;
isDead = false;
no = number;
}
Ant::~Ant()
{
}
void Ant::crawl(int sec)
{
if (isDie())
return;
int coef = direction ? -1 : 1;
position = position + coef * sec*velocity;
}
vo... |
8e233b27c44a098182484bb82e3492ee3a90a544 | 2ddca39aaca9fb35df7c0c1091ad7a4344226b77 | /arduinoIO/gps.h | 75e534460ab0457836606ba813bb8b0b7365d9c4 | [] | no_license | UBC-Voyage/autonomous-control-OLD | c75c0a358dc52685430ebeabb305e3e2f37c469d | 02e23b674138a145bdca0aaa65b302fcb920bad6 | refs/heads/master | 2023-03-20T20:03:10.496648 | 2021-03-07T23:39:54 | 2021-03-07T23:39:54 | 118,379,577 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 337 | h | gps.h | #ifndef GPS_H
#define GPS_H
#include <Arduino.h>
class GPS {
float _latitude, _longitude;
float _heading, _sog;
public:
void begin();
int parseNMEA(char nmea[]);
float getLatitude();
float getLongitude();
float getHeading();
float getSOG();
private:
void debug(String msg);
int NMEAChecksum(char m... |
861c098f6fe1445ab732682a8cffb6cf79215a4f | ee2b894a2ac9cb466c74c3742472ef05e3f46f13 | /network_monitor/src/dnseventssubscriber.h | 6b8ddfe3240f9ebcedf633e3af1e789775a57968 | [
"Apache-2.0"
] | permissive | ankurvaishley/osquery-extensions | 9d8c5fcabe0eb5ebf7a5b69821b5201a9d691500 | 8a1a24a1142757579e001e4fa710e144169ab257 | refs/heads/master | 2023-04-10T21:15:03.633868 | 2021-04-12T22:36:12 | 2021-04-12T22:36:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,731 | h | dnseventssubscriber.h | /*
* Copyright (c) 2018 Trail of Bits, 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 o... |
2cbc03f3a6f8add4912a6a11ad0f9d5560037607 | 2f20c2c6096fcf0426e069636a7a371d78123b73 | /projects/howto/ConsumeNutrients/src/HowTo-ConsumeNutrients_main.cpp | 5d0f97189b6877a7bf68d07cc777889f0bc02c0b | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | TeamPcsHungary/core | 83efa4c1e0624942d9a2e89ee013d9f5a323215f | f16a573f6db54c71cb5340d78e31147a17e04f29 | refs/heads/master | 2023-03-17T03:11:52.164901 | 2021-03-05T16:15:41 | 2021-03-05T16:15:41 | 295,479,124 | 0 | 0 | Apache-2.0 | 2021-01-06T15:36:07 | 2020-09-14T16:45:52 | null | UTF-8 | C++ | false | false | 125 | cpp | HowTo-ConsumeNutrients_main.cpp | #include <iostream>
#include "HowTo-ConsumeNutrients.h"
int main( int argc, char* argv[] )
{
HowToConsumeNutrients();
}
|
e63fd211266e26f086df09e5d82b2edf3ffe2e31 | f7835cdbc3ff811efe5db7de7ba62d4a712f4a02 | /Src/userprojectmodel.cpp | 541315a8e456ec6b3a52e9466f62783d32dfdd14 | [
"MIT"
] | permissive | kingold5/Timer | 3dd2ff9f8075c1db863bc6aaa163139f3d230065 | df506acd5e8541d4ac7ef1dc49166d3d3801af6f | refs/heads/master | 2022-11-08T20:29:38.947122 | 2020-07-02T20:35:09 | 2020-07-02T20:35:09 | 258,499,987 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,329 | cpp | userprojectmodel.cpp | #include <QIcon>
#include "userprojectmodel.h"
// TODO:
// Centering Importance items, make double star, triple start bigger
UserProjectModel::UserProjectModel(QDomDocument &pdoc, QObject *parent)
: ProjectsModel(pdoc, parent)
{
}
QVariant UserProjectModel::headerData(int section, Qt::Orientation orientation, in... |
e3f3100b4d514e537c560c922dc86f0fb747ffed | feeb79fbbca993db5021c5145ce47f4847fb2e7d | /qpid-proton-cpp/request.cpp | 875defc17a70ee07f68e0e5944be61179923be62 | [] | no_license | honghuac/messaging-examples | 6eff3a20d903990e3e12f8e38148073d93918e77 | f508301b4823c6339b22f02b9997c53d9d472061 | refs/heads/master | 2021-01-02T09:23:26.010712 | 2017-07-14T21:37:33 | 2017-07-14T21:37:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,719 | cpp | request.cpp | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... |
ae351c2b349bc3fea6e0bebdfb34867d6397d952 | 1e26102503da3891a0d5c45d4c3a75180b60f23c | /Source.cpp | 8cc0d3eb80a58e35a59ee715c30a70e14c39862d | [
"MIT"
] | permissive | Gofrettin/MouseInverter | cac3fd6e76e41d36b8d37afb334c5b48a366d6da | 4226e3f4bc317fb053fe22a729734eabbad0d53f | refs/heads/main | 2023-02-28T15:47:25.045420 | 2021-02-06T21:49:05 | 2021-02-06T21:49:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,786 | cpp | Source.cpp | // Made by RequestFX#1541
#include <Windows.h>
#include <iostream>
HHOOK hook; // Mouse event hook
LRESULT WINAPI LowLevelMouseProc(int nCode, WPARAM wParam, LPARAM lParam) {
MSLLHOOKSTRUCT* pMouseStruct = (MSLLHOOKSTRUCT*)lParam; // Contains information about a low-level mouse input event.
if (nCode >=... |
b70c0e4009d072f68591c16a84dd1a873403fcdd | dfeafaf587f2e7a0dde07e6829516d75948974de | /gotta_learn/animate/collisionball.cpp | b1cb0545dcc234e61786bdd2694d217b3a4e34d3 | [] | no_license | LeiSurrre/all_in_C | d41255115ef1b5db63bbc2a5d9c109b198694ce5 | 757410ebce6c164027308bb16be9c7237b903ae1 | refs/heads/master | 2021-05-20T13:23:49.227631 | 2020-10-16T09:07:02 | 2020-10-16T09:07:02 | 252,315,278 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,340 | cpp | collisionball.cpp | #include <graphics.h> // EasyX library https://docs.easyx.cn/en-us/intro
#include <time.h>
#include <math.h>
#include <conio.h>
#define HIGH 480
#define WIDTH 640
#define BALLN 10
int main() {
int balls[BALLN][2];
int ballv[BALLN][2];
int radius = 20;
int i, j;
srand(time(NULL));
for (i = 0; ... |
8b9403bd7f224cc32ba650545e58c1a668e31d46 | 66d59c42fc88270bed4ce6ab18e7b6b573b4cf1a | /CC150 - 3.2 Stack Min/main.cpp | cbb5394bf52a1d7f3649467e36618d27717109ab | [] | no_license | bluebambu/Leetcode_cpp | 0e749322c5081ee6b61191931c853ab0ce9094f9 | 7a21e391d7a6bde4c202e46047880c30195bb023 | refs/heads/master | 2022-05-28T13:11:06.991523 | 2020-05-03T00:36:13 | 2020-05-03T00:36:13 | 260,799,312 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,094 | cpp | main.cpp | #include <iostream>
#include <stdlib.h>
#include <math.h>
#include <list>
#include <vector>
#include <algorithm> // std::for_each
#include <unordered_map>
#include <queue>
#include <stack>
using namespace std;
inline int exchg(int &a, int &b) {int c=a; a=b; b=c;}
inline int log2(int N){return log10(N)/log10(2);}
... |
83dd3510b96aaf0bc04d29667cc6787228c289f7 | 0ae22792a956177284597e14e65bae5af30aa5b6 | /ProjetoLP1_petfera_Versao1/src/funcionario.cpp | 604f4a279c5fc9bfda7c4e244383405908d0d8e6 | [] | no_license | foliveira7bti/ProjetoLP1 | 775e15d137403112c7c85e83cf87b213110bbd9e | bb2b1432b7ef2bb70393fd35ab9e2d2f76443f85 | refs/heads/master | 2020-05-25T12:38:51.888740 | 2019-05-30T20:49:05 | 2019-05-30T20:49:05 | 187,803,164 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,246 | cpp | funcionario.cpp | #include <iostream>
#include <cstdlib>
#include <fstream>
#include <sstream>
#include <string>
#include <map>
#include <memory>
#include "funcionario.h"
using namespace std;
Funcionario::Funcionario() {}
Funcionario::~Funcionario() {}
int Funcionario::getId() {
return id;
}
void Funcionario::setId(int i) {
id = ... |
ed0bdba7aad072c0c7e379b9ae0939be716a0267 | f998f715a2212ceb4c4b63373a35efe4a4180c68 | /Contest-Solved/IIUMicpc/6/C.cpp | aba5c8d1cdb92dd45745116bb147f5c658819e64 | [] | no_license | its-mash/Competitive-Programming | 3e0e85c2d954a0d00192cfb8b7a3943d11d9e00d | 1a5148f154afdf073044cd1027b17a5c4f6ba4d0 | refs/heads/master | 2022-12-18T20:43:54.861791 | 2020-09-20T01:00:44 | 2020-09-20T01:00:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 356 | cpp | C.cpp | #include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
int p,v,ans=0;
string ex;
cin>>ex>>v;
bitset<32> x(v);
p=(ex[1]=='F')? 0:1;
if(p!=x[0])
ans++;
for(int i=1;i<32;i++){
if(x[i]!=x[i-1]){
ans++;
}... |
302fd83a0e244362d2166a0c7a8c613668483db6 | fceb4c12ab027e833a32dc167fdf6aea32f320d4 | /print/print/Stntuple_print_functions.hh | f01b17f19dd7ebf1e84ea3657116ccc692cf8640 | [
"Apache-2.0"
] | permissive | gianipez/Stntuple | 5d4f2d6a753552cdc9775736c0686ec8fcd03298 | 9aed7c2ea3d44045a18c15f5b640967618120880 | refs/heads/master | 2021-06-25T08:15:41.258238 | 2021-05-24T20:03:14 | 2021-05-24T20:03:14 | 223,204,879 | 0 | 0 | Apache-2.0 | 2019-12-06T23:04:11 | 2019-11-21T15:27:26 | C++ | UTF-8 | C++ | false | false | 978 | hh | Stntuple_print_functions.hh | //////////////////////////////////////////////////////////////////////////////
#ifndef __Stntuple_print_functions_hh__
#define __Stntuple_print_functions_hh__
#ifndef __CINT__
#include "art/Framework/Principal/Event.h"
#include "art/Framework/Principal/Handle.h"
#else
namespace art {
class Event;
}
#endif
void ... |
477a78f03e5ad3004a99fae009e57681e9a8fcb4 | 51f9b7bef60fd74ca2ceae18d8289bda44681559 | /SelectSeven.cpp | 3cdfae489f819ed3f202b9a570aa1b9bc4222fea | [] | no_license | lxg54321/HWOJPractice | b05d601bb31d1ac2962a16c5c220534bfad18e81 | e7834160fa38e53ebff1022b7d419270e3585b11 | refs/heads/master | 2021-01-18T01:15:31.227470 | 2017-03-11T13:06:25 | 2017-03-11T13:06:25 | 84,263,571 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 535 | cpp | SelectSeven.cpp | /*
£¨Á·Ï°Óã©Ìô7
*/
#include <iostream>
using namespace std;
#define MAX_LEN 1025
bool isRelated(int num) {
if (num % 7 == 0)
{
return true;
}
int divider = 10;
while (divider < num) {
if (num % divider == 7)
{
return true;
}
if (num / divider == 7)
{
return true;
}
num /= 10;
}
retur... |
4619f0488dafe95c6ec70b2b139140a8635b51d0 | 71ea10c6e495914524f83d70f663313ec85575b9 | /Engine/Engine/LightClass.h | abc9e21fa87fb4dfa2aeae893d017d66042fb0be | [] | no_license | dastyk/Engine | 1f05593d0cd686ba62c5bd76eb3177a8478f6d8c | 994fca58dafe421e287ee849694890138dfe8dc9 | refs/heads/master | 2020-04-19T08:44:47.299984 | 2018-08-08T09:06:18 | 2018-08-08T09:06:18 | 27,827,631 | 1 | 0 | null | 2014-12-12T14:09:10 | 2014-12-10T16:07:56 | C++ | UTF-8 | C++ | false | false | 521 | h | LightClass.h | #ifndef _LIGHTCLASS_H_
#define _LIGHTCLASS_H_
#pragma once
#include <DirectXMath.h>
using namespace DirectX;
class LightClass
{
public:
LightClass();
LightClass(XMFLOAT3& dir, XMFLOAT3& color, XMFLOAT3& pos);
virtual ~LightClass();
void SetLightDir(XMFLOAT3&);
void SetLightColor(XMFLOAT3&);
virtual void SetL... |
862cb88f32fc32167063570042c32a45534e0d2f | d476ae4910c55b1f4b1241480f42fbb4b85afe2d | /src/src/Main.cpp | ca3a105a204d9f1611ec828853eca4c74f275b9c | [] | no_license | TheoTik/Bin-Packing-Robuste | 06f749de434738c8170e5c2c8edac7c64f999d5f | a048d48350ab7da9be378cf4f428ae7b2ae03cb5 | refs/heads/main | 2023-02-20T23:46:28.509987 | 2021-01-12T14:00:12 | 2021-01-12T14:00:12 | 329,002,336 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,476 | cpp | Main.cpp | #include <iostream>
#include <chrono>
#include <iostream>
#include <sys/time.h>
#include <ctime>
#include "Algorithm.hpp"
#include "First_Fit.hpp"
#include "Data.hpp"
using namespace std;
using std::cout; using std::endl;
using std::chrono::duration_cast;
using std::chrono::milliseconds;
using std::chrono::system_cloc... |
fb4c1157b8f1772b5b7037c28987475676a8bc31 | 94f0ce8cc713c0fcb50821996d46d583214a9164 | /Sources/hoaMap/AmbisonicSourcesGroup.cpp | dfb1e535a7105ec5b1b4d97bb39647a36d268c24 | [] | no_license | dimibil/HoaLibrary | 6329e58a70274f7a5f196eaf43aa79cb94921200 | f0f5513081c4d77b7fe53b36daf47552fe3e6420 | refs/heads/master | 2021-01-17T05:52:43.949051 | 2013-05-28T10:31:26 | 2013-05-28T10:31:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,866 | cpp | AmbisonicSourcesGroup.cpp | /*
* Copyright (C) 2012 Julien Colafrancesco, Pierre Guillot, Eliott Paris Universite Paris 8
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Library General Public License as published
* by the Free Software Foundation; either version 2 of the License.
... |
436beb6128180900c89a6ee5da4a334822955d49 | 5bbaeac40717a0bd16ba8ba8faf3fbfb29c5b7c9 | /src/rawreadsprocessor.hpp | 66bac40808cbfd67bc5bf9df3326a76cf42e4909 | [
"MIT"
] | permissive | LaoZZZZZ/bartender-1.1 | 46bbbd91c824216a211aa9f3b5a132d77c59c0c1 | 439b1a23a21ad035468fb6c00a9efaa21ec4045a | refs/heads/master | 2023-04-27T16:29:29.410121 | 2023-04-27T02:44:33 | 2023-04-27T02:44:33 | 50,738,171 | 29 | 10 | MIT | 2023-09-05T15:52:47 | 2016-01-30T18:23:06 | C++ | UTF-8 | C++ | false | false | 689 | hpp | rawreadsprocessor.hpp | //
// rawreadsprocessor.hpp
// barcode_project
//
// Created by luzhao on 12/16/15.
// Copyright © 2015 luzhao. All rights reserved.
//
#ifndef rawreadsprocessor_hpp
#define rawreadsprocessor_hpp
#include "formats.h"
#include "inputprocessor.hpp"
#include <regex>
#include <string>
namespace barcodeSpace {
class... |
d6a41ca16a11353131b649e1566ecb22d31bb5fa | bd4419863db6f8e96486bb4fa1fbc1dc09025ab3 | /useful_example/socket/client/main.cpp | 8170084c22e628ca77a91e16d1185926e752e3ad | [] | no_license | ericc308/leetcode_prac | cf9b871585e4b89ce507f971a1f4daac6102d582 | 5c03d9cfc6f74af879a1901c2638743b4c796101 | refs/heads/master | 2021-05-20T00:29:31.340259 | 2020-08-10T07:35:37 | 2020-08-10T07:35:37 | 252,107,512 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,104 | cpp | main.cpp | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string.h>
#include <string>
#include <sys/types.h>
#include <unistd.h>
#include <vector>
#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <arpa/inet.h> //inet_addr
#include <netinet/in.h>
#include <sys/socket.h>
#define SD_SEND S... |
0a2cea67baf92d17e06c9c9e6f0aab080e21a636 | 01ebbc9ebb4961cc208a9090f22a2042f6cb675c | /Library/Math/Geometry/Movement/Move.cpp | 2cc1a6f4611983c6e3989d07d52ec87e7945442b | [] | no_license | Shilalydawg/idk | 977ee27f658772ae801766860540b6767d8aca4a | a8646685fba78069947824a08b83866bb5bf5973 | refs/heads/master | 2021-01-25T07:01:10.499042 | 2017-06-08T18:52:31 | 2017-06-08T18:52:31 | 93,638,817 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 46 | cpp | Move.cpp | #include "Move.h"
namespace Geometry {
} |
c8fa268271648c7e3fae6e98daef70e3acfef7e6 | 9d9fed4fa45e3a02ff403e5249042989871f6454 | /KWResearchWork/trunk/KWResearchWork/MeshCreation/Util/VerEdgePlaneOp.cpp | 5d5db4a65702d9d545cbd961f07606b0f0433b08 | [] | no_license | kaiwangntu/surface-reconstruction | 688c247283f2a661428bfda4e00abee9b52aec22 | b3672155181ad2aaced1bb94207b9b8a42e26041 | refs/heads/master | 2021-05-29T20:31:28.038057 | 2013-05-25T09:44:43 | 2013-05-25T09:44:43 | 40,125,371 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,159 | cpp | VerEdgePlaneOp.cpp | #include "stdafx.h"
#include "../Util/VerEdgePlaneOp.h"
#include "../Math/mymath.h"
//for debugging reason
void writeComnLineDB(float param1[ 4 ], float param2[ 4 ], float comndir[ 3 ], float comnpt[ 3 ])
{
FILE* fout = fopen("comnparam.txt", "w");
fprintf( fout, "{{%f,%f,%f,%f},", param1[ 0 ] , param1[ 1... |
aff88f979bd1715e5076d897c8860f25a701fb72 | 8f4e0bff5a6cb1e72a76a789cd5ae6dea6992a0d | /InorderSuccessorBST.cpp | 283b8d17387c5786857c2ee8aa5373d64a99e58b | [] | no_license | anandaditya444/GEEKSFOEGEEKS | 8c58ee0c2f12c80318a5575259918b464f3846d3 | be2d5cec4d16e927fa143197b528c5266a0cdd6c | refs/heads/master | 2020-05-09T18:07:14.304593 | 2019-08-25T16:03:28 | 2019-08-25T16:03:28 | 181,328,043 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 680 | cpp | InorderSuccessorBST.cpp | Node * inOrderSuccessor(Node *root, Node *x)
{
Node* cur = NULL;
if(x->right != NULL)
{
cur = x;
while(cur->left != NULL)
cur = cur->left;
return cur;
}
else
{
Node* succ = NULL;
while(root != NULL)
{
if(cur->data > root->da... |
97a284f3cb64bb268b593606d3977d1a1bb3f294 | 0460c2da88903203448225d2a6d08d0a1a648521 | /CRMui/ui.cpp | 2723e39f70836bed262bdf6d5c1957bd786341b9 | [
"MIT"
] | permissive | ilyukevich/CRMui | 8c4adf6a1c089e97383034a762df0ec7b6a052b6 | 0f608decbc7bd076e212dcb4299f07694d754fab | refs/heads/master | 2023-05-31T13:55:03.700438 | 2021-07-07T06:41:11 | 2021-07-07T06:41:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,697 | cpp | ui.cpp | #include "CRMui.h"
// ********************* C A L L B A C K *********************
void CRMui::btnCallback(String name, buttonCallback response) {
if (btnui == name) {
btnui = "";
response();
}
}
void CRMui::ui(void (*uiFunction) ()) {
InterfaceElem = uiFunction;
}
void CRMui::update(void... |
72f638b58c0c0f6c75fc671423d47160448bddb4 | 919b13ba5ea8bf9f24c86b9043b398f4c87e0ed6 | /podgotovka_izpit/podgotovka_izpit/linkedList.h | 6216064d9a7a305c5a86d0ca3b98bb8493f21275 | [] | no_license | kirilkadoncheva/fmi-sda | 71db76022ca4f7bb3255832169d3a47ce0c6a280 | 0e40ec179a5e11f2f7fc4bda949810b7cb4225ab | refs/heads/main | 2023-03-25T11:30:18.931621 | 2021-03-13T13:19:08 | 2021-03-13T13:19:08 | 347,375,065 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,867 | h | linkedList.h | #pragma once
#include <iostream>
using namespace std;
struct Node
{
int data;
struct Node* next;
Node(int val)
{
data = val;
next = NULL;
}
};
class LinkedList
{
Node* head;
Node* tail;
public:
LinkedList()
{
head = NULL;
tail = NULL;
}
void insertAtBeginning(int val)
{
if (head == NULL)
{
... |
87ee738bc7d898f707b277cb34af9893838c12ef | f8083f1ac05ecb07b93c58af98eaf78e8eab9367 | /others/kuji-katsu/2020-07-30/B.cpp | a6fa5b4056339efad1b368ae60806ac5eed5cdf2 | [] | no_license | itohdak/AtCoder | 4f42ccc7b2b7f71d0d51069bd86503ee0f4b3dbf | 9ee89bac3ced919b94096ffd7b644d3716569762 | refs/heads/master | 2021-06-24T14:42:54.529474 | 2020-10-16T18:41:27 | 2020-10-16T18:41:27 | 134,136,836 | 2 | 1 | null | 2020-02-07T12:45:10 | 2018-05-20T09:26:13 | C++ | UTF-8 | C++ | false | false | 765 | cpp | B.cpp | #include <bits/stdc++.h>
#include "/home/itohdak/AtCoder/000/print.hpp"
using namespace std;
#define ll long long
#define ld long double
#define REP(i,m,n) for(int i=(int)(m); i<(int)(n); i++)
#define rep(i,n) REP(i,0,n)
#define RREP(i,m,n) for(int i=(int)(m); i>=(int)(n); i--)
#define rrep(i,n) RREP(i,n-1,0)
#define a... |
0550b51c56785b5eeedd7e8c80f4afdc840e698b | b42ce40d4cca35cfa127194db487066e3335653a | /platform/PosixMessageQueue.cpp | 3d8658bb4030d2bfdbca972411cc78ecea3d36aa | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | iamrameshkumar/TimerAndCallback | eb3982710306dbfae11117073b13984fb35c9494 | c36a0f7144631ea77848a0fb88857c8c15e07e29 | refs/heads/master | 2021-05-26T18:50:41.180240 | 2013-05-11T13:05:45 | 2013-05-11T13:05:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,434 | cpp | PosixMessageQueue.cpp | #include <string.h>
#include <assert.h>
#include <errno.h>
#include "platform/PosixMessageQueue.h"
#include "common/Debug.h"
PosixMessageQueue::PosixMessageQueue (CHAR* _name, SINT32 _flags, SINT32 _nonBlockingOrZero, UINT32 _mode, UINT32 _maxMsg, UINT32 _msgSize):
flags (_flags),
mode (_mode)
{
strcpy (name, _n... |
5549ea427751966d9a6ec525dd08161193a3d172 | 86387eb9e322be91d1ad2c0dbd8a1c90f8cc6397 | /Cloud_Platform_Model.h | f186f6d7f1820357ab01e8b97c8cc415f4f5492f | [] | no_license | uscliufei/Optimization-in-Cloud-Computing | aa31239d6fd667b25a6ec53c85bd99fbeff7d042 | 1ddb784367cbb1e7596cf7343431654495640676 | refs/heads/master | 2020-04-25T06:54:19.590558 | 2019-05-03T04:49:32 | 2019-05-03T04:49:32 | 172,596,786 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 792 | h | Cloud_Platform_Model.h | #ifndef CLOUD_H
#define CLOUD_H
#include <string>
#include <iostream>
#include <cstring>
#include <cstdlib>
#include <sstream>
#include <math.h>
#include <algorithm>
using namespace std;
class VM {
public:
double cpu_frac;
double memory_frac;
int avaiable_time;
int status;
VM();
~VM();
void updateTim... |
7b9fe3323bc964f87a3299d6487ade51e452a655 | f4daf5d2f894d0a36ddacf132965c2b970895927 | /Vulkan/VulkanRaytracer/VulkanApp/camera.h | 81dedbb0118a59f69a59407f57b98e08efa8a540 | [
"MIT"
] | permissive | WondermSwift/APIs-stuff | 52e483fdf3ef91aea06e67b8f6eb89944ea91ac7 | 9cd3ab9a7493d11c6ef518a81f3b46ca16f6bc76 | refs/heads/master | 2020-12-02T21:30:38.721630 | 2019-03-29T04:16:47 | 2019-03-29T04:16:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,512 | h | camera.h | #ifndef CAMERAH
#define CAMERAH
#include <glm/gtc/constants.hpp>
#include "ray.h"
glm::vec3 random_in_unit_disk()
{
glm::vec3 p;
do
{
p = 2.0f * glm::vec3(drand48(), drand48(), 0) - glm::vec3(1, 1, 0);
} while (glm::dot(p, p) >= 1.0);
return p;
}
class camera
{
public:
camera(glm::vec3 lookfrom, glm::vec... |
de23ce187282be71bdc3ffb552589b7b2afeef91 | c8683218ba532188d0f42324c6da019468c43c11 | /practice/aoj/ALDS/1-11-C.cpp | 2ac37c6d15656ff436a908f715c15906760db0c2 | [] | no_license | minszszsz/algorithm | 0c91a3c0afbd385d8db59999ac67e948448ac7cc | 41ca7e1cea1272076900adb21fa03adc7da4b8a8 | refs/heads/master | 2022-04-17T19:58:51.347012 | 2020-04-12T10:33:11 | 2020-04-12T10:33:11 | 250,272,595 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 756 | cpp | 1-11-C.cpp | #include<iostream>
#include<vector>
#include<cstring>
#include<queue>
#define P pair<int, int>
using namespace std;
int n, d[109];
vector<int> G[109];
bool check[109];
int main(){
cin >> n;
for(int i=0;i<n;i++){
int u, k, v;
cin >> u >> k;
for(int i=0;i<k;i++){
cin >> v;
G[u].push_back(v... |
cc7908633f360d44bbb263459eb036e49e3c8168 | 0d3a8b4082f3d62d3bb406e86dff0747b6d40706 | /include/unirender/Framebuffer.h | 29fe7759a758e6f7f363921f8f1694044de9b299 | [
"MIT"
] | permissive | xzrunner/unirender | 8eef1049d1db435650b5e19ef8a2db0d096fbd18 | b6273c560a53650780f0211f7715ebb2467744ab | refs/heads/master | 2022-09-04T16:29:44.001102 | 2022-08-15T22:49:27 | 2022-08-15T22:49:27 | 259,783,656 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 473 | h | Framebuffer.h | #pragma once
#include "unirender/AttachmentType.h"
#include "unirender/TextureTarget.h"
#include <memory>
namespace ur
{
class Texture;
class RenderBuffer;
class Framebuffer
{
public:
virtual ~Framebuffer() {}
virtual void SetAttachment(AttachmentType type, TextureTarget target,
const std::shared_... |
ac4020ad45a7b4ad0b9d97c6f7ae9a5328ddba6b | 17e6891e863fba80ad6080f802351c9514f8f33d | /barber_wait_time.cc | 7a3969242487f87298e367b6a9ac6eb3727ac81a | [] | no_license | bbhavsar/ltc | de88aed97a31f7d5731ef1ab68875a8a95201ffa | f6a5617e652ced1513d48b4a1ad8204b28e3ddd1 | refs/heads/master | 2021-10-29T16:21:03.129286 | 2021-10-22T23:18:18 | 2021-10-22T23:23:43 | 127,701,900 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,366 | cc | barber_wait_time.cc | #include "common.hh"
// Given number of barbers and amount of time each barber takes to cut
// hair for every person. Amount of time each barber takes is fixed and does not vary
// by the person.
// Return wait time for person in position p in the queue and which barber that
// person in position p will be assigned t... |
ec7a73beb8564b9021e71e793d6f6f9c73eb6f5b | 45dbf5a56df322367b423076f610d1299be8cf52 | /src/optimize/gradient_descent.cpp | 8bf8236129500b85784d380479e61b659a132255 | [] | no_license | xanxys/reconstruction | d7272c15e2d20e6cf8365714fe9869c7e7f28cb4 | 8714990a29d4b3797f994e5ab1f375f76a961c06 | refs/heads/master | 2020-06-05T07:50:42.960597 | 2015-02-01T12:37:47 | 2015-02-01T12:37:47 | 192,364,720 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 652 | cpp | gradient_descent.cpp | #include "gradient_descent.h"
#include <boost/range/irange.hpp>
namespace recon {
std::pair<Eigen::VectorXf, float> minimize_gradient_descent(
std::function<
std::pair<float, Eigen::VectorXf>(const Eigen::VectorXf&)> target,
const Eigen::VectorXf& initial_param,
const int max_iter,
const float epsilon) {
... |
59baf7a8a0c33ebec0ace8f7ac2ea4556c4730dd | 0c619682d82e155047ff1c9adcdecf5e9c4cc17a | /ABC109/C/C.cpp | 75db339a4c1411679a57f30494842db18bc311b8 | [] | no_license | kasataku777/atcoder_solution | 822a6638ec78079c35877fadc78f6fad24dd5252 | 8838eb10bf844ac3209f527d7b5ac213902352ec | refs/heads/master | 2023-01-23T06:36:59.810060 | 2020-12-03T02:02:40 | 2020-12-03T02:02:40 | 247,486,743 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,218 | cpp | C.cpp | // A.cpp : このファイルには 'main' 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//
#include <iostream>
#include<string>
#include<vector>
#include<cmath>
#include<map>
using namespace std;
int next(int x) {
for (int i = 2; i*i <= x; i++) {
if (x % i == 0) {
return x / i;
}
}
return 1;
}... |
444cf6892a8cfda4e602d4086dc3aaa29d0b61cc | 8ab6150fdb3f24fa1568f0bc27501f49f8100ca6 | /LeapVisualizer.hpp | a610b9c9957e539a2c670541f134474b7b58e149 | [
"MIT"
] | permissive | Ybalrid/LeapRift | 2292f9493bf97f53c63ff3662fa0ce072889f20f | f05ed349875028453cc2f010f0580374d87ce704 | refs/heads/master | 2021-01-18T00:54:37.859193 | 2015-06-03T20:20:44 | 2015-06-03T20:20:44 | 24,844,497 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,572 | hpp | LeapVisualizer.hpp | #ifndef LEAP_VIZUALIZER
#define LEAP_VIZUALIZER
#include <Leap.h>
#include <Annwvyn.h>
#include "HandObject.hpp"
#include "LeapIntegration.hpp"
///Class that updates hand object with information from the LEAP Interface
class LeapVisualizer
{
public:
///Construct the visualizer
LeapVisualizer();
///Destroy the visu... |
e3b6d96e3156ee42869f4b23773224429e10c740 | 19ccfd6806c5054679dab3f275822302206b222f | /src/game/client/object_motion_blur_effect.cpp | 6989bd0be849a23396735f8f8b7c4901d9ea3b50 | [
"Apache-2.0"
] | permissive | BenLubar/SwarmDirector2 | 425441d5ac3fd120c998379ddc96072b2c375109 | 78685d03eaa0d35e87c638ffa78f46f3aa8379a6 | refs/heads/master | 2021-01-17T22:14:37.146323 | 2015-07-09T19:18:03 | 2015-07-09T19:18:03 | 20,357,966 | 4 | 1 | Apache-2.0 | 2018-08-30T13:37:22 | 2014-05-31T15:00:51 | C++ | UTF-8 | C++ | false | false | 3,708 | cpp | object_motion_blur_effect.cpp | //============ Copyright (c) Valve Corporation, All rights reserved. ============
//
// Functionality to render object motion blur
//
//===============================================================================
#include "cbase.h"
#include "object_motion_blur_effect.h"
#include "model_types.h"
ConVar mat_object_m... |
0c2b85e38c2e96662103e9da24bd48a3af556ba7 | 7047db996feac69a2da4de2c367394fc713b33e1 | /include/remote_memory/detail/osx/safe_handle.hpp | 5d1fa31477de5f053003cfdcc5d2ed7d0f2d22f1 | [
"Apache-2.0"
] | permissive | besimbicer89/remote_memory | c6bcd246069c10ecd205de00fd8f1cc00f2ea2ce | 0df021ddf7efed584e6a3d94fcf42f96d76097f0 | refs/heads/master | 2021-09-14T02:04:23.519870 | 2018-05-07T13:10:21 | 2018-05-07T13:10:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,656 | hpp | safe_handle.hpp | /*
* Copyright 2017 Justas Masiulis
*
* 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... |
9cf1325170f1080ffd2a4d12260045376490ecb1 | eb2ae59fff2677a23542bc1758b646411f2d07b3 | /LeetCode/0833_Find-And-Replace-in-String.cpp | 5b6434d135ffc7c2206dcebbe751bcd03496ad7b | [] | no_license | yakode/CandCPP-practice | 8719c9d1c4fe72d7600fbbe6044fecc9c35d1ee3 | c3bdd7d3f5c758073ae4e469cd60cc413fa29173 | refs/heads/master | 2023-08-20T22:27:46.944395 | 2023-08-18T12:40:29 | 2023-08-18T12:40:29 | 216,139,303 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,364 | cpp | 0833_Find-And-Replace-in-String.cpp | // record the replacement that should be done before do any replacement
class Solution {
public:
string findReplaceString(string s, vector<int>& indices, vector<string>& sources, vector<string>& targets) {
bool checked[1005] = {0};
int map[1005] = {0};
// record the original position
... |
a4de78c56e7d8881aad8977d30f5ba87eec047c0 | 4a0c7284d3737a285eda472b46dbf7ffffd3186b | /granitecore/include/Resource.h | 568d34c5205b11879ee9be7d593ec85aaed5811b | [
"Unlicense"
] | permissive | russellholt/gf-rsl2 | 3f8e3971b02580cdc5ae4dcaf891db601082de14 | bf38ccad74af73519bbdb40b0f945bba4d95dcf3 | refs/heads/master | 2016-08-05T09:42:07.368005 | 2013-10-27T18:33:12 | 2013-10-27T18:33:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,018 | h | Resource.h | // Resource.h
// Core RSL declarations for Resources, data storage, and memory management.
//
// ResStatus RSL system return codes with a riding Resource object
// Resource object in the RSL environment
// ResReference memory management interface to a Resource
// ResContext named storage for Resources and other cont... |
9f70319ee8d3a72f4e12068e2c76a5b3055977e6 | 0cb9b6fac17d258ed53d82ea226a913b991b69c9 | /CodeForce/Educational Codeforces Round 38 (Rated for Div. 2)/B.cpp | f5f9757067122f254053f2875eeaa6f762b3f205 | [] | no_license | shawon39/C-C-plus-plus-Programming | 9103c797206463c387e982a2fb43dfe69fce5260 | 0c8375e326571333f5682cab486a56869cf60476 | refs/heads/master | 2020-03-19T04:17:37.499689 | 2018-12-13T17:07:55 | 2018-12-13T17:07:55 | 135,813,934 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,247 | cpp | B.cpp | #include <bits/stdc++.h>
using namespace std;
#define pf printf
#define sf scanf
#define nl printf("\n")
#define pf1(x) printf("%d\n",x)
#define pf2(x,y) printf("%d %d\n",x,y)
#define pf3(x,y,z) printf("%d %d %d\n",x,y,z)
#define sf1(x) scanf("%d",&x)
#define sf2(x,y) scanf("%d %d",&x,&y)
#define sf3(x,y,z) scanf("%d ... |
990501f8f37280a0fab26e737660042780b23203 | 84071dd9688b154577b55939677a7ded59496bb9 | /Minimum_Size_Subarray_Sum.cpp | 904b0c2eef424623fee56ff9e2d8a54f3a697903 | [] | no_license | tabrez008/LeetCode-solution | e80ca7657ac5f98b526c1f8ce8aeb2f0f8992f28 | 978d7b0b9e8eb490ea360d7bfd4fa32d8b9e297d | refs/heads/master | 2022-04-26T01:31:33.761280 | 2020-05-03T16:43:23 | 2020-05-03T16:43:23 | 260,276,012 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 567 | cpp | Minimum_Size_Subarray_Sum.cpp | class Solution
{
public:
int minSubArrayLen(int s, vector<int> &nums)
{
int ans = INT_MAX;
int temp = 0;
int start = 0;
for (int i = 0; i < nums.size(); i++)
{
temp += nums[i];
if (temp >= s)
{
while (start < i and temp ... |
b020d06f5e9b77c9356648d7f555415853e66fbb | c5917002d7ce3c159bca8518143ba663445f5280 | /data_structure/Stack.h | 003ea54f4acba175d781d33bf53259abef6902ed | [] | no_license | Laxiflora/DSA | 4c3fe29d6b395da1043fc22721d38ea238dab410 | a554dcd6c7f35c7243c98f82d0244b4015d0d6de | refs/heads/master | 2023-08-24T01:04:23.029326 | 2021-10-22T11:30:32 | 2021-10-22T11:30:32 | 380,699,161 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 719 | h | Stack.h | #include <iostream>
#include <cstdlib>
using namespace std;
template <class T>
class Stack {
public:
Stack(int def_capacity=100){
array = new T[def_capacity];
capacity = def_capacity;
top=-1;
}
bool IsEmpty(){return top==-1;}
void Excess(){
T* temp = new T[capacity*2];
copy(array,array+c... |
17ca1c561975880baa7aeae48b8cde51e4f333fc | bfa8b036a4a431ed8ed007f882b115cc6eae14a9 | /trigger bot com tcs34725 baseado na cor verde.ino | 22a733e741bfef6126297e5034e7de3445799d97 | [] | no_license | tilenzz/Hardware-Cheats | 944a5158d56a96173591bf7c7ba457a08480adfb | f5f1036408f396c5be8391473f1fc9183a73fb72 | refs/heads/main | 2023-01-23T19:05:08.217581 | 2020-11-25T20:28:18 | 2020-11-25T20:28:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,417 | ino | trigger bot com tcs34725 baseado na cor verde.ino | //nesse exemplo o sensor de cor tcs3472 usa a variação da cor verde para disparar o botão esquerdo do mouse
//isso pode ser utilizado em combinação com outras cores
#include "TCS34725.h"
#include <Mouse.h>
boolean isPressed = false;
TCS34725 tcs;
int pinBotao = 16;
int marcador = 0;
int verde = 0;
void setup... |
36cb6c3d58944d10c3575fe12f2e208cc55de19d | d443f4b163426f9a258e0790d62cb29323790b9d | /composition.cpp | 042a411b46ed4e890e6f3c862a36dcd04ebc787f | [] | no_license | TCMAD/OOP_training_Cpp | 0d3ec6440a5c2f3bb05c602c4568d38f17b31401 | 93f39c6984537b33b5fcc81fc7833e18204a9680 | refs/heads/master | 2022-11-30T08:15:16.340146 | 2020-08-10T13:57:39 | 2020-08-10T13:57:39 | 286,489,142 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 381 | cpp | composition.cpp | #include <iostream>
#include <math.h>
using namespace std;
class LineSegment {
public:
int length;
const float pi{3.14159};
};
class Circle {
public:
LineSegment radius;
Circle(int l) {
radius.length = l;
}
float area(){
return pow(radius.length,2)*radius.pi;
}
};
... |
baa3224d8493c74ab12711b19ff4413f39ed58c8 | 459a8ad7ebd210d95681473896be2ea8fbc555f4 | /src/distance_filter/include/distance_filter/groupbox.h | 35e1ea18a0d6472ff1e50f99272e31dafc50024c | [
"MIT"
] | permissive | Jeffrey-P-McAteer/ros_object_recognition | 357c77aa0c91dfa5c1e5146490f88a66ad9c73a1 | 178ae339641a295991ed236f7996ebf3a4a11434 | refs/heads/master | 2021-01-05T03:22:36.966656 | 2020-02-16T09:02:10 | 2020-02-16T09:02:10 | 240,861,042 | 0 | 0 | MIT | 2020-02-16T09:03:03 | 2020-02-16T09:03:02 | null | UTF-8 | C++ | false | false | 1,771 | h | groupbox.h | /** \file
* \brief Definition of the GroupBox class.
*/
#ifndef DISTANCE_FILTER_GROUPBOX_H
#define DISTANCE_FILTER_GROUPBOX_H
// Qt.
#include <QWidget>
#include <QGridLayout>
#include <QGroupBox>
// Our headers.
#include <object_detection/observer.h>
// Forward declarations.
class QLabel;
class QDoubleSpinBox;
... |
202a07a466e112798a8f12fa70accdfa7bbb0282 | c4bf060847c194c886383126e1274cd3b0b1c82d | /ctrtool/deps/libtoolchain/test/crypto_Rsa4096Pkcs1Sha512Signer_TestClass.h | c415b29e575649242656b20763ebe66f8f46f1f7 | [
"MIT"
] | permissive | PMArkive/Project_CTR | 1d4ef452c299ba0c823e373e160fdd78e985301f | 334f6f04683e788c1bc9e614a554d078005adc1f | refs/heads/master | 2022-12-22T00:33:04.185114 | 2022-06-19T05:53:25 | 2022-06-19T05:53:25 | 163,554,339 | 1 | 0 | null | 2018-12-30T01:57:22 | 2018-12-30T01:57:22 | null | UTF-8 | C++ | false | false | 506 | h | crypto_Rsa4096Pkcs1Sha512Signer_TestClass.h | #pragma once
#include "ITestClass.h"
#include <vector>
#include <tc/ByteData.h>
class crypto_Rsa4096Pkcs1Sha512Signer_TestClass : public ITestClass
{
public:
void runAllTests();
private:
void test_Constants();
void test_UseClassSign();
void test_UseClassVerify();
void test_UseUtilFuncSign();
void test_UseUtilFu... |
c6ace0f6e27a703fe74a648d612f28529ff61fb3 | d142d6aa51875ec17635b1015289e5a3af52cca5 | /include/GameObjectsLayers.h | 85ff41c1b45b82d98cf7c9c58337afd56edc11da | [] | no_license | LeoArr/SDDE | c8e9c08f26cb3ffdbffd97d0a1e195a09432eb24 | 038f60e0de321197e551e8094f272fa754ad7161 | refs/heads/master | 2023-04-10T15:17:11.078273 | 2019-07-12T09:28:49 | 2019-07-12T09:34:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,421 | h | GameObjectsLayers.h | #ifndef GAME_OBJECTS_LAYERS
#define GAME_OBJECTS_LAYERS
#include <Logger.h>
#include <GameObjectsLayer.h>
#include <map>
class GameObjectsLayers {
public:
GameObjectsLayers() : _isDirty(false) {};
~GameObjectsLayers() {
clear();
}
void clear() {
for (auto layer : _layers) {
delete layer.second;... |
e009025a3b43be107bdc668a6b4d310555d89f94 | dc5ff438d66e64050ad253da01820a2f03389f7c | /612Div1/EmoticonsDiv1.cpp | cc78ec608a931572c6eb69176c8de83b1cc296b9 | [] | no_license | maqin/SRM | 7d9a45ec4262b6f105203f3b7063028af045d5c3 | c7a1e08e54e5e4551e841814669e3b32262d16b1 | refs/heads/master | 2021-01-22T03:06:20.067586 | 2015-05-10T00:48:41 | 2015-05-10T00:48:41 | 21,329,896 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,390 | cpp | EmoticonsDiv1.cpp | #include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <c... |
a3ea018d194f71e5305200d92fd1f14ee71bdb75 | 987425005f1abd95a749394716559375818a695a | /codeforces/R50_div2/B.cpp | 91b5a167540c237fbdcdc09ba3dfeb04831ff777 | [] | no_license | duny31030/My_road_of_ACM | b01db0334f33ce7f26a9fe83bd9e0646bba49a28 | 2de8c8f2d402dfc36f635174104a4923e03030b3 | refs/heads/master | 2020-03-10T04:32:24.505006 | 2019-01-03T07:31:27 | 2019-01-03T07:31:27 | 129,194,697 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,689 | cpp | B.cpp | /*
* =========================================================================
*
* Filename: B.cpp
*
* Link:
*
* Version: 1.0
* Created: 2018/09/07 22时49分45秒
* Revision: none
* Compiler: g++
*
* Author: 杜宁元 (https://duny31030.top/), duny31030@126.com... |
148c1b650a07c9d04676f82f28cdaac38065b410 | 39921d049a882220193fb45f4023a6831fb79908 | /Pods/FirebaseFirestore/Firestore/core/src/nanopb/nanopb_util.cc | de4b34dea7d9a68cf640e6c3a7e194fa86478ef6 | [] | no_license | furydeveloper/SearchCoinKaraoke | a48bb7f0a4032735a2fc8895bd6bb02626b392b3 | 98043d3e280814f75c4f6c7957e6c0eee320a9b9 | refs/heads/master | 2023-08-10T23:24:28.780365 | 2021-10-03T02:51:57 | 2021-10-03T02:51:57 | 409,012,702 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 129 | cc | nanopb_util.cc | version https://git-lfs.github.com/spec/v1
oid sha256:6f6966065d4babeea543066b0068b306ec619f75b852c22dfa62cb88516f6a7d
size 2755
|
25e97f6e5f284cae66ee0b8c9ca2d6455947673c | a634f3d4a609c73a604d9b450d0f9e68e0b7771d | /src/noise/Selector.h | c70ce52f18810909bfd474347e0beaae32bba807 | [] | permissive | BaronVerde/orf_n | fc7fc2e322661befac03b65aaf279a9b21eb8800 | 57487dade93a29cb1ba24dffb7b1b3814e1515d2 | refs/heads/master | 2022-07-17T17:59:07.180554 | 2022-06-25T09:58:17 | 2022-06-25T09:58:17 | 163,870,148 | 1 | 0 | MIT | 2019-04-17T11:36:49 | 2019-01-02T17:26:51 | C++ | UTF-8 | C++ | false | false | 6,685 | h | Selector.h |
#pragma once
#include <noise/BaseNoise.h>
namespace noise {
/// Noise module that outputs the value selected from one of two source
/// modules chosen by the output value from a control module.
///
/// @image html moduleselect.png
///
/// Unlike most other noise modules, the index value assigned to a source
/// mod... |
494c4e41eac6f724d2091e9db743880a69626230 | 39f3baeb1824e9f93773038856c469778e23180c | /src/vnSceneQuad.cpp | c42ca852e09cb5238d8df8c8e65828f54be32132 | [] | no_license | signorinotang/vn2d | 965d247f0db1348eed0977628bcb4326bcd5a4e2 | d653e2b787532f428d227a8613aa961d1e97c89f | refs/heads/master | 2020-03-28T19:11:14.709615 | 2014-07-03T02:30:20 | 2014-07-03T02:30:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,101 | cpp | vnSceneQuad.cpp | //
// vnSceneQuad.cpp
// vn2d
//
// Created by Wayne on 14-1-15.
// Copyright (c) 2014 viichi.com. All rights reserved.
//
#include "vnSceneQuad.h"
#include "vnSceneNode.h"
_vn_begin
SceneQuad::SceneQuad()
: m_dirty(false)
, m_blend(Device::kAlphaBlend) {
m_quad.setColor(color_t::kWhite);
}
void SceneQuad::... |
181c5469bbc61ccfdb95900c613b74437bf51a86 | 584e753b5c10a2c4cefd615f5f7d47f879559060 | /include/entity/base.h | 11ebd58b9111600d727621d731ab1d6aa41f945d | [] | no_license | a-pavlov/textmagic-rest-cpp | 39227e5d1287d2b4e35d833176a8070ed5edef80 | 5c5d0ebb61a8e150f6091cc52322e682a2e0259b | refs/heads/master | 2021-01-18T07:58:24.598734 | 2015-09-11T16:53:24 | 2015-09-11T16:53:24 | 42,320,937 | 0 | 0 | null | 2015-09-11T16:51:03 | 2015-09-11T16:51:02 | null | UTF-8 | C++ | false | false | 873 | h | base.h | #ifndef TEXTMAGIC_BASE_H
#define TEXTMAGIC_BASE_H
#include <vector>
#include <map>
#include <string>
#include <json/json.h>
#include <utils.h>
#include <restclient.h>
namespace Textmagic {
class BaseModel {
public:
BaseModel(const std::string& data){
response = data;
};
BaseModel(){
response = ""... |
dc1f606733b62679d4a55a335878569432a1bea0 | 9b1639af63f7fc82f0e488b452dee0cb7ae22a3b | /Consumer/trunk/src/UI/DefAlert/DefAlertPlugin.cpp | a780009db541d15f59e216862039fb137716dc82 | [] | no_license | ExpLife/Norton_AntiVirus_SourceCode | af7cd446efb2f3a10bba04db8e7438092c7299c0 | b90225233fa7930d2ef7922080ed975b7abfae8c | refs/heads/master | 2017-12-19T09:15:25.150463 | 2016-10-03T02:33:34 | 2016-10-03T02:33:34 | 76,859,815 | 2 | 4 | null | 2016-12-19T12:21:02 | 2016-12-19T12:21:01 | null | WINDOWS-1252 | C++ | false | false | 30,071 | cpp | DefAlertPlugin.cpp | ////////////////////////
//
// PROPRIETARY / CONFIDENTIAL.
// Use of this product is subject to license terms.
// Copyright © 2006 Symantec Corporation.
// All rights reserved.
//
/////////////////////////////////////////////////////////////////////////////////////////////////
#include "StdAfx.h"
#include "r... |
075e6239708388fc34bb9adaaef6363f5daae48a | a9bf767ae9120329a31457b8311f76ab64eb4c26 | /udp-networking/Mesh.cpp | 023ecc59afc003ecaaa124f8401685217690f8a4 | [] | no_license | theonteo/multiplayer-udp-winsock | e6a413baf0389749308af3af8ba9b392131403d4 | 91ce0c67959e0606d6bdfe373495143ff42ad8fb | refs/heads/main | 2023-08-29T15:26:05.568991 | 2021-10-23T20:58:57 | 2021-10-23T20:58:57 | 386,993,016 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,399 | cpp | Mesh.cpp | /******************************************************************************/
/*!
\file Mesh.cpp
\author Choo Chi Keong Bryan
\author Kevin Hartono
\author Teo Zheng Yong Theon
\date 01/08/2021
\brief
This file contains the definition of the multiplayer udp c++ application.
*/
/************************************... |
da79b937a134ed610ccf8c582acb7153e66270d9 | a685e28b50168059999e5455b35702d0655be131 | /Bcore/src/main/cpp/Dobby/builtin-plugin/SupervisorCallMonitor/deprecated/mach_system_call.cc | d8243da07a63f20cb49c68955def35f945b3cd5b | [
"Apache-2.0"
] | permissive | dewee-dev/BlackDex | d1e1cef51ce5a313bf1180f657be4f080368048c | 95d1b3612b23b7147a304bebda2d6f9aedafb8aa | refs/heads/main | 2023-09-03T13:18:48.439842 | 2021-11-15T10:09:01 | 2021-11-15T10:09:01 | 427,742,709 | 0 | 0 | Apache-2.0 | 2021-11-13T18:28:20 | 2021-11-13T18:28:19 | null | UTF-8 | C++ | false | false | 2,220 | cc | mach_system_call.cc | #include "dobby_internal.h"
#include "MachUtility.h"
#include "PlatformUtil/ProcessRuntimeUtility.h"
#include <unistd.h>
#include <stdlib.h>
#include <iostream>
#include "misc-helper/async_logger.h"
extern char *mach_msg_to_str(mach_msg_header_t *msg);
#if 0
typeof(mach_msg) *orig_mach_msg = NULL;
mach_msg_retu... |
8c8f94311095718b86b6864424c459af2c46337b | ee830c48b6cf531a862287186ccf89345866b5ef | /DataStructure/c++/HashTable.cpp | 63441d622af8ac8d6c520f589c9e734f0347b1cc | [] | no_license | huisam/JinLearnedList | 6afa7fb16638042b037f8a3425eb341739ef515e | 018d3e8f200b272c0323d6d946842234bc969fdc | refs/heads/master | 2023-03-12T16:55:45.404646 | 2021-03-06T11:38:34 | 2021-03-06T11:38:34 | 118,875,274 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,272 | cpp | HashTable.cpp | #include<iostream>
using namespace std;
void mstrcpy(char *dst, const char *src) {
int pos = 0;
while (dst[pos] = src[pos]) {
pos++;
}
}
int mstrcmp(const char *str1, const char* str2) {
int pos = 0;
while (str1[pos]) {
if (str1[pos] != str2[pos])
break;
pos++;
}
return str1[pos] - str2[pos];
}
#def... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.