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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
85b7c7a4777ebbfe1261b14255aced71122c1c69 | 68fc97602415a9f9a07325826066ba7997ab077c | /src/exec/logging_examples/log_test.cpp | c4955d30ad351dc06da9145443ab8fd63f53ba2e | [
"MIT"
] | permissive | LoganBarnes/geometry-visualization-server | 25a6725b7df5c6a78ec0d4f6132bb5dd78287298 | 3ea890d760ada4e5a248e98dded2e27ba6bd5dde | refs/heads/master | 2021-06-10T11:35:57.960308 | 2021-04-17T10:34:52 | 2021-04-17T10:34:52 | 157,933,255 | 1 | 1 | MIT | 2019-07-24T16:51:16 | 2018-11-16T23:40:06 | C++ | UTF-8 | C++ | false | false | 5,775 | cpp | log_test.cpp | // ///////////////////////////////////////////////////////////////////////////////////////
// Geometry Visualization Server
// Copyright (c) 2018 Logan Barnes - All Rights Reserved
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (... |
27cf8df1f3d0e232e4b241e74ccac57372007900 | 947c92de7e982ad3fc0d72f4f5e8c536753855f0 | /CH_11_01.cpp | 40a091732b519a3e2f31cd4bc652e4b9fd54f162 | [] | no_license | Jpub/MbedProgramming | b8b183fc0d588e6b5964db8d8300bdd7b37e951b | 1850713c472e68c8aef790c8668623c7f36900d8 | refs/heads/master | 2020-05-25T11:53:31.805125 | 2019-08-06T00:36:49 | 2019-08-06T00:36:49 | 187,787,138 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 209 | cpp | CH_11_01.cpp | #include "mbed.h"
DigitalOut myLED(LED1);
int main() {
bool state = true; // LED 상태
while(1) {
myLED = state; // LED에 상태 표시
state = !state; // LED 상태 반전
wait(1);
}
} |
f166b2e7b2cfecf3ce6b7326ab179b9653f72e70 | 5515f39389d86ef08eb3768432d7699cb656fd0c | /Server/GameServer/TimerDispatcher.cpp | 983f480f9b4ec80475a6387ff689c220144792b6 | [
"MIT"
] | permissive | goodaehoon/tps | f9204c72a1c69d181fa9db7ae5fc026226fcc4a1 | 3ca3b4850175e5a9dbbabf79f5154a6bfc4237ef | refs/heads/master | 2021-05-05T20:47:05.966755 | 2018-01-24T02:30:17 | 2018-01-24T02:30:17 | 115,472,317 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 516 | cpp | TimerDispatcher.cpp | #include "Precompiled.h"
#include "TimerDispatcher.h"
#include "Stream.h"
#include "InterPacket.h"
#include "MySQLConnector.h"
#include "DBManager.h"
#include "SamdaNet.h"
#include "StringUtil.h"
#include "MessageQueue.h"
#include "Application.h"
#include "Log.h"
using namespace InterPacket;
TimerDispatcher::TimerDis... |
d92dcb5a764c2e1c0e878098c8628fd26ac2cf10 | 8b5258edd7e042532d69e23032ecfc19c0778df6 | /Server_Push/MdfServerConnect.cpp | f8e356754f8d32d4052f7184a4dd032ecf140fdc | [
"BSD-3-Clause"
] | permissive | suzhengquan/MBCAF | 62ee5f0f28389c45b64c0f1bb0c92721720a095d | 53100d7ddc52be34c470bfb9c374b72be58c2549 | refs/heads/master | 2023-02-04T13:23:52.840182 | 2023-01-29T07:14:49 | 2023-01-29T07:14:49 | 169,354,525 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,338 | cpp | MdfServerConnect.cpp | /*
Copyright (c) "2018-2019", Shenzhen Mindeng Technology Co., Ltd(www.niiengine.com),
Mindeng Base Communication Application Framework
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redi... |
24de9024d29f367f88d4d1889ee9b09c505741bb | b3eca83e9cfedbb2ffa33bd020bb26bc76b2788c | /Source.cpp | d88b762c5111bd8e6fe301ca569e689e1167fe2a | [] | no_license | 6413/vnc | 5079a6eac28110dd1fbc9e3235f4fde04dbeb0a4 | 0a5b43517c59fc4a52da21ce83f617c0efe14ee2 | refs/heads/master | 2023-05-07T17:49:20.185229 | 2021-05-25T11:32:36 | 2021-05-25T11:32:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 34,982 | cpp | Source.cpp | #include <WITCH/WITCH.h>
#include <WITCH/PR/PR.h>
#include <WITCH/T/T.h>
#include <WITCH/A/A.h>
#include <WITCH/VEC/VEC.h>
#include <WITCH/RAND/RAND.h>
#include <WITCH/VAS/VAS.h>
#include <WITCH/STR/STR.h>
#include <WITCH/IO/SCR/SCR.h>
#include <WITCH/IO/print.h>
#include <WITCH/EV/EV.h>
#include <WITCH/NET/TCP/TCP.h>... |
45c766c82b8d9fb4c4face6d433a3d79a0bef1f0 | 22b524a0c286644ab31eb9a6209478b913aef241 | /Action.cpp | 6aaa79333531036def59e759cdfb678f2fc82d33 | [] | no_license | jmp610/archipelago | ed742e2b57efd392366929ae75b518a7f5f6e9a4 | c73695c4167fe377be18b95644cb266f8ea74783 | refs/heads/master | 2016-09-09T18:57:06.483913 | 2009-09-28T18:17:53 | 2009-09-28T18:17:53 | 296,005 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 93 | cpp | Action.cpp | #include "Action.h"
namespace archipelago
{
Action::Action()
{
}
Action::~Action()
{
}
}
|
51914457294a9e8868ee8bd38d8d009f32f3160d | 9debce1d30acfefd4760edbc53d510f56ce68a0f | /Assignment4/Assignment4/Customer.h | 6639e255577a5154e94d7160df7f46832579aaa2 | [] | no_license | TofuMars/CSS343Assignment4 | 9f6bceeb88446f9ce75eb2df7bba3c5e1e77fb57 | 396325a4249403574d19a5e52460539d0ae1c614 | refs/heads/master | 2020-03-17T08:16:46.419793 | 2018-06-03T23:26:22 | 2018-06-03T23:26:22 | 133,432,097 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 773 | h | Customer.h | #pragma once
#include <string>
#include <list>
using std::string;
using std::list;
class Customer
{
private:
string ID;
string firstName;
string lastName;
list<string> borrowed;
public:
Customer(string id, string firstnme, string lastnme);
~Customer();
bool IsBorrowed(string movie); // checks whet... |
477cfd5b0773a842a2bc27e83d4e78529366af6a | 615d6b840ee7a4c3b132c503ad8059825086662e | /src/PowerSensorPlugin.cpp | fab2e260e20768faab5bdea635aeb6b02d176486 | [
"MIT"
] | permissive | fusor-io/fusor-state-machine-plugins | b4b2073782bbdbd87e6bca34b63060bee55e4b77 | 178d7ea8e470c0bd1911187e60ba892aa35f16f5 | refs/heads/master | 2023-03-08T20:25:27.696893 | 2021-02-20T16:19:47 | 2021-02-20T16:19:47 | 336,639,653 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,429 | cpp | PowerSensorPlugin.cpp | /**
* Plugin for measuring power consumption based on SCT-013 current sensor
* If device has corrent local system time, this plugin can accumulate
* power consumption for peak hours and for off-peak hours
*
* Input variables:
* "coef_p" - coefficient used to translate AC current amplitude
* ... |
394577b84301aea4cefd1ccbde6033ec99b704dd | 150b768328db3ad1f785f5d6b0d70e4c20a588d4 | /AtomGraphics/graphics/PlatformLayerBackingStore.cpp | c31246bca7856d077357519fe8b68a003754a55a | [] | no_license | Polepoint/AtomGraphics | 2fda9e8e32a56954efbc6656ad5bc867b3f58dcc | 6e0e73119afa4c27ccd65d3d14de682f852ac3dc | refs/heads/master | 2022-08-14T13:31:07.012604 | 2022-07-08T01:13:47 | 2022-07-08T01:13:47 | 127,279,667 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 5,075 | cpp | PlatformLayerBackingStore.cpp | //
// Created by neo on 2018/7/5.
// Copyright (c) 2018 neo. All rights reserved.
//
#include "PlatformLayerBackingStore.h"
#include <algorithm>
#include <utility>
#include "GraphicsContextStateSaver.h"
#include "PlatformLayerBackingStorePainter.h"
#include "PlatformLayer.h"
#if PLATFORM(IOS)
#include "GraphicsContex... |
8987aa66a52f439795fc4e0f4bc61ec2e6c1f67b | d25de4ea050534c4d75d8beff9ac56fa03ecd19b | /mytest/src/myblob.cpp | f22cd0834f4222d8788b9c91db8b7c999aae9c8b | [
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | HustCoderHu/caffe | 8d668367669445f20c1b7f55b6633582d386c74b | 5cebc9ce23310a0a651dd97ba26686ea706a7238 | refs/heads/master | 2021-09-07T21:30:01.722621 | 2018-03-01T11:27:28 | 2018-03-01T11:27:28 | 113,821,777 | 0 | 0 | null | 2017-12-11T06:34:40 | 2017-12-11T06:34:40 | null | UTF-8 | C++ | false | false | 1,086 | cpp | myblob.cpp | #include <cpu_only.h>
#include <myblob.h>
using std::vector;
namespace mytest {
MyBlob::MyBlob(Blob<float> *blob)
: ranked_(false), blob_(blob)
{
const vector<int>& shape = blob_->shape();
output = 1;
channels = 1;
height = 1;
width = 1;
int shapeSize = shape.size();
switch (shapeS... |
e968db90977998a9f1e26858d8eb99084188402d | c81b972372fd0eea717f643b57166534b5eb1e7b | /src/libluna-service2++/test/test_disconnection.cpp | 851f53fdf3fb6d5e3e68b34f1102c1e877e38695 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | webosce/luna-service2 | abda920854660d77acc731d3583c2acc2d17689a | 19ea833074bd9e091b13f3a520705d68ff75c29c | refs/heads/webosce | 2023-04-30T03:37:15.567841 | 2018-09-20T04:05:10 | 2018-09-29T05:30:49 | 145,513,161 | 1 | 3 | null | 2023-09-06T09:22:18 | 2018-08-21T05:50:45 | C++ | UTF-8 | C++ | false | false | 3,942 | cpp | test_disconnection.cpp | // Copyright (c) 2014-2018 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... |
6d96069f90eb5437b60e44d00a0d1b7292fbd622 | e3ad51eab6dd24ae415ed53c5bbb304e5ce82b64 | /tools/csvreader.hh | 2c0c2791663eb0273ccceede946de4ec972c5757 | [] | no_license | ggutierrez/cprel-music | b93cd5f28c302c7593e0b0f34c73fea7fab8803e | 492e57b9b9d1c836ddc681825f20ab47968b7cea | refs/heads/master | 2021-01-01T16:13:38.882198 | 2012-02-26T21:24:54 | 2012-02-26T21:24:54 | 2,686,619 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 334 | hh | csvreader.hh | #ifndef __CPRELTOOLS_CSVREADER_HH__
#define __CPRELTOOLS_CSVREADER_HH__
#include <fstream>
#include <bdddomain/rel-impl.hh>
namespace CPRelTools {
/**
* \brief Takes the information in \a is and creates a ground relation out of it.
*/
MPG::VarImpl::RelationImpl
createFromCSV(std::istream& is, int column... |
97722a006528970064d7e635eaf5574722caee08 | 8f50c262f89d3dc4f15f2f67eb76e686b8f808f5 | /PhysicsAnalysis/Algorithms/SelectionHelpers/SelectionHelpers/SelectionReadHandle.h | 3ad43fc265e24799bf12a9c7a56857db42b51dc1 | [
"Apache-2.0"
] | permissive | strigazi/athena | 2d099e6aab4a94ab8b636ae681736da4e13ac5c9 | 354f92551294f7be678aebcd7b9d67d2c4448176 | refs/heads/master | 2022-12-09T02:05:30.632208 | 2020-09-03T14:03:18 | 2020-09-03T14:03:18 | 292,587,480 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,932 | h | SelectionReadHandle.h | /*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/
/// @author Nils Krumnack
#ifndef SELECTION_HELPERS_SELECTION_READ_HANDLE_H
#define SELECTION_HELPERS_SELECTION_READ_HANDLE_H
#include <AthContainers/AuxElement.h>
#include <AsgTools/MsgStream.h>
#include <memory>
class StatusCode;
na... |
a81f0ad699ba5f1a46e557d124f2ccbe398d30b1 | e68dfb0081d396363c15e9dd486320352af64f4c | /leetcode/JumpGame.cc | f1dc920b7d5d0caed40fb1915fd256c3c0bc44c3 | [] | no_license | bxyang/helloworld | 9abe1176c7973cf8af9451375198a21219d5d7d5 | f96ba5e3e1d1fa18056e15faa6336abb994a4242 | refs/heads/master | 2020-04-09T16:52:09.975377 | 2018-12-17T03:51:00 | 2018-12-17T03:51:00 | 10,117,301 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,148 | cc | JumpGame.cc | /*
* =====================================================================================
*
* Filename: JumpGame.cc
*
* Description:
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum... |
cfa252a403a2bcb5fd9e12d44d758e2c4c395ea6 | e26fd216d74070b64debf579488a8310fe4778a3 | /xrd_simulation/lattice.cpp | 982878ee872f8da9d9593f52f8f2a12752eaacd2 | [] | no_license | lacc97/mphys-project-xrd | e4dfd0125559b4f3ea67e9279d3aded84f39b334 | 90488c6eedb7c4103473c51f2faddcb3753198f7 | refs/heads/master | 2023-08-31T05:37:05.496025 | 2021-09-29T10:04:36 | 2021-09-29T10:04:36 | 411,636,398 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 937 | cpp | lattice.cpp | #include "lattice.hpp"
#include <fmt/format.h>
#include <nlohmann/json.hpp>
#include <types_json.hpp>
xrd::lattice nlohmann::adl_serializer<xrd::lattice>::from_json(const nlohmann::json& j) {
if(j.contains("type")) {
auto type = j.at("type").get<std::string>();
if(type == "cubic")
return xrd::lattic... |
4ff98fa5bac4fe2faf0d17032f69f54be7e49861 | cdf3150fca9c8be880335ebe1e96201c813a4795 | /homework/Kuznetsova/02/calculator.cpp | 7524685a5837951ef4d865c4631ee26a306c1ed3 | [
"MIT"
] | permissive | mtrempoltsev/msu_cpp_autumn_2017 | af2b13377b0132c8204980d484cf07c9673e3165 | 0e87491dc117670b99d2ca2f7e1c5efbc425ae1c | refs/heads/master | 2021-09-20T04:08:23.316188 | 2018-08-03T09:23:51 | 2018-08-03T09:23:51 | 104,074,449 | 10 | 22 | null | 2017-09-28T21:35:52 | 2017-09-19T12:52:20 | C++ | UTF-8 | C++ | false | false | 3,047 | cpp | calculator.cpp | #include "calculator.h"
//определяем тип текущего токена
Token get_token(const char*& input) {
while (auto c = *input++) {
switch (c) {
case ' ':
continue;
case '+':
return Token::Plus;
case '-':
return Token::Minus;
... |
eba05986c6b4818dc19d1ca4f1546663aacfb0c0 | ae0dbf9739042461b1b55dd79aad3beff25ba3b0 | /cd3.cpp | e2844a3791dd87fee5ee40d83ab08cd8bf857e3e | [] | no_license | saquib77/Code | b058d587438c5e029a1b422b2facb80924c69f91 | 006faa69f35d3cbfd9aca261ed696cab78ff7fb0 | refs/heads/main | 2023-07-14T01:05:22.466452 | 2021-08-20T06:55:13 | 2021-08-20T06:55:13 | 341,225,695 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 318 | cpp | cd3.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int t;cin>>t;
while(t--){
int n,k,d;
cin>>n>>k>>d;
int ar[n];
int dys=0;
int sum=0;
for(int i=0;i<n;i++){
cin>>ar[i];
sum+=ar[i];
}
cout<<sum<<endl;
int host=sum/k;
if(host<=d) cout<<host<<endl;
else cout<<d<<endl;
}
return 0;
}
|
c266bfcc481d0c1aaf2fa8ea31b36557c63d63ae | c6ce1cb14646e43bafa32165f3d959dae1d08841 | /myfunc.h | 95343cd09c45b106ff21690fc54f467b269005ea | [] | no_license | hpml5g115/RS2019_main | 0d99327aebc29d2fd931f43ce13c7e03a209fcca | 74bfa2a2c5b4c956ee4481a8fc6da0c85918f9b7 | refs/heads/master | 2020-03-30T19:37:09.891375 | 2019-01-16T07:18:15 | 2019-01-16T07:18:15 | 151,550,678 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,214 | h | myfunc.h | #ifndef _MYFUNC
#define _MYFUNC
#include "class.h"
// ピン番号を定義
// #define R_PULSE 16
// #define R_DIR 12
// #define L_PULSE 21
// #define L_DIR 20
const int X_max = 600;
const int Y_max = 600;
const int X_half = (int)(X_max / 2);
const int Y_half = (int)(Y_max / 2);
//表示するレンジ(これ以上は切り捨て)
const double dis_range = 6000.... |
0f5daaedb4cab42f4b446320915595d8ee8f7bb0 | 56c0c05a3ba44226bd942ed598e83d97d330a986 | /Src/CIL/Interlocked.cpp | d21a4500579a1ec714337bb40ab5368955bfc32c | [] | no_license | alexonea/OpenATL | 6d6b06cd22814ac7e0698986a14c8472a4fb3fb9 | 5f25380a97883ea4ae3c873da81a63f23a387fc1 | refs/heads/master | 2020-04-29T03:54:27.246365 | 2019-03-19T01:49:26 | 2019-03-19T01:49:26 | 175,828,118 | 0 | 0 | null | 2019-03-15T13:45:04 | 2019-03-15T13:45:04 | null | UTF-8 | C++ | false | false | 326 | cpp | Interlocked.cpp | #include <CIL/Interlocked.hpp>
CIL_NAMESPACE_BEGIN (CIL)
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
CIL_NAMESPAC... |
f1593002c34aad269bdd27d9c0c9f90c5f8b0ef2 | 08c1f6d7fe1e83d6d4ae23d5e9adbb96af17ecae | /第3部分C++模板和泛型编程/3.2序列容器/3.2.2array/array.cpp | bdd18b69c6f9a9685c464e17cd155743167c0132 | [] | no_license | 13739601330/CPP | a435641add3fbd9e2a8cd0f4d0713e2071238f6f | 9a0157e518fdd1e140554e0d80d8a8053d98b0fb | refs/heads/master | 2023-08-08T04:19:19.525503 | 2021-09-12T01:34:46 | 2021-09-12T01:34:46 | 394,698,682 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,191 | cpp | array.cpp | #include <iostream>
#include <array>
#include <tuple>
#include <type_traits>
using namespace std;
//这个函数通过tuple_value在编译时确定了传入array的元素数量
//效率更高,通用性好
// template <class T>
// void test(T t)
// {
// int a[std::tuple_size<T>::value]; // 能用于编译时
// std::cout << std::tuple_size<T>::value << '\n';
// }
int main(int ... |
3cdcdf11beb7b5e1f5823aade0d4f2d047b012a0 | 2d567eec6aa1a1dd743a9723413fda0f6fe3476e | /xolotl/perf/include/xolotl/perf/os/OSTimer.h | dde651dc1d1688a0c5d37929447457d27eb2a339 | [
"BSD-3-Clause"
] | permissive | ORNL-Fusion/xolotl | 1b46ec711b0544eae74af441a056c6c13e8b3dd6 | 7693b656c39f9d909b70bc1ecf93686888223ae5 | refs/heads/stable | 2023-08-17T15:16:36.937955 | 2023-06-29T14:29:06 | 2023-06-29T14:29:06 | 120,320,792 | 14 | 19 | NOASSERTION | 2022-11-07T20:19:04 | 2018-02-05T15:10:06 | C++ | UTF-8 | C++ | false | false | 1,899 | h | OSTimer.h | #ifndef OSTIMER_H
#define OSTIMER_H
#include <chrono>
#include <limits>
#include <xolotl/perf/ITimer.h>
namespace xolotl
{
namespace perf
{
namespace os
{
/**
* A timer that measures how long something takes to execute.
* Uses an operating system/runtime timer interface.
*/
class OSTimer : public ITimer
{
private... |
696309ff7419f21be6f421e65574f174d305c6cc | 1fc8f3ad84f27df094a6a8e340c5a1f7f8744272 | /Leet-Code-Question/longest-common-prefix/longest-common-prefix.cpp | c7864b45fc367e17304858f105689184f36aabe5 | [] | no_license | vaibhavarora14/Ace-The-Code | 528501d7a76b9e36791de54d99c9cecebafb7fa8 | 9c325845c66daab9d286a2709b91d1e2f8e82c74 | refs/heads/master | 2023-06-26T10:12:13.772611 | 2021-07-24T12:01:07 | 2021-07-24T12:01:07 | 389,092,773 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 627 | cpp | longest-common-prefix.cpp | class Solution {
public:
string longestCommonPrefix(vector<string>& strs) {
int numberOfString = strs.size();
if(numberOfString<1){
return "";
}
int wordsInNumber = strs[0].size();
int counter=0;
string ans="";
bool checkFlag=true;
... |
f1dee912c99677c1990a41e55a39afb1d5b6506d | 3593844fd237df13b8f1839beab949f57de27307 | /Codeforces/432-1/A.cpp | 30ae33c5e6a94873dc1ade35dd5fd780c80eace6 | [] | no_license | juniorandrade1/Competitive-Programming | d1330cdde646e770c423abf474c0bfc7ef04c4c0 | 75c11dcfef38088e2367508acfe507f85cfbd36b | refs/heads/master | 2021-01-10T09:32:17.051979 | 2018-05-27T20:06:26 | 2018-05-27T20:06:26 | 51,162,932 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,252 | cpp | A.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;
typedef pair< ll, ll > ii;
typedef vector< ll > vi;
typedef vector< ii > vii;
#define INF 0x3F3F3F3F
#define LINF 0x3F3F3F3F3F3F3F3FLL
#define pb push_back
#define mp make_pair
#define pq priori... |
9f8002708dbc42f924466f7536c085de6ccdd55e | 6057f75efcc4131ca6f92ae2157b4a9bf1ba1379 | /Example/main.cpp | 5ed061eb8171aa33f89e54881e63f095e4323dba | [] | no_license | fadyosman/Polycode-Qt | 312603a16a4f02f746ca063c35fbae45c494d515 | 0630c5356a6bfdb907cf591dcaa7c0edd5b0b954 | refs/heads/master | 2021-01-10T12:09:28.232685 | 2015-12-18T16:14:18 | 2015-12-18T16:14:18 | 48,244,155 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,289 | cpp | main.cpp | #include <QApplication>
#include "polycodewidget.h"
#include <PolycodeView.h>
#include <PolyScene.h>
#include <PolyScenePrimitive.h>
#include <PolyCamera.h>
#include <PolySceneImage.h>
#include <PolyCoreServices.h>
#include <PolyResourceManager.h>
#include "inputhandlers.h"
#include <QTimer>
#include <PolySceneLabel.h>... |
1be696b78fcb21ee51d996cc2d20851cafb778ed | 075c94a76df453abc5d831d76493dc1249bd6804 | /Processor.h | 84390da0d31fb8ecd516c11c46f3bc0ac14409de | [] | no_license | gdrane/hw4_embedded_systems | 7c2efca7261a7af16d1424386c08a46b15d216fb | 0cd117b7dda7557781428d87289e7aaddd519d6a | refs/heads/master | 2021-01-01T06:04:38.474062 | 2011-11-16T02:55:09 | 2011-11-16T02:55:09 | 2,746,787 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,094 | h | Processor.h | #ifndef PROCESSOR_H
#define PROCESSOR_H
#define MAX_BUFFER_SIZE 4096
#include "Graph.h"
#include "Scheduler.h"
// -- Variables --
signed long outBuffer[MAX_BUFFER_SIZE] __attribute__ ((section("AHBSRAM1")));
class Processor {
public:
Processor(Graph* topology, Scheduler* scheduler, int buff_length) {
... |
c3d829b6ce8a9038cb4c5dba807ffbdc789d20dc | 8b4a9e04e65c9ef7283b4e33421817c49c5b3173 | /head/src/nau/material/iBuffer.cpp | 97b4a396d33ccadf1f5b03357d52b19ffe48f9b1 | [
"MIT"
] | permissive | david-leal/nau | 365f0bff16349345039a74de544d12433d74c23a | 57a55567e35ce6b095d15e4aed064160a79aacb1 | refs/heads/master | 2020-12-02T19:48:06.654597 | 2016-09-19T21:41:13 | 2016-09-19T21:41:13 | 46,269,171 | 0 | 0 | null | 2015-11-16T10:57:46 | 2015-11-16T10:57:46 | null | ISO-8859-1 | C++ | false | false | 1,843 | cpp | iBuffer.cpp | #include "nau/material/iBuffer.h"
#ifdef NAU_OPENGL
#include "nau/render/opengl/glBuffer.h"
#endif
#include "nau.h"
using namespace nau::render;
using namespace nau;
bool
IBuffer::Init() {
// UINT
Attribs.add(Attribute(SIZE, "SIZE", Enums::DataType::UINT, false, new NauUInt(0)));
Attribs.add(A... |
9529cc8ed9aabb320a86214771c2cd053e99db1b | a92b18defb50c5d1118a11bc364f17b148312028 | /src/prod/src/api/wrappers/ComTransaction.h | 2f9a7f557e722010184e6d03ed5a6e687f4e795e | [
"MIT"
] | permissive | KDSBest/service-fabric | 34694e150fde662286e25f048fb763c97606382e | fe61c45b15a30fb089ad891c68c893b3a976e404 | refs/heads/master | 2023-01-28T23:19:25.040275 | 2020-11-30T11:11:58 | 2020-11-30T11:11:58 | 301,365,601 | 1 | 0 | MIT | 2020-11-30T11:11:59 | 2020-10-05T10:05:53 | null | UTF-8 | C++ | false | false | 1,988 | h | ComTransaction.h | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
namespace Api
{
... |
966b4e6858564d2e7b083937aa00c0bb13138878 | 3ee965a45af942a4f330930f558336557be0845c | /c_compiler/c_compiler/c_ast_expr_unary.hpp | e9f4c4307a412d66133a3ace4f6b39f650aa4a11 | [] | no_license | tomhartley/c_compiler | 5e7ee72eced460d10ae027af9146ed07091d5350 | ffacc4fb6d04d0c11306531d6e946f85ea8c289f | refs/heads/master | 2021-01-10T02:43:33.046089 | 2016-03-26T13:24:24 | 2016-03-26T13:24:24 | 54,780,152 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 253 | hpp | c_ast_expr_unary.hpp | //
// c_ast_expr_unary.hpp
// c_compiler
//
// Created by Tom on 25/03/2016.
// Copyright © 2016 Tom Hartley. All rights reserved.
//
#ifndef c_ast_expr_unary_hpp
#define c_ast_expr_unary_hpp
#include <stdio.h>
#endif /* c_ast_expr_unary_hpp */
|
6a97ed17daf0d2d9bdc162d5d22b59e82da2f853 | 3f9a0a2c460ca2c36409e64efc553f82404eb0b7 | /World_Biome.cpp | 481ba1a9c1173f0fea141de1db59d7ffc239c18f | [] | no_license | RyanBabij/WorldSim | 9bdeaae850e96c44f6c16a24d8edecef24ff93d5 | 148a909e662b854d759f56d4305fd88eab5fb77c | refs/heads/master | 2023-03-06T17:28:33.626888 | 2023-03-04T04:54:26 | 2023-03-04T04:54:26 | 100,097,164 | 24 | 2 | null | 2020-07-13T08:54:33 | 2017-08-12T07:36:21 | C++ | UTF-8 | C++ | false | false | 9,065 | cpp | World_Biome.cpp | #pragma once
#ifndef WORLDSIM_WORLD_BIOME_CPP
#define WORLDSIM_WORLD_BIOME_CPP
/* WorldSim: World_Biome.cpp
#include "World_Biome.cpp" */
/**
Implementation of World_Biome.hpp
*/
#include "World_Biome.hpp"
#include "Creature_Manager.hpp"
#include <Game/WorldGenerator/WorldGenerator2.hpp>
#include <Container/Tab... |
68aa6691e6ce3fbcba88d644bd8a2a9dd38cd9fb | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5686275109552128_1/C++/tckwok/b.cpp | ee9e79ea1490860bbd6e102ca0dde6a846e886e8 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 591 | cpp | b.cpp | #include <cstdio>
#define N 1024
int T, n, d[N], ans, t;
bool ok(int y, int x) {
int t = 0;
for (int i = 0; i < n; ++i)
t += (d[i] - 1) / y;
return t <= x;
}
int f(int x) {
int lo = 0, md, hi = N;
while (lo + 1 < hi) {
md = lo + hi >> 1;
if (ok(md, x)) hi = md;
else lo = md;
}
return hi;
}
int main(... |
6b1e1c85d8da31ce3c18bf635839e21cabce8505 | 2dd0253e5f7331e2346cb44aebabc925c5003519 | /include/kernels/common/third/dragon/op_kernel.h | 863ab7e1939e8a904935f91e65f4252fb74e85ce | [] | no_license | KangLin/TenniS | 06e22b734c08781abf3bcb24abeceda777584e6c | d2c44ab369685450beb18fc83685f9e589bb3f35 | refs/heads/master | 2023-07-30T14:11:25.828834 | 2021-10-03T08:49:52 | 2021-10-03T08:49:52 | 412,299,971 | 0 | 0 | null | 2021-10-01T02:35:24 | 2021-10-01T02:35:23 | null | UTF-8 | C++ | false | false | 1,298 | h | op_kernel.h | //
// Created by kier on 2019/9/6.
//
#ifndef TENSORSTACK_THIRD_DRAGON_OP_KERNEL_H
#define TENSORSTACK_THIRD_DRAGON_OP_KERNEL_H
#include "utils/log.h"
#include "core/memory.h"
#include "core/tensor.h"
#include "core/tensor_builder.h"
#include "frontend/intime.h"
#include "type_meta.h"
namespace ts {
namespace d... |
6889dbe53251da22af3e45eefd4dc9d6a5983865 | ef173293604c8f2e844b07a5614820c6e805ff01 | /Hardware/LinkITONE/send_and_receive.ino | f9e1a5e148b7d38629de0f219a33c27b5f86cdfa | [] | no_license | Soham-P/ParkCure | 4b3e9221a99e5ca2162b40e4b032afd784e6c1ef | 46ccb776a946a1edf9374791791c5e6a521b9870 | refs/heads/master | 2020-05-16T00:39:51.983603 | 2019-04-21T21:54:15 | 2019-04-21T21:54:15 | 182,585,359 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 913 | ino | send_and_receive.ino | #include <LGSM.h>
String message;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
while(!LSMS.ready())
delay(1000);
Serial.println("SIM initialized!");
//LSMS.beginSMS("5199952026");
}
void loop() {
LSMS.beginSMS("5199952026");
// put your main code here, to run ... |
0e01f817ee187ef70e76bbc51f9e2d5b9765350c | f4e4c477dcaba741b0083256ac515e77187fc17c | /src/geom_core/FitModelMgr.h | 7e42dab1b66e5fe26a234c6a5a45a872e54297b0 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain"
] | permissive | ramcdona/OpenVSP | 50ede7ea2698da368d1584780c4269637c4ac588 | c011578175da93a5f03cb490b1518c6f91bf439d | refs/heads/main | 2023-08-31T20:37:43.025181 | 2023-08-01T23:52:15 | 2023-08-01T23:52:15 | 3,179,255 | 6 | 3 | NOASSERTION | 2020-11-09T03:29:22 | 2012-01-14T17:58:14 | C | UTF-8 | C++ | false | false | 6,380 | h | FitModelMgr.h | //
// This file is released under the terms of the NASA Open Source Agreement (NOSA)
// version 1.3 as detailed in the LICENSE file which accompanies this software.
//
// FitModelMgr.h: interface for the Fit Model Singleton.
//
//////////////////////////////////////////////////////////////////////
#if !defined(FITMOD... |
185fed5c632f6d494ceba15920a11455e759a0f6 | 472d7820a5f5d9d5ab2ec150eab0c9bdeb2008c7 | /Aries/Sodi/odisim/incV60/track_out_mess.H | f52f1ecabdc56eeec817bdc00e80341efb2d2c56 | [] | no_license | slacker247/GPDA | 1ad5ebe0bea4528d9a3472d3c34580648ffb670e | fa9006d0877a691f1ddffe88799c844a3e8a669a | refs/heads/master | 2022-10-08T07:39:09.786313 | 2020-06-10T22:22:58 | 2020-06-10T22:22:58 | 105,063,261 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 382 | h | track_out_mess.H | // track_out_mess.H message file
#ifndef trkout_mess
#define trkout_mess
#include <stdio.h>
#include "headers.H"
/************************************************************************
* output message to stateless object for tracking *
************************************************************************/
cl... |
4c061b7f49a3082bd072a7d2996b9b34f2f52371 | a21d7710b1d193ae7ee12205c2af2c47db09905e | /LeetCode/Problems/Algorithms/#2080_RangeFrequencyQueries_sol4_merge_sort_tree_1741ms_382MB.cpp | 5e0ec0faaaea77dfc2f0da5a6f1e36407f33bcd7 | [
"MIT"
] | permissive | Tudor67/Competitive-Programming | 0db89e0f8376cac7c058185b84fdf11dcb99dae8 | 827cabc45951ac33f63d1d6e69e57897207ea666 | refs/heads/master | 2023-08-19T05:22:10.451067 | 2023-08-14T21:21:51 | 2023-08-14T21:21:51 | 243,604,510 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,639 | cpp | #2080_RangeFrequencyQueries_sol4_merge_sort_tree_1741ms_382MB.cpp | class MergeSortTree{
private:
const int N;
vector<vector<int>> tree;
void mergeSort(vector<int>& v1, vector<int>& v2, vector<int>& v3){
const int N1 = v1.size();
const int N2 = v2.size();
v3.resize(N1 + N2);
int i1 = 0;
int i2 = 0;
... |
c3b316d87b2fcef16a0a789722a7cdef12e6ebf9 | f765de7084092004e7a1217a1f461a64421386f5 | /esp8285_led_string/src/Image.cpp | a325526ecff4fb5dca8ada0913a1050a5ed9c9ee | [] | no_license | agoston/ucontroller | 20ccd77f2f962290ec4f682fe69298665a498632 | 9287c157455acd9fcd3c4e0682a2d20a8f6dcaca | refs/heads/master | 2022-07-01T23:03:19.446183 | 2022-06-18T11:55:41 | 2022-06-18T11:55:41 | 48,879,004 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,399 | cpp | Image.cpp | #include "Image.h"
// #define DEVH
#include "log.h"
Image::Image() {
pixels = new AnimPixel[LEDS];
}
Image::~Image() {
delete[] pixels;
}
void Image::initBitmap(uint8_t *bitmap) {
uint16_t strip = 0;
for (uint16_t i = 0; i < COLUMNS * ROWS; i++) {
if (deadPixel(i)) continue;
uint16_t ti = translat... |
c1bdf4c55a64f635c35f8b86e182793f4af6407f | 5e84c48158341afa34eae19a2e0db26b11d8a267 | /trisicell/external/scistree/PhylogenyTreeBasic.h | c6544ba2c0e3bea4b7d190a269407e5cfd6387da | [
"BSD-3-Clause"
] | permissive | faridrashidi/trisicell | 53fbd97efd4121f717babd218661edbce48cb10e | eff50c7885053250656a60040612e8097c5032a1 | refs/heads/master | 2023-07-24T03:54:25.472928 | 2023-07-21T06:31:18 | 2023-07-21T06:31:18 | 342,698,508 | 6 | 2 | BSD-3-Clause | 2023-07-21T14:42:58 | 2021-02-26T20:54:06 | Python | UTF-8 | C++ | false | false | 15,999 | h | PhylogenyTreeBasic.h | #ifndef PHYLOGENY_TREE_BASIC_H
#define PHYLOGENY_TREE_BASIC_H
#include <iostream>
#include <fstream>
#include <cstdio>
#include <vector>
#include <set>
#include <string>
#include <stack>
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
#include <ctime>
#include <cstdlib>
#include <cstdio>
#include "Utils... |
2f00ae5caac8088013aaa7621d3322b3e7f724f1 | c01cf3a958da7d3967737e31b063d92ba5cf52f1 | /cpp/04/example.cpp | d89e7e050199b61b636ef7169842acc7cf0eb4bb | [] | no_license | TheNumbat/cpp-course | 568863d6029367bae19e618e7204ddb01cf5b277 | a47cd54700157db47ec28e448479532be21010d0 | refs/heads/gh-pages | 2023-04-27T11:34:04.725564 | 2023-04-14T03:56:54 | 2023-04-14T03:56:54 | 54,758,278 | 22 | 8 | null | 2023-04-14T03:56:55 | 2016-03-26T02:15:51 | HTML | UTF-8 | C++ | false | false | 1,332 | cpp | example.cpp | // If you are not sure what some lines of code do, try looking back at
// previous example programs, notes, or email a question.
#include <iostream>
using namespace std;
// A function that will return an integer, and takes an integer and a double as parameters
int calc(int one, double two);
// A function that will ... |
4207a6a15c34d1198f92a77f7e06873f9c0bb5b3 | 7a81df9012a2ce70f6b08a1489d28595048529e4 | /src/base/mutex.h | f69ff5edc2d90d2591b62f3c4df2843c094b2a10 | [
"ISC",
"MIT"
] | permissive | wangjianbao/logkafka | 0994a54535b959ef415d89d1a83a6afc96e0f4e1 | 53f136500a21f95aca2dae488a123897073570dd | refs/heads/master | 2020-02-26T17:38:27.951830 | 2015-10-14T02:48:46 | 2015-10-14T02:48:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,642 | h | mutex.h | ///////////////////////////////////////////////////////////////////////////
//
// logkafka - Collect logs and send lines to Apache Kafka v0.8+
//
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2015 Qihoo 360 Technology Co., Ltd. All rights reserved.
//
// Licensed under ... |
929e042ed23662a640f08de20e1dad251008b71b | c282037fdaaa72b2e97cd6342060a9d34d61bc0a | /framework/sphere.hpp | 9408123317574afcdbe3a6ee843bebb63203b936 | [
"MIT"
] | permissive | Zzrop/pre-programmiersprachen-raytracer | efd47f4fd4313906e8cc16787d3bbe1b5b64f58a | 42169cc92adeb685039de2a14e7484f2afa7e4d5 | refs/heads/master | 2021-01-17T04:53:18.423525 | 2016-06-22T15:01:07 | 2016-06-22T15:01:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 586 | hpp | sphere.hpp | #ifndef SPHERE_BUW_HPP
#define SPHERE_BUW_HPP
#include <glm/vec3.hpp>
#include "shape.hpp"
#include "ray.hpp"
#include <math.h>
class Sphere : public Shape{
public:
Sphere();
Sphere(glm::vec3 const& m , float r);
Sphere(std::string const& name, Material const& mat, glm::vec3 const& m , float r);
~Sphere();
flo... |
2d11c10f51084b1eb28ed5270d8124ff4c2742f9 | da3c2f805c0d5c1988e278eeef5bccc2bee4d281 | /Lab01/Problem1.cpp | b559b6a6d9d2cb4da8e6a4a6e2c31542e6aa3f70 | [] | no_license | Fred-Nuno/7L3IEACSLab01 | 5abac06e6d703183ac4697b5ec8dca31aa5ff251 | a8b293edd79ceb8cb46acdbe1aa0a861d2d3076c | refs/heads/master | 2021-05-19T09:03:02.026852 | 2020-04-05T16:01:31 | 2020-04-05T16:01:31 | 251,618,869 | 0 | 0 | null | 2020-03-31T13:58:00 | 2020-03-31T13:57:59 | null | UTF-8 | C++ | false | false | 878 | cpp | Problem1.cpp | #include<Problem1.h>
#include<iostream>
//________1_______
void Swap(int var1, int var2)
{
int holder = var1;
var1 = var2;
var2 = holder;
std::cout <<"After the swap a = " << var1 << " and b = " << var2 << std::endl;
}
//________2_______
bool Signs(int var1, int var2)
{
return (var1 >= 0) ^ (var... |
aec64b3d6f660c7e7658c7bf6964b28217abbcb8 | 25bfa083e30b7796c1279718cf285a19552eae09 | /game/Game/GameData.cpp | 407aeb4e151c6d522e3e8f16ca6a7bf031eaadb4 | [] | no_license | AkakiyAndrew/diploma | 46e9cd5f4cd5c04f5cb688f4787b5a197ed8f504 | 16aab6f4f81af244d5e6492302540a6a1eedd6a5 | refs/heads/main | 2023-08-18T13:20:58.729530 | 2021-09-29T15:33:46 | 2021-09-29T15:33:46 | 337,722,522 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 105,578 | cpp | GameData.cpp | #include "GameClasses.h"
#define TILE_DRAWING
GameData::GameData()
{
net = new NeuralNet(layers, neurons);
//normalizing turret ratio
/*double maxTurretNum = 1;
for (int i = 0; i < 3; i++)
if (turretsCount[i] > maxTurretNum)
maxTurretNum = turretsCount[i];
double turretsRatio[... |
d7fe23f6c347017b990ddb3759fd7d3f34ef7ea3 | 1c38f3e17e5df85d5ffbbbd66b456f48490fe79e | /music.h | f3ac6db8ef1501c6778f3bf856d6fb6033084e78 | [
"Unlicense"
] | permissive | zrmei/music | b5b62f25fd1a6a171e00e02603bf835ef9401348 | 60a9a71b026a15176a59f9e815f7bc029c90c21f | refs/heads/master | 2023-08-03T15:48:03.217962 | 2014-12-07T06:52:32 | 2014-12-07T06:52:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,843 | h | music.h | #ifndef MUSIC_H
#define MUSIC_H
#include <QtWidgets/QMainWindow>
#include <QMediaPlayer>
#include <QDir>
#include <QFileDialog>
#include <QMediaPlaylist>
#include <QSettings>
#include <QThread>
#include "csqlite3.h"
class Music;
class UpdateUI : public QThread
{
Q_OBJECT
signals:
void UpdateSignal(QStringLis... |
b8efc82c6d8939285543152b32d4fc0b08061bf8 | 12445f58170174a40972d7a254a8949e973898ed | /program_examples/shmipc_client/ctcp.h | 01c3eda613e8ece005b751856f7c0aba8d043962 | [] | no_license | kekland/nti-contest-telecom | 1f1022f567e032d2efe3b496827435a5404cb831 | 5cf30ebb665deab5c57d9ff240b012d5251cb0db | refs/heads/master | 2020-03-06T15:27:28.714264 | 2018-03-27T08:44:26 | 2018-03-27T08:44:26 | 126,956,314 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,428 | h | ctcp.h | #ifndef __TCP_H__
#define __TCP_H__
#include <iostream>
#include <cstring>
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <errno.h>
#include <netdb.h>
#include "tcp_proto.h"
//#define SERVER_ADDR "10.12.12.5"
#define SERVER_NAME "ra... |
dab336bc16b65ad4aa7be6f36cd079b3249ea672 | 013030365857a6b2fa2405929aaba9f3f73ed87e | /seconlevel_f3.cpp | b5c07a0c021922a755d0d14481a3a1b6a6774f44 | [] | no_license | taiyuankejizhu/SparkCNC | 98a8c526b7ce5afd3574cc5d64a05b018609d03a | 16f10155434d0b4c312395226283583c10788a1a | refs/heads/master | 2021-01-23T07:03:10.873569 | 2014-06-21T09:00:50 | 2014-06-21T09:00:50 | 18,831,741 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,205 | cpp | seconlevel_f3.cpp | #include "seconlevel_f3.h"
#include "ui_seconlevel_f3.h"
#include "qdebug.h"
seconlevel_f3::seconlevel_f3(QWidget *parent) :
QWidget(parent),
ui(new Ui::seconlevel_f3)
{
ui->setupUi(this);
coor = new CoorDialog(parent);
coor->hide();
connect(coor ,SIGNAL(finished(int)) ,this ,SLOT(f3_Done(int)... |
dc6bdc4ca2675dee868df25a6aef2f321692efb8 | 08b8cf38e1936e8cec27f84af0d3727321cec9c4 | /data/crawl/git/hunk_3034.cpp | dc19a75b685ccf0d0948d540cd03f43268cbf8f2 | [] | no_license | ccdxc/logSurvey | eaf28e9c2d6307140b17986d5c05106d1fd8e943 | 6b80226e1667c1e0760ab39160893ee19b0e9fb1 | refs/heads/master | 2022-01-07T21:31:55.446839 | 2018-04-21T14:12:43 | 2018-04-21T14:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 687 | cpp | hunk_3034.cpp | const char *name = (const char *)rr->items[i].util;
if (has_rerere_resolution(name)) {
- if (!merge(name, path)) {
- const char *msg;
- if (rerere_autoupdate) {
- string_list_insert(&update, path);
- msg = "Staged '%s' using previous resolution.\n";
- } else
- msg = "Resolved '%s' using p... |
14e6fd081ec9086f6a05cccb6735039dd88cce6c | 20915b99d7bf7a1470447f71547f5433a0f0d591 | /AOJ/2550-2599/2593-Spuare_in_Circles.cpp | aaf0f0d542c0e977e868c2a9b61f28e6098cf3f1 | [] | no_license | Suikaba/procon-solved | 611005a6001c6d468f2295f6aa7ab06d24c75748 | d49b080258e71d9460688616e8528ce3ad7de36a | refs/heads/master | 2020-03-11T13:37:24.605464 | 2019-09-17T08:47:48 | 2019-09-17T08:47:48 | 130,030,074 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,352 | cpp | 2593-Spuare_in_Circles.cpp | // http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=2593
#include <bits/stdc++.h>
using namespace std;
using pdd = pair<double, double>;
double solve(vector<double> x, vector<double> r) {
const int n = x.size();
auto check = [&] (double h) {
vector<pdd> ps(n);
for(int i = 0; i < n; ++... |
0b5b95da878d850c64100c7f6cf594c499878486 | 5aed887e6d595d25f370080ba8b18bdbfd90b25d | /CygnusGame.h | 4f9a498a57a3383ca0f7f905b8e8529d0dc0251c | [] | no_license | HaikuArchives/Cygnus | 9f3e442b9b70c81ef38afddde943f3d4df623b8a | b8e45e6b15b40b64e555aecdc767355adc6ef3d3 | refs/heads/master | 2021-01-20T05:31:17.653592 | 2014-01-09T14:56:52 | 2014-01-09T14:56:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 709 | h | CygnusGame.h | /*
CygnusGame.h
*/
/*
Originally written by Ben Loftis.
This source code is available freely for any use.
If you use this source extensively in your project, I humbly
request that you credit me in your program.
*/
#ifndef CYGNUS_GAME_H
#define CYGNUS_GAME_H
#include "ProtoShip.h"
#include "Star.h"
#inclu... |
b5315c2060c630ddd99c3e8cab2abf600b92fd29 | 2a78545bf5f1b8705630695026a167aadb006ae3 | /pb-lib/pblib/encoder/SWC.cpp | 4662190916abd0f5c3fd152904bde8ffc36775ae | [
"MIT"
] | permissive | chisui/haskell-ipasir | 5f232aedec28d885494314fa9120e5f3c3ad04f3 | 2add0efe0ab29d03000f5afd8e87ad5655e0c7d2 | refs/heads/master | 2021-01-19T13:22:20.079802 | 2017-10-11T12:51:44 | 2017-10-11T12:51:44 | 88,081,360 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,286 | cpp | SWC.cpp | #include "SWC.h"
using namespace PBLib;
using namespace std;
void SWC_Encoder::encode(const SimplePBConstraint& pbconstraint, ClauseDatabase& formula, AuxVarManager& auxvars)
{
if (config->print_used_encodings)
cout << "c encode with SWC" << endl;
encode_intern(pbconstraint, formula, auxvars);
}
void SWC... |
92009991f45b7a299426164ac60a409900387c1e | 7106724c5de461d5156bc13d48b31cff6b22113a | /modules/StageInterface/src/global.h | 1a7058b0577b53c893a3b551c5cfc246471f0d57 | [] | no_license | YCP-Swarm-Robotics-Capstone-2020-2021/SRCSim | c76d9a4e5a6ded200d83da1b887c0f20371d4042 | 9710b22b9e42f63e48ed20eabdedd7569ce6afd6 | refs/heads/master | 2023-04-20T23:54:50.820904 | 2021-04-30T12:40:01 | 2021-04-30T12:40:01 | 269,135,291 | 0 | 0 | null | 2021-04-30T12:40:02 | 2020-06-03T16:11:12 | C++ | UTF-8 | C++ | false | false | 512 | h | global.h | #ifndef GLOBAL_H
#define GLOBAL_H
#endif // GLOBAL_H
#include <QMutex>
#include <QSemaphore>
#include "Stage-4.3/stage.hh"
#include "VehicleStateDefines.h"
class Robot {
public:
Stg::ModelPosition *position;
Stg::ModelRanger *laser;
double xPos;
double yPos;
double attitude;
double forward_speed;
doubl... |
f0de67ad92c608079c1667b0f728eaf07b275f5c | fc3cfe43834e9b266379cccc1f388be6aee54bc1 | /CTCI/01StringAndArrayProblems.h | 76354f7caef9886803800d451b7dbb7d42163d29 | [] | no_license | firestorm713/InterviewProblems | d7f94c20a5db83e31431742df57c8b3597c9b832 | 8f13c84058b625d4eb64ab98035f1eb2525b0359 | refs/heads/master | 2021-01-02T08:49:30.642943 | 2017-08-03T17:04:02 | 2017-08-03T17:04:02 | 99,073,400 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,529 | h | 01StringAndArrayProblems.h | #pragma once
#include<string>
std::string removeSpaces(std::string str);
void sortChars(std::string &str);
// no additional data structures!
bool IsUnique(const std::string &str);
// returns true iff
// - the lengths of the two strings are the same
// - the number of each character present in the string is ide... |
d6d641e6dd6ef05dbac0bb71ab123029b745875d | 6350e8ffc3a53d11533e4a787e1f41199b755cd6 | /json_serializable.h | 86bbd82810c21a9d1396a86f36e2e0208d9387ce | [] | no_license | aldoshkind/y_me | 0c1960fec25b629585d93de22d968e52ef1c86e8 | 60d6418f2b9bc212d5487868e8b7d94a8b2096f5 | refs/heads/master | 2021-01-19T20:37:30.472606 | 2017-04-17T16:05:24 | 2017-04-17T16:05:24 | 88,525,549 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 320 | h | json_serializable.h | #pragma once
#include <jsoncpp/json/value.h>
class json_serializable
{
public:
/*constructor*/ json_serializable ()
{
//
}
virtual /*destructor*/ ~json_serializable ()
{
//
}
virtual bool serialize (Json::Value &v) const = 0;
virtual bool deserialize (const Json::Value &v) = 0;
};
|
c2d486b9f429293b30b461d42007e3583219daf2 | c97f206bda267696751e5f92aeaec33dda9ad710 | /alica_tests/autogenerated/src/SimpleSwitches.cpp | a6625cf6e64dd7182246ec3408df3da36e92b2b5 | [
"MIT"
] | permissive | hendrik-skubch/alica | 6dd560d1bd7ffb9fbbbce9f5a4160344c1b500fe | fe82928edf3a36df5f07a2258ff21d17ca8fa6d9 | refs/heads/rr-devel | 2022-03-02T04:50:28.673185 | 2019-05-28T03:54:56 | 2019-05-28T03:54:56 | 177,893,068 | 0 | 0 | NOASSERTION | 2019-05-28T03:54:57 | 2019-03-27T01:04:10 | C++ | UTF-8 | C++ | false | false | 74 | cpp | SimpleSwitches.cpp | #include <SimpleSwitches.h>
std::vector<bool> SimpleSwitches::_switches;
|
9ac1d634119211f6513132b0fdce3d8acb84cbfc | bd40065fc32921b6ac83df8b5b976a86b6b6a4ff | /src/compiler/turboshaft/assembler.h | 122965b220a0b52959f6cd82da477ef9e591cd37 | [
"BSD-3-Clause",
"SunPro",
"Apache-2.0"
] | permissive | couchbasedeps/v8-mirror | 6e69f9053d15d37befdecec94804b2a50f91dab8 | bf5e3a8a0edfb78c975da04c0f79eb92215255e3 | refs/heads/main | 2022-08-29T05:53:22.946189 | 2022-08-23T13:57:03 | 2022-08-24T09:03:00 | 153,349,114 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,822 | h | assembler.h | // Copyright 2022 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_COMPILER_TURBOSHAFT_ASSEMBLER_H_
#define V8_COMPILER_TURBOSHAFT_ASSEMBLER_H_
#include <cstring>
#include <iterator>
#include <limits>
#inclu... |
649ba8c34eab09db19d51389343d207ce8f0cb78 | 788b4664f114e03e2d84060615f5451dc662d66e | /easy_log/basic_logger_main.cpp | 35f17808595ebe19831694789b0609de4a55c1de | [] | no_license | zhouxindong/rola | dbdd7fb3bf034ed084ac67efcb9b59b6de0bb657 | 04b8b039b8786ee123c3a85467869c7708da185d | refs/heads/main | 2023-07-29T10:58:24.271940 | 2021-08-27T07:30:13 | 2021-08-27T07:30:13 | 305,242,132 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,259 | cpp | basic_logger_main.cpp | #include "basic_logger.hpp"
#include <thread>
#include <chrono>
using namespace rola;
int main_blm()
{
auto& logger = console_logger::get("console1");
auto v = std::move(generate_log_item(2));
for (auto& item : v)
{
logger.log(item);
std::this_thread::sleep_for(std::chrono::milliseconds(100));
}
auto& log... |
5eca731d2f840737899d6b5c34074fbacd1314c0 | 9a825a6d32b5b58728d499152a40c0e216cd0182 | /factory_pattern/client.cpp | 9b3dbd15bf4db8d39e64d14a29e0f0c4378410a1 | [] | no_license | yuecheng11/Design_pattern | 56048a1d73f0bf0a71ff06c3866779cd50902777 | 525e8982c4a1a99f59b485ee12e7d3f48468f6ec | refs/heads/master | 2021-01-23T17:57:13.282020 | 2017-02-27T13:08:08 | 2017-02-27T13:08:08 | 82,990,482 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 343 | cpp | client.cpp | #include "SimpleFactory.hpp"
int main()
{
AbsFactory* absFact = new SimpleFactory();
AbsProduct* product = absFact->createProduct(1);
product->operation();
delete product;
product = NULL;
product = absFact->createProduct(2);
product->operation();
delete product;
product = NULL;
delete absF... |
a5a5903b942ead8d0aaabfca57b6e893971a9e62 | 8d39f1699943fa4b540f287557276329b69c7652 | /itk/clitkForwardWarpImageFilter.h | ec46f0ca8fa97a11590c8a0a0c750b5d4e7a809a | [
"BSD-3-Clause",
"CECILL-B",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-cecill-b-en"
] | permissive | open-vv/vv | fdb42c1ba2bb70f5805cb3680b7bd2b5208d287f | 7d8043a8fb86bb58d510ad39da2b71d50109dd5f | refs/heads/master | 2023-06-07T18:26:50.369254 | 2022-10-26T14:59:09 | 2022-10-26T14:59:09 | 78,436,753 | 56 | 20 | NOASSERTION | 2023-05-03T12:14:22 | 2017-01-09T14:36:33 | C++ | UTF-8 | C++ | false | false | 4,525 | h | clitkForwardWarpImageFilter.h | /*=========================================================================
Program: vv http://www.creatis.insa-lyon.fr/rio/vv
Authors belong to:
- University of LYON http://www.universite-lyon.fr/
- Léon Bérard cancer center http://www.centreleonberard.fr
- CREATIS ... |
9018706621d5bedceafeaf5d83248c557e8db0c7 | 9fb456a0f1cc77d148a9c5334c084c2a65630592 | /TrianglesTest/src/TrianglesTestApp.cpp | f30392ce6bfdbde4f705662c578c590408c2ee3d | [
"Apache-2.0"
] | permissive | eighteight/CinderEight | 4deba73910eb3e02d2f881da303205159a77f052 | d9dfc6a0ad9a9e6c5b82624971127f0335d91639 | refs/heads/master | 2021-06-19T14:46:18.448625 | 2021-01-16T20:55:22 | 2021-01-16T20:55:22 | 16,152,693 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,643 | cpp | TrianglesTestApp.cpp | #include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
#include "cinder/CameraUi.h"
using namespace ci;
using namespace ci::app;
using namespace std;
class Day14App : public App {
public:
void setup() override;
void mouseDown( MouseEvent event ) overrid... |
ac5d6e31957257f60577cc1a29ef203243861b6f | 19f6d19e29fa44319c263a759dd06f91745f3d8a | /usn/nail_file.cc | bfb9a778b438863a6799a36e81a477ff7d14cf5f | [] | no_license | richmonkey/nail | efce932f0b0855d832088a7dbbb2367b5cde116c | ede075f10445484d8a5dec8de8dae4c11867a02f | refs/heads/master | 2021-01-01T16:20:24.146694 | 2013-02-17T10:38:44 | 2013-02-17T10:38:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,038 | cc | nail_file.cc | #define _CRT_SECURE_NO_WARNINGS
#include <windows.h>
#include <winioctl.h>
#include <assert.h>
#include <string>
#include "nail_file.h"
#define NAIL_FILE_OBJECT_SIZE(f) (sizeof(nail_file_t) + f->name_len)
char *mem_pool = NULL;
int pool_size = 0;
int next_free_pos = 0;
static int zobie_file_count = 0;
static int z... |
b11e634ddd9d039bd7be33119ef5cc6efb30f3f5 | 2283d74ae7e67c04e83622608d17958f6a31cb10 | /chip8/parsing.cpp | b5ba04f8d78eb4518d63a9ff64d67bec673fb515 | [
"MIT"
] | permissive | omerk2511/chip-8 | d3f2f6d32a25f4e654dd77ae80e70023e8ee45bb | 30bb431a707d2de4f69fac753d256040d3669fc3 | refs/heads/master | 2022-12-12T19:20:04.145599 | 2020-09-12T17:25:27 | 2020-09-12T17:25:27 | 294,768,979 | 2 | 0 | MIT | 2020-09-12T17:25:28 | 2020-09-11T17:52:17 | null | UTF-8 | C++ | false | false | 6,299 | cpp | parsing.cpp | #include "parsing.h"
#include "instructions.h"
std::unique_ptr<instruction> parsing::parse_instruction(const word opcode)
{
switch (opcode >> 12) {
case 0x00: {
if ((opcode & 0xfff) == 0xe0)
return std::make_unique<instructions::cls>();
else if ((opcode & 0xfff) == 0xee)
... |
f640a66f34aff3e810bfb1c53ed6db0e1544b963 | 45d41fa7251b7e3e6c391a49d45c8eef395ff376 | /commands/yaw_camera_command.cpp | 3e1b6cd108f68fd271a9ea8e30d35b613232998e | [] | no_license | Kotyarich/computer-graphic-project | dc9e8632f54e081bb49875867d6d29d358a75880 | da0a36b2fef89c8e2f52fe149c49bf23e0cbe1a8 | refs/heads/master | 2020-06-12T19:54:39.713981 | 2020-01-26T23:54:13 | 2020-01-26T23:54:13 | 194,407,816 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 396 | cpp | yaw_camera_command.cpp | #include "yaw_camera_command.h"
namespace commands {
YawCameraCommand::YawCameraCommand(std::string object_name, double angle):
_object_name(object_name), _rotation(0, 0, angle) {}
void YawCameraCommand::execute(std::shared_ptr<intermediary::Intermediary> intermediary) {
math::Vector3d moving(0, 0, 0);
i... |
cab85456e6543f5f75eea5243c5c3922b2153778 | 0ff3961fab3d7aac799c9555853ef141ffe38eb1 | /Dev/Segmentation/SegmentationCore/hierarchicalization.h | a6162dfb27d82bcffaa133b08f51647d6364abc7 | [] | no_license | liupeng625/DevBundle | d8f8ff5a78730645e91a1a2a9c328c426f9deaa6 | daee1ace1fc929f629d2c916aee2922a02b41493 | refs/heads/master | 2021-03-12T01:55:17.966697 | 2018-09-13T10:04:38 | 2018-09-13T10:04:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,161 | h | hierarchicalization.h | #ifndef HIERARCHICALIZATION_H
#define HIERARCHICALIZATION_H
#include "common.h"
#include "segmentationcore_global.h"
#include <armadillo>
#include <nanoflann.hpp>
typedef struct
{
arma::fvec::fixed<3> normal;
std::vector<arma::uword> index; // The neighborhood
arma::fvec::fixed<3> eval;
bool ... |
02e6b9fec1c19b20e0e9c22818c24287a4fa179a | 25f566be9152b1baecbff9d8ce80207249363adb | /llvm/lib/MC/MCRepoTicketFile.cpp | 0c3d5bf023cdf56a8b8458d62f5276f7a7f4011b | [
"NCSA",
"LLVM-exception",
"Apache-2.0"
] | permissive | SNSystems/llvm-project-prepo | cd31a3e919511aae306451981fad5ced44448698 | a728b1ac06e6ae870f4f4f0fc130bf690b3f0d8a | refs/heads/master | 2022-05-27T02:03:44.194085 | 2022-03-28T12:04:43 | 2022-03-28T12:04:43 | 171,315,656 | 31 | 1 | null | 2022-03-07T15:42:58 | 2019-02-18T16:14:47 | C++ | UTF-8 | C++ | false | false | 11,615 | cpp | MCRepoTicketFile.cpp | //===- MCRepoTicketFile.cpp - Repo Ticket File ------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
1826e7781c7d1f50ab55a62b619e910417518fd9 | fded81a37e53d5fc31cacb9a0be86377825757b3 | /buhg_g/l_kv_start.cpp | 2d6f5536e59aacca89d3dc8958ee3f402eb5961e | [] | no_license | iceblinux/iceBw_GTK | 7bf28cba9d994e95bab0f5040fea1a54a477b953 | a4f76e1fee29baa7dce79e8a4a309ae98ba504c2 | refs/heads/main | 2023-04-02T21:45:49.500587 | 2021-04-12T03:51:53 | 2021-04-12T03:51:53 | 356,744,886 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 461 | cpp | l_kv_start.cpp | /*$Id: l_kv_start.c,v 1.1 2013/09/26 09:48:37 sasa Exp $*/
/*05.09.2013 05.09.2013 Белых А.И. l_kv_start.c
Работа со справочником курсов валют
*/
#include "buhg_g.h"
void l_kv(const char *kod_val,GtkWidget *wpredok);
int l_kv_m(class iceb_u_str *kod_val,GtkWidget *wpredok);
void l_kv_start(GtkWidget *wpredok)
{
class... |
4054568dd8d5d4ed4c01b34476091db04145619b | 550d05285a6e995c8190611d9e854b950b2a3531 | /luogu/luogu2261/luogu2261.cpp | 418c2a6988fa6c166064c8c00017aff392884845 | [] | no_license | lrj124/online-judge | 5c21b1a72bfc4623fdd0f04072a60f4871ccc795 | 7027d9b4be7a2737d5af31b0ae445129b11ef214 | refs/heads/main | 2023-06-18T17:33:20.736976 | 2021-07-21T03:45:35 | 2021-07-21T03:45:35 | 387,982,481 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 600 | cpp | luogu2261.cpp | /************************************************
*Author : lrj124
*Created Time : 2019.08.24.17:36
*Mail : 1584634848@qq.com
*Problem : luogu2261
************************************************/
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll inf = 1<<62;
ll n,k... |
6570edb278c6b434b7e26f14cb26d3b7a2252989 | 500ee2e265e9fc7b4bc70d49a375b38f19ad8b27 | /examples/TextPacketHandler/TextPacketHandler.cpp | b7eb1684392caf6452d039e64cb25c572476d4db | [
"BSD-3-Clause-Clear"
] | permissive | ssilverman/TeensyDMX | eba732505edf1efa30a96791e01ffd4e4c3d403e | b9008368a12b3b5692665c0a06b97a27aeca7eef | refs/heads/master | 2023-07-08T22:36:30.769605 | 2023-06-27T15:15:01 | 2023-06-27T15:15:01 | 85,892,375 | 96 | 6 | BSD-3-Clause-Clear | 2022-10-26T15:52:53 | 2017-03-23T01:15:28 | C++ | UTF-8 | C++ | false | false | 1,135 | cpp | TextPacketHandler.cpp | // This file is part of the TextPacketHandler example in the TeensyDMX library.
// (c) 2018-2019 Shawn Silverman
#include "TextPacketHandler.h"
// Define this here (C++17 doesn't need this but earlier versions do).
constexpr uint8_t TextPacketHandler::kStartCodes[];
void TextPacketHandler::receivePacket(const uint8_... |
3df0f1a3cb5d19e98d109a2a805a95c922e695ee | 7c9af7e21362f6fafa503f2d5f50ca069cb0a723 | /Base/Source/AllLevelDetails.h | 61aba1a56529a982bfe2cea12d84a7657a19845f | [] | no_license | JeffreyTeo/SP4 | 57e3192927d06908ff312d3aebf6940967172528 | 17db14d2f1687e4ef1a0ad15597d91424b102840 | refs/heads/master | 2021-01-10T16:34:19.231887 | 2016-03-03T18:44:47 | 2016-03-03T18:44:47 | 51,798,680 | 0 | 6 | null | 2016-03-03T18:44:47 | 2016-02-16T01:30:00 | C | UTF-8 | C++ | false | false | 578 | h | AllLevelDetails.h | #ifndef ALLLEVELDETAILS_H
#define ALLLEVELDETAILS_H
#include <iostream>
#include <string>
#include "LuaUsage.h"
using namespace std;
class AllLevelDetails
{
public:
AllLevelDetails(void);
~AllLevelDetails(void);
//AllLevelDetails Init
void AllLevelDetailsInit(string Varfilepath);
//Get & Set of LevelCleared
bo... |
4ae02f9f2d410d11036d8ec96b800dda451c6e96 | c3ffa07567d3d29a7439e33a6885a5544e896644 | /HSNU-OJ/55.cpp | 55d95b0ce85197c844eb88318f87472603c0f50e | [] | no_license | a00012025/Online_Judge_Code | 398c90c046f402218bd14867a06ae301c0c67687 | 7084865a7050fc09ffb0e734f77996172a93d3ce | refs/heads/master | 2018-01-08T11:33:26.352408 | 2015-10-10T23:20:35 | 2015-10-10T23:20:35 | 44,031,127 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,784 | cpp | 55.cpp | #include<bits/stdc++.h>
#define LL long long
using namespace std;
const int maxn=100000+100 ;
int n ;
vector<int> v1[maxn],v2[maxn] ;
int topo[maxn],t,scc[maxn],scnt ;
bool vis[maxn] ;
void dfs1(int x)
{
vis[x]=1 ;
for(int i=0;i<v1[x].size();i++) if(!vis[v1[x][i]])
dfs1(v1[x][i]) ;
to... |
c77b4e5196a8549c340818eed6a301f972383a98 | 43c6ce94913c65ee673fe670b1b354db03497860 | /gpu_asm_def.cpp | 262ac7f24671091c9af880dbaabb224201349dd8 | [] | no_license | yyzreal/AMD-GPU-Asm-Disasm | b472c67145fbf40d2455b1b391450dae99f6606f | ac7c7b4af154857c4c493e1913355fc81ffdd6ff | refs/heads/master | 2021-01-18T04:55:16.670274 | 2012-08-14T20:03:59 | 2012-08-14T20:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,948 | cpp | gpu_asm_def.cpp | /*
* Copyright 2011 StreamNovation Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* ... |
e95981ae506e55200b05452fee592b467f8a604d | 10b5df616a009a94cdc43da209cdbae4aa0f73ec | /codes/swapReference.cpp | 20199ef6c81bac2ff81a411153e7d03bbe2f66e9 | [] | no_license | shivamdargan/Oops-Object-Oriennted | 37de05421a5b776bb8871e613bb3d91dfd0bdaff | e27238cc2745e8089a20d9bff7365ed860877843 | refs/heads/main | 2023-07-16T14:54:49.797300 | 2021-08-23T11:42:11 | 2021-08-23T11:42:11 | 399,080,407 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 803 | cpp | swapReference.cpp | #include<iostream>
using namespace std;
void swapReference(int & x,int & y)
{
int temp;
temp=x;
x=y;
y=temp;
cout<<"Values Inside Function After Swapping: "<<endl<<"A="<<x<<" B="<<y<<endl;
}
void swapWithoutReference(int x,int y)
{
int temp;
temp=x;
x=y;
y=temp;
cout<<"Values Inside Function After Swapping: "... |
55ae059f692877832c887b08b5fd750c6f631a65 | 6c35bc5b1d53f6c6b99a645be724a8fc8b7d08d3 | /iobuffer.h | 8fca1017bc6096210e5d53e1ba3d29eace9c3256 | [] | no_license | cmsun/scmlib | bb89c460250649f4e6bffc414f1f21e4952ee759 | fe45cbc67a02383e3f93f404bcd2c61374377695 | refs/heads/master | 2022-05-22T00:06:48.625112 | 2022-05-04T15:02:39 | 2022-05-04T15:02:39 | 97,685,503 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,901 | h | iobuffer.h | /*
********************************************************************************
* COPYRIGHT NOTICE
* Copyright (c) 2016
* All rights reserved
*
* @FileName : iobuffer.h
* @Author : scm 351721714@qq.com
* @Create ... |
9abc60616aaa75189090e245878b18e576b3e942 | 960f8e298686ab36372ab002c8c8d3667d6905a9 | /02_Singla_slot/singlaAndSlot/reader.cpp | fc6986579e06a1dc8ac0b5235b6a9624d5306e8c | [] | no_license | wpd550/Qt_beger_start | 846001fb3fbe800275f15153f91d27730b2b490a | 5517dabd3abdf6047b41f959439b6b14c952a62d | refs/heads/master | 2020-03-22T12:34:43.972808 | 2018-07-17T10:18:34 | 2018-07-17T10:18:34 | 140,048,584 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 202 | cpp | reader.cpp | #include "reader.h"
#include <iostream>
#include <QDebug>
Reader::Reader(QObject *parent) : QObject(parent)
{
}
void Reader::receiveNewspaper(const QString &name)
{
qDebug()<<"content:"<<name;
}
|
dd97568a9f74de9aca8fbf57c30cb3e991c10354 | bc4cf83c7048a0657e2a66e016f4356f437a5103 | /src/orbital_space.h | 01f91d3f2cfdf65ca62764bc1c2229c9412bc2ce | [
"MIT"
] | permissive | npbauman/wicked | f3323284d8e89c48d9b4176403a43c2d1b6b5ccc | 19c1fc3264fe293bba62a6e5d17f729038b9885a | refs/heads/master | 2020-08-10T06:03:23.129460 | 2016-11-22T17:45:34 | 2016-11-22T17:45:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,012 | h | orbital_space.h | #ifndef _wicked_orbital_space_h_
#define _wicked_orbital_space_h_
#include <map>
#include <string>
#include <vector>
#include <memory>
/// Type of orbital space
// enum class OrbitalSpaceType { Core, Active, Virtual, RI, None };
/// Type of orbital space
enum class RDMType {
// Single creation/annihilation contrac... |
077a01e5a85367508b317b71a22249af91c2fc8c | 17e0b7775f3a1b429225a405a327d137710bec59 | /TryoneTry/Intermediate/Build/Android/TryoneTry/Development/Engine/Module.Engine.gen.49_of_65.cpp | 95c68e1da994eb491eb4e2e374f6aafc504d4c98 | [] | no_license | JTY1997/Learning-UE4 | 923d2cbfe95dec25a9dfe6ca2f36bc67e6203bd3 | ed5fcedf3aa35887e5bde1fe67fd4be0b1a7ce29 | refs/heads/main | 2023-01-31T22:32:04.289755 | 2020-12-17T15:32:55 | 2020-12-17T15:32:55 | 303,879,097 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 567 | cpp | Module.Engine.gen.49_of_65.cpp | // This file is automatically generated at compile-time to include some subset of the user-created cpp files.
#include "E:/Unreal Projects/TryoneTry/Intermediate/Build/Android/TryoneTry/Inc/Engine/PlatformInterfaceWebResponse.gen.cpp"
#include "E:/Unreal Projects/TryoneTry/Intermediate/Build/Android/TryoneTry/Inc/Engin... |
bce936dc993008ab814f8a727e544cd6fad8d831 | ac507e24073717f0f2f43480101be5db0213c2c4 | /pwiz/utility/findmf/base/resample/masscomparefunctors.hpp | d9d2f06bebee52ac7dc3aad8916de5f398a11c57 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | ProteoWizard/pwiz | 7adbd5a276b49d5f0271eb8cfddbd6d21ee31318 | f708f62d098c33ef60a76d92b038fde74361570a | refs/heads/master | 2023-08-27T20:42:37.708268 | 2023-08-25T18:30:50 | 2023-08-25T18:30:50 | 124,952,577 | 185 | 92 | Apache-2.0 | 2023-09-14T20:39:46 | 2018-03-12T21:16:01 | C# | UTF-8 | C++ | false | false | 3,338 | hpp | masscomparefunctors.hpp | //
// $Id$
//
//
// Original author: Witold Wolski <wewolski@gmail.com>
//
// Copyright : ETH Zurich
//
// 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/license... |
d1a988306617f843048b564bd3d0701db0e7c686 | 21e972fb1c240ea3074339b9eb5bcae3b6129cf3 | /analysis/src/DetectorHistos.cpp | a7c924748ea9bbec3a1410359ce0c201da339165 | [] | no_license | cdpruitt/elastic-neutron-cross-sections | 883aa954b6d8f5f85c4076a5148f7aef6dfa71a3 | 1ff1435641be2c0aa18ac6bacd87ead13f256db7 | refs/heads/master | 2021-01-21T16:45:09.497149 | 2018-10-30T22:41:39 | 2018-10-30T22:41:39 | 91,904,835 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,821 | cpp | DetectorHistos.cpp | #include "../include/Detector.h"
#include "../include/DetectorHistos.h"
using namespace std;
DetectorHistos::DetectorHistos(string name, double linearCalibration)
{
string PHName = name + "PH";
string PSDName = name + "PSD";
string TDCName = name + "TDC";
string PHPSDName = name + "PHPSD";
string ... |
1f51c5c75c6ad28cd71265ae4487135eb3144c90 | fd42254832b12b647fd3b394f2afad9d333f2b0d | /J/gerador.cpp | e2519c9852ff616265682b79e3423a40e2ba4172 | [] | no_license | ruybrito106/IO_OPEI_2017 | 53a786055f36ede15c3dfcac1739deee77f17fa9 | aa3cfcabeba37bb1d2a99f1f863ff3633c51d805 | refs/heads/master | 2021-07-21T08:52:34.443094 | 2017-10-31T02:13:30 | 2017-10-31T02:13:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 260 | cpp | gerador.cpp | #include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
int H1 = stoi(argv[1]), M1 = stoi(argv[2]), H2 = stoi(argv[3]), M2 = stoi(argv[4]);
cout << H1 << " " << M1 << " " << H2 << " " << M2 << "\n";
cout << "0 0 0 0\n";
} |
0f8a6b2d352d44dc66a0855b6d511b4d1ff75f05 | 5fe3fc8d522f5e8b81d3d7ae6a0aa76b3d0d9e40 | /src/ConfigHandling/ConfigHandler.h | 312aaf5639cf6b0b21c96fcc088619f921b8b6b5 | [
"BSD-3-Clause"
] | permissive | jensnielsen/spotifyserver | 745773362ee05a313fec3ca609b357cec031da56 | 836b6e629eaec9ae22f1dc6265a90f638bcb5344 | refs/heads/master | 2021-01-18T17:09:18.673023 | 2013-05-09T15:05:43 | 2013-05-09T15:05:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,720 | h | ConfigHandler.h | /*
* Copyright (c) 2012, Jesper Derehag
* 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 conditi... |
642ffcaec1e7d561bd1fd8aed767766c9ccc9a95 | fd2e2583276fc0fe818750da2c939ce0ee6b91e1 | /year.cpp | 6ce4a005ec5b52b494d855ab01eefd8db3213e54 | [] | no_license | Hecrecerelle/hello-world | 052de172a7604be2e78e85425cec555b20dad2c5 | 93ad121422f40f7671065bed54813e9754d21afd | refs/heads/master | 2020-03-19T10:02:30.301132 | 2018-08-25T13:01:01 | 2018-08-25T13:01:01 | 124,056,158 | 0 | 0 | null | 2018-06-06T13:58:15 | 2018-03-06T09:42:56 | C++ | GB18030 | C++ | false | false | 271 | cpp | year.cpp | #include "year.h"
year::year(int y)//构造函数
{
x = y;
}
year::year(year &obj)//拷贝构造函数
{
x = obj.x;
}
void year::print(void)//定义成员函数
{
cout << x << endl;
}
year::~year()//定义析构函数
{
cout << "析构" << x << "对象" << endl;
} |
c280a954547b185bf1daa9a2a4bd20498d07ec23 | fed98c76e41d51a24f262fa4c2ea17aea10539de | /src/zhanghong/src/00152_maximum_product_subarray/00152_maximum_product_subarray.cc | 340b082d9ca069f4f42ad59ca73daa4d215d86e5 | [] | no_license | generalibm/leetcode | 78c06c9cc8d3e164e3c87818a841e26c9a5009d5 | 3d7d18ae9fd50b457b7cb39b27568a2eafb856bc | refs/heads/master | 2021-06-24T11:24:11.572522 | 2019-11-13T12:34:44 | 2019-11-13T12:34:44 | 188,649,239 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,630 | cc | 00152_maximum_product_subarray.cc | #include "00152_maximum_product_subarray.h"
#include <iostream>
// Divide Conquer
//- Time: O(n^2)
//- Space: O(n)
//int Solution::maxProduct(const vector<int>& nums)
//{
// if (nums.empty())
// return 0;
// if (nums.size() == 1)
// return nums.front();
//
// int low = 0;
// i... |
5f2ec1f077bd99f960427066585cb6314f765dd6 | 56b8b3eb6011e54c16b7211224b79f8daa33139a | /Algorithms/Tasks.0501.1000/0720.LongestWordInDictionary/solution.cpp | addb8156d6cdc519d885b7a9b5f7dd6de1f0e34e | [
"MIT"
] | permissive | stdstring/leetcode | 98aee82bc080705935d4ce01ff1d4c2f530a766c | 60000e9144b04a2341996419bee51ba53ad879e6 | refs/heads/master | 2023-08-16T16:19:09.269345 | 2023-08-16T05:31:46 | 2023-08-16T05:31:46 | 127,088,029 | 0 | 0 | MIT | 2023-02-25T08:46:17 | 2018-03-28T05:24:34 | C++ | UTF-8 | C++ | false | false | 2,727 | cpp | solution.cpp | #include <unordered_map>
#include <vector>
#include "gtest/gtest.h"
namespace
{
class Solution
{
public:
std::string longestWord(std::vector<std::string> const &words) const
{
constexpr size_t alphabetSize = 26;
constexpr size_t alphabetStart = 'a';
std::vector<std::vector<size_t>> tr... |
69a245ade0a94eacd5ba25153afa0dd1ff623ceb | a9106d639615044d63b872bf7538ef0b7127061b | /kriot247/Circle.h | fe71ae30480345c49671335e5c8167144184b1ba | [] | no_license | kwiatriot/Intro-OPP | efb9b9ea28ba41b4646c14617618215c8ebbf344 | b65a14c731d2905e87b0303b51131c6d619d1e3b | refs/heads/master | 2023-04-05T22:37:42.499679 | 2021-04-15T22:24:20 | 2021-04-15T22:24:20 | 354,145,069 | 1 | 0 | null | 2021-04-15T22:24:21 | 2021-04-02T22:13:27 | C++ | UTF-8 | C++ | false | false | 484 | h | Circle.h | #ifndef CIRCLE
#define CIRCLE
#include "BasicShape.h"
class Circle :
public BasicShape
{
private:
long centerX;
long centerY;
double radius;
public:
// Constructor
Circle(long x, long y, double r)
{
centerX = x;
centerY = y;
radius = r;
calcArea();
}
... |
99fd346b913e19cb5c03a6f025dfd7abca3278d7 | 188fb8ded33ad7a2f52f69975006bb38917437ef | /Fluid/processor3/0.47/phi | 82f22fe3e83867424273faf61d74dd7ec1e7803a | [] | no_license | abarcaortega/Tuto_2 | 34a4721f14725c20471ff2dc8d22b52638b8a2b3 | 4a84c22efbb9cd2eaeda92883343b6910e0941e2 | refs/heads/master | 2020-08-05T16:11:57.674940 | 2019-10-04T09:56:09 | 2019-10-04T09:56:09 | 212,573,883 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,918 | phi | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
... | |
14ed8211fe41b34fbc94b0fe505c70cd20eb04dd | a33c767141d8a5ab4452a6ae9c556f60329b576d | /src/Module/Channel/Binary_symmetric/Channel_binary_symmetric.hpp | 0a9380e4e9b016a735019982a9dadfec43d1148e | [
"MIT"
] | permissive | sqf-ice/aff3ct | 6d885bceb43ab88f61c27b2ccf4e04458b800269 | fcd41ffd04238e314b48ec5d391265e1407975a8 | refs/heads/master | 2020-04-22T13:21:11.568787 | 2019-01-18T14:47:37 | 2019-01-18T14:52:32 | 170,405,919 | 0 | 1 | MIT | 2019-02-12T23:13:05 | 2019-02-12T23:13:05 | null | UTF-8 | C++ | false | false | 1,086 | hpp | Channel_binary_symmetric.hpp | #ifndef CHANNEL_BSC_HPP_
#define CHANNEL_BSC_HPP_
#include <vector>
#include <mipp.h>
#include <random>
#include "Tools/Algo/Draw_generator/Event_generator/Event_generator.hpp"
#include "../Channel.hpp"
namespace aff3ct
{
namespace module
{
template <typename R = float>
class Channel_binary_symmetric : public Chan... |
88c1531c1ba87832502afcd47930a2b671b3280a | 9dae6ce6aded3b65ee19ef835f4bfad5401dbc82 | /NoteEditor/DurationButton.cpp | 072871c0d684772c2085f9d8a8101d186fe5cd9e | [] | no_license | Cvelth/university_note_editor_project | efdc227b182394fe05fd424c81c3b4b3c1457848 | d2561abb961915aa0afb81233a1735c327fa5e13 | refs/heads/master | 2021-06-16T18:05:01.578413 | 2017-05-26T06:05:43 | 2017-05-26T06:05:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 367 | cpp | DurationButton.cpp | #include "durationButton.hpp"
void DurationButton::clickSlot(bool) {
emit clickedSignal(m_duration);
}
DurationButton::DurationButton(size_t duration) {
m_duration = duration;
setText(QString::number(duration));
setCheckable(true);
connect(this, &QPushButton::clicked, this, &DurationButton::clickSlot);
}
size_t... |
ff75cfe79051fab77fa899c8d737fbd1cb0acf97 | f8bef1a91749d5ff5a5a08f79a3a489486e54b38 | /SharedCode/RemoveCommand.h | 21ecbb8c0b021c8a777f306af1da0fc377175004 | [] | no_license | quinnwai/file-system | 7360ae36e5015a0608998ec9779c192e6aee6ad0 | b03a7fc73d10a8cf559829a87f8c58d914232097 | refs/heads/main | 2023-07-06T21:11:33.690184 | 2021-08-09T12:46:38 | 2021-08-09T12:46:38 | 331,070,514 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 524 | h | RemoveCommand.h | /*RemoveCommand.h
Author: Quinn Wai Wong, Will LeVan
Email: qwong@wustl.edu, levanw@wustl.edu
Purpose: Concrete class declaration inheriting from AbstractCommand. Enables a user to remove files from the system.
*/
#pragma once
#include "AbstractCommand.h"
#include "AbstractFileSystem.h"
#include <string>
class Remove... |
bc4dc0714597d625a963d64feab96a48def7e88f | 15b84964763f0e88f114812aa3ee654263a59025 | /HeadFirstDesignPatterns/Factory/AbstractPizzaTestDrive/NYPizzaStore.h | f94be067ee30c487ba6de19f07c68293dc01a586 | [] | 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 | 302 | h | NYPizzaStore.h | #pragma once
#include "PizzaStore.h"
class PizzaIngredientFactory;
class NYPizzaStore : public PizzaStore
{
public:
NYPizzaStore();
virtual ~NYPizzaStore();
protected:
virtual shared_ptr<Pizza> createPizza(const string& item);
private:
shared_ptr<PizzaIngredientFactory> ingredientFactory;
};
|
1dc8b8e9bb9860c977546952344eff6d7918424d | 795260ef3542098c6ffd7b7f0908e77c249af0f6 | /380.Insert Delete GetRandom O1.c++ | 9cedaf400016bed65a9a2feb9f714c4243875d0d | [] | no_license | gillianczj/leetcode | f6819473ddf6ad8fb9d94f96194b47d2a27fbbb1 | c93590cf4e0220d39185d68c9d055f721d7f14e9 | refs/heads/master | 2021-01-19T02:34:58.037260 | 2017-01-19T04:17:11 | 2017-01-19T04:17:11 | 52,185,426 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 631 | 380.Insert Delete GetRandom O1.c++ | class RandomizedSet {
public:
RandomizedSet(){}
bool insert(int val) {
if(mp.count(val)) {
return false;
}
nums.push_back(val);
mp[val] = nums.size() - 1;
return true;
}
bool remove(int val) {
if(!mp.count(val)) {
return false;
... | |
f5c879abfb49f3f459c19a57d60a3233838fc310 | 1e2b8c2bd42d7e18005eb44e1b54fd08c53b0ab9 | /integration-tests.cpp | a1037d98f7779d4330e32d64b5ab119fe2e605c1 | [
"BSD-3-Clause"
] | permissive | measurement-kit/mkorchestra | f3c98bc8cff8a8305948dd4f26197b106d53e6b2 | 224c62580cbd09273af9948e5c6f20b236e28f28 | refs/heads/master | 2020-04-03T21:17:18.317613 | 2019-08-28T10:34:07 | 2019-08-28T10:34:07 | 155,569,616 | 0 | 0 | BSD-3-Clause | 2019-04-26T15:17:29 | 2018-10-31T14:18:59 | C++ | UTF-8 | C++ | false | false | 9,810 | cpp | integration-tests.cpp | #include "mkorchestra.h"
#include <iostream>
#define MKCURL_INLINE_IMPL
#include "mkcurl.hpp"
#define CATCH_CONFIG_MAIN
#include "catch.hpp"
static mkorchestra_metadata_uptr get_metadata() {
mkorchestra_metadata_uptr metadata{mkorchestra_metadata_new_nonnull()};
mkorchestra_metadata_set_available_bandwidth(meta... |
fdd41b114cf657aea763d69d9a28891e9ea4af75 | 62633d66b9bdc23760c3e849dcb565d46b93a3d1 | /wifi.ino | 449fb203ea55b906c5604f5124b689be12cf9cf0 | [] | no_license | hmation/wledimir | 4d13e31a31355cfea577e822c4d42765fc8df941 | 300ff898393b41ca287275f85ce0f16f2af27bf1 | refs/heads/master | 2020-05-24T23:50:44.686415 | 2019-11-14T07:29:48 | 2019-11-14T07:29:48 | 187,521,965 | 0 | 0 | null | 2019-11-13T13:02:33 | 2019-05-19T19:57:33 | C++ | UTF-8 | C++ | false | false | 220 | ino | wifi.ino | #include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <DNSServer.h>
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
void setupWiFi()
{
WiFiManager wifiManager;
wifiManager.autoConnect();
}
|
e67a1181fb4ca0b1bfe41fb77106e4672d886474 | 618e55cef1a98ae8f9f80dd4078df1668a312bb6 | /Engine/Source/Core/Intersectable/Query/PrimitivePosSampleQuery.h | 7c58aaa04033b197cbeefdd939c5b6aa667a6ac0 | [
"MIT"
] | permissive | TzuChieh/Photon-v2 | 8eb54ee9f3ae51bb241896a2fc62d10b553eaab9 | 498724a7ae4f42884499ee13e548013b2799ea7f | refs/heads/master | 2023-08-31T22:43:30.667848 | 2023-08-23T09:43:14 | 2023-08-23T09:43:14 | 70,727,398 | 93 | 8 | MIT | 2019-03-04T12:18:54 | 2016-10-12T18:07:46 | C++ | UTF-8 | C++ | false | false | 1,052 | h | PrimitivePosSampleQuery.h | #pragma once
#include "Common/primitive_type.h"
#include "Common/assertion.h"
#include "Math/TVector3.h"
#include <cstddef>
namespace ph
{
class PrimitivePosSampleInput final
{};
class PrimitivePosSampleOutput final
{
public:
math::Vector3R position;
math::Vector3R normal;
math::Vector3R uvw;
std::size_t fa... |
504286fabf81c597b0cce71baa3d968db764e1a3 | 48c43b9a78d0c40678d7375d5b739c8aa7ea4d7c | /ESP8266 Arduino Sketches/tiny_door_and_window_sensor_-_ifttt/tiny_door_and_window_sensor_-_ifttt.ino | 63879530a46accbb9fb0a61c9ac8b8fac15f7b6b | [] | no_license | MuadDib007/ESP8266-Tiny-Door-and-Window-Sensor | 4ff5e09fdc9151f498fceb39f900df0a32ac7ef4 | 810b76a0cacffbd069a60c3f0e328fdf221c6765 | refs/heads/master | 2020-03-08T15:27:40.931605 | 2018-04-27T18:51:55 | 2018-04-27T18:51:55 | 128,212,515 | 1 | 0 | null | 2018-04-05T13:46:49 | 2018-04-05T13:46:48 | null | UTF-8 | C++ | false | false | 6,700 | ino | tiny_door_and_window_sensor_-_ifttt.ino | /*
Tiny door and window sensor v0.3
IFTTT example
TODO: Add description
Resources:
IFTTT API:
https://ifttt.com/maker
ESP8266 Arduino core docoumentation:
https://github.com/esp8266/Arduino/tree/master/doc
https://github.com/esp8266/Arduino/blob/master/doc/libraries.md
Espressif FAQ ... |
3769d67f0a95930b1ae78a5d9ab8adb5e0582d61 | 547b0a1e4e671ca3e18a39e8dbdc2d4be352e8bc | /rcc/qrc_resources.cpp | aadd054f1c9a904591b79f8e792edee41b737fcc | [] | no_license | AJ92/Switcher | e97b223e0e005bf402969303ab12bf696d6a6a53 | 121f0101e7de4d6d245ed17758c0c0a93a6a1a10 | refs/heads/master | 2018-11-04T02:12:38.050830 | 2018-08-26T11:09:43 | 2018-08-26T11:09:43 | 13,270,476 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 618,953 | cpp | qrc_resources.cpp | /****************************************************************************
** Resource object code
**
** Created: Fri 8. Jun 14:49:46 2012
** by: The Resource Compiler for Qt version 4.7.4
**
** WARNING! All changes made in this file will be lost!
****************************************************************... |
c34975e8147ffc3abced65f6bd8a5202500bc917 | 060bae84f48cac27592e5e7cf99b81f8c0f2af80 | /bmaker/interface/in_json.hh | b474c9f3acbebd5ea41f39f6dc760a022e6f549e | [] | no_license | manuelfs/babymaker | 31d3b6ba533d7d7e8173bf7382ffda56e6d98a88 | e95a6a9342d4604277fe7cc6149b6b5b24447d89 | refs/heads/master | 2021-04-19T02:31:57.726403 | 2019-01-04T21:43:32 | 2019-01-04T21:43:32 | 42,443,497 | 6 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 353 | hh | in_json.hh | #ifndef H_IN_JSON
#define H_IN_JSON
#include <vector>
#include <string>
std::vector<std::vector<int> > MakeVRunLumi(std::string input);
bool inJSON(std::vector<std::vector<int> > VRunLumi, int Run, int LS);
void CheckVRunLumi(std::vector<std::vector<int> > VRunLumi);
void CheckVRunLumi2(std::vector<std::vector<int> >... |
8afe373759dbf482a28e504f3c144c55d924be87 | 2ceb9c96aed5da6a4f37b8ff9d5580331b87d6e5 | /程序员代码面试指南/1.栈和队列/getMinStack/solution/stack_min.h | b9463394f616fe99000c8ca7c3b48328146dbd23 | [] | no_license | zhangshuai-neu/leetcode_practice | bb15dd3933909afac25f59a6720743185244067f | 175a5e4a5101bfbb7f22735b1899e2b2f75a289d | refs/heads/master | 2020-03-24T20:50:47.480458 | 2019-09-21T13:12:53 | 2019-09-21T13:12:53 | 142,999,489 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 315 | h | stack_min.h | #ifndef STACK_MIN
#define STACK_MIN
#include <vector>
#include <iostream>
using namespace std;
class StackMin{
public:
void push(int in);
int pop(void);
int getMin(void);
// debug function
void debugShow(void);
private:
vector<int> data;
vector<int> minStack;
};
#endif // STACK_MIN
|
7a1919bec10afdd1cdb336f1123403af03e1a962 | 0f7f826d7a80b8d48aa32e90e6f6ce86adaa0cc4 | /app/addmatrix.cpp | 846faee51901aa6435b40f261cda2e48999995df | [] | no_license | tboschi/SuperHK | aadc9ef258dccfce59072d546aed78cb6babf3a3 | 81ff0dd11e2043ed768058968910a0f15d6f9f86 | refs/heads/master | 2021-06-10T15:12:07.351566 | 2021-06-03T15:14:56 | 2021-06-03T15:14:56 | 190,611,867 | 3 | 2 | null | 2021-01-13T18:28:11 | 2019-06-06T16:11:53 | C++ | UTF-8 | C++ | false | false | 3,011 | cpp | addmatrix.cpp | #include <fstream>
#include <iostream>
#include <iomanip>
#include "tools/CardDealer.h"
#include "physics/Oscillator.h"
#include "TFile.h"
#include "TMatrixD.h"
#include "TMatrixT.h"
#include "TKey.h"
#include "TList.h"
int main(int argc, char** argv)
{
if (argc < 2)
{
std::cerr << "Addmatrix: need at least two ... |
84744a30e850facdd9e2a6be25bcd67365d03cc0 | 32536691e51d2c2d61dc48a69ac045d48a2b8294 | /hw3_code/Image.cpp | bffd07cb94ae9026a9e2249935289f2138962a7e | [] | no_license | diditong/CSCI576 | 4159aed4e35d552a618561f456c0b9e2f839459d | 7dd1fb24038558fea9d731b6feb6476ed4d00820 | refs/heads/master | 2023-08-28T01:49:37.009065 | 2021-09-14T11:52:07 | 2021-09-14T11:52:07 | 390,733,657 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,777 | cpp | Image.cpp | //*****************************************************************************
//
// Image.cpp : Defines the class operations on images
//
// Author - Parag Havaldar
// Code used by students as starter code to display and modify images
//
//***********************************************************************... |
7e064c81b03e5d16b9a98290d59cb48d953be7fe | 24b5324a8019b0baa31ff46ce7020fd361b45b38 | /src/uts.cpp | 8b7e265f8cfd7a55bb75459201fa1b8378e4f326 | [] | no_license | LDVSOFT/spbau-term6-containers | 12827b4a942563f52a0fe82addee3289c42299a0 | c45ba837b21ddc2b8c90c6ec753b50e3efae8d0a | refs/heads/master | 2021-01-20T00:36:52.103433 | 2017-05-12T14:39:55 | 2017-05-12T14:40:29 | 89,159,938 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 466 | cpp | uts.cpp | #include "uts.hpp"
#include "utils.hpp"
#include "utils_ns.hpp"
#include <string>
#include <unistd.h>
#include <sched.h>
using std::string;
int uts_setup_ns() {
int ret;
static string const HOST("container");
CALL(ret, sethostname(HOST.c_str(), HOST.size()),
"Failed to set hostname", (void) 0);
// Jobsdone --... |
613ceee0d3af67389ec60e69b8d151b5b2fa5d9f | e9c02bb0df7ad3a928cf7c97b8294451eaa8dbc8 | /graph-source-code/467-D/12721853.cpp | 2e4ac8e9deb4f76659eeccb466e14aa81874de65 | [
"MIT"
] | permissive | AmrARaouf/algorithm-detection | b157a534545fa8920bbe94e7307d4b937a74aa60 | 59f3028d2298804870b32729415d71eec6116557 | refs/heads/master | 2021-01-13T14:37:04.074339 | 2015-12-06T21:14:31 | 2015-12-06T21:14:31 | 45,905,817 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,220 | cpp | 12721853.cpp | //Language: GNU C++11
///////////////////////////////
// Template By: Agus Sentosa //
// 17 - 5 - 2014 //
///////////////////////////////
#include <algorithm>
#include <ctime>
#include <cstdlib>
#include <climits>
#include <cassert>
#include <cstring>
#include <cmath>
#include <functional>
#in... |
9c39ca7f89dddcf36e5799a084ef7abe1a51b9c8 | 0c79bbdb421b6cba0ced88085da271e73a67961e | /ENgine/Core/Font/FontCharmap.h | 9e7e47c145b0ca3b0ba04ba03962908d42cbde68 | [] | no_license | ENgineE777/ion | 898b50102796c3e247eb0a1ac380dfdf273b9cb9 | cc9364188873831ebe3222944a96b49397f50c20 | refs/heads/master | 2023-07-16T09:41:28.119564 | 2021-08-23T23:23:13 | 2021-08-23T23:49:51 | 399,273,658 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 790 | h | FontCharmap.h | #pragma once
#include <ft2build.h>
#include <freetype/freetype.h>
#include <freetype/ftglyph.h>
#include "FontCharToGlyphIndexMap.h"
class FontCharmap
{
public:
FontCharmap();
virtual ~FontCharmap();
void Init(FT_Face face);
int GlyphListIndex(const unsigned i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.