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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
df233d476a3b8b650d6df541609288f9574939b3 | 38482142c7ec01b5c58f3d1cc82458d7fe99af27 | /gki_symbolic_planning/opl/src/parsing/ModuleStructure.cpp | ad6c3ea154109e6c6b59f1930e97125039316cee | [] | no_license | speckdavid/shakey2016 | b65a04b415cea42a0e36a238be3b49126ba4c512 | 4df4d3ae45ca4e75702fcd3120ac1015ad7f36bb | refs/heads/master | 2020-09-15T10:02:26.319903 | 2017-06-17T00:45:38 | 2017-06-17T00:45:38 | 67,639,087 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 904 | cpp | ModuleStructure.cpp | /*
* ModuleStructure.cpp
*
* Created on: Apr 28, 2011
* Author: Andreas Hertle
*/
#include "ModuleStructure.h"
#include "Module.h"
namespace opl
{
ModuleStructure::ModuleStructure()
{
keyWord = "Module";
argumentConfigurationKeywords.append("SymbolDefinition");
bodyConfigurationKeywords.append... |
f7435ae1df1dcfe67c399395daad26f0fb43c705 | e5ee9abd987addbae6bbeb574f98004e4f397ec5 | /TestRawHIDTransmitSpeed/TestRawHIDTransmitSpeed.ino | 4f3844afdb98676154bcdcb2fea5d6b13879a41c | [] | no_license | jeremydaily/SSS2 | f2d44794b5583407fdb5931ccf42ff148946a3b2 | ccffe274ceb590405481ee9ed72708c0252106cf | refs/heads/master | 2021-01-19T20:38:05.816652 | 2017-04-16T20:26:13 | 2017-04-16T20:26:13 | 88,526,334 | 0 | 0 | null | 2017-04-17T16:15:09 | 2017-04-17T16:15:09 | null | UTF-8 | C++ | false | false | 1,664 | ino | TestRawHIDTransmitSpeed.ino | /* Basic Raw HID Transmit Speed Test Example
Teensy can send/receive 64 byte packets with a
dedicated program running on a PC or Mac.
You must select Raw HID from the "Tools > USB Type" menu
*/
#define VENDOR_ID 0x16C1
#define PRODUCT_ID 0x0481
//#define RAWHID_USAGE_PAGE 0... |
43d1c686895176768154921c3affb9f43371b441 | c818639aa7e74821ca20850e05829468657062d0 | /hackerrank/algorithms/warmup/sherlock-and-squares.cpp | bdaebe649f0bab9514946a3d991cbdd0aad267e6 | [] | no_license | SolverX/problem_solving | 685adbf23bf0abf1c80771469476f1184e44fbef | d807f34e1ea848af4ac8397d45cf06749e51bc1d | refs/heads/master | 2016-09-06T16:13:44.338085 | 2015-06-11T05:04:33 | 2015-06-11T05:04:33 | 31,899,751 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 900 | cpp | sherlock-and-squares.cpp | #include <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include <string>
#include <utility>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cctype>
#include <cstdlib>
using namespace std;
#define VISITED 2
#define EXPLORED 1
#define UN_VISISTED 0
typedef unsigned long long ull;
typed... |
ee2d142f62139925b70fc83dfe30b16018e32137 | 07c9257308a15aba0d9db532eabac7b4cc836829 | /interviewBit/Trees/Basic_Valid Binary Search Tree.cpp | 27b65f81047408d583fac10f1040fe187965b5ab | [] | no_license | tadeeshaRoy/Practise | 9e19d4f273471df26a41a0585a125d9fcd7b6ba1 | cdab4c793e3474a0853977fa093a0c7371ef8257 | refs/heads/master | 2021-07-06T08:14:23.443912 | 2020-07-19T11:33:45 | 2020-07-19T11:33:45 | 142,449,324 | 0 | 0 | null | 2018-09-02T16:50:16 | 2018-07-26T14:04:36 | C++ | UTF-8 | C++ | false | false | 1,215 | cpp | Basic_Valid Binary Search Tree.cpp | /*
Given a binary tree, determine if it is a valid binary search tree (BST).
Assume a BST is defined as follows:
The left subtree of a node contains only nodes with keys less than the node’s key.
The right subtree of a node contains only nodes with keys greater than the node’s key.
Both the left and right subtrees mu... |
58dc4fa2611c56c2379c2918b119fe0bbaa1cd07 | 5ecfff4df27d46b8dace7afe66bf5f4d5298209a | /nao_planning/nao_actions/include/nao_actions/goalCreatorTidyupObjects.h | 8b03f7d9b07a620352fca4b33c87c33231ff50a4 | [] | no_license | ahornung/robot-practical-group-4 | ebe59a0e4520f551dc6b7bdbd670298c0b61c67a | aa24e16f02682da52ab0134681263c1549cf7667 | refs/heads/master | 2021-01-22T15:15:30.723255 | 2013-07-15T12:22:02 | 2013-07-15T12:22:02 | 14,204,065 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 981 | h | goalCreatorTidyupObjects.h | #ifndef GOAL_CREATOR_TIDYUP_OBJECTS_H
#define GOAL_CREATOR_TIDYUP_OBJECTS_H
#include "continual_planning_executive/goalCreator.h"
#include <ros/ros.h>
namespace nao_actions
{
class GoalCreatorTidyupObjects : public continual_planning_executive::GoalCreator
{
private:
static bool worldResetPerformed;... |
fbf347d481d2b2ea023a6dbadca1919d9e475ffd | 718adecdaead55fa20126e273e4401a33a139e84 | /LeetCode/OnesAndZeros/main.cxx | 0c370d362ffe8403bbf218ad75698f1f6d4b3601 | [] | no_license | hjw21century/Algorithm | b3b6f3c8ab3272a75eb27fdbfb0f259e5e54c218 | 415ee942770924bb7a80935bdd7345eda03975b8 | refs/heads/master | 2023-05-03T00:36:22.802855 | 2021-05-20T08:40:17 | 2021-05-20T08:40:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,038 | cxx | main.cxx | #include <bits/stdc++.h>
#include <gtest/gtest.h>
using namespace std;
class Solution {
private:
public:
int findMaxForm(vector<string> &strs, int m, int n) {
vector<vector<int>> dp(vector<vector<int>>(m + 1, vector<int>(n + 1)));
for (const string &str:strs) {
auto f = cal(str);
... |
e4847b9495093c8a2589246aadcade7d96d3c4b7 | 8a87f5b889a9ce7d81421515f06d9c9cbf6ce64a | /3rdParty/boost/1.78.0/boost/compute/algorithm.hpp | 686640e9e9b5546b945a55d8074fc77bae30ea34 | [
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause",
"ICU",
"Zlib",
"GPL-1.0-or-later",
"OpenSSL",
"ISC",
"LicenseRef-scancode-gutenberg-2020",
"MIT",
"GPL-2.0-only",
"CC0-1.0",
"LicenseRef-scancode-autoconf-simple-exception",
"LicenseRef-scancode-pcre",
"Bison-exception-2.2",
"LicenseRef-scancode... | permissive | arangodb/arangodb | 0980625e76c56a2449d90dcb8d8f2c485e28a83b | 43c40535cee37fc7349a21793dc33b1833735af5 | refs/heads/devel | 2023-08-31T09:34:47.451950 | 2023-08-31T07:25:02 | 2023-08-31T07:25:02 | 2,649,214 | 13,385 | 982 | Apache-2.0 | 2023-09-14T17:02:16 | 2011-10-26T06:42:00 | C++ | UTF-8 | C++ | false | false | 4,399 | hpp | algorithm.hpp | //---------------------------------------------------------------------------//
// Copyright (c) 2013 Kyle Lutz <kyle.r.lutz@gmail.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
//
// See http://boostorg.gi... |
afb37b4a056305e96c0f08bc49d454241e92a814 | 36b9decf14d266d6babaf1c44085c2ba869c03ce | /Remnant-main/Remnant/SDK/Widget_QuestNotification_QuestSuccess_functions.cpp | 4726f426ba1f84ad8ea0b445ad2be22af21fdfe6 | [] | no_license | RoryGlenn/RemnantLootSwitcher | 6e309a7b2b7bac88a166b552b640c830b863eb2d | 85c4cb6839b7c0f60cf8143c571d64ca12439a63 | refs/heads/master | 2022-12-29T08:47:15.713546 | 2020-10-23T22:01:45 | 2020-10-23T22:01:45 | 305,910,400 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,993 | cpp | Widget_QuestNotification_QuestSuccess_functions.cpp | // Name: Remnant, Version: 6
#include "../SDK.h"
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
/*!!HELPER_DEF!!*/
/*!!DEFINE!!*/
namespace UFT
{
//---------------------------------------------------------------------------
// Functions
//--------------------------------------------------------------------------... |
bb876fde21219f44e3b684e69549cda51fee03f7 | 0e08289ad6d585db1e67b5846adcee5457c6a83d | /libwvdrmengine/cdm/core/test/wvcdm_decryptor_unittest.cpp | b7cdcaaa17435f7b23523970a45a1fe851d13a8c | [] | no_license | billyriantono/android_vendor_widevine | 52be09bef05d7a9ebaccb6bdf0c8be3a5a2abe32 | 861e8846501a3f1d2453246ceaea6096b3420bb8 | refs/heads/master | 2022-02-14T04:00:06.503832 | 2019-08-30T05:41:12 | 2019-08-30T05:41:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 27,259 | cpp | wvcdm_decryptor_unittest.cpp | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include <vector>
#include <map>
#include <sstream>
#include "base/at_exit.h"
#include "base/basictypes.h"
#include "base/bind.h"
#... |
20af59521ff8cc581a372b6608e11dd263b66c5a | 46b1fa95de75ca5cf5a87069f7ab0d8ea0e1b1b5 | /src/common.h | d731ea931992162a25b9d56a876bec531c2f0809 | [
"BSD-3-Clause"
] | permissive | tetsuok/arowpp | 98d971dfa9bcf7cf6faa4c004920596ceada4763 | 4202ada7adb98fe9c1c48e7e1f943d929b6672e0 | refs/heads/master | 2021-06-22T00:29:29.726750 | 2021-01-09T03:00:44 | 2021-01-09T03:01:27 | 28,085,896 | 13 | 0 | NOASSERTION | 2021-01-09T03:01:29 | 2014-12-16T12:24:34 | C++ | UTF-8 | C++ | false | false | 2,123 | h | common.h | // Copyright (c) 2010-2012, Tetsuo Kiso
// 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 co... |
bc29c2a6c20665d9d542725ac578f45d755c15d1 | bcb569fb7eefce77ef4f31bca0cfa73029298ae0 | /gtexas/Texas/GameServer/fight/src/process/TakeSeatProc.cpp | 2695a2fdce4bd82e48c22ae3b3605d5689e61a2c | [] | no_license | xubingyue/GP | e3b3f69b3d412057933ca32e61a57005ab19df80 | 7b0e7b48c1389e39aafb83a7337723400f18ada5 | refs/heads/master | 2020-09-15T01:32:03.539712 | 2018-07-18T10:46:19 | 2018-07-18T10:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,615 | cpp | TakeSeatProc.cpp | #include "TakeSeatProc.h"
#include "Logger.h"
#include "HallManager.h"
#include "Room.h"
#include "ErrorMsg.h"
#include "IProcess.h"
#include "ProcessManager.h"
#include "GameCmd.h"
REGISTER_PROCESS(CLIENT_MSG_TAKESEAT, TakeSeatProc)
TakeSeatProc::TakeSeatProc()
{
this->name = "TakeSeatProc";
}
TakeSeatProc::~Take... |
63e119656a2d2ee4b72961a4fe0a8e646ebbe921 | ae900942aea2c9355ffc823e60886e35ae64ab01 | /concurrent_cache/cache_exceptions.h | 9bdbe91eb14ca99a85ce0f668176d1828afbe0cc | [] | no_license | vard/concurrent_cache | f04fc890ada5cc8bc3df7b21e6ffcd04e2f215d3 | ff2a579c38c0fcce4888aa066077c5b024a115a1 | refs/heads/master | 2021-01-10T20:39:44.260391 | 2014-10-06T08:52:31 | 2014-10-06T08:52:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,317 | h | cache_exceptions.h | #ifndef CACHE_EXCEPTIONS_H
#define CACHE_EXCEPTIONS_H
#include <stdexcept>
#include <string>
#include <valgrind/drd.h>
#define _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(addr) ANNOTATE_HAPPENS_BEFORE(addr)
#define _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(addr) ANNOTATE_HAPPENS_AFTER(addr)
namespace concurrent_cache {
... |
287b1910a278ad220fc0ac171cde4673ee6e6031 | c485190a46d97d07039e78b462d0b319163593af | /MQTTDimmer/MQTTDimmer.ino | bb809f11f1b27839ca2fadc0e278045c6921eb1f | [] | no_license | devanl/MQTTDimmer | 9e731753d43e4b5c3610a2c565888e060504b71a | 56d4f72b16b1cd1c700dd4ec3e0ef917fc51166e | refs/heads/master | 2021-01-10T12:00:19.258332 | 2016-03-17T18:23:41 | 2016-03-17T18:23:41 | 54,141,014 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,910 | ino | MQTTDimmer.ino | #include <FS.h> //this needs to be first, or it all crashes and burns...
#include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino
//needed for library
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h> //https://github.com/tzapu/WiFiManager
#include ... |
7ece48b00b51133239045d65a41bb3aa75e9a39c | 84875d668911475f4bbf6aa5e44a70f19e941e42 | /include/utils/SharedObject.hpp | f4a2798b3ecfca7e073cd0a72af896a75c6ceca3 | [
"MIT"
] | permissive | sroycode/zapdos | 26592d95f51828f53dd104fe04fe98eb127706b0 | 8818ef109e072dcbe990914d9a2a6d70ef190d3e | refs/heads/master | 2021-06-24T06:18:54.712462 | 2020-12-07T08:06:25 | 2020-12-07T08:06:25 | 156,883,254 | 5 | 0 | MIT | 2020-08-02T09:12:57 | 2018-11-09T15:47:05 | C++ | UTF-8 | C++ | false | false | 2,464 | hpp | SharedObject.hpp | /**
* @project zapdos
* @file include/utils/SharedObject.hpp
* @author S Roychowdhury < sroycode at gmail dot com >
* @version 1.0.0
*
* @section LICENSE
*
* Copyright (c) 2018-2020 S Roychowdhury
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associa... |
49ca8c14ddb37d1b2d05a71f99f64ab04e628a12 | 44f646690d471a8770311944f8b94abb13a7a438 | /ACM ICPC/Region Mexico/2015/Gran Premio Fase II/C - Tri-du.cpp | df8144f352fda937d80fb3a0a09ac6432949dc31 | [] | no_license | JArturoHReyes/Competitive-Programming | b373c8d46613284c2447c3bed778e39378b97de3 | 45232b2ee7e40a38e3f3e912e62fe12cf4509b46 | refs/heads/master | 2021-06-06T18:18:46.014845 | 2021-05-15T15:17:10 | 2021-05-15T15:17:10 | 164,688,739 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 247 | cpp | C - Tri-du.cpp | #include<bits/stdc++.h>
#define endl '\n'
using namespace std;
int a , b;
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
while(cin >> a >> b)
{
cout << max(a , b) << endl;
}
return 0;
}
|
246247ef2a8f3e2473825c356b68b0ccc296c2a8 | f36df0409feb127f026e6ab85053d4b02404aa81 | /solutions51-100/problem71.cpp | 488aeee0f2f69d6817edaf342e8f8652ff9b4f08 | [] | no_license | giaosame/LeetCode | b55e07a84893ba81fa8f3b65954df5e4502bf20e | a0fcce486f5cfdced91dfcba5e44592899addd01 | refs/heads/master | 2020-07-22T02:43:01.217437 | 2020-06-01T18:45:05 | 2020-06-01T18:45:05 | 207,051,234 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 588 | cpp | problem71.cpp | // 71. Simplify Path
#include <string>
#include <sstream>
#include <vector>
using namespace std;
class Solution {
public:
string simplifyPath(string path) {
vector<string> stk;
stringstream ss(path);
string token;
while (getline(ss, token, '/'))
{
if (token == "" || token == ".")
continue;
else i... |
6a3d90cb8fd644f93dba1b095af7286b13d52338 | 4bc2e0f101d4830df60f4a8c184085c620a9c64b | /OOP5/include/Common.h | c7b367b064f9b13cd5038fc87e74acdb8d0ef268 | [] | no_license | kkkirill/OOP | 6b8f81fcebeb21159c5956a6c2dd4a094c5c9454 | 4ebf43848dee1ffbd9bae7ac438f55106a4a94f6 | refs/heads/master | 2020-07-30T10:16:12.948677 | 2019-09-22T18:56:27 | 2019-09-22T18:56:27 | 210,189,196 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 442 | h | Common.h | #ifndef LAB5_1_COMMON_H
#define LAB5_1_COMMON_H
#pragma once
#include <string>
#include <vector>
#include <conio.h>
#include <iostream>
#include <regex>
class Common {
public:
static int input_choice(const std::string &text, const int &left, const int &right, bool isRequired = false);
static std::vector<std::s... |
1229a43ac8f844782ca29391885f9ace47eb056f | afb7006e47e70c1deb2ddb205f06eaf67de3df72 | /third_party/libwebrtc/modules/rtp_rtcp/source/rtp_video_stream_receiver_frame_transformer_delegate.cc | 451b1bce7c070d346af66b3cacfaa415448f047a | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | marco-c/gecko-dev-wordified | a66383f85db33911b6312dd094c36f88c55d2e2c | 3509ec45ecc9e536d04a3f6a43a82ec09c08dff6 | refs/heads/master | 2023-08-10T16:37:56.660204 | 2023-08-01T00:39:54 | 2023-08-01T00:39:54 | 211,297,590 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,732 | cc | rtp_video_stream_receiver_frame_transformer_delegate.cc | /
*
*
Copyright
(
c
)
2020
The
WebRTC
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
in
the
root
of
the
source
*
tree
.
An
additional
intellectual
property
rights
grant
can
be
found
*
in
the
file
PATENTS
.
All
contributing... |
0f31ce6d431378be56a673a36439426463920522 | 30667f904bf553424e56364263e9923b5f42d74d | /PowerBook/PowerBook.cpp | c93dffabce55508ed39a98c70321bf8d5ee698a1 | [] | no_license | bb2002/CPPStudyProjects | 037ae0a2b8a4f89a9725845989a1f00921b018cd | 2569dbb9e4a1c2acfbe67fcce20304b5094f79a3 | refs/heads/master | 2020-04-29T06:05:51.377024 | 2019-03-15T23:54:07 | 2019-03-15T23:54:07 | 175,904,985 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 330 | cpp | PowerBook.cpp | // PowerBook.cpp : 이 파일에는 'main' 함수가 포함됩니다. 거기서 프로그램 실행이 시작되고 종료됩니다.
//
#include "pch.h"
#include <iostream>
int main()
{
int num = 50;
std::cout << "Hello " << "World!" << std::endl;
std::cout << num << ' ' << 'A';
std::cout << ' ' << 3.14 << std::endl;
} |
105df3fa1182d8645c2ba1f7191ab71a8b883946 | 8c66bd57b76ff5cc92984db82f8bfb57d2d985a4 | /lab2/src/headerRecord.h | 0a8d3ddb6b3560a698fbaaafb9f8eebbccd99ec8 | [] | no_license | daboytim/cse560 | 7b1cde447af7b1e67e1632b9e4aba8447c0fb8b7 | 0a9d848483d9cfacf540b97becf5f7e79573cc9e | refs/heads/master | 2021-01-11T01:49:05.367377 | 2016-10-12T04:32:48 | 2016-10-12T04:32:48 | 70,659,419 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,597 | h | headerRecord.h | // /*-------------------------------------------------------------------*\
// | Concrete Instance : Header Record
//
// \*-------------------------------------------------------------------*/
#ifndef HEADER_RECORD_H
#define HEADER_RECORD_H 1
///--------------------------------------------------------------------... |
118b470f7f9fae620ceb7facea2048ccb1bf2d90 | 0aa9dcb3cef817ec55eaa8fae2102106f939f594 | /insts/jg/BUTTER/BUTTER.h | 1ed9cdebf936e46e15b7c6deb6594dcebc7505ed | [
"Apache-2.0"
] | permissive | RTcmix/RTcmix | fd30a7d610b2b7b8688cbb5a6d77475201b8ad07 | 4e89415929d7752f325b7813b5aae2a042c08e64 | refs/heads/master | 2023-08-30T23:23:48.806948 | 2023-08-22T19:34:56 | 2023-08-22T19:34:56 | 21,259,864 | 45 | 15 | Apache-2.0 | 2023-06-28T20:53:49 | 2014-06-27T01:07:32 | C++ | UTF-8 | C++ | false | false | 960 | h | BUTTER.h | #include <objlib.h>
typedef enum {
LowPass = 0, // but note that user codes are 1-based (unlike EQ inst)
HighPass,
BandPass,
BandReject,
FiltInvalid
} FiltType;
#define MAXFILTS 30
class BUTTER : public Instrument {
bool do_balance, bypass, filttype_was_string;
int nargs, inchan, b... |
51e5cbe4f7050e9139dbecc8b74fe2e3d07fe95e | 4da4d414bbfa64a39648c284eda4ab821e855635 | /nodeShadow.h | 6246bf2003bb40ee1f481abf36b03ef53fa41992 | [] | no_license | BrandonCay/AVLBinaryTree | b7ab4cac675ad03282fee3f0993c9130a68d5d0e | 8feb6765d1503f3a455d3ee6f66a6837258d2fcf | refs/heads/master | 2023-04-23T15:47:15.571579 | 2021-05-11T01:52:18 | 2021-05-11T01:52:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,363 | h | nodeShadow.h | #pragma once
#ifndef tnodeShadow_H
#define tnodeShadow_H
///////////////////////////////////////////////////////////////////////
/*#include "node.h"
#include <iostream>
using namespace std;
class tnodeShadow
{
public:
string nodeValueStr; // formatted node value
int level, column;
tnodeShadow* left, * ri... |
f8fabe0327be773a0c840d07519b6c6c2ca41292 | ece869c936b415778be18fa2179f05179fcc7a04 | /MAX7219/matriz/matriz.ino | a16984b4f13da2dc40ac1054c5e94e82b42074dd | [] | no_license | alfajor144/Alfa-Arduino | 15f29d838b9389b3e4e89ea26c60be78fea9d9a4 | 911169a6c514926d5de1ce6303b63c0bda217043 | refs/heads/master | 2020-07-05T14:48:49.941652 | 2020-07-04T04:19:53 | 2020-07-04T04:19:53 | 202,677,398 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 282 | ino | matriz.ino | #include "funciones.h"
void setup() {
lc.shutdown(0,false); /*0 es addres*/
lc.setIntensity(0,4); /*brillo de 1 a 15*/
lc.clearDisplay(0);/* and clear the display */
}
void loop() {
//displayMatrizRandom(lc,100);
//displayMatrizAnalog(lc,100,0);
linalDisplay(lc,20);
}
|
47fa7c21629b371e65a0cece123465d5fe365804 | b58d939f1ff9162b60e9a6a6cd850b40b7c505c4 | /C++Primer/Chapter16/Queue.h | 9dab94549d2f679f5275478d4a8f9bd5d0b7c9df | [] | no_license | hanwinbi/FxxkCpp | d1a6d20c65f00f4b19beecf4a6da8dd120bb891a | 5f53eb6a30bef97a245bea8dcf61c2979df6027c | refs/heads/master | 2023-04-25T18:53:23.644105 | 2021-05-27T08:09:05 | 2021-05-27T08:09:05 | 348,363,044 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 188 | h | Queue.h | template <class Type> class Queue{
public:
Queue();
Type &front();
const Type &front() const;
void push(const Type &);
void pop();
bool empty() const;
private:
}; |
b10e80e56c64d09e6df115b3507add82cbcc3de3 | 09d5656797c1f7f5db176b48c30c926c417576bf | /src/HttpServer/Handlers/HttpServerRequestRoutingHandler.cpp | 51cc172af89f9a5b9e6c5fd3aedde737d2de23de | [
"MIT"
] | permissive | johnnyVR/cpv-framework | a432365fa1c8c27bc33a45d34c57262d275b7ad7 | dadd95c7c593da33903a168f0eccdda679254673 | refs/heads/master | 2020-09-10T21:49:08.627912 | 2019-11-14T23:55:56 | 2019-11-14T23:55:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,762 | cpp | HttpServerRequestRoutingHandler.cpp | #include <algorithm>
#include <unordered_map>
#include <utility>
#include <seastar/core/shared_ptr.hh>
#include <CPVFramework/Utility/Uri.hpp>
#include <CPVFramework/Utility/HashUtils.hpp>
#include <CPVFramework/HttpServer/Handlers/HttpServerRequestRoutingHandler.hpp>
namespace cpv {
/** Represents a single path frag... |
dd737d8bb83f2d722b44d0d020b1274c126f77ae | b1e1d5580522dfee69cc9de34b90b36d4b4ff195 | /src/TypeRules.hpp | 4aae13d2761825abb55540a28a4a8fe855fa5483 | [] | no_license | UWQuickstep/rosa | 66a4e2f04f08692de72d34ca61e17fa6af9953a5 | 623ce962306c28f0cacee97b612fcf1dad652975 | refs/heads/master | 2020-12-02T23:58:36.243061 | 2017-07-05T15:51:39 | 2017-07-05T15:51:39 | 95,968,975 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,830 | hpp | TypeRules.hpp | #ifndef ROSA_TYPE_RULES_HPP_
#define ROSA_TYPE_RULES_HPP_
#include <cstddef>
#include <memory>
#include <vector>
#include "Ast.hpp"
#include "Macros.hpp"
#include "TemplateUtil.hpp"
#include "Type.hpp"
namespace rosa {
namespace rule {
namespace type {
class TypeRule {
public:
virtual ~TypeRule();
virtual std... |
d9a4b735fc545d5224aebada4a44619ce68d9c5b | 9010e4c0bad67c5bf06c634481522c5126cee1ad | /Source/BuildingEscape/Grabber.cpp | 1c430c83a139c6dd4e4838d65b2d1e165812f658 | [] | no_license | renald-morice/UE-Udemy-Escape | 5424023e9fbc6f8aea41751ec0b3baec1e667aef | 331a9ed6f8c478c763e8b2041bcaf73a2a7d2a1f | refs/heads/master | 2020-04-07T05:46:54.950083 | 2018-12-19T00:31:53 | 2018-12-19T00:31:53 | 158,109,530 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,506 | cpp | Grabber.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "Grabber.h"
// Sets default values for this component's properties
UGrabber::UGrabber()
{
// Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features
// off to improve... |
b06165c11f13cfb9da75b711ad3872c052b2e6ec | 1ee3043a86bd681ac591d68b404c6924604d90fb | /inc/texture.h | 22c583519d23164d1841541041f9ce275299090d | [] | no_license | bosouza/ship-fight | 2e1008efacd3b24dc260759cf78df558d464ac68 | d80988c51ef56b40296c6397414b8edb52c66f9f | refs/heads/master | 2022-06-10T03:36:39.247384 | 2019-12-09T23:05:43 | 2019-12-09T23:05:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 518 | h | texture.h | #ifndef TEXTURE_H_INCLUDED
#define TEXTURE_H_INCLUDED
#include <string>
class texture
{
private:
int width, height, nChannels, dataSize;
unsigned char *data;
std::string path;
public:
texture(std::string path);
~texture();
void freeData();
int getWidth() { return this->width; }
int getH... |
6f3c5ad344b8a43a6ff8dfe71c8d2725d6070382 | 39bd02bc9d5bdc3fe00433b9080c5466451f792e | /engine/runtime/libs/graphics-vulkan/private/GxGraphics.Vulkan/Graphics/VulkanGpuIndexBuffer.cxx | 05dd41895423a8f9d45687196917a18b641c44c1 | [] | no_license | selmentdev/graphyte-engine | 7db986ec0b24b458348d4d632c661ce9f81ad671 | ed7bcda3d077d2eaa47c2d738b9d03c57adf60f2 | refs/heads/master | 2022-03-05T11:09:07.598388 | 2021-01-10T00:42:54 | 2021-01-10T00:42:54 | 219,206,110 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,249 | cxx | VulkanGpuIndexBuffer.cxx | #include "VulkanGpuIndexBuffer.hxx"
#include "VulkanGpuDevice.hxx"
#include <GxBase/Bitwise.hxx>
namespace Graphyte::Graphics
{
VkBufferUsageFlags VulkanMapGpuBufferUsage(
GpuBufferUsage usage) noexcept;
GpuIndexBufferHandle VulkanGpuDevice::CreateIndexBuffer(
[[maybe_unused]] uint32_t stride,... |
a28b7b3394efc05b563d572fb73bc0806d354a09 | c9ed10fae7fde2ca58995b9470696cd9b9c371ee | /build-Draw_Shape-Desktop_Qt_5_12_6_MSVC2017_32bit-Debug/ui_login.h | 70a30cba15e2e900b370ab82c372c641ed3a2271 | [] | no_license | Pu12dy/CS_1C-Group-Project | 48f5c776521dcb8cf612aad166285fc7ede21b30 | f08088d308972cedd859ea5e90509a26b27b29f8 | refs/heads/master | 2020-09-01T04:02:28.459374 | 2019-12-11T01:24:25 | 2019-12-11T01:24:25 | 218,873,897 | 2 | 0 | null | 2019-12-09T01:26:38 | 2019-10-31T22:48:14 | C++ | UTF-8 | C++ | false | false | 4,271 | h | ui_login.h | /********************************************************************************
** Form generated from reading UI file 'login.ui'
**
** Created by: Qt User Interface Compiler version 5.12.6
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************... |
ee3f45c9b10dccb07ba8d456a5daf60937c9c290 | c683eeb332bdeabc2b8bcb4a66d0a3426686ba18 | /Chapter_5/Section_5.1/Starry_Night/Starry_Night.cpp | 390c624ed15cec7625b7802dfcfd0733406537aa | [] | no_license | axrdiv/USACO | f81c50cb21b257ed2f0b4b4bf3115af47dd812c2 | 04c792b38ae9b7e468a41b82574db0b2687d3d23 | refs/heads/master | 2022-12-04T01:32:20.352489 | 2020-08-23T14:03:31 | 2020-08-23T14:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,778 | cpp | Starry_Night.cpp | /*
ID: axrdiv1
PROG: starry
LANG: C++
*/
#include<iostream>
#include<fstream>
#include<queue>
#include<vector>
#include<algorithm>
#include<cmath>
using namespace std;
const int MAXWH = 100 + 5;
ofstream fout("starry.out");
ifstream fin("starry.in");
int sky[MAXWH][MAXWH], vis[MAXWH][MAXWH];
char ans[MAXWH][MAXWH];
... |
4468e65ce67a9b4ac7afc344f8240a35c34df912 | 16e1c4fc7d568c37336bf47a09cf351e09446a4a | /Qualification-Round/2020/B.cpp | 110af0c0622869ab10c229041fcccedbe16e772c | [] | no_license | manosriram/codejam-archives | d00544f79aba4b55ddcd4fd6a12ac76178e69534 | 43f5a32f8b48d53997ca7f56d6fc77a88e6d542b | refs/heads/master | 2021-03-29T20:29:40.040296 | 2020-04-10T18:24:34 | 2020-04-10T18:24:34 | 247,982,800 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 706 | cpp | B.cpp | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int T;
cin >> T;
for (int tt=1;tt<=T;++tt) {
string s, rs;
cin >> s;
int n = s.length();
for (int t=0;t<(s[0] - '0');++t) rs += '(';
for (int t=0;t<n-1;++t) {
rs +=... |
11be8fe21acc524016b5ac41d1af076165bb3b62 | 801a5f1df5f01aae04369f3f6097a469da11c601 | /Solved Problems/Куди бігти/algo.cpp | c6d6bc8c1b9366cf3d1ae62086329dbb0ae3a7ec | [] | no_license | NazarSmith228/Competitive_Programming | 0c8e047a5ebc3ccc31f1ec40982162a3cadf0b75 | 9bab16788d150fff060f5d1167fdd7dd8819bbff | refs/heads/main | 2023-06-08T06:33:41.071352 | 2021-06-27T00:52:25 | 2021-06-27T00:52:25 | 377,292,161 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 338 | cpp | algo.cpp | #include <iostream>
using namespace std;
int main()
{
double Sd,Su,V;
cin >> Sd >> Su >> V;
double Td = 0;
double Tu = 0;
if(V == 0)
return 0;
Td = Sd / (V * 2);
Tu = Su / (V / 2);
if(Td < Tu) cout << "Down";
if(Tu < Td) cout << "Up";
if(Td == Tu) cout << "Never mind";
... |
560641595e01df580f2df3ddbcf75d0d0d9d08a3 | 45aa6c77337e06f8ca8cd570a90d4542b3d63521 | /ThirdParty/cpgf/include/cpgf/metadata/irrlicht/meta_irrlicht_irrMath.h | 4adf0bea062bf594eb067298a82e728d2662ec74 | [
"Apache-2.0"
] | permissive | iteratif/uifaces | b6fcf4a023f41ee92c6cba0f06090cd967742031 | 2db85273282a52af09ced7f8ca50baff600dc31c | refs/heads/master | 2021-07-01T05:15:11.858215 | 2017-09-13T23:32:17 | 2017-09-13T23:32:17 | 103,461,748 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,602 | h | meta_irrlicht_irrMath.h | /*
cpgf Library
Copyright (C) 2011 - 2013 Wang Qi http://www.cpgf.org/
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... |
740772647b10e5fe6de1e041024cdd4a31733380 | 4e0d8fb59128cd99a79ae10f99225228253f02ce | /第3章-字符串、向量、数组/3.31.cpp | e2b38009d7797cb51a8a074df22fcef41987fda8 | [] | no_license | Archer-J/C-Plus-Plus-Primer | ef4a760d7bfbe41810f575efe6cc94d3d4384943 | 2b90d4628ca99b43401bce9a9bb07c228b75406f | refs/heads/master | 2020-04-12T04:23:22.949123 | 2018-12-25T09:52:22 | 2018-12-25T09:52:22 | 162,294,115 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 228 | cpp | 3.31.cpp | #include <iostream>
using namespace std;
int main()
{
const int sz = 10;
int a[sz];
for (int i = 0;i < sz;i++)
a[i] = i;
for (auto val : a)
cout << val << ends;
cout << endl;
return 0;
}
|
c9d095c35dba9c238458e1063f1b83f4d69739fc | 304dcc859ff1bad63ae881a096e687f7dc3de04b | /Test_PC_Poker/UPGPokerBase/src/Player/PlayerDrawManager.cpp | 6983614ba3136c9777f65acadd0886f836618bf1 | [] | no_license | idh37/testrepo | 03e416b115563cf62a4436f7a278eda2cd05d115 | b07cdd22bd42356522a599963f031a6294e14065 | refs/heads/master | 2020-07-11T00:57:34.526556 | 2019-09-10T07:22:35 | 2019-09-10T07:22:35 | 204,413,346 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 12,549 | cpp | PlayerDrawManager.cpp | #include "stdafx.h"
#include "PlayerDraw.h"
#include "PlayerDrawManager.h"
#include "../UIInfoData.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
CPlayerDrawManager::CPlayerDrawManager(int nMaxPlayer)
{
m_nMaxPlayer = nMaxPlayer;
m_pGameProcess = NULL;
m_pGameView ... |
d6df9c73dc397c510439dc6acef1149d07ec7111 | e0a95f183d9286d7052d261de1aaca397b70add2 | /Bin32/Sources/CryGame C++/SOINN/soinn-project-vs2005/SOINN/CEdge.cpp | c745dee736a051a64126e6e829c6ec51f761b593 | [] | no_license | ArnCarveris/realistic_ai_mod | d5f300adc3ef09935483d41577acbc8e0f094ace | 191c8ed243b49697614de75f909928f1cdd2f7f7 | refs/heads/master | 2021-07-06T01:50:33.602117 | 2017-10-02T21:28:23 | 2017-10-02T21:28:23 | 115,669,532 | 0 | 1 | null | 2017-12-29T00:13:25 | 2017-12-29T00:13:24 | null | UTF-8 | C++ | false | false | 1,027 | cpp | CEdge.cpp | /*
* SOINN Software Version 1.2.0
* http://haselab.info/
*/
#include "CEdge.h"
#include <string.h>
const int CEdge::EMPTY = -1;
CEdge::CEdge()
{
Init();
}
// Generate edge between the given nodes
CEdge::CEdge(const int node1, const int node2)
{
Init();
m_from = node1;
m_to = node2;
}
// Generate edge with... |
2912c309e51616d514d67515e45837c2ceb7fc1f | ecd526c8fc56d8c2ee5f616cfcd96da360d61d5a | /CS 162 - Intro to CS II/Assignment 4/BlueMen.hpp | 63977e6d70042be62f8a3949d12097dd5c1f9a0c | [] | no_license | spokoynj/OSU-Projects | 73f96a1d9a76523a5bc08391c760e8cc4e47e595 | 9894edb4f3b03f616a2cbd2941c97d50c4932a91 | refs/heads/master | 2021-03-30T16:36:06.194286 | 2017-09-28T05:45:24 | 2017-09-28T05:45:24 | 94,759,172 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 602 | hpp | BlueMen.hpp | /*********************************************************************
** Program Filename: BlueMen.hpp
** Author: Jessica Spokoyny
** Date: 02/28/16
** Description: BlueMen derived class header file
*********************************************************************/
#ifndef BLUEMEN_HPP
#define BLUEMEN_HPP
... |
7c7122672be781e724dbb899607b540e8c9afde8 | 66b4eb2c460cac5d9f40f99f725538c0a3e2feda | /Company Course/Homeworks/02-Qt_Course/03-MyString_Class/main.cpp | 23c0ca4e233af5085913aabcd9f265c27ac5d829 | [] | no_license | Mavrikant/Qt-Course | 0fe4e766af4f9e91b7727273c37ab7b5fd499a1d | de702b0121fa85c33cc5ec02819d2fb84cc74191 | refs/heads/master | 2022-12-15T23:01:36.868043 | 2020-09-10T17:41:34 | 2020-09-10T17:41:34 | 255,144,522 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 513 | cpp | main.cpp | #include <QCoreApplication>
#include <QString>
#include <QTextStream>
#include <QtTest/QtTest>
#include "mystring.h"
int main(void)
{
QTextStream out(stdout);
MyString str1("Mycarcarcar");
MyString str2("car");
MyString str3;
str3 = str1 - str2;
//str3 = "My"
out << "str1 = \"" << str... |
da1a66d14c79e33634994ff94d22b0112b9415a4 | bf59810193c86ec0a062be559b7ea3eb19067f96 | /creator/src/creator_fileelement.cpp | 18f61b1bc6b97a37776045170f1a0a5f698ebe0b | [] | no_license | SymbianSource/oss.FCL.sf.tools.rndtools | 0c4ec9f7349f77c618fb22707418cacb1b62e32f | 29f348bac14c2472f9a0e371ca2b4493b7bb2974 | refs/heads/master | 2020-12-24T12:40:53.763599 | 2010-02-01T22:17:27 | 2010-02-01T22:17:27 | 72,961,211 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,030 | cpp | creator_fileelement.cpp | /*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.... |
1c92ab144c7ade19f445552ea7363f51416a2dbe | a0a83203c187a4504ca18b91b35c19abbef00b92 | /docs/SFMLExamples/sfmlexample4.cpp | 225258ba27de6e996aed1cecabbc355f90453a1b | [] | no_license | Arxcis/ProgMatteKompendium | 5bb3c63fd01c2e8261fdf923b52338f8271c396c | 4f1767d62070a6406b9283eda15a87e976de9ed5 | refs/heads/master | 2021-01-18T20:02:26.062267 | 2017-06-04T20:01:17 | 2017-06-04T20:01:17 | 86,928,817 | 0 | 2 | null | 2017-06-04T20:01:18 | 2017-04-01T17:03:39 | null | UTF-8 | C++ | false | false | 2,845 | cpp | sfmlexample4.cpp | /*
Example 4:
Visualisation of Markov simulation for area of circle
*/
#include <SFML/Graphics.hpp>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <random>
using namespace std;
class GameObject
{
public:
sf::Vector2f pos;
sf::Color color;
GameObject();
void dr... |
ac6da9d0233b184ac7069fafe87a5c9b986fc700 | f933b3960ba73367d95b510c196a5e13d9e77ab9 | /trx/WallsMap/TabCombo.h | 7322e8fcc27fc8635e35d2ffcb7ee0d98f757463 | [] | no_license | victorursu/walls | 7ba50033c1ad28f66e8a97bcf37248e527c878a1 | fab6c82714d837acdc5ecb95c7cb36a5d0cbc903 | refs/heads/master | 2021-01-21T14:17:21.934574 | 2017-02-19T23:58:52 | 2017-02-19T23:58:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,973 | h | TabCombo.h |
#if !defined(_TABCOMBO_H)
#define _TABCOMBO_H
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "EditLabel.h"
typedef void (* TABCOMBO_CB)(void);
enum {F_MATCHCASE=1,F_MATCHWHOLEWORD=2,F_MATCHMASK=3,F_SEARCHUP=4,F_MATCHRTF=8,F_VIEWONLY=(1<<14),F_USEACTIVE=(1<<15)};
#define FTYP_SHIFT... |
01fc8b224abe4102dc106d9df751de8ab5b8d905 | 61223eee05ad0179788931e35f4db59a896a2bd0 | /lib/bbq/analogin.cpp | d9b53bf6c6bd93651c9f89e7dac09f900a0d315b | [
"MIT"
] | permissive | rvt/bbq-controller | 60155717c0ec33b327d74203f14e6ed6ffcc0ae0 | a70f13dfc1c53dc6416fff2fa4ef9e393884dab5 | refs/heads/master | 2022-05-01T23:14:02.520911 | 2022-04-10T18:32:13 | 2022-04-10T18:32:13 | 164,915,821 | 24 | 3 | MIT | 2020-08-19T18:45:53 | 2019-01-09T18:25:35 | C++ | UTF-8 | C++ | false | false | 790 | cpp | analogin.cpp | #include "analogin.h"
#include <cmath>
#include <algorithm>
#ifndef UNIT_TEST
#include <Arduino.h>
#else
extern "C" uint32_t millis();
extern "C" uint32_t analogRead(uint8_t);
extern "C" uint32_t pinMode(uint8_t, uint8_t);
extern "C" uint32_t digitalRead(uint8_t);
#define INPUT_PULLUP 2
#define A0 0xa0
#endif
Analog... |
d5e17a5eff26eb9f2473e8416d4252cff3e305ae | 49c54a59b20364c8e8b1f6b58d6fff7372081980 | /core/src/ledger/OfferFrame.cpp | 8ec19079252f9dbd978f0b77103f41d339fdd2b1 | [] | no_license | vixledger/vixal | 0911f86e05132672ff49d5979f52a138ea61c25d | 10015542bc0b19f27eef884fb794d147043504c2 | refs/heads/master | 2018-11-01T01:53:36.637384 | 2018-08-08T10:14:42 | 2018-08-08T10:14:42 | 115,408,836 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 23,189 | cpp | OfferFrame.cpp | // Copyright 2014 Stellar Development Foundation and contributors. Licensed
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0
#include "crypto/KeyUtils.h"
#include "crypto/SHA.h"
#include "crypto/SecretKey.h"
#include "da... |
f62923ed84d494f3be0e3a66b477b68574c1c14e | 83010fe0442b0cf6f7260ee71a452d087f328a5d | /vot.cpp | 502803db5dfdda0c618fb6a1bf609785caca02f5 | [] | no_license | samkumartp/Competitive-programming-problems | d6b32233d36dbd91fe5c78d2f4b4e37afcfe67df | 399d966d5e77aae4c3823405e3989b4e1b1bbea5 | refs/heads/master | 2020-04-08T11:54:06.225640 | 2017-09-17T16:25:35 | 2017-09-17T16:25:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,535 | cpp | vot.cpp | # include <fstream>
# include <cstring>
# include <algorithm>
# include <vector>
using namespace std;
ifstream f("vot.in");
ofstream g("vot.out");
vector <int> vect[1005];
struct elem
{
char v1[100],v2[100];
}a[1005];
int i,j,n,m,v[1005],nr1,nr2,VV,nrsol,ok,ap[1005];
char s[105],*p,var[1005][55];
bool cmp (int x, i... |
b6c859598c7f2a5168d7c7286280d13df5b77976 | 554c31b8b5c275e77cf7ec553e8e9e1938bad928 | /HAPPYPLAYER/Foundation/OverlayWidget.cpp | 58164493d7f648a68db0f5de95f1b9a583b09caa | [] | no_license | zhaiyuhan/HAODA | d86f3a0506e66476632388dfc9121610f929f8cc | 00361fc8c1e64386140766cf6e9319bee1e1ee2f | refs/heads/master | 2021-01-19T17:28:04.877092 | 2020-03-28T15:03:37 | 2020-03-28T15:03:37 | 88,324,011 | 12 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 992 | cpp | OverlayWidget.cpp | #include "stdafx.h"
#include "OverlayWidget.h"
OverlayWidget::OverlayWidget(QWidget *parent)
: QWidget(parent)
{
if (parent)
{
parent->installEventFilter(this);
}
}
OverlayWidget::~OverlayWidget()
{
}
bool OverlayWidget::event(QEvent* event)
{
if (!parent())
{
return QWidget::event(event);
}
switch (even... |
ad46df6c90ab662a78c19f77e0fb70737762c0ff | bdc191612866b7ec7e839d79461d873dc74e7e2b | /leetcode/lc0219.cpp | 7f63e624edb7aca0df68889c7705265799d23b29 | [] | no_license | aleafall/DS-A | 8a19d39363fc5b46d3a2037defa561f0217ce16f | 781dd972d060b0cd8c976f3d729f2e2feadbb6b1 | refs/heads/master | 2021-01-18T16:45:40.263831 | 2018-02-04T07:29:57 | 2018-02-04T07:29:57 | 86,765,462 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 565 | cpp | lc0219.cpp | //
// Created by aleafall on 17-2-5.
//
#include <iostream>
#include <vector>
#include <map>
using namespace std;
class Solution {
public:
bool containsNearbyDuplicate(vector<int>& nums, int k) {
if (nums.size() <= 1) {
return 0;
}
map<int,vector<int>> mp;
for (int i = 0; i < nums.size(); ++i) {
mp[nu... |
310489d43d94c451d3bdfbb839c0e749422480d5 | cde72953df2205c2322aac3debf058bb31d4f5b9 | /win10.19042/SysWOW64/dhcpcore6.dll.cpp | dbc3cbbd1448cae84af0b234a1da0c352121e6c8 | [] | no_license | v4nyl/dll-exports | 928355082725fbb6fcff47cd3ad83b7390c60c5a | 4ec04e0c8f713f6e9a61059d5d87abc5c7db16cf | refs/heads/main | 2023-03-30T13:49:47.617341 | 2021-04-10T20:01:34 | 2021-04-10T20:01:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 87 | cpp | dhcpcore6.dll.cpp | #print comment(linker, "/export:Dhcpv6Main=\"C:\\Windows\\SysWOW64\\dhcpcore6.dll\"")
|
6c2ecf5bdcf622cda8afb6742f97868fe5514c8c | 9424f16b1f70e2b009872d70c32fe6ac7df563b0 | /2_Data_Structures/Fundamentals/Sparse_Table/Codechef-MSTICK.cpp | e2f1f73ffc17bf4c16a06bb11c2301643a15fd9b | [] | no_license | prajapati-sumit/CP-Algorithms | 196d46b8c9bad911b7120bfc33e4e1f8ad46ef9c | b4c99fa832d3ea9d9ae43a8ea1a6e33dfa678677 | refs/heads/master | 2023-08-18T04:46:11.620709 | 2021-10-11T05:57:49 | 2021-10-11T05:57:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,444 | cpp | Codechef-MSTICK.cpp | //CODED BY SUMIT KUMAR PRAJAPATI
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pl;
#define PI 3.1415926535897932384626
#define pb push_back
#define mk make_pair
#define ff first
#define ss second
#define trav(v) f... |
ffc6caf0fffe741600829d087096949bc8c137ce | f10640b9af28bb9ed19938d261d372f03bd33901 | /String/2908.cpp | 2a87d699461f69896df3a02ab7449ad1833a7798 | [] | no_license | slidemorning/algorithm | 7e011c6be8e30fb531514e4da896822e8acecb6d | 59809975f1475b1e4c88a656817fcbd59d029473 | refs/heads/master | 2021-07-08T08:39:31.356846 | 2020-11-22T16:38:52 | 2020-11-22T16:38:52 | 209,515,031 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 327 | cpp | 2908.cpp | // https://www.acmicpc.net/problem/2908
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(void){
string x, y;
cin >> x >> y;
reverse(x.begin(), x.end());
reverse(y.begin(), y.end());
if(x > y){
cout << x << '\n';
}else{
cout << y << '\n';
... |
fe33ac770737c085a76fc00a4ad0d2d448d280e3 | 79a9f7f801ef12a34f4248fe445396ebd652c33d | /PA07/JSONParser.cpp | 7937b02bfe547071768f00d7ebbe4785de797f3a | [] | no_license | invainn/cs302 | e41e7ce33e41f04ec05c59800229cf5ec3eced6f | 29999b1233b3b6cd69f03ae85b22ba2cd00969e3 | refs/heads/master | 2021-01-22T07:52:43.274398 | 2017-05-11T01:37:56 | 2017-05-11T01:37:56 | 81,862,793 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,665 | cpp | JSONParser.cpp | #include <iostream>
#include <fstream>
#include <streambuf>
#include <string>
#include <vector>
#include "JSONParser.h"
JSONParser::JSONParser(std::string fileName) {
std::ifstream inputFile(fileName);
std::string bufferString((std::istreambuf_iterator<char>(inputFile)), std::istreambuf_iterator<char>()); // read en... |
7c9af793db2157686a65d055012e2afcd7bb38a2 | 88a6a227747899998996099d723671ac9b504a7e | /inheritance/inherit.cpp | ecdbb93af5e0fedf39a26b0b34b2d8edd2647a2e | [] | no_license | AyceeChill/CPP-Programs | 7c0287c94eae86486d49dbb2e6ba165eb95dac40 | 2db9fa5a0589d263c8c0b475e2628cf9fd3abbb1 | refs/heads/main | 2023-05-05T21:52:50.900483 | 2021-05-30T14:29:25 | 2021-05-30T14:29:25 | 372,232,690 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,285 | cpp | inherit.cpp | #include <iostream>
using namespace std;
class building
{
private:
int area;
int floor;
public:
building()
{
area = 0;
floor = 0;
};
void getdata(int x, int y)
{
area = x;
floor = y;
};
void setdata()
{
cout << "Building" << endl;
... |
ac2c0488ea6e71a8d7ffecadb398f2d5ad39ed53 | f97590f463b368b8539952390bb53426259b50b6 | /src/Controller.cpp | 622ddf6cc581b0b453a29277abc17bf8a6ee0eb2 | [] | no_license | StefanoFerraro/ROS_ETH_course | 004975dcc2433f97b7d4b57d643751eac1d1ff91 | a4d102d87b0d41937f3bc424069c13286600e649 | refs/heads/master | 2021-04-24T02:01:13.126069 | 2020-04-06T07:56:38 | 2020-04-06T07:56:38 | 250,057,521 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,837 | cpp | Controller.cpp | /*
*
* Created on: Mar 23, 2020
* Author: Stefano Ferraro
*/
#include "ROS_ETH_course/Controller.hpp"
namespace my_hushy_controller
{
Controller::Controller(ros::NodeHandle& NH):
nodeHandle_(NH)
{
nodeHandle_.getParam("husky/topic_name", topic);
nodeHandle_.getParam("husky/queue_size", que... |
af8b1ed43cafdcf3e507478d205745f616576d32 | a20cede1992461ef95153aa88a52e3f68b71d6c8 | /AccountsUtil.cpp | 13f9b96414380af19b243b954098f3e3c7f4c067 | [] | no_license | maudeburkhalter/CPPBankAccountProject | d2908774d23da2703dd7563fa9cf91b8f50f6d87 | f839e3dcffa886515839118215cda65466b9619d | refs/heads/master | 2022-11-12T16:10:43.690023 | 2020-06-23T10:28:22 | 2020-06-23T10:28:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,487 | cpp | AccountsUtil.cpp | #include <iostream>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <stdlib.h>
#include "AccountsUtil.h"
using namespace std;
bool
readAccountInfo(std::vector<std::unique_ptr<Account> > &accounts) {
ifstream account_file("../AccountList.txt");
string account_type;
string holder_name... |
c151ea66bedd0096953fa08c557f2d931233aadf | ac4fdd07a5ea2f590c2e86eece88851fd8a80dc9 | /IRSensor.ino | 76d75984610dae7542469d9776e44079be571776 | [] | no_license | incredulouss/Bhu-robot | 408a36602b21860e5ab66ec724b54ab1dc935870 | bc04a827cecff83d536103318f392bfd8b2e7b14 | refs/heads/master | 2021-04-30T00:49:11.481277 | 2020-02-12T14:20:31 | 2020-02-12T14:20:31 | 121,465,667 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,462 | ino | IRSensor.ino | #define ERROR_THRESHOLD 100
void IRinIT()
{
for (int i = 0; i < 6; i++)
pinMode(sensor[i], INPUT);
}
void receive()
{
for (int i = 0; i < 6; i++) {
senVal[i] = analogRead(sensor[i]);
sen[i] = analogRead(sensor[i]);
senVal[i]=constrain(senVal[i],minVal[i],maxVal[i]);
threshold[i] = (maxVal[i] +... |
96824393bb19dc6eaff2056bbb2b02fca9968be1 | badbdcc98d5594feadc95a3538163518be43626c | /host-opengl-render/renderControl_dec.cpp | aa7f565f3c34bf214d457cb26f13aafa3d36735f | [] | no_license | jacksunshine6/qemu-of-arm-android | 961dbd31f672c9d2aa751012c6237b468124a120 | ca2000f6cd42a0940df5deb386d46af48207d01e | refs/heads/master | 2023-01-07T23:22:12.555512 | 2020-11-08T02:30:38 | 2020-11-08T02:30:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,915 | cpp | renderControl_dec.cpp | // Generated Code - DO NOT EDIT !!
// generated by 'emugen'
#include <string.h>
#include "renderControl_opcodes.h"
#include "renderControl_dec.h"
#include <stdio.h>
//#undef DEBUG_PRINTOUT
//#undef CHECK_GL_ERROR
typedef unsigned int tsize_t; // Target "size_t", which is 32-bit for now. It may or may not be the sa... |
e7390969206bb4ed20f2ac724cb66080e6de7af5 | d36c4f4ee12e0e8793d3b6d8fa1e992b598a6192 | /trunk/lib/global/Global_init_defaults.cc | db4b3be66500720edeb77bcc3c33043b926b79eb | [] | no_license | anandogc/tarang | 3125fafa2e6d4d9d222e950d483f7dc45d718a3c | cfb2b6ca9d4e5c987ba9df3a79e4918a1821b393 | refs/heads/master | 2022-06-27T16:52:06.788839 | 2022-06-08T09:32:40 | 2022-06-08T09:32:40 | 243,201,125 | 2 | 4 | null | 2022-05-12T11:08:48 | 2020-02-26T07:51:03 | C++ | UTF-8 | C++ | false | false | 5,367 | cc | Global_init_defaults.cc | /* Tarang-2
*
* Copyright (C) 2008, 2009 Mahendra K. Verma
*
* Mahendra K. Verma
* Indian Institute of Technology, Kanpur-208016
* UP, India
*
* mkv@iitk.ac.in
*
* This file is part of Tarang-2 .
*
* Tarang-2 is free software; you can redistribute it and/or
* modify it under the terms of the GNU General P... |
8e6b9f3e04d6ea5c07f24a09b615cdcacace9e6d | e436633d3cf41a5fe351f5e344baf60e225fa50c | /cart_teleop_hybrid/cart_teleop_hybrid.ino | e7d6b6c7b485fd2f6ef775bd55367378b2e19ff4 | [] | no_license | parrbt/cart_control | 6d61b3bdf1350985d807e3ea01cdb83646647543 | a3904012382e5b0fdce3914ad8a9972f2203d212 | refs/heads/master | 2020-08-08T04:53:07.481813 | 2019-10-22T19:20:23 | 2019-10-22T19:20:23 | 213,719,825 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,136 | ino | cart_teleop_hybrid.ino | /*
cart_teleop_hybrid.ino - Contains the main arduino code for controlling our autonomous golf cart; hybrid version of new_board and original teleop.
Author: Brandon Parr
Version: 1.0
*/
#include <Adafruit_MCP4725.h>
#include <Wire.h>
int throttle = 3; /* pin 3 */
int brake = 5; ... |
907e177512e1277e3340bd0ef69243c11d178453 | 33035c05aad9bca0b0cefd67529bdd70399a9e04 | /src/boost_compute_types_builtin.hpp | b4f62cd13943105c754bfc3063e23af54d8116b6 | [
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0"
] | permissive | elvisbugs/BoostForArduino | 7e2427ded5fd030231918524f6a91554085a8e64 | b8c912bf671868e2182aa703ed34076c59acf474 | refs/heads/master | 2023-03-25T13:11:58.527671 | 2021-03-27T02:37:29 | 2021-03-27T02:37:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 43 | hpp | boost_compute_types_builtin.hpp | #include <boost/compute/types/builtin.hpp>
|
fb71f7b118395d7ab324e293e0767e650cd82df7 | 3effa7407d4399c9db9699f007ecfc1382a7eeb0 | /main.cpp | 9c9e513119a459af4a5688ab320490a9386ce63a | [] | no_license | daviholy/3Dgraphic | 89f5ab8051788fc1a07ed86140094804d3aa7587 | 43ed5a31933060ce8fe237ca3d06281b66411ac7 | refs/heads/master | 2023-01-01T12:56:31.940254 | 2020-10-28T22:53:05 | 2020-10-28T22:53:05 | 285,270,300 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,239 | cpp | main.cpp | //
// Created by davih on 27.04.2020.
//
/*todo: things to add:
* save the scene
*semi transparent objects
* animation system
* multiple lamps
* static camera
* culling
* perlin noise
*/
/*FIXME: bugs:
* can't move lamp when it's stopped
*/
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <cmath>
#incl... |
0d1b8b8ce6fd52b8f0dd07c445b3de76c0e45763 | f76cabb6376f8c7fbdd155ad99d734699781a686 | /libmchess/ChessPosition.h | 330a4cb54726441a57e50f2a9923a75fe2eba82b | [] | no_license | mdz/pgnfind | 2d31001a33de5b212ed45845adb4b0e906c8079b | 150fe5ee56d3bcd4956d1185b6813ae7cb055405 | refs/heads/master | 2020-11-26T17:46:09.484069 | 1999-04-26T01:58:39 | 1999-04-26T01:58:39 | 229,163,985 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,892 | h | ChessPosition.h | // -*- C++ -*-
#ifndef _CHESSPOSITION_H
#define _CHESSPOSITION_H
#include "ChessPiece.h"
#include "ChessVector.h"
//
// Note: all positions are specified in rank-file notation (e.g., a4,
// h7, etc.), except in the (x, y) forms of certain functions, (which
// accept numerical coordinates in the range [1,8]
//
class ... |
437ccfe88e308492c7a54cb6fc342d7c5460abd8 | 22c7acd07949e7b707b629d82a9ab2b53edb38d8 | /input/controlmappingsmanager.cpp | ca3b469f5e317a52493091e7b37bad091e12dcc4 | [] | no_license | ledocool/project_rogue | 8fff16e9d911bd141f290aaf14fa65272e377491 | 9d5734b92de8051e5fd06c59457afa545b628ecf | refs/heads/master | 2021-01-10T08:38:13.487538 | 2017-11-06T11:44:49 | 2017-11-06T11:44:49 | 45,736,036 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,808 | cpp | controlmappingsmanager.cpp | #include "controlmappingsmanager.h"
ControlMappingsManager::ControlMappingsManager()
{
using namespace keys;
config_t *cfg;
config_init(cfg);
if( CONFIG_FALSE == config_read_file(cfg, "config.ini" ))
throw BasicException("Error reading control config", errorCodes::noError);
int c, e;
/... |
673a40f067387ffb32845e6f40fdc31a8939eb24 | abd937baf4c7a832c0fc26925fc5d128e1c67844 | /string_mc.h | 9fd572fa188a66e5724065f4aa3e990965234746 | [] | no_license | MChengPDX/SorryCpp | eedc7d1ff6a26bdb03bf32c8d5be609a8e1b584b | d696ff0fc0a935e52418e93ac60c8d689cd6879a | refs/heads/master | 2020-12-31T05:10:22.928876 | 2016-06-02T07:43:58 | 2016-06-02T07:43:58 | 59,707,946 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,613 | h | string_mc.h | #include<cstring>
#include<iostream>
using namespace std;
/*
* Class that uses dynamic memory.
* Uses a pointer to aa char instead of a char array. This means
* class declaration does not allocate storage space for the string
* itself. Insteead it uses new in the constructors to allocate space
* for the string.
... |
e578124b5ec900d9137b7f390338b6453b24b731 | cb8c337a790b62905ad3b30f7891a4dff0ae7b6d | /st-ericsson/multimedia/shared/ens/proxy/ENS_Component/ENS_ResourcesDB.cpp | 45b7436b9b3b892d9860bd5fb79e3ffcbf7679fc | [] | no_license | CustomROMs/android_vendor | 67a2a096bfaa805d47e7d72b0c7a0d7e4830fa31 | 295e660547846f90ac7ebe42a952e613dbe1b2c3 | refs/heads/master | 2020-04-27T15:01:52.612258 | 2019-03-11T13:26:23 | 2019-03-12T11:23:02 | 174,429,381 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,138 | cpp | ENS_ResourcesDB.cpp | /*****************************************************************************/
/*
* Copyright (C) ST-Ericsson SA 2010. All rights reserved.
* This code is ST-Ericsson proprietary and confidential.
* Any use of the code for whatever purpose is subject to
* specific written permission of ST-Ericsson SA.
*
*/
/**
... |
4c58eeb8c42cce38cb778bbad79d06259a0b461d | 3e6dd9e9ee62ce4031ea27590658c4ccea57be37 | /Google-Coding-Competitions/Kickstart/2020/round_H/3.cpp | 4390f6b3832d9bb8db26446df777ed1634ca1e56 | [] | no_license | AdminAbhi/MyCodeLib | 644876ae45f1f1f4b71f33d2d1340b055b433594 | 3dacf753bfb122593ee5ef556639d842aaf2a928 | refs/heads/master | 2021-10-30T04:55:30.763949 | 2021-10-14T20:03:22 | 2021-10-14T20:03:22 | 187,461,148 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,124 | cpp | 3.cpp | //=============================================================================
// @abhi_admin FB UserId: abhiavisekkr Email Id: abhiavisekkr@gmail.com
//=============================================================================
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typed... |
1f5eee30c008da1dfe1edcd29f7936a432315b69 | edaf7e04519fa7ab326e7a6aca66a48e80479d1b | /eventManager.cpp | 725f0b519f9aadfbc683990408ce019dab0054f5 | [] | no_license | kisungj/-RiverCityGirls | b5473ba769f2d07090947a0bd187adab3d8250e8 | e93b735a3f504d9a0ac91a75a89f8a13c55544e7 | refs/heads/master | 2022-12-09T02:16:22.633665 | 2020-07-26T06:38:22 | 2020-07-26T06:38:22 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 659 | cpp | eventManager.cpp | #include "stdafx.h"
#include "eventManager.h"
HRESULT eventManager::init()
{
return S_OK;
}
void eventManager::release()
{
}
void eventManager::update()
{
if (mEventQueue.size() == 0)
return;
bool isEventEnd = mEventQueue[0]->eventUpdate();
if (isEventEnd)
{
//삭제해주고
SAFE_DELETE(mEventQueue[0]);
mEvent... |
200e02d5c0b18a1774be259f23f6c6ea6bd0e51b | 29a8845b958d4c45d700afebc233a46b7532379b | /Codechef/July Long Challenge/sgarden_u.cpp | 46b3949aefd9bde7176482dca31f1756a47209df | [] | no_license | aakashc31/Competitive-Programming | af08efe4297a58ba7de0822fbc79583b92b3f588 | 43b7516d83aebdd84cf6cad0506380885e1e9aec | refs/heads/master | 2020-12-24T18:51:26.581034 | 2016-05-22T13:41:28 | 2016-05-22T13:41:28 | 59,413,653 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,419 | cpp | sgarden_u.cpp | #include <iostream>
#include <stdio.h>
#include <cmath>
#include <algorithm>
#include <vector>
#include <cstring>
#include <bitset>
#include <map>
using namespace std;
#define f(i,n) for(int i=0; i<n; i++)
#define fab(a,b) for(int i=a;i<=b;i++)
#define getNum(n) scanf("%d",&n)
#define modulo 1000000007;
int factors[1... |
e7f9931c9f44a5f72aee74e0c910c0d406d2e020 | 510b33236a7fad283b3ac70196d36205f018d528 | /PATExam/p1119.cpp | be0723bf5f053601281b859258c8fd38e6c6d594 | [] | no_license | LittleTemple/PATExam | 81f38f0f5b50b3966547c8f39b5d8af64f7e02f2 | c6afd19eb5966a875793a196f194dae8611ca9f3 | refs/heads/master | 2020-07-29T06:55:30.183599 | 2019-08-28T12:47:54 | 2019-08-28T12:47:54 | 209,706,439 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,177 | cpp | p1119.cpp | ////先序遍历和后序遍历结合的题目,还没见过呢
////尝试着自己写一下
//#include<cstdio>
//#include <vector>
//using namespace std;
//vector<int> pre,inorder,post;
//bool u = true;
//int N;
//
////为什么有一个树为空树就不唯一呢??
//void create(int preL,int preR,int postL,int postR){
// if(preL == preR){//就是这里还是没太懂
// inorder.push_back(pre[preL]);
// ... |
75d9b2dd9467ad29c1dfe6adda4641b772a8fc7d | 49812e663d0033700af72c4f451581d1f05791ef | /src/plugins/JTest/JSourceObject.h | eaac78d365ca14fd19f24e6544fb1ac5956f9aeb | [
"Apache-2.0"
] | permissive | faustus123/JANA | 1d9f6af0976b45eb9ceade584f3c0faeacf19b2c | 38ca14e79deeb4c13042c60d948356ab8e98cf0c | refs/heads/master | 2023-01-09T04:18:06.795419 | 2020-11-14T16:00:10 | 2020-11-14T16:00:10 | 103,759,870 | 0 | 2 | Apache-2.0 | 2020-11-14T15:57:50 | 2017-09-16T14:50:58 | Python | UTF-8 | C++ | false | false | 1,330 | h | JSourceObject.h | // $Id$
//
// File: JSourceObject.h
// Created: Mon Oct 23 22:39:14 EDT 2017
// Creator: davidl (on Darwin harriet 15.6.0 i386)
//
#ifndef _JSourceObject_
#define _JSourceObject_
#include <vector>
#include <utility>
#include <string>
#include <array>
#include <JANA/JObject.h>
#include "JLogger.h"
class JSourceOb... |
83ee959d5dd2de3dafbaac520aeaa13264f8b659 | 6229b84c47856cc48ff6307448e10b9ac12bde45 | /Contest/2019 Hong Kong/pB.cpp | 005679092f03811eed1ae09319b539cf8d040b03 | [] | no_license | ltf0501/NoName | d7498adfbc3b37ebc4408ee9480b2746e250784b | ee2f9d303892cbb3a1d47c89dda47f86dd41a986 | refs/heads/master | 2021-06-29T23:02:15.509131 | 2020-11-06T06:48:13 | 2020-11-06T06:48:13 | 187,497,633 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 266 | cpp | pB.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
int T;
scanf("%d", &T);
while(T--) {
int n;
scanf("%d", &n);
for(int i = 1; i < n; i++) {
int x, y;
scanf("%d%d", &x, &y);
}
if(n & 1) puts("Alice");
else puts("Bob");
}
return 0;
}
|
e2c8d9d6ae5e1efd0836384c91bd639007e5792e | 6f4e62443d7c6480a9f97c6e927c463103933eb5 | /src/example/stubclient.h | d7479c980ab899128a4cf65a16bfe91a45f3b386 | [] | no_license | 519984307/libjson-rpc-cpp | 2ae7721055ebaf5f5c2c871285853f2282b08b96 | d2404496b4e6f6b9e9649e4453bf4685eb498a0e | refs/heads/master | 2023-08-10T07:05:13.347232 | 2018-10-24T14:41:54 | 2018-10-24T14:41:54 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,941 | h | stubclient.h | /**
* This file is generated by jsonrpcstub, DO NOT CHANGE IT MANUALLY!
*/
#ifndef JSONRPC_CPP_STUB_STUBCLIENT_H_
#define JSONRPC_CPP_STUB_STUBCLIENT_H_
#include <jsonrpccpp/client.h>
// 存根生成器,自动生成的,客户端存根类
class StubClient : public jsonrpc::Client
{
public:
StubClient(jsonrpc::IClientConnector &conn, j... |
6eb51cc9a34909ae6fe326073eb4b68f580622ac | a78eb3338e991d628f7722e5d0ee2cdd043dda78 | /continuingAgain/cmdLineArgs.cpp | a4b425551b4b63522b2f0c1124c54616c9d5de3d | [] | no_license | cjrunner/continuingAgain | d90f8a85f801f62ebecd649bfb9ae7953983a47f | 14a4c599c6ea2740e45ee81c0e254cdd42eb9ac8 | refs/heads/master | 2020-03-23T08:19:05.981119 | 2018-07-17T16:55:22 | 2018-07-17T16:55:22 | 141,319,836 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,006 | cpp | cmdLineArgs.cpp | //
// cmdLineArgs.cpp
// multiThreadEnergyUsage
//
// Created by Clifford Campo on 6/5/18.
// Copyright © 2018 CliffordCampo. All rights reserved.
//
#include "cmdLineArgs.hpp"
CmdLineArgs::CmdLineArgs(bool threadState, unsigned short cla) {
//Set up the default values for these parameters that may be overridd... |
2ca326144450550fdbd118bfea7858e5cf4b1d53 | 318d258deec0887eac7a4a6db8166785d339695e | /Milestone4/Simulation/Ultrasonic_Test_4_final.ino | 82286d92cbfe670dcd57cb0c035fa75b49d776f9 | [
"MIT"
] | permissive | YahiaMesharaf/Prototyping-The-Invincibles- | fa6dc6339f1b98d60a8f138d8a92779b92b49a0c | adf72f73510591a4ce9a22e30ae26c5e54a155f7 | refs/heads/master | 2022-11-13T10:28:48.914391 | 2020-07-09T13:26:37 | 2020-07-09T13:26:37 | 252,281,202 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 316 | ino | Ultrasonic_Test_4_final.ino | // defines pins numbers
#include "SR04.h"
#define TRIG_PIN 5
#define ECHO_PIN 6
SR04 sr04 = SR04(ECHO_PIN,TRIG_PIN);
long a;
void setup() {
Serial.begin(9600);
delay(1000);
}
void loop() {
a=sr04.Distance();
Serial.print(a);
Serial.println("Cm to an obstracle");
delay(1000);
}
|
80ff027496e29f8cb895371c141fac8791bcd803 | cbf1069a489cd6b5c4ac61bcafb49e05eec98c99 | /Programowanie Obiektowe/Lesson_4/6.cpp | 65594a2c2af9b9190d148ccac31e6165c2c5e695 | [] | no_license | RuslanLytvynov/University_WIT | 35eb3a0622d76907fead57e63e625edfa6ac1b33 | b75ee4bc0e16ccaa9abf8b50075ff64ea6e87a52 | refs/heads/master | 2021-03-12T10:56:17.579139 | 2020-12-06T11:49:18 | 2020-12-06T11:49:18 | 246,613,927 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,145 | cpp | 6.cpp | #include <cstdio>
#include <cstdlib>
///*********************************************
int MyRead(char*);
void* MyStruct01(double, int);
double ReadStruct01Double(void*);
double ReadStruct01Int(void*);
///*********************************************
int MyRead(char *myStr){
int x;
printf("%s", myStr);
scanf("%d",... |
9d1dcd97ea7788272f736c32b2d0573f377e7b73 | 0cdd246dbede4413f9b7d1c58be83103bd2af35f | /01 - Iniciante/1002 - Area do Circulo/problem1002.cpp | e4dddeb3dea13571a930e4438a80ab00307d3f72 | [] | no_license | alexandretannus/problemas-uri | 8e09ba4e4f120c946d75f7c5b776215393743286 | dd2fd3d44f98a2c8abd44f7554bf85ff5b07af51 | refs/heads/master | 2023-04-22T18:23:28.428534 | 2021-05-04T18:54:04 | 2021-05-04T18:54:04 | 360,863,796 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 323 | cpp | problem1002.cpp | /*
URI Online Judge
Problema 1002 - Área do Círculo
https://www.urionlinejudge.com.br/repository/UOJ_1002.html
*/
#include <iostream>
using namespace std;
int main() {
double pi = 3.14159;
double R, A;
scanf("%lf", &R),
A = pi * R *R;
printf("A=%.4lf\n", A);
return 0;
... |
6f090b210a88bc67e9dc92090461f576d6db1999 | 3f2fdc017bdc2ebfbf85d2de49daf616fd84208a | /Graphs/Graph.cpp | 66202194cb555d411a4fa0e13f0bfa5f211b8143 | [] | no_license | panichevd/Graphs | 49135c0c9420066676e4d17b953c0d950cbd4084 | d37d4f7050737841b98e2d8746438ca76782f120 | refs/heads/master | 2021-01-19T05:22:12.188969 | 2013-11-14T18:39:01 | 2013-11-14T18:39:01 | 14,402,192 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,227 | cpp | Graph.cpp | /// Contains Graph related classes implementation
#include "Graph.h"
// This function generates a random double between dMin and dMax
double GenerateRandomDouble(double dMin, double dMax)
{
double d = static_cast<double>(rand()) / RAND_MAX;
return dMin + d * (dMax - dMin);
}
Edge::Edge() : m_startVertex(UINT_MAX)... |
e78f68d0817a83c3d34c2f0d56cbb62140d88bd0 | 17041c8e6a40b6a1b4d3b98efa06209a6789a921 | /Basics of Programming/03_function_and_arrays/04_any_base_to_any_base.cpp | 4cbf8ca9988805289467a8fb1c723f7d38d3aa0e | [] | no_license | ravi956/pepcoding-level1-in-cpp | 5c93d56e3ae030bd118af0e37fe7df02db004fa3 | 7f6e880668a0556af0ec0a0644df3475213dda83 | refs/heads/master | 2023-03-11T00:56:53.043629 | 2021-03-03T07:00:03 | 2021-03-03T07:00:03 | 294,654,788 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 572 | cpp | 04_any_base_to_any_base.cpp | #include <iostream>
using namespace std;
int solve1(int n, int b)
{
int res = 0;
int mult = 1;
while (n != 0)
{
res += (n % 10) * mult;
mult *= b;
n /= 10;
}
return res;
}
int solve2(int n, int b)
{
int res = 0;
int mult = 1;
while (n != 0)
{
res ... |
9e3d5c9e89406bd6a563192eea7b0512f7181399 | 3e2adefabc228c97132a8256d404a51fb45ba628 | /DestructibleMap/transition/IResource.h | 7ba1501d86c5727879a60f3d9b75974060540f73 | [] | no_license | metzzo/ogl_destructible_map | 466312bcd8ce54ab1b3c80f95ce0c97ea2925956 | afbdd45c0989c31635811225d57935bc38c725d2 | refs/heads/master | 2021-05-07T02:32:33.607219 | 2018-01-21T21:52:22 | 2018-01-21T21:52:22 | 110,590,331 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 144 | h | IResource.h | #pragma once
class IResource
{
public:
virtual ~IResource() = default;
virtual int get_resource_id() const = 0;
virtual void init() = 0;
};
|
ad6f916636dcbe7cdabf4a509807320ea67e57ae | 9c8dd34e0080fc51723cb5135f606a119ec7d3a6 | /Src/cell.h | f34d440e54f72f3382beb46fa638c89f3453602d | [] | no_license | AlexKolodezny/2D-PathPlanning | b41ab177109c9da2a50ae8f425a71cb46b7b368f | 34aebe3f4483bd0579c7a053c06b8cd490970cca | refs/heads/master | 2023-04-26T11:06:41.380043 | 2021-05-17T18:18:32 | 2021-05-17T18:18:32 | 308,302,530 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 696 | h | cell.h | #ifndef CELL_H
#define CELL_H
#include <utility>
using Cell = std::pair<int, int>;
inline Cell operator+(Cell c1, Cell c2) {
return {c1.first + c2.first, c1.second + c2.second};
}
inline Cell operator-(Cell c1, Cell c2) {
return {c1.first - c2.first, c1.second + c2.second};
}
inline Cell operator*(Cell c, ... |
963eb96b77a30f3ae2dd9b7149eb1432f64db739 | 7f8781061560b266d9474fb5826915f3a632cf8e | /Chapter1/Exercises/ex.1.22.cpp | 0fe4f1c721b881f8ceb70f2748db40712a6e65b5 | [] | no_license | anthonysnelling/Cpp-exercises-from-Cpp-Primer-5th-ed | 406e0b272f5f902a03ac212d56e4b142eab2a4c9 | 26089be21f18db4c167afa78406a8089b9f22e2a | refs/heads/master | 2022-03-16T17:24:14.404337 | 2022-03-04T04:05:29 | 2022-03-04T04:05:29 | 231,874,724 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 417 | cpp | ex.1.22.cpp | #include <iostream>
#include "../Bookstore/Sales_item.h"
int main(){
Sales_item value, firstVal;
// tales in first value to preserve ISBN
std::cin >> firstVal;
// start a loop with that takes values
while (std::cin >> value)
{
// add new values of the same ISBN
fir... |
4092c9a5ee820e221feb1b7f6e21e62a000fb336 | 4a25372ebed03096119b66f2dfe6dbc14ec442ed | /labs/1142/Vinogradow.Aleksey/5/fs_utils.h | e446b270b79fe542b229085ad6396803a2a93971 | [] | no_license | gumeniukcom/aptu-os | 218af3df72960db4ecd211ddccb51a03064e9625 | 4f4013f3495fb5781cda4696dde2809703bb78d9 | refs/heads/master | 2021-05-30T16:35:47.182087 | 2014-12-19T07:07:56 | 2014-12-19T07:07:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,693 | h | fs_utils.h | #include "inc.h"
#define file 0x1
#define dir 0x2
#define del 0x4
std::string open_dir(char * buffer, int size_block, int data_size, std::string put);
int inf_file(char * s_type, char * buffer, int buffer_length, std::string name_f, int * file_length, char * t_year, char * t_mon, char * t_mday, char * t_hour, char * ... |
27e48a7db3647aa81fc72b41b4b82eb83387345e | 0574237636f4d9ee0099f77c79adf182ce69419d | /TopCoder/SquaredSubsets.cpp | 8ac517a88a30b9dfe82662840c0fb3fcc1f3753b | [] | no_license | andreicoman11/code | 77359bccd7cc451d6db5edbfea9b2bf81f44250f | c0e318e7c7e192f1d90e82e2468344b6a27a310f | refs/heads/master | 2020-05-27T05:08:22.332100 | 2014-12-19T01:39:41 | 2014-12-19T01:39:41 | 28,082,193 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,996 | cpp | SquaredSubsets.cpp | // BEGIN CUT HERE
// PROBLEM STATEMENT
//
// Given a set of points in the XY plane and an integer n, a
// subset P of those points is called n-squared if it is not
// empty and there exists a square of side n in the XY plane
// with its sides parallel to the axes such that a point from
// the given set of points i... |
e7f28cb8f6af3f3b047021508f963a3208320cba | 45874c847c5a2fc4e89e05a7fc8ad9b63d8c4860 | /clang/test/SemaSYCL/accessor_inheritance.cpp | 76a124f9d174970c2b528dd6734805fd76f526e2 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | intel/llvm | 2f023cefec793a248d8a237267410f5e288116c5 | a3d10cf63ddbdcc23712c45afd1b6b0a2ff5b190 | refs/heads/sycl | 2023-08-24T18:53:49.800759 | 2023-08-24T17:38:35 | 2023-08-24T17:38:35 | 166,008,577 | 1,050 | 735 | NOASSERTION | 2023-09-14T20:35:07 | 2019-01-16T09:05:33 | null | UTF-8 | C++ | false | false | 3,534 | cpp | accessor_inheritance.cpp | // RUN: %clang_cc1 -fsycl-is-device -internal-isystem %S/Inputs -ast-dump -sycl-std=2020 %s | FileCheck %s
// This test checks inheritance support for struct types with accessors
// passed as kernel arguments, which are decomposed to individual fields.
#include "sycl.hpp"
sycl::queue myQueue;
struct AccessorBase {
... |
817630fcd104c9054f2b60e8e8c30eaf5ad65798 | fd52c85eb60d4fab8122dad8b47c0ab039e5903b | /Project-Euler/Q7-10001st-Prime/Q7.cpp | 12ddf5f43f1d6626b062e66ed3a7ea3fe50f461f | [] | no_license | CT-Clark/Project-Euler | 00a38f48ff8266524f9546515586c4db25aa43af | 8511b1f8a6d3c15487e64a2b88df9fc9a4b2af0a | refs/heads/master | 2021-09-07T02:27:36.056443 | 2018-02-15T21:02:54 | 2018-02-15T21:02:54 | 109,061,834 | 0 | 0 | null | 2017-10-31T23:54:22 | 2017-10-31T23:10:08 | Java | UTF-8 | C++ | false | false | 1,119 | cpp | Q7.cpp | /*
By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.
What is the 10 001st prime number?
*/
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
using namespace std;
int main()
{
cout << "Program starting...\n";
char found = 0;
long maxPrime = 2; // Alr... |
458450fea7f4fc1701efeb205c1597716b88e8c2 | d8bf559174f339be3489407ed7485630c52a2ae0 | /JojobaScript.cc | ce6497a229a2f44bf1d80cf2318c0d491a9e7acc | [] | no_license | Tenchumaru/JojobaScript | 9435dba2858c0f13ba11de801fb5b1a639bd9ca1 | 2f625674aa3970030170f6a77851e638a32d3a98 | refs/heads/main | 2023-09-01T19:43:13.645717 | 2023-08-25T00:42:39 | 2023-08-25T00:42:39 | 318,090,358 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,151 | cc | JojobaScript.cc | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include "JojobaScript.h"
void add_symbol(char const* id, int expr /*= 0*/) {
id, expr;
}
void emit(int expr /*= 0*/) {
expr;
}
int get_value(char const* id) {
id;
return 0;
}
int yyparse();
extern FILE *yyin, *yyout;
static int usage(char const* prog) {... |
1658448cbaa15805c961ff9df5b0436847d439a8 | 1fe234f118d0173388821a6c158644d3da784b02 | /Iteration 3 (Supernova Engine)/Source/Game Objects/Projectile.cpp | ef17ae2067e27773052e20a09c006b1cdddaf8e9 | [] | no_license | nitro404/Asteroids | c7fbe663167efa6058c80d419afd98300a27c003 | 6e7cbe45422de25806bdb926d84ef58ab673a3a4 | refs/heads/master | 2020-06-03T04:03:55.669885 | 2015-01-17T19:44:34 | 2015-01-17T19:44:34 | 20,612,518 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,514 | cpp | Projectile.cpp | #include "Game Objects/Projectile.h"
#include "Game Objects/SpaceShip.h"
const float Projectile::projectileSize = 4.0f;
const float Projectile::projectileSpeed = 9.0f * 60.0f;
Projectile::Projectile(const SpriteAnimation * animation, const SpaceShip * projectileSource, const Vector2 & position, float rotation)
: Ani... |
35d4d31de0a01dfa40954a215273fbdb8a6f10d3 | 12aec61045b721b2c41ef2c1a37c5f9448c39eaa | /Chapter01/Code/RigidbodyVolume.cpp | 07591b7774bdb0a5ef364a74328d589cbc4a0134 | [
"MIT"
] | permissive | PacktPublishing/Game-Physics-Cookbook | fef90491b17d537c1351a167ec2c6763bc89018e | 8be4528261e9d8959d2da1bded06e31f08025b4e | refs/heads/master | 2023-01-22T13:12:15.819599 | 2023-01-18T09:50:06 | 2023-01-18T09:50:06 | 85,280,473 | 64 | 22 | null | null | null | null | UTF-8 | C++ | false | false | 6,573 | cpp | RigidbodyVolume.cpp | #include "RigidbodyVolume.h"
#include "Compare.h"
#include "FixedFunctionPrimitives.h"
void RigidbodyVolume::ApplyForces() {
forces = GRAVITY_CONST * mass;
}
#ifndef LINEAR_ONLY
void RigidbodyVolume::AddRotationalImpulse(const vec3& point, const vec3& impulse) {
vec3 centerOfMass = position;
vec3 torque = Cross(p... |
36335764817a323dbcb8062ec740c2a5df58c624 | aaaef8b3813901c440463ce34d83c35d3c16ff50 | /Week3_Labwork.cpp | 36af6ece77fd7c9e3611a0f53f62b5b3c3382a5c | [] | no_license | harry-sunhao/CMPT135Labwork | 0decb4ea0ccf214044aa0687bfcce4f5a3f6b48b | d75cbb655236bb0414f70c1ae60b05cc491b36ab | refs/heads/master | 2021-06-22T05:33:20.384593 | 2021-01-22T23:47:59 | 2021-01-22T23:47:59 | 185,486,484 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 23,397 | cpp | Week3_Labwork.cpp | #include <iostream>
#include <cmath>
using namespace std;
class RationalNumber
{
/*
This class is designed to represent Rational Number objects.
A rational number is a number of the form a/b with integers
a and b such that b is different from 0.
*/
private:
int a, b;
public:
//Constructors
... |
31b6c04682eda339e6caf14510a48c24e49d480f | 0b2fb9d1fb6a2ec3574ce5e02bd3b57de7b5a10f | /Raspberry Pi Computations - ticket #3/audioprocessingtests.cpp | 97335a1f12dd0974ff60fdea4ba53884d55ae184 | [] | no_license | suhailshakya/Device-Tracker | 9fe9bce86548f5e0c058754fc686c55d052940ff | 6cd7dc80260e2cd858f6dad0d6c9fe4dd35965dc | refs/heads/master | 2020-08-30T11:05:09.487357 | 2019-11-14T17:09:32 | 2019-11-14T17:09:32 | 218,360,606 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,102 | cpp | audioprocessingtests.cpp | #include <iostream>
#include "audioprocessing.h" //inlude audioprocessing
int main(){ //runs 9 tests prints describes what they are
printf("Test 1: Check if inverse sqaured algorithm with 30 decibels has correct output\n");
double result1 = inverseSquare(30);
double rounded1 = (int)(result1 * 100... |
6de9981d9d92c084de057a51cde7e9a8f3532099 | 9fc625128aae3d1a472a0b4881d0745bc929783a | /OOP/C++/Lessons/Constants and Refferences/point.cpp | e2754d271b73f3150468104a9aabac83eb79a541 | [] | no_license | marianbitsov23/TuesWork | 8a7e00440244e2c6a30d12e1892ab99518745a1a | c263efdea0afcaa97fafc485946722efbb514e62 | refs/heads/master | 2021-03-21T03:14:58.793188 | 2020-03-14T11:11:53 | 2020-03-14T11:11:53 | 247,259,472 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,397 | cpp | point.cpp | #include <iostream>
using namespace std;
class Point{
public:
class Line {
int length;
public:
Line(int length){
this-> length = length;
}
void set_lenght(int lenght){
this -> length;
}
};
private:
double x;
double y;
Line l = Lin... |
6223ef62a2d29e724c389b7e1cdb56bb993c7de7 | 722a4161f27e76986cac1675d8b0210d705fd41e | /test02.cpp | 440c8140e10cfb62ba010b1c3a247b365b4a9b4c | [] | no_license | tomblackwhite/testCpp | f0bfeaccc578c82a1ac37aef994d7696397ed647 | 2f557ad471d8638135587ec568d6062c40b28eee | refs/heads/master | 2020-04-14T15:09:59.115490 | 2019-01-03T01:48:06 | 2019-01-03T01:48:06 | 163,917,550 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 401 | cpp | test02.cpp | #include<iterator>
#include<iostream>
#include<algorithm>
#include<vector>
#include<list>
#include<string>
#include<numeric>
using namespace std;
int main()
{
vector<int> vecint{1, 2, 3, 4, 4, 5, 5, 6};
list<int> lisint;
unique_copy(vecint.cbegin(), vecint.cend(), back_inserter(lisint));
for_each(lisint... |
fc84a239d0dd84008c52d50f843644aac253e479 | 6632df669a7cbd4af9a6405e7d1dd1363c05e44e | /src/convert.cpp | 8786757cb266be071e1e380af4d3ae8d965abfcb | [
"MIT"
] | permissive | KentaKawamata/estimatePose_ArUco | 81677bb5a89b3d6afa820945223fa4de745abc60 | 49b2812aa71b4fe7df42a13f7356df9108966331 | refs/heads/master | 2020-04-22T01:30:10.664244 | 2019-07-11T20:10:17 | 2019-07-11T20:10:17 | 170,016,037 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,985 | cpp | convert.cpp | //
// Created by kawa on 9/30/18.
//
#include "convert.hpp"
ConvertPCL::ConvertPCL() :
camera_matrix (cv::Mat_<double>(3, 3)),
dist_coeffs (cv::Mat_<float>(1, 5)),
degree (180/3.1415926),
count (0)
{
load = new loadParams();
setupParams();
startSenser();
setupArUco();
}
Conve... |
d55c1fcdd4633572b78045d1730490795fc7ba59 | 2f10f807d3307b83293a521da600c02623cdda82 | /deps/boost/win/debug/include/boost/fusion/include/value_of.hpp | 3445e801d42394255a846d3e677c7eb1916f3641 | [] | no_license | xpierrohk/dpt-rp1-cpp | 2ca4e377628363c3e9d41f88c8cbccc0fc2f1a1e | 643d053983fce3e6b099e2d3c9ab8387d0ea5a75 | refs/heads/master | 2021-05-23T08:19:48.823198 | 2019-07-26T17:35:28 | 2019-07-26T17:35:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 128 | hpp | value_of.hpp | version https://git-lfs.github.com/spec/v1
oid sha256:17f4761ea125906dc6fef2b6ed70b40c1fc81309175d2097b2272f6267d141ad
size 528
|
a6daf415985376c55ebcfccbbce62a9429ad1520 | 1b1fafc76d5be4735c0478a070852b39b5e9ae45 | /mwextractor/mwextractor/function/quality/AveragePrecision.h | 84d9cf68382b4edcff117f359cadc34191b8d2fa | [] | no_license | MGniew/MeWeX | 19ca5b15cc9086351b8c2c28b0bf3a9d01672585 | 5d0bba8a2e0312a7ee3f031c4bdf26bf87317f91 | refs/heads/master | 2020-03-30T09:35:58.851232 | 2018-05-16T08:42:12 | 2018-05-16T08:42:12 | 151,082,416 | 0 | 0 | null | 2018-10-01T12:10:31 | 2018-10-01T12:10:31 | null | UTF-8 | C++ | false | false | 792 | h | AveragePrecision.h |
#pragma once
#include "QualityFunction.h"
namespace function
{
namespace quality
{
class AveragePrecision : public QualityFunction
{
public:
AveragePrecision(size_t pLength = std::numeric_limits<size_t>::max());
AveragePrecision(AveragePrecision&& pAveragePrecision) = default;
AveragePrecision(AveragePr... |
7204a76410cae8fa91201d9cf089822278416cc3 | 62d33fa0eca8c0145611cd0efe6e9c4d8bb8b378 | /Uva/11044.cpp | 5be5a255d2e5dde502ed42930f59e903ab071247 | [
"MIT"
] | permissive | yousefalaa2021/OJ | da085e3eba1c80b7998c471bd3aed71d774985f2 | 67d1d32770376865eba8a9dd1767e97dae68989a | refs/heads/master | 2023-03-15T20:16:56.439701 | 2019-05-01T11:29:10 | 2019-05-01T11:29:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 189 | cpp | 11044.cpp | #include <iostream>
using namespace std;
int main()
{
int n,a,b;
cin>>n;
for(int i=1;i<=n;++i)
{
cin>>a>>b;
cout<<(a/3)*(b/3)<<endl;
}
return 0;
}
|
0d50b9a31d31e1ba8965f41b5d3a7a8573d72e0d | 481ae6d14e8e4eeb82f6681f120b9d0eca790997 | /Game Engine/src/math/vec2.h | df967ebf696154212b924b79c33f9f9e4de26704 | [] | no_license | himizu0/Game-Engine | 739fb3d3646cfffa8683171230138f42114f45e0 | bf3c0c69a70da99bfff58ab400061166195968ec | refs/heads/master | 2020-04-04T15:42:59.174352 | 2018-11-04T04:24:12 | 2018-11-04T04:24:12 | 156,049,310 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 755 | h | vec2.h | #pragma once
#include <iostream>
namespace engine { namespace math {
struct vec2 {
float x, y;
vec2(float x, float y);
friend std::ostream& operator<<(std::ostream& stream, const vec2& vector);
friend vec2 operator+(const vec2& left, const vec2& right);
friend vec2 operator-(const vec2& left, const vec2& ... |
2afb5269166314fd8bb4d52029df28025b53599b | b0f05f7623d9c267b80492c8d97a5085136d90f7 | /Move Zeroes_283.cpp | 08f39e11211349239d49d7f226eefc584a37d0fa | [] | no_license | dex046/myleetcode | f73fd83ff744d82eb40d344dd8cd62ed15e4814d | feef4063a311e6b82ccaec51e6ccb4f99390100f | refs/heads/master | 2021-01-20T20:37:06.540394 | 2016-08-13T04:45:46 | 2016-08-13T04:45:46 | 62,146,671 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 556 | cpp | Move Zeroes_283.cpp | class Solution {
public:
void moveZeroes(vector<int>& nums) {
auto iter = remove(nums.begin(), nums.end(), 0);
fill(iter, nums.end(), 0);
}
};
class Solution {
public:
void moveZeroes(vector<int>& nums) {
int size = nums.size();
for(int i = 0; i < size; )
{
... |
0c813cc7a25d190355b90c5c1415c0cfa291c89e | fcebebc9e513fbe7642904e34abdfaa6e4fbaf7a | /src/paths.hpp | 3b94f5a8bd6cd9f80878a54555507a64f8a457a6 | [] | no_license | lucaspbordignon/Trabalho2_ED | f00636174cac6b23708dcb55a70bb0871d84f342 | 5f994f2cfdb6dfed6dc5f98ffc42f4a19d86a925 | refs/heads/master | 2021-06-11T09:46:19.293189 | 2016-12-06T01:05:04 | 2016-12-06T01:05:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 328 | hpp | paths.hpp | #ifndef PATHS_HPP
#define PATHS_HPP
#include <string>
const std::string MANPAGES = "../resources/man_pages.dat";
const std::string MPTREE = "../resources/mp_tree.dat";
const std::string INVERTED_INDEX = "../resources/inverted_index.dat";
const std::string INVERTED_INDEX_TREE = "../resources/inverted_index_tree.dat";
... |
e540dc8c5383351eff294221226560ec632fb08d | b5ce4c317c007adbf2305ae919e3fc4bd0427a41 | /bvm/Shaders/Math.h | d8eaff7cb634ea3d7c34a91caf7b54053d0e16e9 | [
"Apache-2.0"
] | permissive | cowry-capital/cowry-coin | 07871f1806b3bb131f8380ce2613b340dfb05c72 | c0fbf73b602d7e82c935cd9a469de855e57400c0 | refs/heads/master | 2023-08-10T16:07:33.772107 | 2021-10-08T14:15:22 | 2021-10-08T14:15:53 | 415,245,435 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,944 | h | Math.h | // Copyright 2018 The Beam Team
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
5ae9ba359c00cbcc2bf0c23484706784bda8b6c3 | 9fe77995b540ed09d46aff39340d3d5051564ad1 | /AppleIntelAC97Controller/ICH4_AC97Controller.cpp | 485e6840f95c72e82d1f380e7f0da0e701b0635e | [] | no_license | Quantum-Platinum-Cloud/AppleIntelAC97Driver | c9dff31655f516a88ee0710d78bfabf39555e997 | e673fdea35c602010e0fe907fab7a05b34cb7489 | refs/heads/main | 2023-08-22T10:07:36.525849 | 2003-10-24T22:24:25 | 2021-10-06T04:40:02 | 589,306,789 | 1 | 0 | null | 2023-01-15T18:45:13 | 2023-01-15T18:45:12 | null | UTF-8 | C++ | false | false | 6,237 | cpp | ICH4_AC97Controller.cpp | /*
* Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Sou... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.