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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f275b68c90f0f091dac880c763fd2fae0a172c89 | 69b32b79c7a62590b1e21ac98e3475be1e19a912 | /contrib/autoboost/autoboost/preprocessor/list/reverse.hpp | a70debfe758d940d47f883d34450f089e0785fd4 | [
"Apache-2.0"
] | permissive | codemercenary/autowiring | 636596d1ece37ea75003cd5180299c4adc070869 | b2775e86cd29fc3e9bc50f3f5f9e735efdbcff21 | refs/heads/master | 2020-12-25T00:29:08.143286 | 2016-08-19T23:49:16 | 2016-08-19T23:49:16 | 22,248,790 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,551 | hpp | reverse.hpp | # /* Copyright (C) 2001
# * Housemarque Oy
# * http://www.housemarque.com
# *
# * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0.txt or copy at
# * http://www.boost.org/LICENSE_1_0.txt)
# */
#
# /* Revised by Paul Mensonides (2002) */
#
# /* See http://www.boost... |
6eb41a4bf5f12f0ad448f8827331593af7f90718 | 9d08f0ad9b6847045caf28978a697ad8abeeb63a | /esp32_WiFiManager_Basic.ino | 72c9f6b49a5e600a9dab0a3910e41c8f7d0992ea | [] | no_license | alifainur/mtech | 21b1bd9e4aee2552279e861e35761e4cc72c924f | 630dabf5e605aeddcbbaca960f61a3ef0b84f108 | refs/heads/master | 2022-12-07T10:05:26.139838 | 2022-11-29T15:42:03 | 2022-11-29T15:42:03 | 225,377,072 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 400 | ino | esp32_WiFiManager_Basic.ino | #include <WiFiManager.h>
void setup() {
WiFi.mode(WIFI_STA);
Serial.begin(115200);
WiFiManager wm;
wm.resetSettings();
bool res = wm.autoConnect("ESP32_Fainur","aaaaaaaa");
if(!res) {
Serial.println("Failed to connect");
}
else {
Serial.println("connected to WiFi");
... |
56c9e66f963842c7f78a3fb1ad04fd0105a1c8a3 | b91488c44fc40559fa46182476fa10129ce2b0f8 | /FootCommander.cpp | 9e7f96cd88cdbe850557b95bdfd4ab968a40d87b | [
"MIT"
] | permissive | shanishalel/wargame | 17b0608bb5276e3a4ca29d4255c417e7c3e1fcc5 | 7edb972be458dc57c0b1c59138e37a9508d8c2cc | refs/heads/master | 2022-11-24T19:23:11.011009 | 2020-07-24T08:50:04 | 2020-07-24T08:50:04 | 274,949,067 | 0 | 0 | MIT | 2020-06-25T15:18:17 | 2020-06-25T15:18:16 | null | UTF-8 | C++ | false | false | 1,379 | cpp | FootCommander.cpp | #include "FootCommander.hpp"
using namespace std;
/* the footcommander made all his footsoliders attack */
void FootCommander :: attack(vector<vector<Soldier *>> &board, pair<int, int> location){
Soldier *s = board[location.first][location.second];
int i=location.first;
int j=location... |
0addc4e4f3e56814275d24d39324edc0d43bcdc1 | 57609e8e131f78abf07d8d94ed43f5e8a9686fe0 | /GDBManipulator/src/ArgumentCallBackFunctions.h | a1b3144de82f999c228d80a18d56c0393132ef1a | [
"MIT"
] | permissive | intel/Dependency-Reduction-Unit-Framework | 56fd45e15c1221263137e525383ac8afde8d7150 | 4e538d293dc738ee60462fe00ffacf0739ba720b | refs/heads/master | 2023-05-27T15:28:27.066080 | 2022-09-07T06:24:00 | 2022-09-07T06:24:00 | 262,437,314 | 3 | 5 | MIT | 2020-07-08T09:16:25 | 2020-05-08T22:00:50 | C++ | UTF-8 | C++ | false | false | 1,063 | h | ArgumentCallBackFunctions.h | /**
* Copyright (C) 2020 Intel Corporation
* SPDX-License-Identifier: AGPL-3.0-or-later
* @author: Sebastian Balz
*/
#ifndef GDBMANIPULATOR_ARGUMENTCALLBACKFUNCTIONS_H
#define GDBMANIPULATOR_ARGUMENTCALLBACKFUNCTIONS_H
#include "argvParser.h"
#include "tester/TestAnalyser.h"
extern string elfFile;
extern strin... |
3cbfb6c28afcbb13c61d8d9685b24a28250cb653 | f012891a6066d01b4fc419bef97299f2df25e342 | /Mathematics/MM40.cpp | e55582b2d070947f4507245510c72980e10bb33c | [] | no_license | wayne1116/ITSA-Online-programming | 50bc0243f8a99079303801461a3b56be87b1620b | 96789878f26b2af1983efdbb292c3e8614b3e456 | refs/heads/master | 2020-04-30T08:30:00.415952 | 2020-02-28T17:34:11 | 2020-02-28T17:34:11 | 176,717,738 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 897 | cpp | MM40.cpp | #include<stdio.h>
#include<stdlib.h>
int main()
{
int a, i, j, k, number, base, temp, number1;
char result[1024];
while(scanf("%d", &a)!=EOF){
for(i=0; i<a; i++){
scanf("%d %d", &number, &base);
for(j=0; j<1024; j++){
result[j]='0... |
ab626f5f2f2963a99b8091135cc11abaeb4a5e16 | 37a7732ce1f30349aaa36955c892dd8c2626bae4 | /pea/BB.cpp | c40b387d2b75e612c7a013bd7ee4cce4f34e10f2 | [] | no_license | tomekflorczuk/TravellingSalesmanProblem | 4a3f275ab772676ac337fefc3715ac82dcc836f8 | 6c3896426fd59bb9b4da651483b74a4ab4440030 | refs/heads/master | 2020-05-24T05:35:11.360123 | 2019-05-17T01:08:22 | 2019-05-17T01:08:22 | 187,119,896 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 2,457 | cpp | BB.cpp | #include "BB.h"
int* BB::visited;
int BB::Size;
int BB::it;
int BB::startingpoint;
int BB::currentpoint;
int BB::cost;
int BB::mincost;
vector<int> BB::points;
vector<int> BB::minpoints;
//Konstruktor
BB::BB()
{
Size = Data::GetSize();
visited = new int[Size];
for (int i = 0; i < Size; ++i)
visited[i] = 0;
star... |
00b9b4770eb5e815b8b3e4249ea821f9bf0f3400 | 7ef33fe1a49ea76c1132235b864790d82f595014 | /src/index.h | 4961112feb733ed7dabd07cf9c7038e3d9cb3df0 | [
"BSD-3-Clause"
] | permissive | gear-genomics/tracy | 91ae9891b4fc4a1931279e913f46d04ce26b9c8c | 970bb5b51e25f8f592a3dcd19dd38a4e9bdc0662 | refs/heads/main | 2023-04-14T02:16:09.872971 | 2023-04-12T07:13:28 | 2023-04-12T07:13:28 | 137,339,828 | 91 | 17 | BSD-3-Clause | 2023-04-07T11:38:13 | 2018-06-14T09:54:24 | C++ | UTF-8 | C++ | false | false | 4,523 | h | index.h | #ifndef INDEX_H
#define INDEX_H
#include <sdsl/suffix_arrays.hpp>
#include <fstream>
#include <iomanip>
#include <boost/dynamic_bitset.hpp>
#include <boost/program_options/cmdline.hpp>
#include <boost/program_options/options_description.hpp>
#include <boost/program_options/parsers.hpp>
#include <boost/program_option... |
9983708af8defa196289f40569540a6209792a0f | e5f57aae37a480cf40180d0a5664aaab5a0c0341 | /vaca/Application.cpp | c5b2ec888997f17150aa1f881a7ae9d76a654bc1 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | TheLightWay/vaca | 6ddabf0cd12a46583b03cddc99d2b13da87a4e41 | 95728e6a5c41d9fe2c731f7767b7334b623f41ed | refs/heads/master | 2023-06-10T09:47:28.085286 | 2023-04-12T02:52:15 | 2023-04-12T02:52:15 | 149,952,301 | 0 | 0 | MIT | 2018-09-23T05:56:48 | 2018-09-23T05:56:48 | null | UTF-8 | C++ | false | false | 4,866 | cpp | Application.cpp | // Vaca - Visual Application Components Abstraction
// Copyright (c) 2005-2010 David Capello
//
// This file is distributed under the terms of the MIT license,
// please read LICENSE.txt for more information.
#ifdef VACA_WINDOWS
#include <windows.h>
#endif
#include "vaca/Application.h"
#include "vaca/Deb... |
215d93cb88bcaaa3deb36b081aed644504496a84 | 7eb853a4c478c5d83d18152211e11c0a52110afc | /HC-06_Config.ino | 517a19db9e549a2bf572d45e183001352b132da6 | [] | no_license | kmcgerald/floppy-waffle | eb7437d89f7846997166d53946d7d162e5482f65 | 8ea754b73cee3e7b5418731bf00cb1d71d86aea3 | refs/heads/master | 2021-01-15T15:36:24.445331 | 2020-12-21T03:54:25 | 2020-12-21T03:54:25 | 43,971,078 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,300 | ino | HC-06_Config.ino | //This is a simple sketch to setup an HC-06 Bluetooth module via an Arduino and the IDE Serial Monitor
//Connect to the arduino at 9600 with No line ending
//Connect the power and ground of the HC-06 to the Arduino VCC and GND and connect the module's RX to pin 11 and TX to pin 10
//Try different baud rates for "mySeri... |
5b9ca510a831714d27fd977c6a2bed9f90c9c1ef | 6efc15021bdb3d32fbdedba142e8e1f4747e6deb | /ECS/Defs.hpp | 7985504a4402dff31bee45d83df9aeef279cfdf3 | [] | no_license | MaxUAforever/ECS | f146dc0fa1b398f4afcda61449e0281c622d9141 | e97e4244662cfb143f1cb7dca29cc7fe0f36dbcb | refs/heads/main | 2023-07-28T11:50:08.312004 | 2021-09-07T08:47:27 | 2021-09-07T08:47:27 | 396,392,706 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 353 | hpp | Defs.hpp | #ifndef Defs_hpp
#define Defs_hpp
#include <boost/uuid/uuid.hpp>
#include <time.h>
namespace ECS
{
using ComponentID = boost::uuids::uuid;
using EntityID = boost::uuids::uuid;
using SystemID = boost::uuids::uuid;
using EventID = boost::uuids::uuid;
using TypeID = boost::uuids::uuid;
using Time = time_t;
} // name... |
ff5fe3fde299251f26cb29891f2c417add082736 | b356e4cfc0888068f4bd2a99eeb82b45274e38e3 | /AddMarkEdit.cpp | 37b5b76c9d115a0a9355f8e47f9e7d83d1ca152a | [] | no_license | PeratX/StudentManagementSystem | 735804caec4712ce482d7111c249c146ddd1f97d | 47332a9ad4d5d5f87e24320da4c1c2a3c6b92bd7 | refs/heads/master | 2022-11-13T03:40:49.629258 | 2020-07-08T12:21:15 | 2020-07-08T12:21:15 | 276,601,711 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,281 | cpp | AddMarkEdit.cpp | // AddMarkEdit.cpp: 实现文件
//
#include "pch.h"
#include "StudentManagementSystem.h"
#include "AddMarkEdit.h"
#include "afxdialogex.h"
// AddMarkEdit 对话框
IMPLEMENT_DYNAMIC(AddMarkEdit, CDialogEx)
AddMarkEdit::AddMarkEdit(CWnd* pParent /*=nullptr*/)
: CDialogEx(IDD_DIALOG_ADD_SUB_INFO, pParent)
{
}
... |
2a2c798d9a3450e9a3c8f46a1b4594e3e5763ac7 | a72ddfb8e5dda0ddee9ca933964baac7d5197dff | /Classes/HelloWorldScene.cpp | ade7c4d9736b6e80076efb1e8b1cb70ab38ac05f | [] | no_license | nphgiang/ShaderDemo | 195f533aa9cda98ad02140f26681f8fcaa527dfa | e9abae0f2eece43882b50242a5fd24cb3c53eb48 | refs/heads/master | 2021-01-22T04:53:44.898584 | 2015-05-13T17:27:46 | 2015-05-13T17:27:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 952 | cpp | HelloWorldScene.cpp | #include "HelloWorldScene.h"
#include "proj.win32\BlurNode.h"
#include "proj.win32\PostProcessingNode.h"
#include "proj.win32\BlurNode2Pass.h"
#include "proj.win32\BlurNodeSampling.h"
USING_NS_CC;
Scene* HelloWorld::createScene()
{
// 'scene' is an autorelease object
auto scene = Scene::create();
// ... |
60295b39eabd8e5f6fb6e1eab82d205fb678af31 | b05e856dd558bdcd255e81dd6660050d33a968d9 | /25_qvariant/QVariabt_88/dialog.cpp | 65fb607aeedb8ed552480de9a1f4b5cd99987e19 | [] | no_license | DawidMaciazek/qtTutorials | 337c424da7f2b81fa2fa4e3e355014b71e1d3b37 | df00dcfe02e82f5157065fa9dc5cc0f5f3be26d7 | refs/heads/master | 2020-12-25T14:23:57.587523 | 2016-10-17T13:56:24 | 2016-10-17T13:56:24 | 66,942,516 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 584 | cpp | dialog.cpp | #include "dialog.h"
#include "ui_dialog.h"
#include <QVariant>
#include <QDebug>
#include "myclass.h"
Dialog::Dialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::Dialog)
{
ui->setupUi(this);
QVariant v = 1233.03;
qDebug() << v.toInt();
qDebug() << v.toDouble();
if(v.canConvert<QStrin... |
a9ed42fed68fd899182e47219b1f27f168149017 | 3ff1fe3888e34cd3576d91319bf0f08ca955940f | /gse/include/tencentcloud/gse/v20191112/model/CreateGameServerSessionRequest.h | 9507bab26d9a98d34fd7d2ffe2d5bcdba4c71b30 | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-cpp | 9f5df8220eaaf72f7eaee07b2ede94f89313651f | 42a76b812b81d1b52ec6a217fafc8faa135e06ca | refs/heads/master | 2023-08-30T03:22:45.269556 | 2023-08-30T00:45:39 | 2023-08-30T00:45:39 | 188,991,963 | 55 | 37 | Apache-2.0 | 2023-08-17T03:13:20 | 2019-05-28T08:56:08 | C++ | UTF-8 | C++ | false | false | 12,659 | h | CreateGameServerSessionRequest.h | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
c410a0141be31474a46868bc05f31ddda5161b26 | a623bb4db329c8d63e03908d16dc2808bacbcdaa | /include/vRt/vRt_lib.cpp | ce2853d2a5848df950fd7ab8e8a9add10aea8980 | [
"MIT"
] | permissive | gitter-badger/vRt | 990358412ec885352d3893bf80fdc286e01d170c | a50b67d42a7d8eb0735016337ec7f482a2bde253 | refs/heads/master | 2020-03-19T12:14:12.155526 | 2018-06-07T12:54:32 | 2018-06-07T12:54:32 | 136,505,385 | 0 | 0 | MIT | 2018-06-07T16:41:44 | 2018-06-07T16:41:44 | null | UTF-8 | C++ | false | false | 87 | cpp | vRt_lib.cpp | // implementator of vRt in static lib
#include "vRt/vRt.h"
#include "vRt/vRt_impl.inl"
|
0bc9d02582a0358b29f09351668def76647430c1 | cdd954c874762b94828dac7c29f185804403b4b2 | /RocketOpenNIPlugin/deps/OpenNI/include/XnNodeAllocator.h | 757e4005e98a8467a3089ca2fdfd88278c7c5bea | [
"Apache-2.0"
] | permissive | Adminotech/meshmoon-plugins | cd2c898bcae0fbab796e9829c48754c81be4644a | 32043ef783bdf137860d7d01eb22de564628e572 | refs/heads/master | 2021-01-13T00:44:55.012875 | 2016-03-07T14:58:03 | 2016-03-07T14:58:03 | 52,879,540 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,147 | h | XnNodeAllocator.h | /****************************************************************************
* *
* OpenNI 1.x Alpha *
* Copyright (C) 2011 PrimeSense Ltd. *
* ... |
5554a63feed39e456fda5a6dcc1d7f0bc45b85df | 1e0145f29225cd5fac51d88e8053403cb6c47c50 | /src/fsa/seq_io.cpp | 7252279f5cef1315a3a974a51960a52f58744937 | [] | no_license | TheLuoFengLab/NECAT | aa14b3092b0908c7c94531cc154887f0113aeb5c | 0c5fc856aedc855c96efb78d8340372104cb5cfe | refs/heads/master | 2022-09-15T01:08:16.652954 | 2021-03-18T06:17:58 | 2021-03-18T06:17:58 | 205,390,438 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,308 | cpp | seq_io.cpp | #include "seq_io.hpp"
#include <cassert>
#include <algorithm>
#include <cassert>
namespace fsa {
bool FastaReader::Next(Item &item) {
item.id = Tell();
item.quality = "";
return GetHead(item.head, item.sub_head) && GetSeq(item.seq);
}
bool FastaReader::GetHead(std::string &head, std::strin... |
04c7938b8954b6b515e261c5fba0644107a30618 | 04740a66d98730afca496eb0cf5e7b5edea5f6e6 | /backend/CDataset/rotate/rotate_1.cpp | 86f6754bdf636a5991c689205fd535716dfde7a9 | [] | no_license | mehulthakral/logic_detector | 0c06fbd12d77a02c888d0bbe3e6776a18f2f46e3 | f7a07a6d229b250da9e02d3fac1a12fa51be97e8 | refs/heads/master | 2023-04-12T12:45:29.370502 | 2021-05-05T17:15:02 | 2021-05-05T17:15:02 | 323,953,099 | 2 | 0 | null | 2021-05-03T16:50:44 | 2020-12-23T16:39:28 | null | UTF-8 | C++ | false | false | 352 | cpp | rotate_1.cpp | class Solution {
public:
#include<vector>
void rotate(vector<int>& nums, int k) {
reverse(nums.begin(),nums.end()); // reverse the array
reverse(nums.begin(),nums.begin()+k%nums.size()); // reverse the first k ele
reverse(nums.begin()+k%nums.size(),nums.end()); // re... |
e793aba516dc35aa662f732493c5c497329f60b9 | c51064f0e88a44339d3f4ea729bad3e2df4cd336 | /cpp/libs/ssp21/src/crypto/Algorithms.cpp | ecde9f37fe4283f2f95792c4fe108d440b76676d | [] | no_license | ssp21/ssp21-cpp | 219e0da72d5d9a8bf4a0cc4a25e22dcdb3a9ad81 | 90e111a8e369ce44276824e4abec66e6a83927e6 | refs/heads/master | 2021-07-17T03:47:50.888364 | 2020-10-09T18:14:02 | 2020-10-09T18:14:02 | 65,405,723 | 3 | 2 | null | 2021-04-26T18:58:41 | 2016-08-10T18:13:40 | C++ | UTF-8 | C++ | false | false | 4,038 | cpp | Algorithms.cpp |
#include "crypto/Algorithms.h"
#include "ssp21/util/Exception.h"
namespace ssp21 {
HandshakeError Algorithms::Session::configure(SessionNonceMode nonce_mode, SessionCryptoMode session_mode)
{
switch (nonce_mode) {
case (SessionNonceMode::greater_than_last_rx):
this->verify_nonce = &NonceFunctions::v... |
931952bff5d26f3d27714bfe50c839fadc5a2f91 | db80b43f473d595fd5b8a540a0bf283828860c0e | /connected.cpp | 1ad06dd648cd3b2c3dec472452ca21dc62f5624b | [] | no_license | hrunderla/VLN_1_UI | d9700f6c945321432cbd6ca6f0e4b7c35e921379 | 462e91c40fa631d350ce7a69e5e6a038d5a139fe | refs/heads/master | 2021-01-10T10:09:34.401516 | 2015-12-14T14:02:00 | 2015-12-14T14:02:00 | 47,764,770 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 752 | cpp | connected.cpp | #include "connected.h"
Connected::Connected()
{
nameOne = "";
nameTwo = "";
idOne = 0;
idTwo = 0;
}
Connected::Connected(string name1, string name2)
{
nameOne = name1;
nameTwo = name2;
idOne = 0;
idTwo = 0;
}
void Connected::putNameOne(int anId)
{
idOne = anId;
}
void Connected::p... |
660e1facb685aa93a152faafbca96d17ca8aac56 | a766ee23c2243f850ebdb83a69d0fb8a5359c07d | /2015/UVa/UVa536.cpp | 346c4c2e3036756d88db2c9bffdb6da926bfe9e2 | [
"MIT"
] | permissive | jasha64/jasha64 | 24e127e57dd8852e5a006ba98be6c17312733597 | 653881f0f79075a628f98857e77eac27aef1919d | refs/heads/master | 2021-06-23T08:34:27.220649 | 2021-06-20T06:05:50 | 2021-06-20T06:05:50 | 218,268,953 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 965 | cpp | UVa536.cpp | #include <iostream>
#include <string>
using namespace std;
struct Node
{
char Data;
Node *Left, *Right;
} *Root;
string s1, s2;
inline Node* newnode() {return new Node();}
void Recover(int Left2, int Right2, int Left1, Node* Root)
{
Root -> Data = s1[Left1];
if (Left2 == Right2) return;
int Pos = s2.find(s1[Le... |
2cef1c08ab30ddeb74e462c7421296cede32b56c | f7510a0f27b84c704d53de7d931c82229eb186bb | /WPFKeyboard.Native/ManageCpp/KeyboardLayoutHelper.cpp | aee8a33969aa37ddeb2a8441ed2cf36ba1bdf64d | [] | no_license | ZT-/WPFKeyboard | 4be4436aa5dd7e4c16e68e7a0e1c6f40958f1405 | b46fb70f65da7319df1019974f6128ff9abf4f65 | refs/heads/master | 2022-01-15T05:44:30.858397 | 2019-07-22T14:32:56 | 2019-07-22T14:32:56 | 198,239,983 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,896 | cpp | KeyboardLayoutHelper.cpp | #include "stdafx.h"
#include "KeyboardLayoutHelper.h"
#include "KLL.h"
WPFKeyboardNative::KeyboardLayoutHelper::KeyboardLayoutHelper(void)
{
}
WPFKeyboardNative::KeyboardLayout^ WPFKeyboardNative::KeyboardLayoutHelper::GetLayout(System::String^ keyboardLayoutDll)
{
CKLL *kll = nullptr;
try{
kll = new CKLL();
... |
ce13562c90c8154c34776a93c54d165255d7f72d | a821bfe3f3cc066527118e3cc51e1e4cce08101e | /IARCS JUDGE/ENDCORR/End of Corruption.cpp | e40f11020313d2049d7ddf259810c28ffee381b7 | [] | no_license | valalithak/Competitive-Programming | b7fa717d1f39325bf04247cdbdeb6d4d13e5f33c | 493bc1ef5451d38fee03bb598f7e1382e886c949 | refs/heads/master | 2021-06-19T00:17:36.745551 | 2019-10-14T13:46:34 | 2019-10-14T13:46:34 | 154,393,189 | 0 | 1 | null | 2019-10-14T13:46:35 | 2018-10-23T20:34:05 | C++ | UTF-8 | C++ | false | false | 281 | cpp | End of Corruption.cpp | #include <bits/stdc++.h>
using namespace std;
int A,B,N,tmp;
int main()
{
priority_queue <int , vector <int> > P;
cin>>A>>B;
N=A+B;
while(N--)
{
cin>>tmp;
if(tmp==-1){
cout<<P.top()<<endl;
P.pop();
continue;
}
P.push(tmp);
}
return 0;
}
|
4da0fafb6ed6d8a3e5bc4e944185ba5a416415b1 | 17353cfd2c984f2b57ab09dce5b793f34b051f19 | /src/plugProjectKandoU/interactBattle.cpp | 2763ab43de5eae3277555a4b68f3b849cf54a614 | [] | no_license | mxygon/pikmin2 | 573df84b127b27f1c5db6be22680b63fd34565d5 | fa16b706d562d3f276406d8a87e01ad541515737 | refs/heads/main | 2023-09-02T06:56:56.216154 | 2021-11-12T09:34:26 | 2021-11-12T09:34:26 | 427,367,127 | 1 | 0 | null | 2021-11-12T13:19:54 | 2021-11-12T13:19:53 | null | UTF-8 | C++ | false | false | 1,630 | cpp | interactBattle.cpp | #include "types.h"
#include "game/interactBattle.h"
#include "game/Creature.h"
/*
* --INFO--
* Address: 8019FE78
* Size: 000044
*/
namespace Game {
bool InteractFlick::actCommon(Creature* param_1)
{
if (param_1->isStickTo()) {
param_1->endStick();
}
return true;
};
///*
// * --INFO--
// * Address: 8019FEBC... |
8e5f9a115c43474c97636e2f9888a2b3ce5df2e2 | 92bb51629d67f694c385a9c2d84f99fdd6b811a1 | /Library/Library.prj/CSVRcdB.cpp | c523f73546d24952d377629f48a2f67a7e6032e4 | [
"MIT"
] | permissive | rrvt/WixApp | 0bb1e5a2e309725a240fc42f4f1f03e756b97b3c | 80b03383e850fbc361f656dbacfc0bd4e42bd155 | refs/heads/master | 2023-07-24T09:41:56.652497 | 2023-07-08T06:11:54 | 2023-07-08T06:11:54 | 240,187,528 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,039 | cpp | CSVRcdB.cpp | // My CSV Records
#include "pch.h"
#include "CSVLex.h"
#include "CSVOut.h"
#include "CSVRcdB.h"
// load csv data from file
bool CSVRcdB::load(CSVLex& lex){
static TCchar* NullStg = _T("");
clear();
while (lex.get_token() != EolToken) {
CSVtok& tok = lex.token;
CSVtok& tok1 = lex.token1;
if (tok.... |
d7f323ab853db88268f67a67b170338b37139669 | 1f3b037857da5b9742c209b55f56f208252cc897 | /include/Control/ControlMap.hpp | 819bdf3d160393c96145cf093bb2cf2e7609ec6e | [] | no_license | Kraghan/Dead-Pixel-Society | cd4cd8178a8a411147bb84469afde8a010d51d6d | 728958d2134b21cf20fe32d3a819d541dce73a69 | refs/heads/master | 2020-04-16T02:50:42.815122 | 2017-01-10T17:19:06 | 2017-01-10T17:19:06 | 68,087,857 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 677 | hpp | ControlMap.hpp | //
// Created by Kraghan on 13/10/2016.
//
#ifndef PROJECT_CONTROLMAP_HPP
#define PROJECT_CONTROLMAP_HPP
#include "Control/EnumActions.hpp"
#include "Control/GameContext.hpp"
#include <iostream>
#include <map>
class ControlMap {
private:
std::map <int,Actions> m_map_game, m_map_menu, m_map_game_controller, m_ma... |
d83394aa51c0f0febe970a10969ba27a2a46b61c | b309c832dec3df54dd7893eed4919abe49905d76 | /Resources.h | d97f532ee1130b0d335e311553d92f3b06175721 | [] | no_license | gitter-badger/Hydround | fe1db32a2ca2a5a1f8e422cdf392b213956b87f5 | a5346693abeb47755804d0e51c998f6dd8301556 | refs/heads/master | 2021-01-16T22:15:08.950065 | 2016-02-14T09:57:21 | 2016-02-14T09:57:21 | 51,689,303 | 0 | 0 | null | 2016-02-14T09:58:20 | 2016-02-14T09:58:19 | null | UTF-8 | C++ | false | false | 1,369 | h | Resources.h |
// ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
// ▒▒█▒▒█▒█▒▒█▒███▒▒███▒▒▒██▒▒█▒▒█▒█▒▒█▒███▒▒
// ▒▒█▒▒█▒█▒▒█▒█▒▒█▒█▒▒█▒█▒▒█▒█▒▒█▒██▒█▒█▒▒█▒
// ▒▒████▒▒███▒█▒▒█▒███▒▒█▒▒█▒█▒▒█▒█▒██▒█▒▒█▒
// ▒▒█▒▒█▒▒▒▒█▒█▒▒█▒█▒█▒▒█▒▒█▒█▒▒█▒█▒▒█▒█▒▒█▒
// ▒▒█▒▒█▒▒██▒▒███▒▒█▒▒█▒▒██▒▒▒██▒▒█▒▒█▒███▒▒
// ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒... |
d2b31fe0d51471d1688a4f7d520404f90afd48d6 | e05936836a5b1c9a4c3731cd21e53b1a38457e4e | /Day 5/Class.cpp | 04a9677f5d1e5fde93602e0baffc7d4b502e0d5b | [] | no_license | shivamgupta57121/GS-Coderantine-CPP | 90c7c93318ebd1632c00683b4d55b9a6a50c8f67 | d5cb146e2d176b74435ce72d553eea87f68432d0 | refs/heads/master | 2022-11-17T14:44:58.414284 | 2020-06-20T13:04:55 | 2020-06-20T13:04:55 | 272,037,927 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 815 | cpp | Class.cpp | #include<bits/stdc++.h>
using namespace std;
class student{
private:
int roll;
string name;
float marks[3];
float total, per;
void calculate(){
total=0;
for(int i=0;i<3;i++) total+=marks[i];
per = total/3;
}
public:... |
e9d16378ee7f15fd0242e0d792d5ce5ac1f4b485 | 05092fbc5d7b7a4641f902d96f3430ad5105c87c | /test.cpp | f372f5483b0f29d5ee1331530e8cd30bfaed3db8 | [] | no_license | choxsword/LearningCpp | cc78676e2d540bc1eb76149ad3e1255fcb08ad0c | 5f5ab9a535a828ca17011bdc5f400fcdaab5466b | refs/heads/master | 2021-04-12T10:06:52.587193 | 2018-03-26T03:30:30 | 2018-03-26T03:30:30 | 126,772,237 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 577 | cpp | test.cpp | #include<iostream>
#include "test.h"
using namespace std;
namespace test
{
TansCons& TansCons::operator =(const TansCons& obj)
{
cout<<"="<<endl;
}
TansCons::TansCons(const char* obj)
{
cout<<"trans cons"<<endl;
}
TansCons::TansCons(const TansCons& obj)... |
966032293acddb95b39e94996c740e9920d2ffd1 | 5687b2d67015cbf8f1119ff2421f5a3b112f0932 | /login.cpp | e35ce9f1f6b8b2c327a0fbf3944813917503fc39 | [] | no_license | sockerboy/MyChat | 2799f3a4b7c150e5fb9645e4729704ece6f6b3df | 3b48cddd18b19f816bb8f2792324a5c738b01f75 | refs/heads/master | 2023-03-17T09:15:03.989644 | 2018-03-16T06:32:29 | 2018-03-16T06:32:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,763 | cpp | login.cpp | #include "login.h"
#include "ui_login.h"
#include<QMessageBox>
#include<QSqlQuery>
#include<QDebug>
bool connectDb(){
QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL");
db.setHostName("127.0.0.1");
db.setDatabaseName("luchat");
db.setPort(3306);
db.setUserName("root");
db.setPassword("88")... |
0b2ecbc3ee3fbfa3aabf5e63ba8a0ca9d27fb5b0 | b172c1ad3459efda447340537f4488356c882637 | /src/widgets/utils/sliderwithvalues.hpp | 441f35a3561b904149721412b99eb2df8010c655 | [] | no_license | davafons/imagecpp | 532e4131cdf70d62c37c199c496ffd2a764edbd6 | a8026729ed5d50b058928a5d2ecb97599871c93c | refs/heads/master | 2020-07-30T00:08:21.997323 | 2019-11-27T21:51:44 | 2019-11-27T21:51:44 | 210,011,406 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 543 | hpp | sliderwithvalues.hpp | #pragma once
#include <QLabel>
#include <QSlider>
class SliderWithValues : public QWidget {
Q_OBJECT
public:
SliderWithValues(Qt::Orientation orientation, QWidget *parent = nullptr);
int minimum() const;
int maximum() const;
signals:
void valueChanged(double value);
public slots:
void setMin(int min);... |
e35cafb6bbd720ab59c3f4e2ab4411fbac2d789e | db3809ad07d942ff837907e902c025d6a5e0bc64 | /src/vetero-displayd/charset.cc | ee514def41d673ee4b7314b42a8d7d1ba7ca127c | [] | no_license | bwalle/vetero | 3178cc33d30207b8382ee5aff380713f852b1edb | a2a20b2d445f04f4c311215934e2d872c189063a | refs/heads/master | 2022-10-24T18:37:51.242361 | 2022-10-08T14:38:17 | 2022-10-08T14:38:17 | 163,579,380 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,999 | cc | charset.cc | /* {{{
* (c) 2011, Bernhard Walle <bernhard@bwalle.de>
*
* 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 2 of the License, or
* (at your option) any later version.
*
* Thi... |
b3e945610df9ba2c2aa870abbacaf6847482fe9a | 883e53051c4579b32e85a0d8d35b814da0f26dfe | /Jacob/Lektion 10/OPG 11.1 - Shapes 1/Shapes_1/Rectangle.cpp | 64b6b178d1a7914ea2aee7cd671f487cad25aca2 | [] | no_license | Andreasgdp/Cpp-2.-semester | fa8b2b5b462d558cd88f6f75c04fca0fb8afc9cb | 8180e6ea86bb933f8c0f16579c57eeeac8345eff | refs/heads/main | 2023-06-10T00:20:44.345868 | 2021-06-23T15:00:12 | 2021-06-23T15:00:12 | 335,230,193 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 148 | cpp | Rectangle.cpp | #include "Rectangle.h"
Rectangle::Rectangle()
{
}
double Rectangle::calcArea(double height, double width) {
return mArea = height * width;
}
|
61b1d62a4a2db853371d91965ec4c83d1f0481da | e4c14e337dbea3118bb138b668437fd0ab020ad2 | /hue-emulator/lib/service_hue_bridge/hue_light.cpp | dc3571656973cacc88e5f8522b67678e2e65798c | [
"MIT"
] | permissive | aenniw/ESP8266 | 69060792c9c8a2b380d5a763ebc7a5b85104f530 | 2642fba2e37be68343a4c19a286a813e5aab4cf1 | refs/heads/master | 2023-06-25T11:15:46.035427 | 2023-06-11T09:19:38 | 2023-06-11T09:51:32 | 73,233,861 | 5 | 0 | MIT | 2022-11-22T07:55:03 | 2016-11-08T22:45:23 | C++ | UTF-8 | C++ | false | false | 2,412 | cpp | hue_light.cpp | #include "hue_light.h"
static const char *TEMPLATE_CONFIG_LIGHT = "/hue/l/cf-template.json";
LedLight::LedLight(LedStripService *l, const char *n, const uint8_t index)
: HueLight(n, get_file_index_info(HUE_LIGHT, index, false), TEMPLATE_CONFIG_LIGHT) {
ls = l;
ls->set_animated_color_change(true);
... |
7592d6b02095fc39167f897f89877eb92020b94e | 35b2422a965fbe5a753c591c1130628453e61d9d | /MQTT_StrangerThingsWall/MQTT_StrangerThingsWall.ino | 042f1e32c5e49cf4f376bbd7d283ff2e4c7b346b | [
"Apache-2.0"
] | permissive | Starius-Project/StrangerThings_LightWall | d728f127aa9153e9f2bc59badcf2be73758856d1 | d3ef9e205d780721baeb26a4e106b1ca724db8b5 | refs/heads/master | 2020-04-16T20:05:25.656693 | 2019-07-22T14:26:00 | 2019-07-22T14:26:00 | 165,886,331 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,702 | ino | MQTT_StrangerThingsWall.ino | /***************************************************
Adafruit MQTT Library ESP8266 Example
Must use ESP8266 Arduino from:
https://github.com/esp8266/Arduino
Works great with Adafruit's Huzzah ESP board & Feather
----> https://www.adafruit.com/product/2471
----> https://www.adafruit.com/products/2821
... |
db16792a253ed181959f85a0ea8904898a400582 | d3bbc8fe573b0149d2d18546fa5311ab3b514f35 | /src/engine/render/text/freetype_font.cpp | e4cf6ea79984226aa641f3fc567a459aa2a41723 | [] | no_license | enlit3d/traps_sweeper | 9ef857faa4bcd3427690211c42893b2dccaba907 | e1a3349a9be456f45a6e1814ce521235a62046aa | refs/heads/master | 2022-07-17T05:34:04.626110 | 2020-04-24T06:25:03 | 2020-04-24T06:25:03 | 198,321,048 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,795 | cpp | freetype_font.cpp | #include "freetype_font.h"
#include "utf.h"
#include "ft2build.h"
#include "freetype/ftglyph.h"
#include FT_FREETYPE_H
#include <iostream>
#include <cassert>
namespace engine::render {
struct FreeTypeFont::Impl {
Impl(str_ref filePath, i32 pointSize) {
if (FT_Init_FreeType(&library)) {
throw;
}
aut... |
a81c58599a0d3cb9b49cff72004917f4424a5f01 | f1f9859230125fc7dd1aa5d0ab685c98d2f51444 | /Dong/cpp/search_Binary/search_Binary/main.cpp | d94ebe7fd7878f998c617d7b09d6a04ee5b7ee81 | [
"MIT"
] | permissive | dong199903/Data-and-Struct | 4379a547e02e87a2c4867d779494856634ee322f | 54ac178c83d2aaaaef6fb3bc8a138cc8d48b2a19 | refs/heads/master | 2022-08-25T16:48:06.287896 | 2022-07-23T17:49:23 | 2022-07-23T17:49:23 | 208,051,148 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 560 | cpp | main.cpp | /*************************************************************************
> File Name: array_queue.c
> Author: DongZePing
> Mail: 1939485575@qq.com
> Time: 2019-07-27
>
> 1)
> 2)
> 3)
************************************************************************/
#include "Search.h"
#include <iostream>... |
ea0431322dc0e9c21616fdd80dda96039908f186 | 5e72ba60c16573312f2b74bebd91ebd31d758bf4 | /NEO/filehelper.cpp | f67712b07f2040196aef930560439673ae6ded05 | [] | no_license | Malakahh/NEOQt | ff0e288f906b985f27d823f2a73820ab324bfbe8 | 1368b41469501b9ab47d88b64ef28821328db83e | refs/heads/master | 2020-07-22T07:50:16.560162 | 2017-09-19T16:53:17 | 2017-09-19T16:53:17 | 73,830,902 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,961 | cpp | filehelper.cpp | #include "filehelper.h"
FileHelper::FileHelper(QObject* parent) : QObject(parent)
{
#ifdef Q_OS_ANDROID
this->userStorageDir.setPath(QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation).last());
#endif
#ifdef Q_OS_IOS
this->userStorageDir.setPath(QStandardPaths::stand... |
c980ec91aa7f341a83fce32442e7e598547df184 | eebb79e0ffb9bf2c729e83e133ff61a4c2e36d49 | /src/realm/sync/network/network.cpp | 0090c4db3260b2e31f79b740ba21d324f47cbcf2 | [
"Apache-2.0"
] | permissive | realm/realm-core | 878349ddbf33353de26272d7b1e8f93690ba28d1 | c258e2681bca5fb33bbd23c112493817b43bfa86 | refs/heads/master | 2023-08-31T21:14:19.625989 | 2023-08-31T20:29:06 | 2023-08-31T20:29:06 | 1,917,262 | 1,059 | 189 | Apache-2.0 | 2023-09-14T18:11:10 | 2011-06-18T21:18:46 | C++ | UTF-8 | C++ | false | false | 88,336 | cpp | network.cpp |
#define _WINSOCK_DEPRECATED_NO_WARNINGS
#include <algorithm>
#include <cerrno>
#include <condition_variable>
#include <limits>
#include <mutex>
#include <stdexcept>
#include <thread>
#include <vector>
#include <fcntl.h>
#ifndef _WIN32
#include <netinet/tcp.h>
#include <unistd.h>
#include <poll.h>
#include <realm/ut... |
6483123fe70e496ea42102f1d5da3d4e77d98a88 | 683b2336df14be15c5c4b40ebc6006986ecc8f1b | /sparkplug-bridge/SPARKPLUG-BRIDGE/Test/Src/Common_ut.cpp | ab82aec9c3ea1978f7a095424fd2b2cfa50ffc2c | [
"MIT"
] | permissive | dspshivaji/uwc | 30f943fdfb8e4ac19a546679957cca0c4b36b378 | 637b3888bb617b4f44c4818d4d62d5c822cd683d | refs/heads/master | 2023-07-08T20:01:50.612426 | 2021-07-23T15:52:18 | 2021-07-23T15:52:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,185 | cpp | Common_ut.cpp | /********************************************************************************
* Copyright (c) 2021 Intel Corporation.
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction,... |
7b7d6168b56bd4286bab082ed0d499ea95212c97 | aea7799cdf8ecb7b9304c8898767e91949f71d4b | /round1/construct-binary-tree-from-inorder-postorder.cpp | 89a148ccf1798e9fbf49471c182d14f3e55566b8 | [] | no_license | elsucai/LC | e2baab13168761519ae537176e42fa04607de88a | d5915a4efb6e16e2cea5f8d448ca72c2f8edcc9b | refs/heads/master | 2016-09-08T02:05:30.401990 | 2014-04-01T22:50:23 | 2014-04-01T22:50:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,163 | cpp | construct-binary-tree-from-inorder-postorder.cpp | /**
* Definition for binary tree
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
void helper(TreeNode* &root, vector<int> &inorder, int is, int ie, vector<int> &postorder, int ps, int... |
51ad171070a2f35b731d14c8088f7844d3066067 | 97564ea3ed8611b79b57504406207de7bdd2a152 | /application.cpp | ef46fedf554269bcbf487cd4e597930a3c16d729 | [] | no_license | sy-long/AVL-tree | 0e91ae23e0f95f0f8a84b41f5ed0e2a2bff26366 | 54947b7b1c234f417823a4ea95f77adba12aded2 | refs/heads/master | 2020-04-16T19:41:59.770896 | 2019-01-15T15:02:33 | 2019-01-15T15:02:33 | 165,870,553 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 686 | cpp | application.cpp | #include "avltree_h.h"
#include <stdio.h>
#include <stdlib.h>
int main()
{
pnode node = NULL;
int chiose;
int key;
while (1)
{
printf("1.插入节点\n");
printf("2.删除节点\n");
printf("3.退出");
printf("\n\n");
printf("请输入:");
scanf("%d", &chiose);
switch (chiose)
{
case 1:
{
printf("请输入要插入的数据:");
sc... |
dc50c00e98beef65395120d8a17cbeabc6793f7f | 0381e635c0faf699b41f3e7bc78c29ca10eda074 | /SocketLib/SocketLibSocket.cpp | 3be51c69d07423e1e60024c8914dad7a8ca1dabf | [] | no_license | ysbbswork/Chatroom | 884b83704b579de8aa0215b4836057d6054a13a6 | ebb97378c646aead31c9167dee0199fc3c6e65da | refs/heads/master | 2020-03-20T09:58:03.401148 | 2018-06-15T14:41:33 | 2018-06-15T14:41:33 | 137,354,538 | 4 | 0 | null | null | null | null | GB18030 | C++ | false | false | 6,188 | cpp | SocketLibSocket.cpp |
// socket classes: Basic, Data, and Listening.
#include "SocketLibSocket.h"
namespace SocketLib
{
void Socket::Close()
{
#ifdef WIN32
closesocket( m_sock );
#else
close( m_sock );
#endif
// invalidate the socket
m_sock = -1;
}
void Socket::SetBlocking... |
1d8eedf12c0aca9a00f51cc5327607a7a7013af9 | 691ff4baa6fd2643a5b5d969d74c80941a83f1bd | /include/indigo-bondorder/python/interface.hpp | 0616de17daf93d279a7aa9b89cd13fb700e81e0c | [
"MIT"
] | permissive | Cuboxylate/indigo-bondorder | f82b1142b6e46578cd1cf0a34acca2d1b9ee4ec4 | a7d4543b4245c5b987c45c1440cc5764f862fce5 | refs/heads/master | 2020-09-22T14:56:59.873452 | 2019-12-02T03:18:58 | 2019-12-02T03:18:58 | 225,249,004 | 0 | 0 | MIT | 2019-12-01T23:52:06 | 2019-12-01T23:52:05 | null | UTF-8 | C++ | false | false | 777 | hpp | interface.hpp | //
// interface.hpp
// indigo-bondorder
//
// Created by Welsh, Ivan on 8/01/18.
// Copyright © 2018 Allison Group. All rights reserved.
//
#include "../api.hpp"
#include <pybind11/pybind11.h>
#ifndef INDIGO_BONDORDER_PYTHON_INTERFACE_HPP
#define INDIGO_BONDORDER_PYTHON_INTERFACE_HPP
/// @todo add opaque set<stri... |
12f76122c23930cd7ebf9ae74bbf7d344f92d76c | b14d85e2f1ed77d51e897965b3e443334f19ee6c | /main.cpp | 4c69d16b879c2f9ba6f0aecd2bd0ba3009790f2c | [] | no_license | jeffrey-wro/qrfinaldemo | cd899d2d8ff34c7cb8a883296f794e07e948ce00 | 7250a5d76b0ea26610d34251a4bdea88a57d0656 | refs/heads/master | 2020-05-06T13:27:48.443862 | 2019-04-10T14:11:30 | 2019-04-10T14:11:30 | 180,138,256 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,671 | cpp | main.cpp | #include <vector>
#include <iostream>
#include <stdio.h>
#include "MyRio.h"
#include "I2C.h"
#include "Motor_Controller.h"
#include "Utils.h"
#include "opencv2/core.hpp"
#include "opencv2/opencv.hpp"
#include "opencv2/objdetect.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#inclu... |
f04256c76dde705a3d9a394b71bd3a8887ec6cc4 | 623815a3f9e0805bc29925c8782c972a29e8bf3e | /Stock_Market/player.cpp | cf8a93ff9113e2e6dcafd321081ef7326fefacd7 | [] | no_license | Conbot2/CSE-232 | 7d5f1f422c835624f24d48c23162b4f1960300e1 | faa24d3ac93d643ab1048bb2bf28fd57f7da5746 | refs/heads/master | 2021-01-18T07:19:49.403121 | 2014-07-04T19:43:15 | 2014-07-04T19:43:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,116 | cpp | player.cpp | #include "player.h"
using std::to_string;
Player::Player(double amount) {
cash = amount;
}
bool Player::buy(Market &m, string stock, long date, long quantity) {
bool valid;
double price = m.get_price(stock,date) * quantity;
if (price <= cash && price > -1.0)
valid = true;
else
valid = false;
if... |
f93cb76c002deb48b77228245c9ed0eca8526a76 | c0e240b822fc185b3542143e7b4c87c45f4655fb | /Compiler/include/Symbol.h | 1d0e05bfd57e523bf87c8b252101d0afcd39eb98 | [
"MIT"
] | permissive | SilenceX12138/MIPS-Microsystems | 615bf01c26beb4586c114d708f17587c7bbd9952 | d389b706b0930151a710b544db436c2883af958b | refs/heads/master | 2023-07-29T12:13:33.938266 | 2021-09-09T02:57:32 | 2021-09-09T02:57:32 | 403,604,431 | 57 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,211 | h | Symbol.h | #ifndef _SYMBOL_H_
#define _SYMBOL_H_
#include <string>
#include <vector>
#include "Token.h"
using namespace std;
enum SymbolKind
{
UndefSymKind,
ConstSym,
VarSym,
ArrSym,
FuncSym,
};
enum SymbolType
{
UndefSymType,
IntSym,
CharSym,
StrSym,
};
enum FunctionRetType
{
UndefRe... |
c123e9b064297978e2730f412d6dd817c1a57e3e | 2dfa3c811556fbedf94f1af1a4b0567c9374d566 | /week1/Digit palindrome.cpp | 3586f57c4abb002953d6fa87f1fb718e7f365544 | [] | no_license | nnonnoon/AbstractDataType | 697b95d699c1f5c0bbb119479ecb833c59b79a59 | f224be42faea768e818c3992699ff0dc365513e4 | refs/heads/master | 2020-08-27T02:05:10.140286 | 2019-10-24T05:02:23 | 2019-10-24T05:02:23 | 217,214,092 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 357 | cpp | Digit palindrome.cpp | #include <iostream>
using namespace std;
int main()
{
int n ,num,digit, count = 0;
cin >> num;
n=num;
do{
int digit = num%10;
count = (count * 10 ) + digit ;
num/=10;
} while (num!=0);
if (n==count){
cout<<"yes\n";
}
else {
cou... |
6a0c8c15fa18ea20ed02c87f07d86ce8167c5c01 | 72e9c8bdb8bb7f2834a49604c73f7bf192d6e0d7 | /tests/src/main.cpp | fca26ded9efea3895ab31f91627fd3b98dbcdb73 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | IntegraSources/ISML | 005b36e8d3471f76d7cd222366246ace627a3061 | e8c2fe0bc0480064b53f2eb6bbc36c5bbea9670c | refs/heads/master | 2023-06-12T10:21:05.386158 | 2021-07-02T07:37:55 | 2021-07-02T07:37:55 | 382,255,914 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 315 | cpp | main.cpp | /**
* @file main.cpp
* @author Oleg E. Vorobiov <o.vorobiov(at)integrasources.com>
* @date 26.02.2020
*/
ISML_DISABLE_WARNINGS_PUSH
# include <gtest/gtest.h>
ISML_DISABLE_WARNINGS_POP
auto main(int argc, char** argv) -> int
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
|
c8c05c875356f0a97ec212449a8ee210f4d554ab | 2a1b10c8145c67ae8087ccf2f14b34d1b837a3cb | /old/Minion/src/Regression/CLogistic.h | 634ad0010275beba44ca2e9237741712529923fe | [] | no_license | strikles-zz/poker | 88c99903eacc2cd3572ed2135dde9d2d85024626 | bfdac5742c2605bc76d56707c7c59f11c3761423 | refs/heads/master | 2021-06-05T20:15:18.740933 | 2015-10-14T15:14:53 | 2015-10-14T15:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 913 | h | CLogistic.h | #pragma once
//#include <unsupported/Eigen/NonLinearOptimization>
#include "DB/CData.h"
class CLogistic
{
public:
CLogistic() {};
CLogistic(int br_ndx, int nacted, eBetType action);
CLogistic(Matrix<double, Dynamic, Dynamic, RowMajor>& X, VectorXd& y, VectorXd& theta) {};
public:
VectorXd J_history;
Matrix<do... |
713da2c56f2ce0d5f5a20d92668c048296823ccb | 14cd82ceb0ed01235ac8c7208219fc4df7a7b1d2 | /Introduction to Progamming/Lab Projects/lab4/metric_translator.cpp | 7c6910db71c4df8357bbdcabfc5bbd2c54b52304 | [] | no_license | OliverAkhtar/Projects | 947000000e1ce1d653c58b705143b6cbe1cf4a3b | c2bcfa51886de155843aa79a4d6968d6ad0bf641 | refs/heads/master | 2021-01-10T15:55:45.933009 | 2017-11-15T21:12:22 | 2017-11-15T21:12:22 | 49,913,736 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 603 | cpp | metric_translator.cpp | /*This program converts kilograms, centimeters, and kilometers to pounds, inches, and miles respectively.*/
#include <iostream>
using namespace std;
int main()
{
double kilos, pounds, centimeters, inches, kilometers, miles;
cout << "Enter kilograms:";
cin >> kilos;
pounds = (kilos * 2.20462);
cout << "Pounds:" ... |
b84f205db80fd2c6f66ba60e30e8cad065c61e9e | ad15b756efe01065429a5f3085a04948f99912fb | /codeblocks-file.cpp | 0146e37f1dfa240fb5fa4b9003775601b4d5ab05 | [] | no_license | sayedmushahid/Digital-clock-and-stopwatch | f81462fa9a0ecbf4231064ea8d96464f3b79073b | 1b1e89742c6cfa23be9d338c851d59d50dd0f921 | refs/heads/master | 2020-09-22T12:58:28.172664 | 2019-12-01T18:09:28 | 2019-12-01T18:09:28 | 225,206,275 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,267 | cpp | codeblocks-file.cpp | #include <stdio.h>
#include <conio.h>
#include <iostream>
#include <graphics.h>
#include <time.h>
#include <dos.h>
#include <string.h>
#include <windows.h>
using namespace std;
void digital();
void stopwatch();
void watch();
int main() {
/* request auto detection */
int gdrive... |
979714b454ddea8aaba07809949d7cb0a97b0a7f | aecfb99ab56c0a12dca0e3a965a0be44c2a56494 | /src/logger.cpp | de26204d7fcf9d70a72d27f472b8a4979fb25e6f | [
"MIT"
] | permissive | shwangdev/SoundPatty | 760471e73710a43fe16845dfa5ed87fd9704e433 | 29280f7545897fd6a77c6b376b0752dedf9903f5 | refs/heads/master | 2021-05-27T08:56:38.430494 | 2012-09-11T22:26:22 | 2012-09-11T22:26:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,355 | cpp | logger.cpp | #include "logger.h"
int LogLevel = 3;
const char *LogLevels[] = {"FATAL", "ERROR", "WARN", "INFO", "DEBUG", "TRACE"};
extern void log_mo (const int log_level, const char *file, const int line, const char *pretty_fn, const char *format, ...)
{
if (log_level > LogLevel) return;
va_list arg;
va_start (arg, fo... |
2d029e5bf5302dd51b915e85be0a04657ab036a3 | b22517f050296795a40845168e270e113ac8f5c5 | /AllSources/AnimatioTest2/AnimatioTest2/Mesh.cpp | 907045cbba1ccc68530f0a12b735b3a5290cee7c | [] | no_license | movinglinguini/GraphicsProgrammingStuff | b35502cc117c7cce3af2c4739af06e4b8577889a | 8fbb7ce7938c0fa8b162faed13e626417a0ebbef | refs/heads/master | 2021-06-16T07:36:04.294299 | 2017-05-03T15:54:04 | 2017-05-03T15:54:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,341 | cpp | Mesh.cpp | #include "Mesh.h"
#include "Model.h"
void Mesh::_SetUpMesh()
{
glGenVertexArrays(1, &VAO);
glGenBuffers(1, &VBO);
glGenBuffers(1, &EBO);
glBindVertexArray(VAO);
glBindBuffer(GL_ARRAY_BUFFER, VBO);
glBufferData(GL_ARRAY_BUFFER, ListVertices.size() * sizeof(Vertex), &ListVertices[0], GL_STATIC_DRAW);
glBindBuf... |
e70da2ab4b4f89dc15bcd28727dfbac517a72c6f | 19f202902bd92fa4667f1ebccccdd96eab62f007 | /src/EscapeCancelFilter.h | cbf2ac10394bcd708126ef2074251a3b9535ce99 | [
"MIT"
] | permissive | HaikuArchives/CapitalBe | 3fcfb80eb1e6e25afa9a54e7abae6e821a71d666 | 3952438722cb3d2e8d2d00f078c2a867f6817cd8 | refs/heads/master | 2022-04-30T19:16:26.738165 | 2022-03-29T15:13:49 | 2022-03-29T15:13:49 | 14,126,200 | 3 | 13 | MIT | 2022-03-29T15:13:50 | 2013-11-04T22:58:36 | C++ | UTF-8 | C++ | false | false | 731 | h | EscapeCancelFilter.h | #ifndef ESCAPE_CANCEL_FILTER_H
#define ESCAPE_CANCEL_FILTER_H
// This is for any window which doesn't already have an AutoTextControl in it.
#include <MessageFilter.h>
#include <Handler.h>
class EscapeCancelFilter : public BMessageFilter
{
public:
EscapeCancelFilter(void)
: BMessageFilter(B_PROGRAMMED_DELIVERY, B... |
2bfaded2b09a97412643b9879042b8d5262fe043 | 5fc8c13eed9f3d0e3c3f0786dc6dd6818738b517 | /training-OpenGL/PaOpenGLTest02MFC/PaOpenGLTest02MFCView.h | 85829074f4e3e870fbd3a3595a2c41da2f34d82c | [] | no_license | asm32cn/VC | 3348a6c74b1c3c8671fab40aa8a953b062435fdf | 08f6cd3e03a64cc5601c4b807dbd435f26979543 | refs/heads/master | 2020-03-15T16:23:26.939288 | 2018-05-13T17:42:26 | 2018-05-13T17:42:26 | 132,233,454 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,958 | h | PaOpenGLTest02MFCView.h | // PaOpenGLTest02MFCView.h : interface of the CPaOpenGLTest02MFCView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_PAOPENGLTEST02MFCVIEW_H__1E228C24_719E_460C_8D34_5E412274CBB9__INCLUDED_)
#define AFX_PAOPENGLTEST02MFCVIEW_H__1E228C24_719E_460C_8D34_5E412274CBB... |
df3fd87cb49073085371c43a789dd8f9cb3c86e7 | 56cc596fee14b9228d7f7ede13ad0ad19032663a | /ch14_VirtualRoomServer/VRConnectFourFallingSphereSimulation.cpp | 838797515612e1a175150f12dbe33088b4f6b2d1 | [] | no_license | yangmaoer/VirtualRoom | 289453b932c4fa3f05cf77954220e0fa6c4cdc74 | 56caa4fae8b6551c6bab2444c7c12ef5f22e90bf | refs/heads/master | 2020-03-30T00:29:37.001765 | 2014-10-30T12:50:14 | 2014-10-30T12:50:14 | null | 0 | 0 | null | null | null | null | ISO-8859-3 | C++ | false | false | 1,556 | cpp | VRConnectFourFallingSphereSimulation.cpp | //#############################################################################
// File: VRConnectFourFallingSphereSimulation.cpp
// Author: Cedric Renggli, Marc Wacker, Roman Kühne
// Date: Mai 2014
//#############################################################################
#include "VRConnectFour... |
d7b75e3eae201a8d0c8a50544e91c78d33953553 | 6c71d7e1a86c15ccd1d901073449c6e41d093183 | /RegionBasedColorTransfer.h | c28805678bc1aba272188a430ca238450bb9fe69 | [] | no_license | anthony123/StyleTransfer | 9bac3a3a6eaf1e317f956dfa92febe943301c9dd | 54b263021be25195631fe28ea007c76b3d806342 | refs/heads/master | 2021-01-18T22:52:29.594789 | 2016-06-26T13:37:58 | 2016-06-26T13:37:58 | 61,990,243 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,339 | h | RegionBasedColorTransfer.h |
#ifndef REGION_BASED_COLOR_TRANSFER_H
#define REGION_BASED_COLOR_TRANSFER_H
#include "cv.h"
#include "highgui.h"
#include "Segmentation.h"
#include <vector>
using namespace std;
using namespace cv;
class RegionBasedColorTransfer
{
private:
//constant values
const int number_of_color_type = 9;
vector<Vec3f> ... |
c7d458d3efde333239ae66534fcc70dce4e649ec | c69aa6543b2fd2a1b0818767f718839adf478e6e | /knapsack.cpp | 35b3e36878a63cbf00f180586b351f572e8362d9 | [] | no_license | StuartSpiegel/0-1-Knapsack | 3273d235711a4caaacc7010b012377c286250daa | 7a8ccf78df3b8b365a52dc6f8e925f07236d6f5d | refs/heads/master | 2020-07-25T01:59:43.578877 | 2019-09-12T19:57:40 | 2019-09-12T19:57:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,249 | cpp | knapsack.cpp | /*
Author: Stuart Spiegel
Date: 9/12/2019
***********************************************************************************************************************************************************
Given weights and values of n items, put these items in a knapsack of capacity W
to get the maximum total value in the kna... |
32f478ce3ffa72f312fa04e75f141cba2cde77e1 | 40749684a15dd49a1d7103e706057ac41a802916 | /visualization/src/addBoundingBox.cpp | b9adcf5cd48bd8e280123dbe8f58a2048ea2ea44 | [] | no_license | gywhitel/PCL_learning | e02b4bbcc865ab73d5e140f7d79b47607a25e0de | baa848155647b3af2d4b369932420dd743b44537 | refs/heads/master | 2023-06-12T10:51:36.108304 | 2021-07-05T13:02:03 | 2021-07-05T13:02:03 | 383,131,584 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,591 | cpp | addBoundingBox.cpp | #include "addBoundingBox.h"
// Given centroid and a vector, return the end of the vector starting from the centroid
// \param vector a translation vector
// \param center a pointT type point, the centroid of the pointcloud
pointT eigenvector_to_pointT(Eigen::Vector3f vector, pointT center)
{
pointT point;
poi... |
e37251d5d2ad4a0a1bfa9225435d36e360fc57b1 | e90e4398cb2236991061a212ffbf39736f4ecf18 | /source/materials/src/physicalstate.cpp | a06aed373bdcc20e177c8a3223eb894a7a181875 | [] | no_license | KirillKomarov1993/OpenTuCo | f385881591665db7cb0642050779fa07058380d9 | e6b8fe78fd3afed935537a45ee3fda7a272789f9 | refs/heads/main | 2022-12-19T20:10:54.269830 | 2020-10-15T21:19:45 | 2020-10-15T21:19:45 | 304,383,219 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 259 | cpp | physicalstate.cpp | #include "physicalstate.h"
namespace tuco {
PhysicalState::PhysicalState(double _temperature) :
temperature(_temperature)
{
}
PhysicalState::PhysicalState(double _density, double _temperature) :
density(_density), temperature(_temperature)
{
}
}
|
b744e0aa2b82fad3d10456f5e1c879615735c58f | 388bbd69059cdac4a7388bb9443f1d41bf0c3d8b | /plugins/filters/fidealfilterwidget.h | f69a86b2201f5a7389df38a602fb2a039eb866c1 | [] | no_license | MADTeacher/VideoModeling | 772d36cc97a663da246fabefc33e2dd50967b190 | c8d17ad273fe32d2d2f103106e1851a86d56b369 | refs/heads/master | 2021-10-11T02:08:29.030420 | 2019-01-21T10:40:15 | 2019-01-21T10:40:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 459 | h | fidealfilterwidget.h | #ifndef FIDEALFILTERWIDGET_H
#define FIDEALFILTERWIDGET_H
#include "baseprocessingwidget.h"
namespace Ui {
class FGaussianSettings;
}
class FIdealFilter;
class FIdealFilterWidget : public BaseProcessingWidget
{
Q_OBJECT
public:
FIdealFilterWidget(FIdealFilter* processing, QWidget *parent = 0);
~FIdea... |
ebd87a7c810720f4aa4c4c73cac547c86984e383 | 2c012a4d96ac17a92d225fe1811b68914302c943 | /re/RouterActions.re | 15b16b2bb09948c2132dc80fae6bf004b2cb13b5 | [
"MIT"
] | permissive | Astrocoders/bs-react-native-router-flux | d9b4bd3a35708ef228bc79b4200dd24177ad9bc4 | 23293fd7c4219fb808b09ab0e920044c2b6d9d8a | refs/heads/develop | 2021-09-01T02:58:42.497647 | 2017-10-16T17:38:28 | 2017-10-16T17:38:28 | 103,068,209 | 5 | 1 | MIT | 2018-03-17T10:46:00 | 2017-09-10T23:06:48 | OCaml | UTF-8 | C++ | false | false | 154 | re | RouterActions.re | module RouterActions = {
type params;
external actions : string => params => bool = "default" [@@bs.module "../../../../src/rnrf/RouterActions"];
}
|
d1f2ce13f87fe693388021f4b269fc3cafd40340 | 703068b6ad1717ddeca70190b8ef2767b4b91ccf | /include/eth_trajectory_generation/misc.h | f001b6957d8ad51e7ad69d01c5e4bc5262f2c1d2 | [
"Apache-2.0"
] | permissive | hoijo/mrs_uav_trajectory_generation | d51bcd68fbb24a20fcc1b9b5ad9f29c2643a3215 | 4d63a7937dbb7205cbdfbc6fffa29e77ddc7d63d | refs/heads/master | 2023-01-20T11:16:05.979788 | 2020-11-30T13:43:55 | 2020-11-30T13:43:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,167 | h | misc.h | #ifndef TRAJECTORY_GENERATION_MISC_H
#define TRAJECTORY_GENERATION_MISC_H
#include <iostream>
#define CHECK_LT(v1, v2) \
if (!(v1 < v2)) \
std::cout << __FILE__ << ":" << __LINE__ << " Error: " << v1 << " >= " << v2 << std::endl;
#define CHECK_GT(v1, v2) \
if (!(v1 > v2)) \
std::cout << __FIL... |
cb3e572ffc11342fa9f593ac427100a652d22458 | d3293df2e9ba7c01bc31e5dd40589b5327fbfcbb | /src/scene/TextureScene.cpp | 2c077195f0a2968be16ad27021bedc4a2c971bbc | [] | no_license | trbabb/gltoy | 7b742795d890a0205589c2dc7e12f9e15a348c69 | 05b9db17fc6b65046ded315ca63919e197cf1339 | refs/heads/master | 2021-01-15T16:28:55.162556 | 2019-02-17T04:25:12 | 2019-02-17T04:25:12 | 17,894,060 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,346 | cpp | TextureScene.cpp | #include <iostream>
#include "glHeaders.h"
#include <algorithm>
#include <geomc/function/PerlinNoise.h>
#include <geomc/random/RandomTools.h>
#include "GLWindow.h"
#include "Manipulator.h"
#include "AnimTimer.h"
#include "RenderPass.h"
#include "Shader.h"
#include "Image.h"
#include "Texture.h"
#include "visible/Vis... |
138e57bbbb0cf9d19f892a40307364defef27436 | 4d4822b29e666cea6b2d99d5b9d9c41916b455a9 | /Example/Pods/Headers/Private/GeoFeatures/boost/parameter/aux_/result_of0.hpp | 04f3b002599895d48ddb2bc944743616e1be0660 | [
"BSL-1.0",
"Apache-2.0"
] | permissive | eswiss/geofeatures | 7346210128358cca5001a04b0e380afc9d19663b | 1ffd5fdc49d859b829bdb8a9147ba6543d8d46c4 | refs/heads/master | 2020-04-05T19:45:33.653377 | 2016-01-28T20:11:44 | 2016-01-28T20:11:44 | 50,859,811 | 0 | 0 | null | 2016-02-01T18:12:28 | 2016-02-01T18:12:28 | null | UTF-8 | C++ | false | false | 71 | hpp | result_of0.hpp | ../../../../../../../../GeoFeatures/boost/parameter/aux_/result_of0.hpp |
20da94f4c3f9657e92f4547aa07d0ea73a977d01 | b0227e01d70a479a15433f0ea5054e3b8b855ee4 | /LAR.h | a8ceb0e2439c7dee616976cd9755b85190d7f05a | [] | no_license | ITpC/lar | 57dd6263975a2bdd3990ba6f804b4925479ccf25 | c5320bb6520649ac2372eaeaad2133dd544b6f72 | refs/heads/master | 2021-06-19T00:03:57.225592 | 2021-01-01T00:27:42 | 2021-01-01T00:27:42 | 138,001,015 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,711 | h | LAR.h | /*
* Copyright Pavel Kraynyukhov 2018.
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*
* $Id: lar:LAR.h Jun 16, 2018 1:04:08 PM $
*
* EMail: pavel.kraynyukhov@gmail.com
*/
#ifndef __LAR... |
098a761a4c856a6ed8809bf84dadcf9974686247 | 180492f944459ac416476603f601407e9c4c6988 | /NeoLoader/FileTransfer/ed2kMule/MuleSocket.h | 3fdac9646c701a345fe3ac7e82fd578b20a566e9 | [] | no_license | bratao/NeoLoader | 3a05068f104fa82c853a3ccf8bcc079c5a61a527 | 7885abdb71dc98ef1b45273faaad699eda82c57b | refs/heads/master | 2021-01-15T08:48:06.483422 | 2015-04-02T18:04:54 | 2015-04-02T18:04:54 | 35,004,681 | 0 | 1 | null | 2015-05-03T23:33:38 | 2015-05-03T23:33:38 | null | UTF-8 | C++ | false | false | 1,122 | h | MuleSocket.h | #pragma once
#include "../../Networking/StreamSocket.h"
#include "../../../Framework/Buffer.h"
class CSymmetricKey;
class CMuleServer;
class CSimpleDH;
class CMuleSocket: public CStreamSocket
{
Q_OBJECT
public:
CMuleSocket(CSocketThread* pSocketThread);
virtual ~CMuleSocket();
virtual void Se... |
98a8df4a804070707b9df9756cf6841e5c61ed2e | 60c06d4ba5234b7bee572137d9d4f2c627b405ab | /FLOW007/flow007.cpp | f5b595f5ca224fc37184e16f3cae36911fd14a69 | [] | no_license | adarsh-k-tiwari/CodeChef-Practice | 1a33fe89de79baa2f2d075667ca43c1219b083b5 | 8e25099deaf9b5b4f14dbe0f519b0dcf02c29ddd | refs/heads/master | 2022-12-19T18:56:30.646639 | 2020-10-04T18:34:04 | 2020-10-04T18:34:04 | 299,215,826 | 1 | 1 | null | 2020-10-02T06:51:48 | 2020-09-28T06:52:24 | C++ | UTF-8 | C++ | false | false | 399 | cpp | flow007.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
// #ifndef ONLINE_JUDGE
// freopen("input.txt","r",stdin);
// freopen("output.txt","w",stdout);
// #endif
int test_cases;
cin >> test_cases;
while(test_cases--)
{
int num;
cin >> num;
int ans=0;
int rem=0;
while(num)
{
rem = num % 10;
... |
9dbf49f5be68ecb45c471b8c43dd214d9d55f586 | 7a5f7ea7211e1636ff69c56d1f9eaeb3a13bef53 | /Bilibili/event/event_dmmsg.cpp | a1512817981eb9994f3e0c45c32bb4463c014fb6 | [
"MIT"
] | permissive | yang123vc/BilibiliTool | 034ba175e177b7e80a80f8f29fe19e62108e1439 | c19cfa1d40252d5994d34ab9f9ecbbced6ba3d84 | refs/heads/master | 2020-08-03T04:50:31.716062 | 2019-09-14T16:16:02 | 2019-09-14T16:16:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,776 | cpp | event_dmmsg.cpp | #include "event_dmmsg.h"
#include "logger/log.h"
#include "utility/platform.h"
#include "utility/strconvert.h"
enum {
DM_NONE = 0,
DM_ACTIVITY_MATCH_GIFT,
DM_CHANGE_ROOM_INFO,
DM_COMBO_SEND,
DM_CUT_OFF,
DM_DANMU_LOTTERY_START,
DM_DANMU_LOTTERY_END,
// DM_DANMU_LOTTERY_AWARD,
DM_WARNING,
DM_DANMU_MSG,
DM_GU... |
762512522748f1367fb22d81c084badeeb51c8cf | 2bef6f6a1a6e3fe27d4f0158ecad5e13b6c6e205 | /abcg/abcg_application.cpp | 88e00cf1acdaf3e3d07beb8484e21ec377392497 | [
"MIT"
] | permissive | mancinigabriel/abcg | 8b8456ffe0cf4155a8bfe5b771c3c418ec45a5dc | 33addcb6a937208f8f869482ba90f32f0586fc1e | refs/heads/main | 2023-04-08T05:45:39.141410 | 2021-04-25T22:08:06 | 2021-04-25T22:08:06 | 338,852,997 | 1 | 1 | MIT | 2021-03-20T23:13:34 | 2021-02-14T16:50:52 | C++ | UTF-8 | C++ | false | false | 3,215 | cpp | abcg_application.cpp | /**
* @file abcg_application.cpp
* @brief Definition of abcg::Application class members.
*
* This project is released under the MIT License.
*/
#define TINYOBJLOADER_IMPLEMENTATION
#include "abcg_application.hpp"
#include <fmt/core.h>
#include <gsl/gsl>
#include "SDL_image.h"
#include "abcg_exception.hpp"
#inc... |
824e83778e2d3ad70f95fb32aac0afcb5320e7b9 | 6d1d67f605e0695cfe6dfd13b4e30adab855c7f8 | /RobotArm/Arm.cpp | 0a2036848aea296cc5fbe6dabdac3e6bb689f3ee | [] | no_license | LauHoiYanGladys/RobotArm | f4a57dddeea692489319044c9ba132f20c3f2e53 | dbd69b54fe83d526bab4b88b8378cf03c1e3b188 | refs/heads/main | 2023-07-13T22:09:46.776338 | 2021-08-19T04:38:49 | 2021-08-19T04:38:49 | 324,020,728 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,324 | cpp | Arm.cpp | #include <assert.h> /* assert */
#include "Arm.h"
#include "DHframe.h"
#include "Joint.h"
#include "Link.h"
#include "fssimplewindow.h"
const double Arm::PI = 3.1415927;
class Joint;
using namespace Eigen;
void Arm::draw()
{
for (auto& frame : theFrames) {
// store current matrix state
glPushMatrix();
/... |
196de621d713403caa02036622392f56aa606a50 | c948d95c8ca8d0480488c317fe51aea06863fd20 | /src/msg_service/AbstractMsgService.h | f4b8a7bf462451e3de5e763baab346262c9f1c77 | [] | no_license | YifengWong/msg-service-client | c9c3fa4edea4aaba13f032393444ccca8531f1af | 8fd6bd92e9fef70c873ab0dc01e99f5b537c4c64 | refs/heads/master | 2021-01-19T08:30:46.753885 | 2017-04-12T04:06:21 | 2017-04-12T04:06:21 | 87,641,077 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,053 | h | AbstractMsgService.h | /*
* AbstractMsgService.h
*
* Created on: 2017年4月8日
* Author: wyf
*/
#ifndef MSG_SERVICE_ABSTRACTMSGSERVICE_H_
#define MSG_SERVICE_ABSTRACTMSGSERVICE_H_
#include "Message.h"
#include "MsgManager.h"
/*
* As an interface for Message Service.
* */
class AbstractMsgService {
public:
AbstractMsgService(M... |
8edb26ec433241eeca00affc54befe9ea4a7f6cc | c7e7dfe4ac47ed253554ae01e325d495524b10a6 | /Arduino_Motion_Capture_Glove_code.ino | 1dfb1718934fc64fa615a7a2487a007c3f088501 | [] | no_license | fred45/Frederick-F.-Motion-Capture-Glove-Code | 63b535e1b559f2736036dbca19908b051f4072f4 | c1bea2dc91da82aa3c8c3a902485aa239cd1529d | refs/heads/master | 2021-01-02T22:36:17.788242 | 2017-08-04T15:05:16 | 2017-08-04T15:05:16 | 99,351,961 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31,009 | ino | Arduino_Motion_Capture_Glove_code.ino | /*-----Arduino Code for Motion Capture Glove-----*/
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_LSM303_U.h>
#include <Adafruit_L3GD20_U.h>
#include <MahonyAHRS.h>
#include <MadgwickAHRS.h>
#define TCAADDR 0x70
Adafruit_LSM303_Mag_Unified mag1 = Adafruit_LSM303_Mag_Unified(1);
Adafruit_LSM303_Mag... |
9279301fed8a103aa8ab454a19b332140acdcb44 | 883887c3c84bd3ac4a11ac76414129137a1b643b | /Cscl3DWS/rmml/XML/mlRMMLXMLElement.cpp | 47fa83f585db7772015378b69d8d00ca5eee2927 | [] | no_license | 15831944/vAcademia | 4dbb36d9d772041e2716506602a602d516e77c1f | 447f9a93defb493ab3b6f6c83cbceb623a770c5c | refs/heads/master | 2022-03-01T05:28:24.639195 | 2016-08-18T12:32:22 | 2016-08-18T12:32:22 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 11,265 | cpp | mlRMMLXMLElement.cpp |
#include "mlRMML.h"
namespace rmml {
mlXMLElement::mlXMLElement(void)
{
nodeType=ELEMENT_NODE;
}
mlXMLElement::~mlXMLElement(void){
}
/***************************
* реализация mlXMLElement
*/
/*
interface Element : Node {
readonly attribute DOMString tagName;
DOMString getAttribute(in D... |
e60712df773ddfddbbb04a77bc3475ed4f623375 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /components/content_settings/core/browser/cookie_settings.cc | 3adbd6441eaf833f95fa2ef42cec24c7fe152e08 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 11,671 | cc | cookie_settings.cc | // Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/content_settings/core/browser/cookie_settings.h"
#include "base/check.h"
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "build/... |
3ea89fc0d8903186c85a5e7b3f43ec2fcc8ca10a | e7209a5cb12250ae052ca882a3570c874b4c7dcf | /src/EditorRuntime/Widgets/wxImageComboBox.cpp | 4e133982e9b453f976daf90df009c3d770c661d3 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | akumetsuv/flood | 3af52fc3934c289f72b4ca7828b90ce3a054dcda | e0d6647df9b7fac72443a0f65c0003b0ead7ed3a | refs/heads/master | 2020-12-25T10:50:21.301224 | 2013-03-24T06:05:56 | 2013-03-24T06:05:56 | 8,084,980 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 3,209 | cpp | wxImageComboBox.cpp | /************************************************************************
*
* Flood Project © (2008-201x)
* Licensed under the simplified BSD license. All rights reserved.
*
************************************************************************/
#pragma once
#include "Editor/API.h"
#include "wxImageComboB... |
3241454990ed4a64859cb279a0ca70bfe7c30653 | d018ba8b7983516583908129237a8a8cd8de7e11 | /ultimo.ino | 3c4ed960e8961b84b7dec10028ae430c0e87a51d | [] | no_license | drkside08/WALL-E | bafc5eff060faf1485ed3f5c30c3ffeb7228333c | 0f1e36208d03f1201ba0ae9fe03b5873527c6fbe | refs/heads/master | 2022-04-25T13:23:32.103355 | 2020-04-20T00:56:22 | 2020-04-20T00:56:22 | 257,103,366 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,726 | ino | ultimo.ino | boolean dato_anterior = 0;
boolean dato_actual = 0;
int Contador = 0; //<--Variable Digital
int avancemotor1 = 2;
int avancemotor2 = 3;
int retromotor1 = 4;
int retromotor2 = 5;
int SenialEncoder = 6;
int BArranque = 11;
int BParo = 12;
int BDistancia = 10;
double Distancia = 0;//Varible digital
voi... |
40a47d8d94dd23f64e1a72e15fb8fa99be8522d1 | 31d1a7fc130797fc6eb27d4b780259e168a9d53f | /apiwt/ApiServerWt.h | 0af887be806cb41501e8dcffe94e551e07d2bf80 | [] | no_license | RetroShare/rssocialnet | 89b63bddc904753dda288d240ad45f2f31eae6b5 | e1fe9a04d762e2cf2751dd609ea1d1d6060f5f00 | refs/heads/master | 2021-01-13T01:54:24.199700 | 2015-12-15T19:00:14 | 2015-12-15T19:00:14 | 31,284,034 | 5 | 4 | null | 2015-12-14T18:06:12 | 2015-02-24T21:56:36 | C++ | UTF-8 | C++ | false | false | 417 | h | ApiServerWt.h | #pragma once
#include <Wt/WResource>
#include "../api/ApiServer.h"
namespace resource_api{
// main entry point of the http api
class ApiServerWt: public Wt::WResource
{
public:
ApiServerWt(const RsPlugInInterfaces& ifaces);
~ApiServerWt(){ beingDeleted(); } // Wt wants this
void handleRequest(const Wt::... |
10cd3843e2e25f98c4f1ed69dbe1c13434202cb5 | 336dd1bc668e9f8e60487cdf4504de5f98c09d53 | /servers/FrameWork.cpp | 4c53b1131a92081f5e629f361f13cede645e7c2c | [] | no_license | Bobhu1995/epoll-learn | c5a1729b4a5f0e078eeb794319ece0a5b59b2a8d | d3f4fa830eeef0c4895c767d3a5d798dbfaa51af | refs/heads/main | 2023-03-26T11:57:56.612552 | 2021-03-30T02:25:51 | 2021-03-30T02:25:51 | 317,156,382 | 1 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 8,192 | cpp | FrameWork.cpp | #include <string.h>
#include <malloc.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <netinet/tcp.h>
#include <fcntl.h>
#include <time.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <errno.h>
#include <poll.h>
#include <execinfo.h>
#include "FrameWork.h"
namespace Server {
Co... |
9025732006841fd8dd959ed8b41cecbce593df33 | 462ce2c462718ff1b991f942e5f5316a6fe1e906 | /Library/ADMIN.cpp | 7484df51f9613e8f0a947c6b5d513c5c082f2e50 | [] | no_license | trinitiwowka/Library | 78f5f54723398c8e8ad64c8e5ef6811713dd9ea8 | 3d15e12d3086b8a1ca83a90e75806026b4d36f0a | refs/heads/master | 2021-01-10T02:45:34.899719 | 2015-12-08T18:31:13 | 2015-12-08T18:31:13 | 47,641,350 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 468 | cpp | ADMIN.cpp | #include"ADMIN.h"
void ADMIN::ShowDataUsers()
{
int const N=60;
FILE* f1 = fopen("User_databaze.txt", "r");
char buf[N];
//show about hader file
while(!feof(f1))
{
fgets(buf,N,f1);
char* seps={"$"};
char *token = strtok(buf ,seps);//пошук першого слова
while( token != NULL )
{
if(token!=NULL)
s... |
640d6f9b8332d836dee671e21bef6058b1613eec | 1a0bb8dc80f1283f552baf436d9a8e722c22a8f1 | /proj/fpga/ultra96/camera/Vitis-AI/alveo/apps/face_detect/evaluation/OpenCVUtils.cpp | f4037a0aa1945317adbac42e0c2bd0b728364fe1 | [
"Apache-2.0",
"MIT"
] | permissive | embedded-bitai/Mercenary | d457dcc2ace4dd4fe4a82489ecd28c61e3b4fe7a | 7762bad28e4f49b2ad84fb8abbd8056bd01f61d4 | refs/heads/master | 2023-01-09T09:24:52.331403 | 2020-11-16T09:22:39 | 2020-11-16T09:22:39 | 297,019,610 | 4 | 9 | MIT | 2020-11-16T09:22:40 | 2020-09-20T06:53:53 | C++ | UTF-8 | C++ | false | false | 5,030 | cpp | OpenCVUtils.cpp | #ifndef __OPENCVUTILS_HPP__
#define __OPENCVUTILS_HPP__
#include "OpenCVUtils.hpp"
using namespace std;
void matPrint(string s, const CvArr *M){
assert(M != NULL);
if(!s.empty())
cerr << s;
CvTypeInfo *info = cvTypeOf(M);
if(!strcmp(info->type_name, CV_TYPE_NAME_IMAGE)){
CvScalar s;
IplImage *I = (IplI... |
cfc1179ca4de4982e32715083e7c74c677df4f67 | de1c1b4bde742a316c8f179b20047876afd01f2e | /creyons.cpp | ad0a05fa467abc96bbd512440bc70006f04e60c7 | [] | no_license | flavmodan/MySources | 4f258563b87d97da7adc2b7d533e05587ccb94a8 | 927efc7eba95524cc570d0a3e5b4618630824c9a | refs/heads/master | 2021-09-02T05:39:52.392585 | 2017-12-30T20:03:55 | 2017-12-30T20:03:56 | 111,738,032 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,163 | cpp | creyons.cpp | #include<iostream>
#include<fstream>
#include<deque>
#include<string>
using namespace std;
bool colors[]={1,1,1,0,0,0,0,0,0,0,0};
int red_num=2;
int black_num=3;
bool appears(deque<int> sol,int k){
for (auto i = 0; i < sol.size(); ++i) {
if(k==sol[i])
return true;
}
return false;
}
void count(dequ... |
998d41ba327cf574c94b6e05e70a33d32adecdd0 | a3d463a887e1f2cd1d91ce451485a903957d14e8 | /MyTestProject/C++ Primer Plus/编程练习/chapter 10/10-10-8-2.cpp | abd8d8a9761a3327e0ec6f84abec2abbd0d1acb2 | [] | no_license | GodBless112/MyTestProject | b7c95018fbf7ec01e16f2e1b07570dcd9fe7d396 | aa5e784975b1d207ffe0a1424db5f45c269b304a | refs/heads/master | 2021-01-12T05:46:30.805488 | 2017-05-31T16:04:27 | 2017-05-31T16:04:27 | 77,196,106 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 417 | cpp | 10-10-8-2.cpp | #include <iostream>
#include "test.h"
List::List()
{
count = 0;
}
bool List::isempty()
{
return count == 0;
}
bool List::isfull()
{
return count == ListLen;
}
int List::itemcount()
{
return count;
}
bool List::additem(Item & item)
{
if (count == ListLen)
return false;
else
items[count++] = item;
return true... |
c2e6d572033db1bfbc3310c715594f26631086a0 | e031b8c2267adf33b75880fc109c40526da2e355 | /IKnizhnik/football.cpp | 34e6971b9d2fcc09a050b490415d4c7040e41990 | [] | no_license | kartoshka7777/BFU | 3dafd6a4cd110cf4d35815506b2525855c6cda48 | e7af3ba3fb164d902153034272cf55b7db022f21 | refs/heads/master | 2018-01-16T07:11:04.095981 | 2015-05-09T16:59:09 | 2015-05-09T16:59:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 264 | cpp | football.cpp | #include <iostream>
#include <cstdio>
void f(int n, int **a) {
setlocale(LC_ALL, "Russian");
for (int i = 0; i < n - 1; i++){
for (int j = i + 1; j < n; j++)
printf("Команда%d - Команда%d: Счёт %d-%d\n", i+1, j+1, a[i][j], a[j][i]);
}
}
|
7c9e5b4e58d60c7004b1f45ff0c5c0a546790bac | ce719abb87292b6c5a8f87f22fb04ba64c8be07d | /src/Shady Snake/Shady Snake/shadyengine/timer.h | c7037d82685ef9af444e3bff0bfb267f98776ffc | [] | no_license | ankitsinghkushwah/Shady-Snake | 29c4021da1535bcc1c0ec7404e411b858cd99ffd | 179d079b0016f3a474c4d98923a716f67b7de9a3 | refs/heads/master | 2022-12-20T23:23:54.364718 | 2017-10-26T15:45:11 | 2017-10-26T15:45:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 745 | h | timer.h |
#ifndef INC_SHADY_ENGINE_TIMER_H
#define INC_SHADY_ENGINE_TIMER_H
//C++ headers
#include<memory>
#include<chrono>
namespace shady_engine
{
class timer
{
public:
timer();
void init();
void update();
inline double get_elapsed_time() const {
return mElapsedTime;
}
inline unsigned int ge... |
6421239d27985145b446da79d34836eac3d63fe6 | 9d3f5b8e176e4c6e30115d0e6947a1cbc3cabf8a | /Loops/sum of digit.cpp | e605a32a6b79066eb04f0cbe23ea6a5e7234d8f6 | [] | no_license | mohsin0176/C-PlusPlus-Programmes | d872ff202ec52241bda695ff76050c0801d7c28e | 0b00811f945052d08a6b2f24b5267508337382cd | refs/heads/master | 2023-02-15T14:39:23.410831 | 2021-01-14T13:18:01 | 2021-01-14T13:18:01 | 326,896,974 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 209 | cpp | sum of digit.cpp | #include<iostream>
using namespace std;
int main()
{
long int n,r,sum;
cin>>n;
sum=0;
while(n!=0)
{
r=n%10;
sum=sum+r;
n=n/10;
}
cout<<sum;
return 0;
}
|
6bd8f42c2c18467014946656bb552540675d5fa5 | fb39726be5a78bfadbba48181f6deee84c9b5a83 | /SparkD/Engine/cvlibbase/Inc/cvbase.h | bb4cf092835d3c09f941031bd27a9f5c7354ddac | [] | no_license | kmhk/SparkD | b6833b93803b181ef997a4d7388fa73fa2ca6250 | 9ed72f0b5a22d835a4695cb9e4d7c7a6b532d217 | refs/heads/master | 2022-11-06T21:49:24.709316 | 2020-07-01T04:35:34 | 2020-07-01T04:35:34 | 269,883,069 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,741 | h | cvbase.h |
/*!
* \file
* \brief .
* \author
*/
#pragma once
#include "cvlibbaseDef.h"
#include "cvlibutil.h"
namespace cvlib
{
#define CVLIB_MAGIC_MASK 0xFFFF0000
/******************************Mat type****************************/
//#define CVLIB_MAT_CN_MASK ((CVLIB_CN_MAX - 1) << CVLIB_CN_SHIFT)
//#define C... |
6a7519ec552748970dfcfabc23d832804b45c870 | 1de937933b839b16578bdfbf5459a7a35cc42e1e | /sources/Common/Log.hpp | 10a267833c695e56593f4745f76f317927a31551 | [] | no_license | benit8/Cpp-Template | d294e9607aab0d68c0d312f98b74af1271d13cd4 | 585e58c908d4ffa4bea39181a14d84018693789b | refs/heads/master | 2023-06-12T18:03:49.121599 | 2021-07-04T15:53:24 | 2021-07-04T15:53:24 | 269,222,323 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,244 | hpp | Log.hpp | /*
** {{ PROJECT_NAME }}, {{ YEAR }}
** Benoît Lormeau <blormeau@outlook.com>
** Common / Log.hpp
*/
#pragma once
// -----------------------------------------------------------------------------
#include "fmt/core.h"
#include <iostream>
// ----------------------------------------------------------------------------... |
e45951b6d08ada8b608ff4619027fddb8980655b | 53fc99d472e2e66e57568e338e1897bc29224fa4 | /Queue/deque.cpp | c5ada3572a0cd10fff29d57d952360cd700e2ba3 | [] | no_license | SeMyeongJin/DataStructure | ca55b88fbc1a602a438e703a1e05bcd24c96d35f | 4cf718fc8b0f1cf5c06633c93f917473f79b3d9e | refs/heads/master | 2020-04-22T18:08:05.008994 | 2019-10-31T17:20:39 | 2019-10-31T17:20:39 | 170,567,200 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,906 | cpp | deque.cpp | #include <stdio.h>
#include <stdlib.h>
#include "deque.h"
void DequeInit(Deque* pDeque)
{
pDeque->pHead = NULL;
pDeque->pTail = NULL;
}
int DequeIsEmpty(Deque* pDeque)
{
if (pDeque->pHead == NULL)
return TRUE;
else
return FALSE;
}
void DequeAddFirst(Deque* pDeque, Data element)
{
DequeNode* pNewNode = (Dequ... |
4b10a3b3384193bf6ab7ac04639f9d18642896ba | 6af4068cf5ce7bf3f198c1c61b2507d723b838ad | /StringAlgorithms/buildSuffixArray.cpp | 5802980a20d8e41b3cf9b9b646d0a5b6ea59e49e | [] | no_license | monk78/Standard-Algorithms | 87a06b8614b8bf73d56eaa6f7fda1507944a98db | ad31a7adb2560150509a6476878cfdadc7a5fdc4 | refs/heads/master | 2023-02-26T10:41:29.570831 | 2021-01-29T12:45:00 | 2021-01-29T12:45:00 | 290,782,763 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,009 | cpp | buildSuffixArray.cpp | /*
Author:monk78
* Morris-Pratt
*/
#include<bits/stdc++.h>
using namespace std;
typedef vector<int>Vl;
typedef pair<int,int>PII;
typedef vector<PII>Vll;
#define S second
#define F first
#define rep(i, begin, end) for (__typeof(end) i = (begin) - ((begin) > (end));i != (end) - ((begin) > (end)); i += 1 - 2 * ((... |
caac0ac5a0629db75f8cd838249d0cc38c9bdb19 | ab7c7d032a30f0c82d5544bc3c759fd710888646 | /array/find_tapping_water.cpp | c7d4fb1959d919cb3f37a362da2acfaf7e65692c | [] | no_license | pratikdas44/codingPratice_cpp | 5f3df6a817a3f31354fac83b0722db98d9e07dd0 | c52513f988715b758c8b117dde58a7970615ad0d | refs/heads/master | 2021-06-13T13:12:54.580317 | 2021-03-09T13:58:48 | 2021-03-09T13:58:48 | 166,235,198 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,546 | cpp | find_tapping_water.cpp | //find number of units that can be filled.
//Only cell with both left and right cell higher than it can store water(u know)
#include <bits/stdc++.h>
using namespace std;
int findWater(int A[], int n){
int sum = 0;
int s1 = 0;
int i = 1;
while(i < n){
while(A[i] < A[s1]){
i++;
}
for(int k = s1; k < i; k++){
s... |
402ce890f682fda9a22d40c51d1a08237ac168ed | c993ecac7b8993edd915b45a2ae16dd56b6f7608 | /TextDetector/ImageBinarization.h | 1626a4ea20ecc7ba69d4a5bbf6a0cd8a0326b25f | [] | no_license | minhnd3796/fti_id | 0f06c39ed333713394026578792b6fe930cc871b | 0ff361d97282e9beb32a000cb4c449962f682593 | refs/heads/master | 2020-03-17T08:34:13.652174 | 2018-05-15T09:15:20 | 2018-05-15T09:15:20 | 128,859,444 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 962 | h | ImageBinarization.h | /*
* Implements binarization of documents
* Check this paper: DOI 10.1007/s10032-010-0142-4
* Christian Wolf, Jean-Michel Jolion and Francoise Chassaing.
* Text Localization, Enhancement and Binarization in Multimedia Documents.
* International Conference on Pattern Recognition (ICPR),
* volume 4, pages 1037-1040... |
08f6804329b6c1126964cbd171e53fe84356b2ec | 4483bfc80fc862abda43d35ccf977411edc3a31f | /tsp_with_single_optimal/TSP.cpp | 35f21ec6712a3a444b2f4a301ee11a795e0f6696 | [] | no_license | dapu81000/Optimal-Approximation-for-TSP-and-NSGA2 | 3546cfad117d9a66e557b0755a581e980ca3bcc7 | 244cbd3a7e2d03e993c7745decf7f63923582a1a | refs/heads/main | 2023-07-18T10:31:43.599717 | 2021-08-30T09:05:59 | 2021-08-30T09:05:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,136 | cpp | TSP.cpp | #include<bits/stdc++.h>
#include"GA.cpp"
#include"SA.cpp"
#include"Brute_Force.cpp"
#include"ACO.cpp"
using namespace std;
class TSP_solution
{
public:
TSP_solution(vector<vector<int>> graph) :Graph(graph) {}
vector<int> TSP()
{
/*Brute_Force Brute_Force_solver(Graph);
Brute_Force_solver.F... |
e030af93db85479b7dfbea6ceabbf88b5b95aa5a | 433a307109c52de00e1887e425b782f0aba25efe | /hw04/application/api/gateways/BaseGateway.h | 6398471c1d47ba1f5ef0ae32ec30a088142c0d51 | [] | no_license | YeslieSnayder/pss | 7fc9d19ede51f5077cf9c1b66d2fd122e2e0252a | fcacab1b467c00d1d576996655f8d61540d9a418 | refs/heads/master | 2023-04-13T01:44:10.303830 | 2021-04-26T19:25:41 | 2021-04-26T19:25:41 | 334,693,118 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,245 | h | BaseGateway.h | //
// Created by yesliesnayder on 23.04.2021.
//
#ifndef PSS_BASEGATEWAY_H
#define PSS_BASEGATEWAY_H
#include "pistache/endpoint.h"
using namespace Pistache;
class BaseGateway {
static string get_json_value(string value) {
char t = value[value.size()-1];
while (t == ' ') {
value.pop_... |
673f6367cb588a39661654d63cabfda85a09d97d | 4eb606bc2c42ea64264bd8b160db4d81919b7850 | /Lesson07/Total.cpp | 1520df25e6073d68bdea763bae439c0be02bddc7 | [] | no_license | mjohnson9/cist2362 | 23ac3ea43c253c8a7e9539d348d6a6da1068c482 | 294ac0cbbbd6d7007088c1fcf33a33fcc8ba54e1 | refs/heads/master | 2022-01-16T16:34:14.194118 | 2019-07-07T14:43:07 | 2019-07-07T14:43:07 | 166,576,352 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,540 | cpp | Total.cpp | // Copyright 2019 Michael Johnson
#include <cmath>
#include <iostream>
#include "../common.h"
namespace mjohnson {
namespace total {
// FORWARD DECLARATIONS
// Total asks the user for n values and then returns the total of the values
// that the user provided.
template <class T>
T Total(T n);
// ValidateNotNegative... |
1301ac03cd182262f0c7a7546c150dbf689761c5 | 3dd2eb78a37315006b95c85c701fa0d963858df5 | /Arduino/MiniPro_Reles/MiniPro_Reles.ino | 2c214ec4f02a68857df45b9d2407919aeef1c858 | [
"MIT"
] | permissive | cgodoi/JAMBAR | 45e1b396aa371e67c379c58d8d389e449555776a | eac659eb837b23a1b5c482a1e1acfcf9861f9549 | refs/heads/master | 2021-01-20T22:28:15.651346 | 2016-07-28T00:17:19 | 2016-07-28T00:17:19 | 63,100,598 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,101 | ino | MiniPro_Reles.ino | //Definir LED,s que maneja este HIJO
String strLedControlados ="SWICH;ESTADO;LED01;LED02;LED03;LED04;LED05;LED06;LED07;LED08;SWICH0;SWICH1";
int incomingByte = 0; // para el byte leido
String strRFMensaje="";
char c;
String strMensajeEntrada ="MRF"; //mensaje RF desde MADRE
String strMensajeSalida ="HRF"; //mensaje de... |
b6e5a72c678425ef164ee28be338feee5d0c7af3 | 5cc6a6d6da114b86ff3ec6cd1ba2f54538141607 | /poker_ai/Strategy.hpp | 67e290f4c0110c154e8373ca19b06330fafca23d | [] | no_license | louie0817/poker-ai | 077ce514a6cdbe90f1442baa9628ea07694653a9 | bf1d85acfab2e6c07f5d23a9a0b5d496aa86028b | refs/heads/master | 2023-03-15T12:54:04.562351 | 2016-12-19T19:14:57 | 2016-12-19T19:14:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,341 | hpp | Strategy.hpp | #ifndef STRATEGY_HPP
#define STRATEGY_HPP
#include <occi.h>
#include <vector>
#include "Logger.hpp"
#include "Util.hpp"
#include "PythonManager.hpp"
class StrategyEvaluationDataProvider;
class Strategy {
friend class StrategyEvaluationDataProvider;
public:
void initialize(
oracle::occi::Connection* con,
Pyth... |
755392aa646557a25bacbba4493837ded473710e | 21b455fb30b6ae30ea79d67c77fc78b5199a7c97 | /include/node0/SceneTreeHelper.h | 79e7a3879210a8ed5bdd0c8698f8f9b03db6779a | [
"MIT"
] | permissive | xzrunner/node0 | 501ce7d17ba3715c7c1de9fead80c913493affd4 | a597f360308bbdb6727efe2283968eb49843a8e5 | refs/heads/master | 2021-05-04T02:54:37.700056 | 2019-12-05T23:12:48 | 2019-12-05T23:12:48 | 120,367,576 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 238 | h | SceneTreeHelper.h | #pragma once
#include "node0/typedef.h"
#include <vector>
namespace n0
{
class SceneTreeHelper
{
public:
static void GetPathToRoot(const SceneNodePtr& root, size_t end_id,
std::vector<SceneNodePtr>& path);
}; // SceneTreeHelper
} |
2a302c3b425cfbd5e5af43dbbf17847d39cf8f40 | 08960f0d6b945d15cb9c0f0ca6c191dcb4528025 | /Animations/src/platform/PlatformWin32.cpp | cedbd5288a44d88083fe10fe355d9571bdf733f1 | [] | no_license | ambrosiogabe/MathAnimation | ed2a84022531211906410c07190e475cab4ba744 | c9feb9289c06a0195a0fa412d712e2e157ed6ac5 | refs/heads/master | 2023-09-04T05:33:54.508179 | 2023-08-19T17:18:08 | 2023-08-19T17:18:08 | 388,966,721 | 895 | 45 | null | 2023-08-19T17:18:10 | 2021-07-24T01:13:00 | C++ | UTF-8 | C++ | false | false | 17,307 | cpp | PlatformWin32.cpp | #ifdef _WIN32
#include "platform/Platform.h"
#include "core.h"
#include "core/Window.h"
#define GLFW_EXPOSE_NATIVE_WIN32
#include <glfw/glfw3native.h>
#undef GLFW_EXPOSE_NATIVE_WIN32
#include <io.h>
#include <Windows.h>
#include <shlobj_core.h>
#ifdef min
#undef min
#endif
namespace MathAnim
{
struct MemMapUserData... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.