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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4f6590c04fb2a954609ad1241208e7fb7201a079 | 7cad9eddd20ba6db557598466b54885524b2ce0b | /Drivetrain/TestFile/TestFile.ino | 7b0b821d574507a6f2b1e0a18b2e4b7e3b569187 | [] | no_license | UCLAX1/BruinBot-Controls | 3c432953489e57c3be1dda4dcc3b7a405b216389 | cbd3e5ccf0ddea47f01f28c940ef377572978354 | refs/heads/master | 2022-07-09T02:46:06.227931 | 2022-06-09T02:01:53 | 2022-06-09T02:01:53 | 243,472,494 | 0 | 1 | null | 2022-04-22T17:59:00 | 2020-02-27T08:47:45 | C++ | UTF-8 | C++ | false | false | 207 | ino | TestFile.ino | #include <Servo.h>
int SERVO_PIN = 9;
Servo myservo ;
void setup() {
Serial.begin(9600);
myservo.attach(SERVO_PIN);
}
void loop() {
delay(200);
myservo.write(10);
}
|
e8cdd7a1883bf04a2dce6b66f40b48e1d8578d1a | 844fd8528d5c839c0660dd0de367cb050a6b6694 | /main.cpp | 5e42bc6674f87360aee635713233dbaee6b5b152 | [
"BSD-3-Clause"
] | permissive | MiguelMendozaG/vpl | 2b619da17d3839ab69ddbaee66367416f36a11f1 | cd46f23af8806371661342d82af8ed251a3842a0 | refs/heads/master | 2021-09-19T18:54:21.327100 | 2018-07-30T20:22:04 | 2018-07-30T20:22:04 | 113,601,726 | 0 | 0 | null | 2017-12-08T17:48:08 | 2017-12-08T17:48:08 | null | UTF-8 | C++ | false | false | 6,196 | cpp | main.cpp | #include <iostream>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
#include <pcl/filters/voxel_grid.h>
#include <vector>
#include <pcl/correspondence.h>
#include <pcl/search/kdtree.h>
#include <pcl/visualization/cloud_viewer.h>
#include <pcl/io/io.h>
using namespace std;
typedef pcl::PointXYZ pointType;
typ... |
111e06d8da06d0a07531e4fcfba074c76f27786c | 3aade8553e7a07134cf53e4e49b65360f58ba06a | /collection/cp/Algorithm_Collection-master/generate_next_permutation.cpp | 4daecd7fa6031435394c015d7da611aa24212339 | [
"Apache-2.0"
] | permissive | bruler/Notebook | beb529f027816abda776a88f36bfc5051fcc5880 | a9880be9bd86955afd6b8f7352822bc18673eda3 | refs/heads/master | 2021-06-13T17:25:22.460991 | 2017-04-07T18:42:25 | 2017-04-07T18:42:25 | 73,064,126 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,181 | cpp | generate_next_permutation.cpp | /*Analysis:
Well, this is more like a math problem, and I don't know how to solve it.
From the wikipedia, one classic algorithm to generate next permutation is:
Step 1: Find the largest index k, such that A[k]<A[k+1]. If not exist, this is the last permutation. (in this problem just sort the vector and return.)
Step... |
ca5f56f9a592f5943ff01186d71a12ebf61c8860 | 580e530b5b21f96ebeb97c93d37257b863792bf1 | /cpp/src/data_structures/intersections/intersections.cpp | 0931e8fdd7eb1e752928fdccb5817d08124c41cf | [
"MIT"
] | permissive | LawrenceRafferty/ray-tracer-challenge | 05273fb0ef74a21a8066094b198463c9946c7a8e | f54dfd4eb717e44c9e313be4bd28f8fad00094d0 | refs/heads/master | 2021-07-01T10:26:39.834636 | 2020-10-28T07:05:01 | 2020-10-28T07:05:01 | 188,644,524 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,651 | cpp | intersections.cpp | #include "./intersections.h"
using data_structures::world;
using shapes::shape;
namespace data_structures
{
intersections intersections::find(std::shared_ptr<const shape> object, const ray &r)
{
auto tValues = object->intersect(r);
auto tValuesWithTheirObject = std::vector<intersection>();
for (auto tValue : tValu... |
31d4114ce81d30903463a5657fd4225892d35454 | d37b74c5e4a66863eb47ebab89e6f9ab112be0ef | /SwordPlay/Incude/Tokamak/math/ne_math.h | e15f8702552d1e9dbc95f7abad81949f9d0ea20d | [] | no_license | Ionsto/SwordPlay | e44b4d961b5c7c3ecb17e0ed62d005d47c811680 | 808f0079504fa47e3176386a17b86349f28eed2c | refs/heads/master | 2016-09-10T22:10:37.397294 | 2014-12-13T23:32:12 | 2014-12-13T23:32:12 | 25,430,614 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,288 | h | ne_math.h | /*************************************************************************
* *
* Tokamak Physics Engine, Copyright (C) 2002-2007 David Lam. *
* All rights reserved. Email: david@tokamakphysics.com *
* ... |
7285105e864414531787d5ef50125093443b850e | 3ad9b096e235bebec814e9d6bd0bea9473a24f2d | /src/avt/Pipeline/Data/avtLightingModel.h | 06d17619e36c93e5f42650ddd728c18037e1ae3b | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | larrycameron80/visit | bca20089d4642fc9e40f605404bc5408ef4c465f | e20e2ddbec3b0ceb611a0588898f652432165a24 | refs/heads/develop | 2020-06-05T09:28:16.704247 | 2019-06-14T22:02:59 | 2019-06-14T22:02:59 | 192,389,674 | 0 | 0 | BSD-3-Clause | 2019-09-17T07:05:10 | 2019-06-17T17:23:31 | C | UTF-8 | C++ | false | false | 5,226 | h | avtLightingModel.h | /*****************************************************************************
*
* Copyright (c) 2000 - 2019, Lawrence Livermore National Security, LLC
* Produced at the Lawrence Livermore National Laboratory
* LLNL-CODE-442911
* All rights reserved.
*
* This file is part of VisIt. For details, see https://visit.llnl... |
adcf0eb48916419a61d71267bc02b3c79b3c9dbc | ac7683edcdfddf481a704bd02e334d1d695aea3a | /bbtoDijetAnalyzer/plugins/bbtoDijetAnalyzer.cc | 2fc1b60fe10d27cc7bb8181e512092877fd4c9f6 | [
"MIT"
] | permissive | avkhadiev/bbtoDijet | cf4884f2b71e6abb593332d0a0437e00e347ff1d | d04c4c150ed21a0b51344410a01deeff36aa04f6 | refs/heads/master | 2021-01-17T08:11:55.336927 | 2016-08-09T15:03:25 | 2016-08-09T15:03:25 | 63,870,509 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29,981 | cc | bbtoDijetAnalyzer.cc | // -*- C++ -*-
//
// Package: bbtoDijet/bbtoDijetAnalyzer
// Class: bbtoDijetAnalyzer
//
/**\class bbtoDijetAnalyzer bbtoDijetAnalyzer.cc bbtoDijet/bbtoDijetAnalyzer/plugins/bbtoDijetAnalyzer.cc
Description: collect b-tagging data (online and offline), calo and pf jet kinematics, and trigger results
Imple... |
e084ae712e9f93c8949ded0740eddcfbcc17f950 | 7dc67a956d5516c8c8d9234861ec21b8d9111213 | /Leet2015/Leet2015/ReadNCharactersGivenRead4II.cpp | 1073e237cbba3c5a727195c574f6ea2fb0dedc6f | [] | no_license | flameshimmer/leet2015 | 285a1f4f0c31789e1012a7c056797915662611ba | 45297dfe330a16f001fb0b2c8cc3df99b2c76dda | refs/heads/master | 2021-01-22T05:15:40.849200 | 2015-08-15T19:46:43 | 2015-08-15T19:46:43 | 31,512,278 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,312 | cpp | ReadNCharactersGivenRead4II.cpp | #include "stdafx.h"
//The API : int read4(char *buf) reads 4 characters at a time from a file.
//
//The return value is the actual number of characters read.For example,
//it returns 3 if there is only 3 characters left in the file.
//
//By using the read4 API, implement the function int read(char *buf, int n)
//tha... |
e207044189aa9d860126cbdfd809040ea4a0a46d | 877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a | /app/src/main/cpp/dir521/dir522/dir572/dir2774/dir2775/file2795.cpp | cf50a34532cb9a929013281c9daadde1034e7b32 | [] | no_license | tgeng/HugeProject | 829c3bdfb7cbaf57727c41263212d4a67e3eb93d | 4488d3b765e8827636ce5e878baacdf388710ef2 | refs/heads/master | 2022-08-21T16:58:54.161627 | 2020-05-28T01:54:03 | 2020-05-28T01:54:03 | 267,468,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 111 | cpp | file2795.cpp | #ifndef file2795
#error "macro file2795 must be defined"
#endif
static const char* file2795String = "file2795"; |
82dddcbda0c811c78d5272aba5332e2d828bce56 | ffbfa3316a8ba24d056e871e06f7452f20417fa5 | /git-toy-compiler/main.cpp | d95643fe87c8deaeb46fac336b8e9c28d19d2f28 | [] | no_license | metabolean5/toy_compiler | 76bf245a55c0a961fcdaab6d3a16329a620134e0 | c89e1fe7be75f6a7461fec1a5d7dc2a49bae3e54 | refs/heads/master | 2020-04-29T14:16:31.955275 | 2019-03-19T21:42:49 | 2019-03-19T21:42:49 | 176,191,481 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,029 | cpp | main.cpp | #include <stdio.h>
#include <streambuf>
#include <algorithm>
#include <string>
#include <fstream>
#include <iostream>
#include "lexer.h"
#include "lexer.cpp"
#include "parser.h"
#include "parser.cpp"
#include "token.h"
#include "visitor.h"
#include "visitor.cpp"
using namespace std;
int main()
{
ifstream t("... |
c867b6a6c9418ef0ce0401cbe4522c67c5eb9c2c | 7fa042fd796262090d4e8c10e1dd0616aee4461b | /301-400/387_FirstUniqueCharacterInAString/solution2.cpp | 9f224019f2f919ef0f5cc53a6f380b71eab9bf2a | [] | no_license | luowanqian/LeetCode | 81c4e2afb6e74d3bb8112faa7347c2bc8d42911c | 76896b644d6d9ccb9bbdb474331e23ecdc4a3e60 | refs/heads/master | 2023-07-07T02:38:15.977746 | 2023-07-06T14:46:56 | 2023-07-06T14:46:56 | 126,608,748 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 681 | cpp | solution2.cpp | #include <iostream>
#include <string>
#include <vector>
using namespace std;
class Solution {
public:
int firstUniqChar(string s) {
int res = s.size();
vector<int> idxes(26, -1), counts(26, 0);
for (int i=0; i<s.size(); i++) {
int num = s[i] - 'a';
counts[num]++;
... |
b5ed36433fbed965dd435621a6ed4aa0203f1b7f | 2d98dfa782d988405f7374604380806e618295ff | /SKvideo.h | 824a1df9fa0ce5c67c07b50ab29f46d37a5e1f6a | [] | no_license | mlashcorp/skaut-backend | 3335c5071218038fae3123a3e8d09b3f7ce92d96 | ec8ef2b5a56887a52337e7d7d397d73a023d0cf0 | refs/heads/master | 2020-05-27T16:38:08.485989 | 2014-06-22T14:01:31 | 2014-06-22T14:01:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 807 | h | SKvideo.h | /*
* File: video-tools.h
* Author: cortereal
*
* Created on July 28, 2013, 11:48 AM
*/
#ifndef VIDEO_TOOLS_H
#define VIDEO_TOOLS_H
#include "opencv2/highgui/highgui.hpp"
#include <queue>
//These define the pre and after alarm event buffer sizes (4.5 seconds each at 30FPS)
#define VIDEO_BUFFER_SIZE 125
#define ... |
91690389d5ac8c02a741b835adb70ee0bcb57aa4 | 0377a14136dd2ef226b96b0fb55d5b30cf943135 | /Cryptonite/multithreading.cpp | 85ed2693c190c1f9fc7f22bdc2eb4624fbbb5c18 | [] | no_license | FakeEmperor/Cryptonite | d406818a6abe446d0d08d48b0358d3240a7151bf | e1217ad81b3e16b5e9277fa129804c5274979aff | refs/heads/master | 2021-01-13T02:37:18.022905 | 2014-05-30T00:24:39 | 2014-05-30T00:24:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,704 | cpp | multithreading.cpp | #include "multithreading.h"
/*********** EVENTINFO Class (info for event class) ***************/
Multithreading::EventInfo::EventInfo():
type(EV_NONE), code(0), data(NULL), handle((HANDLE)CreateEvent(NULL, FALSE, TRUE, NULL)), mutex((HANDLE)CreateMutex(NULL, FALSE, NULL))
{
};
Multithreading::EventInfo::EventInfo(cons... |
c88736f1d69ffd85caaae9039e195ed214ca06ff | 2665a15e2df499310831b1e9b4546a75a562661e | /GApplication.cpp | 1e8a05e89929cc9f12ce99857fe0296c3352e33a | [] | no_license | RaymonSHan/GLdb | 3c6c92c47932f29c183fd6acd927ab73f5d4a4f4 | 9e4bab88a98f0b9269366b661ada9793cb00ab4a | refs/heads/master | 2020-05-19T19:44:07.613950 | 2015-04-30T07:23:31 | 2015-04-30T07:23:31 | 29,387,223 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,068 | cpp | GApplication.cpp | /*
* GLdb APPLICATION implement file
*
* GLdb is a Multi-thread customed Key-Value No-SQL memory database.
* GLdb atomic insert voucher & update balance, provide interface for ERP.
* GLdb have its own Async IO system, support Windows & Linux by IOCP & epoll.
* GLdb request large memory, so only support 64bit syst... |
e54b01f5cd5b12bbe8ce47d3d6271dd43afd8232 | 790070309a3910e861ee2fd0d14e78edfe698ed6 | /board.h | 1e5862d64e38c4e91e343a8c5e5edef38c07c313 | [] | no_license | Jooeeee/Go-game | 301c2609a8600ccdf8bbba3c1ad6013a017efe04 | f648166faa2a7f5c69e7cae34c0b7ec40154ab08 | refs/heads/master | 2020-12-07T15:36:38.467961 | 2017-06-27T11:41:56 | 2017-06-27T11:41:56 | 95,550,854 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 139 | h | board.h | #pragma once
#include <QLabel>
class board : public QLabel//
{
Q_OBJECT
public:
board(QWidget *parent=0);
//~board();
};
|
7eb4ac324d4a65c819ce501c1957e14afb1b4a79 | 96fefafdfbb413a56e0a2444fcc1a7056afef757 | /MQ2Map/MQ2Map.h | 31172359879e01fe1cd562c0591cce0e60e70438 | [] | no_license | kevrgithub/peqtgc-mq2-sod | ffc105aedbfef16060769bb7a6fa6609d775b1fa | d0b7ec010bc64c3f0ac9dc32129a62277b8d42c0 | refs/heads/master | 2021-01-18T18:57:16.627137 | 2011-03-06T13:05:41 | 2011-03-06T13:05:41 | 32,849,784 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 3,301 | h | MQ2Map.h | #include <map>
using namespace std;
#ifdef ISXEQ
#include "ISXEQMap.h"
#endif
#define MAPFILTER_All 0
#define MAPFILTER_PC 1
#define MAPFILTER_PCConColor 2
#define MAPFILTER_Group 3
#define MAPFILTER_Mount 4
#define MAPFILTER_NPC 5
#define MAPFILTER_N... |
fa41e842390a5c1fd2aa2b6f6ddd62f5dc6857eb | 4da2af52dc3ca9673847792d1e6b40027077e638 | /zerojudge/b870.cpp | 32494d2ff11ec1a4caaf9567404514c615aaf3b2 | [] | no_license | LJH-coding/code | 64519594d335ecf74e92f68c3ffd7539e7951041 | d45c516287f121d187be9819baff844053c7df88 | refs/heads/main | 2023-07-15T02:41:23.688977 | 2021-09-05T14:33:00 | 2021-09-05T14:33:00 | 364,233,120 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,160 | cpp | b870.cpp | #include<bits/stdc++.h>
using namespace std;
#define int long long
#define IOS ios::sync_with_stdio(0),cin.tie(0),cout.tie(0)
#define endl '\n'
#define pb push_back
const int N = 1e5+5;
int a[N] = {},n,k,vis[N] = {};
vector<int>point;
bool check(int m){
point.clear();
memset(vis,0,sizeof(vis));
int cnt = 0;... |
359e7828b76b270ad7fa12c88e4ac6e3f9c2e6dc | c563c2c9a2e4634edd8112a6dec8980f0e21d855 | /MiniServer/Include/Protocol.hpp | 778e17c507d5cbc0b079b08293a922438f7693c1 | [] | no_license | Markyparky56/MiniServer | 2f2997192d0561bb168231d70e7b242aded246cb | 62b13406995003cd4aa5be6bb20753440c6eeab6 | refs/heads/master | 2020-06-14T19:42:54.960117 | 2016-12-05T04:56:54 | 2016-12-05T04:56:54 | 75,353,237 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,111 | hpp | Protocol.hpp | #pragma once
#include <cstdint>
#include <ctime>
#include "Transform.hpp"
/*************************** Protocol Over TCP ***************************/
enum class TCPMessageType : uint8_t // Might as well keep these small since we don't need to have a million message types
{
IWantToConnectIPv4,
IWantToConnectIPv... |
ccf302b72f464fae9a5619e9772f9aec0eca53fb | 9432c8bb7ea6dd745c5085a8720ef961c9090d57 | /fragmentprocessor.h | 20ea30262f7536233bf10816b5731e24fb0b2641 | [] | no_license | gzmuszynski/pepelepew | 0f2078e2b8631c10df4ef12e02a57d6fd14fa306 | f66a92696534acb00ade2d51f645948050ffa2de | refs/heads/master | 2021-09-15T06:56:20.064449 | 2018-05-27T17:46:05 | 2018-05-27T17:46:05 | 119,704,403 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,037 | h | fragmentprocessor.h | #ifndef FRAGMENTPROCESSOR_H
#define FRAGMENTPROCESSOR_H
#include "buffer.h"
#include "curvilineartrianglefunction.h"
#include "vertexprocessor.h"
class FragmentShader;
class FragmentProcessor
{
public:
FragmentProcessor();
VertexProcessor* vp;
FragmentShader* fragmentShader;
TriangleFunction* triang... |
2af7b1248fe1caba5d5bba3ff5d94c6df165f688 | c3bcfc898dbf33396baacecd6a56fa261b0fe664 | /include/d_store.h | 03e2f9e907abc922b23c95f77b5c733d1e7a51be | [] | no_license | yunnis/DataStructureWithCPlusPlusUsingSTL | f61c7c26bfedf3bc9a70b6ea1be0dd387480431d | d3c6e2794038dd36228f46a2de8a6db46c6808b6 | refs/heads/master | 2020-04-03T08:55:22.370037 | 2018-11-02T05:25:56 | 2018-11-02T05:25:56 | 155,149,207 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,008 | h | d_store.h | #ifndef D_STORE_H_INCLUDED
#define D_STORE_H_INCLUDED
#include <iostream>
#include <ostream>
// 累的模板版本(模板类)
template <typename T>
class store
{
public:
// 使用 item 或 类型T 的默认对象进行初始化
store(const T& item = T() );
// 检索并返回数据成员值
T getValue() const;
// 将数据成员值更新为item
// 使用嵌入码
void setValue(const T& item)
{
value = it... |
d4499792ba6cf70dd7ab3de85c3cbf5f54106f75 | 785df77400157c058a934069298568e47950e40b | /TnbGeo/include/Merge_PntAlg.hxx | 851c41c01f11488846d4e02c16e3d68c9aed8217 | [] | no_license | amir5200fx/Tonb | cb108de09bf59c5c7e139435e0be008a888d99d5 | ed679923dc4b2e69b12ffe621fc5a6c8e3652465 | refs/heads/master | 2023-08-31T08:59:00.366903 | 2023-08-31T07:42:24 | 2023-08-31T07:42:24 | 230,028,961 | 9 | 3 | null | 2023-07-20T16:53:31 | 2019-12-25T02:29:32 | C++ | UTF-8 | C++ | false | false | 199 | hxx | Merge_PntAlg.hxx | #pragma once
#ifndef _Merge_PntAlg_Header
#define _Merge_PntAlg_Header
namespace tnbLib
{
enum Merge_PntAlg
{
Merge_PntAlg_Mean,
Merge_PntAlg_Substitude
};
}
#endif // !_Merge_PntAlg_Header |
49f9a2a5284a5ce007934cd009d200bd7f5bff8e | d138deda43e36f6c79c5e3a9ef1cc62c6a92e881 | /paddle/fluid/distributed/table/tensor_table.cc | d8e1be7a9815c4aad21cd24733fd6747f3e0d56b | [
"Apache-2.0"
] | permissive | seiriosPlus/Paddle | 51afd6f5c85c3ce41dd72953ee659d1539c19f90 | 9602a182b2a4979247c09df1ec283fc39cb4a981 | refs/heads/develop | 2021-08-16T16:05:10.848535 | 2020-12-27T15:15:19 | 2020-12-27T15:15:19 | 123,257,829 | 2 | 0 | Apache-2.0 | 2019-12-10T08:22:01 | 2018-02-28T08:57:42 | C++ | UTF-8 | C++ | false | false | 3,404 | cc | tensor_table.cc | // Copyright (c) 2020 PaddlePaddle Authors. 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
//
// Unless required... |
55f885f7cf83569b8f9c8c06a546ef1a7e638d3b | 7065ae03809c28f18acc5b0e32d7cb2c371ca2f9 | /P195 string容器-字符串插入和删除/P195 string容器-字符串插入和删除.cpp | d8091ee137cf9789061ae40e5ca47964e3e7647a | [] | no_license | callmer00t/cpp_learning | 63d6bd12879590d20da117cfe5c67cf8791b4252 | 703bf026a723c59a8dde592b0b3b0769086cbfd4 | refs/heads/master | 2023-07-22T02:38:40.705882 | 2021-08-17T07:07:33 | 2021-08-17T07:07:33 | 386,171,041 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 456 | cpp | P195 string容器-字符串插入和删除.cpp | #include<iostream>
using namespace std;
#include<string>
//字符插入和删除
void test1()
{
string str = "hello";
str.insert(1, "111"); //第一个参数是从X个索引位置插入,第二个参数是插入的内容
cout << "str = " << str << endl;
str.erase(1, 3); //第一个参数是从X索引位置开始删除,第二个参数是删除X个字符
cout << "str = " << str << endl;
}
int main()
{
test1();
system("pause... |
01b46b07d4467360ad27f7c68e685d68d8302f97 | 484e44c0f1476c905230327bd1276e4a9376b22e | /LinkedList.cpp | 52810fa0af75ecd8eca8bd86ef9ed8a32e6bb569 | [] | no_license | DaveStorey/Linked_list | 7ffb4f67b3466a95fa7fe9b789855914d9ff37ce | a8e768476a6df0c01fc8b9e393b045a3cf9d2691 | refs/heads/master | 2020-12-30T15:54:44.512138 | 2017-05-13T15:43:51 | 2017-05-13T15:43:51 | 91,184,866 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,203 | cpp | LinkedList.cpp | /*
* LinkedList.cpp
*
* Created on: May 1, 2017
* Author: David Storey
*/
#include "LinkedList.h"
#include <iostream>
using namespace std;
//Constructor
NumberList::NumberList() {
head = nullptr;
tail = nullptr;
}
//Destructor
NumberList::~NumberList()
{
ListNode *nodePtr;
ListNode *nextNode;
nodePt... |
a0abb20acdc8bc022c77bb6dd6b0edc29e7a1f1c | 363a553ff7b23eb1618259e6aa93b9f184a77fb5 | /Bomberman/Intermediate/Build/Win64/UE4Editor/Inc/Bomberman/BombermanCharacter.gen.cpp | 97fefd8eebbc0c88c570c0019a9580ed096a4f5e | [] | no_license | zakkar/IKA | a98112e05e82dfe5c325c9e115fdb912a6b40553 | 6217a342db98d090e0774b97617f5fb819c3a0fd | refs/heads/master | 2021-05-06T14:45:06.799142 | 2017-12-16T14:17:23 | 2017-12-16T14:17:23 | 113,393,229 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,224 | cpp | BombermanCharacter.gen.cpp | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
==============================================================... |
39a9e2183bf0b3c0eaa676d10ee8ec5d95638d94 | da03930f45319ebc3af391f92352657030a46c25 | /src/treeeventnode.cpp | b998c3bd45e8f544101b7adbbf5c2d3d98ff4a5d | [] | no_license | cran/TraMineR | 7c5a47bf44b60d0aa8e798b893b766359a106122 | f69de43d018da19df8247a9090ebd1c01803d246 | refs/heads/master | 2023-04-11T10:25:42.257555 | 2023-03-31T17:20:02 | 2023-03-31T17:20:02 | 17,693,958 | 12 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,207 | cpp | treeeventnode.cpp | #include "treeeventnode.h"
#include "treeeventmap.h"
#include "constraint.h"
int TreeEventNode::nodeCount=0;
int TreeEventNode::getNodeCount() {
return nodeCount;
}
void TreeEventNode::getSubsequences(SEXP result, double * isupport, Sequence *s, int *index,const double &step, SEXP classname,EventDictionary * ed)... |
3d2501c08080c99392483b4b76de6c21e447a575 | 0dd5b46b598959741afc6a16c15c9f0492ca2bc5 | /common/_Utils.cc | 09eab405f7c904349f4246121cb9fd9656ad255b | [] | no_license | xaccc/webrtc-everywhere | 45ee2fa4048f315b4d44e5e1e39fb64e9f44a332 | c5a2d414ad552355e2494daf7fe035fc712b79ac | refs/heads/master | 2021-01-18T11:59:37.430001 | 2014-06-29T05:55:45 | 2014-06-29T05:55:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,892 | cc | _Utils.cc | #include "_Utils.h"
#include "_RTCDisplay.h"
#include "_AsyncEvent.h"
#include "_Debug.h"
#include "_Common.h"
#if WE_UNDER_WINDOWS
#include "windows.h"
#include "talk/base/win32socketinit.h"
#endif
#include "talk/base/ssladapter.h"
static bool g_bInitialized = false;
_Utils::_Utils()
{
}
_Utils::~_Utils()
{
}
... |
75f6a7edf6bc30106d3ee29c349205ea52155fa7 | 49872bd87748ef3e371fa6be657b5d1e50579297 | /src/utils/ArgumentParser.cpp | 86ffc92ec3e48629250e042c9b6f1c94b4a36434 | [
"MIT"
] | permissive | alexws54tk/rubik | 6ecee9ce57d01d45e410574290b2b1512a300727 | 86bab6527583a545e13265412301742dcc7052da | refs/heads/master | 2020-04-05T18:29:36.006371 | 2015-06-14T18:13:23 | 2015-06-14T18:13:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,269 | cpp | ArgumentParser.cpp | /*
* Copyright (c) 2013 Pavlo Lavrenenko
*
* 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, including without limitation the rights
* to use, copy, modify, merge, pu... |
cf08105d0334281164bb202be01059361ea14908 | 47c5c5b194dff3fb8a95721effc599591e90519a | /solved/1600.cpp | 1819653445495e34186f80280812b83b8f3b0f6f | [] | no_license | LEECHHE/acmicpc | 75ba56e3cd7a2d8d9c43f83e151632a58823840f | 8717bc33b53ac44037d9f58ee1d0b58014084648 | refs/heads/master | 2020-04-06T06:57:07.679362 | 2018-12-10T09:12:06 | 2018-12-10T09:12:06 | 65,816,339 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,644 | cpp | 1600.cpp | #include<iostream>
#include<queue>
using namespace std;
typedef pair<int, int> intPair;
typedef pair<intPair, int> State;
int k, w, h;
int grid[205][205];
int visited[205][205][35] = { 0 };
int dx[12] = { 0, 0, 1, -1 , 2, 2, 1, 1, -1, -1, -2, -2};
int dy[12] = { 1, -1, 0, 0 , 1, -1, 2, -2, 2, -2, 1, -1};
bool isValid(... |
4deefb0fb07f723adfba79570191461a2f73a77e | 5c2fc684d83fdc984a84eef423341176481b2f32 | /VisualProjects/MiaInterface/MiaInterface.cpp | f6742cdf7e3ef10c90ee5fff7de40fc23f92176a | [] | no_license | InsanePony/Mia | e4d2c65a31b5b1abee0445277873b8ebf75851f7 | c06ef45d9d33985886cc4217485bb967f52b3d87 | refs/heads/master | 2021-09-14T21:00:08.915610 | 2018-05-19T14:11:48 | 2018-05-19T14:11:48 | 105,539,141 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,239 | cpp | MiaInterface.cpp | #include <functional>
#include "MiaInterface.h"
#include "DataLoader.h"
#include "DialogNetworkCreation.h"
#include "Utils.h"
#include "qfiledialog.h"
#include "qmessagebox.h"
MiaInterface::MiaInterface(QWidget *parent)
: QMainWindow(parent)
{
ui.setupUi(this);
m_pNetwork = nullptr;
m_pDigitDrawer = new Digit... |
42428be8f4aada12070a1c6be24ddacd7e0f441e | 009cca46aed9599d633441b044987ae78b60685a | /src/QweakSimUserCerenkov_MainEvent.cc | 1ff9c6d18644768dda409cc6d18e4624a81ce7a0 | [] | no_license | cipriangal/QweakG4DD | 0de40f6c2693021db44916e03d8d55703aa37387 | 5c8f55be4ba0ec3a3898a40c4e1ff8eb42c550ad | refs/heads/master | 2021-01-23T10:29:53.163237 | 2018-06-25T19:03:24 | 2018-06-25T19:03:24 | 29,534,503 | 0 | 4 | null | 2017-03-27T21:06:14 | 2015-01-20T14:45:37 | C++ | UTF-8 | C++ | false | false | 1,620 | cc | QweakSimUserCerenkov_MainEvent.cc | //=============================================================================
//
// ---------------------------
// | Doxygen File Information |
// ---------------------------
//
/**
\file QweakSimUserCerenkov_MainEvent.cc
$Revision: 1.2 $
$Date: 2005/12/27 19:16:49 $
\author Klaus Hans Grimm ... |
a51e6d9d315d019cc724ad48fab97731ea3b524f | bbcf9a3dbca573d4c123ddca5dc359aa39ebecc6 | /Advanced Classes Project/Project V/Part IV/CourseGrades.h | e6cdf53302cc19672e0ec3d3f606b86ad4089a23 | [] | no_license | Darosan404/CPP | 1d5c623d5735b19704f5d60cc57535554ff6cc23 | 5bc55c7cb126c1efee6cd589724f1a95fbd7c98d | refs/heads/main | 2023-04-22T23:14:59.862063 | 2021-05-05T02:15:16 | 2021-05-05T02:15:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 348 | h | CourseGrades.h | #ifndef COURSEGRADES_H
#define COURSEGRADES_H
class CourseGrades
{
public:
CourseGrades();
~CourseGrades();
void setLab(int index, GradedActivity lab);
void setPassFailExam(int index, PassFailExam passFailExam);
void setEssay(int index, GradedActivity essay);
void setFinalExam(int index, FinalExam finalEx... |
9b8aeb0d489aa44be327d443b44ba3a8a7b95128 | 69a81ce2bad77fac0a19575573f79f26cb179ef4 | /Number/number_ruleplusplus.cpp | 6b13ecc174b07bf1cfbc9041ebf17319337e47a8 | [] | no_license | fezvez/DSN4 | 0965ac3bd17bc1ec192d75d29adb1bb2da21a0ba | 94048672b1cc98835d22e1a0fd4700e0862d81c0 | refs/heads/master | 2021-01-10T22:28:39.472976 | 2016-02-13T07:42:48 | 2016-02-13T07:42:48 | 30,161,901 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,552 | cpp | number_ruleplusplus.cpp | #include "number_ruleplusplus.h"
#include <QDebug>
Number_RulePlusPlus::Number_RulePlusPlus(NRelation h, QList<NRelation> b):Number_Rule(h,b)
{
unifyVariables();
}
void Number_RulePlusPlus::unifyVariables(){
mapString2Variables.clear();
unifyVariables(head);
for(NRelation relation : body){
u... |
c4c2520c56354f056874096528ccdd19a1886475 | 142d4891e3d1d732bacac9abea0381733c05a494 | /RayTracer/RayTracer/Camera.cpp | 0b1aa99bc664ec9e929ab3549c807f05bb8aea8e | [] | no_license | wr4909/RayTracer | d88ebeb02ac36bb7526abdeea6a7e38660f2a6ba | b11781efd8743fc67131f324e64b07fcf29bf8ed | refs/heads/master | 2016-09-12T01:27:39.549372 | 2016-05-02T15:27:54 | 2016-05-02T15:27:54 | 51,008,348 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,256 | cpp | Camera.cpp | // #419begin #type=3 #src=http://www.raytracegroundup.com/downloads/
#include "Camera.hpp"
#include "World.hpp"
#include <stdio.h>
Camera::Camera(){
eye(0, 0, 500);
lookat(0, 0, 0);
ra = 0.0;
up(0, 1, 0);
u(1, 0, 0);
v(1, 0, 0);
w(0, 0, 1);
updateViewPlane();
}
Camera::Camera(Camera& ... |
86c0e04e83a5bb616768e273b616285fae542db6 | 772d932a0e5f6849227a38cf4b154fdc21741c6b | /CPP_Joc_Windows_Android/SH_Client_Win_Cpp_Cmake/App/src/sh/scenarios/startarea_a_v1/gw/view/mainui/MainInGameUIView.cpp | 1e09be9b0193391be45b700c4a89e0aecf3b4e50 | [] | no_license | AdrianNostromo/CodeSamples | 1a7b30fb6874f2059b7d03951dfe529f2464a3c0 | a0307a4b896ba722dd520f49d74c0f08c0e0042c | refs/heads/main | 2023-02-16T04:18:32.176006 | 2021-01-11T17:47:45 | 2021-01-11T17:47:45 | 328,739,437 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 870 | cpp | MainInGameUIView.cpp | #include "MainInGameUIView.h"
#include <base/util/AppStyles.h>
#include <base/menu/util/MenuItemConfig_Visual.h>
#include <base/menu/util/MenuItemConfig_Data.h>
#include <base/visual2D/util/VCC_Group.h>
#include <base/visual2D/util/VCC_Sprite.h>
#include <base/visual2D/util/VCC_TouchArea.h>
#include <base/exceptions/Lo... |
85deae07cd3a7807bb2f431789cc87a301b011a2 | f96901169a6960ca236660b6f50a7fd95daadbce | /Urvashi/milestone-03&04(while loops)/sum of all prime numbers from 1 to n.cpp | 13bcc66d3bc98f9feb5ee1cb971de47b3b5e2fad | [] | no_license | HarpreetSinghNagi/Beginner-CPP-Submissions | a8f1c20b13d4cd3bc6a1894235f21581e10fe52f | 862ca6b1cab311cec05e7405dba5488871adb434 | refs/heads/master | 2022-12-15T03:12:15.209979 | 2020-09-05T15:28:27 | 2020-09-05T15:28:27 | 271,482,952 | 1 | 0 | null | 2020-06-11T07:40:17 | 2020-06-11T07:40:16 | null | UTF-8 | C++ | false | false | 331 | cpp | sum of all prime numbers from 1 to n.cpp | #include<iostream>
using namespace std;
int main ()
{
int num , i , end, sum=0 , isprime;
cout<<"print all prime numbers from 1 to n "<<endl;
cin >>end;
for(i=2; i<=end;i++)
{
isprime=1;
for(num=2; num<=i/2; num++)
{
if(i%num==0)
isprime=0;
}
if(isprime==1)
sum+=i;
}
cout<<"sum of all prime numbers from 1 to n i... |
a2f7ae317b3f9bc54dd7f519962e9d4d32c88e51 | 87b5a05f3ea591b761791f88e342f7a8ecf94750 | /Editor/input.h | 4051ba4090bbbdb2e245b925b7d9ccb3821c8618 | [] | no_license | JoAlvarez/Magnetic | 48ed1265621c7d8477b416d9b51b4430235c062e | c2e5b00b63768a67050cc5dd41a89c76a8d49f91 | refs/heads/master | 2020-05-03T20:19:56.551582 | 2012-09-10T02:37:35 | 2012-09-10T02:37:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,820 | h | input.h | ///@file
///@brief File for the Input class.
///
/// This will be able to handle all the forms of input:
///
/// Buffered and unbuffered Keyboard input, Mouse tracking,
/// and joystick inputs.
///
///Copyright 2008, Roby Atadero
///
///Please give credit if using this in your software.
///
///@author Roby Atadero
///@... |
63ffffc8fa8978a45986d17dfc65368096d4223a | c4d2f6d4d5ce480d2d9160f8850a18cda1c45745 | /cstack.h | 912a3185675a128e45da8355c7e0ee3e5dd4372b | [] | no_license | caleb-clark/cstack | e92d71f598505d04d8214e08bb3babc13586bed5 | 2748f289e44ccc36d743aa36a2d26f738e3888e1 | refs/heads/master | 2021-01-19T20:36:33.652800 | 2017-03-05T22:42:05 | 2017-03-05T22:42:05 | 83,759,546 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,327 | h | cstack.h | #pragma once
#include <iostream>
#include <string>
#include <climits>
#include <cstring>
#include "linked_list.h"
template <class T>
class cstack
{
private:
linked_list * l;
int size_;
public:
//constructor
cstack();
//destructor
~cstack();
//copy contructor
cstack(const cst... |
13eabe5103b65aa64307eaa5cca9c966ba09fd64 | 832ee0652f623dadb67c479d6015e73034a5218b | /src/Lista.cpp | e823da7b7bf7dc0a4826ba19401a3171639a6f63 | [] | no_license | bukisha/Micro-kernel | b263a6eea0ec482b86ebf8d31c41cacf815c73ee | 89d16344f1e9223a21d72fbb3c82c2243943af6b | refs/heads/master | 2020-03-27T16:32:29.723845 | 2018-08-30T18:50:05 | 2018-08-30T18:50:05 | 146,790,515 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,918 | cpp | Lista.cpp | #include "Lista.h"
#include "PCB.h"
#include "System.h"
#include "lock.h"
Lista::Lista() {
lock;
first=last=0;
len=0;
unlock;
}
Lista::~Lista() {
lock;
Element* temp;
while(first!=0)
{
temp=first;
first=first->next;
delete temp;
len--;
}
unlock;
}
void Lista::put(PCB* p) {
lock;
El... |
51b872636d3d8952bbb402cecd6ed9dc80a7d239 | 9d13d7fc23e96cb35ddc0f5bba309d0478b4a253 | /codeforces/problemset/1200A.cpp | 4fa6264a65dea28a0ac41366b2ec51f542420408 | [] | no_license | mayankDhiman/cp | 68941309908f1add47855bde188d43fe861b9669 | c04cd4aaff9cedb6328dff097675307498210374 | refs/heads/master | 2021-07-22T04:05:46.968566 | 2021-02-05T16:17:58 | 2021-02-05T16:17:58 | 241,451,797 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 749 | cpp | 1200A.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
vector <int> ans(10, 0);
int n; cin >> n;
string a; cin >> a;
for (int i = 0; i < a.size(); i ++)
{
if (a[i] == 'L'){
for (int j = 0; j < 10; j ++){
if (ans[j] == 0){
ans[j] = 1;
... |
ca0ccb5d9bad4369b7d91cc8bf687833c4886c86 | f6f7caf4d42b9442e4664b856a4d2456603a4343 | /Source/Timeborne/InGame/Model/GameObjects/ObjectToNodeMapping/ObjectToNodeMapping.h | a4ac2025b9be8cef4d41ce673230f46948be81b3 | [] | no_license | TamasSzep/Timeborne | a8902c3fa5f6d4a87466c857679c7af19ba12e12 | 5966731443a042943ad2fc997fc71230a0e07315 | refs/heads/main | 2023-03-05T04:47:50.628254 | 2021-02-14T18:24:32 | 2021-02-14T18:24:32 | 326,774,530 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,376 | h | ObjectToNodeMapping.h | // Timeborne/InGame/Model/GameObjects/ObjectToNodeMapping/ObjectToNodeMapping.h
#pragma once
#include <Core/SingleElementPoolAllocator.hpp>
#include <Core/DataStructures/SimpleTypeVector.hpp>
#include <Timeborne/InGame/Model/GameObjects/GameObjectId.h>
#include <cassert>
#include <utility>
#include <vector>
class ... |
53e75bbebf77fc405b568a57670f32e94df79f67 | e140c1c7087d6a4e130ebde2ce7962c40ee7fd0c | /codeforces/490/C.cpp | aaac5fab66920a8f0e7f3317e5fe49ae21257eaa | [] | no_license | diptayan2k/CP-Submissions | 543ccf94b4d43b6f040f975ccce834e883a5efc7 | dc32f1dd474cf250f71795f991132f3d52cc1771 | refs/heads/master | 2023-02-05T15:26:51.480986 | 2018-07-03T14:25:00 | 2020-12-21T10:20:15 | 323,290,119 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,480 | cpp | C.cpp | #include <iostream>
#include<bits/stdc++.h>
#define ll long long int
#define lld long double
#define F first
#define S second
#define f(i,a,b) for(int i=a;i<=b;i++)
#define g(i,a,b) for(int i=a;i>=b;i--)
#define mp make_pair
#define pb push_back
#define mh make_heap
#define ph push_heap
#define pq priority_queue
#defin... |
72ab1ad3274102170577254033ad22bb5dccdccf | 30657278fc951ba486d782a0f89ade4fed3037f9 | /informatik3/words/main.cpp | d9cc6511aa499f5e58dae6952aae8f34b4b09041 | [] | no_license | mschaufe/FHGR | fe028793fb288439edc8fb4f9e5beb3a66173289 | 7d368b280eb65e72736ecfc0d91e9a88f8bc17bc | refs/heads/master | 2023-01-24T07:22:58.875767 | 2020-11-26T09:01:31 | 2020-11-26T09:01:31 | 153,422,956 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 295 | cpp | main.cpp | #include <iostream>
#include "dictionary.h"
int main()
{
try
{
Dictionary dict;
dict.loadFromFile("/usr/share/dict/words");
dict.checkFile("input.txt", "output.txt");
}
catch (std::exception &ex)
{
std::cout << "Something went wrong: " << ex.what() << std::endl;
}
return 0;
}
|
52fa977074f5a67af380ea03e6e184cad02d3f65 | 2b703dc1e5020bb408b2a6e57cc5b80edf98ae1a | /justChecking/Robot.cpp | be872d0c684b555ee019a84902385af8e75435c7 | [] | no_license | infiBoy/EshcerRoom | d32af21435a87b741fcdefadd41c3077ced68400 | c846bed8425a822daa600bccd52762e63a5a1e9a | refs/heads/master | 2016-08-05T08:14:12.512650 | 2014-12-27T10:02:25 | 2014-12-27T10:02:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,731 | cpp | Robot.cpp | #include "Robot.h"
#include "Robot.h"
#include "stdio.h"
#include <GL\glut.h>
#include "DataModel.h"
#define degree 0.0174532925 //1degree = (2pi / 360)radian
#include <math.h>
const Vec3d robotEyeOffset = Vec3d(0, 4.5, 0); //Vec3d(0.5,4,-2);
#define PI 3.14159265358979323846264
//Constructor to initiliaze th... |
e9eadc322335f7185d5dd6d3b8449253929286f4 | b367fe5f0c2c50846b002b59472c50453e1629bc | /xbox_leak_may_2020/xbox trunk/xbox/private/test/online/server/surge/httpclient/httpclient.cpp | ce96d76573b84b12ca2bb1a7ff5e250b5a59fc8b | [] | no_license | sgzwiz/xbox_leak_may_2020 | 11b441502a659c8da8a1aa199f89f6236dd59325 | fd00b4b3b2abb1ea6ef9ac64b755419741a3af00 | refs/heads/master | 2022-12-23T16:14:54.706755 | 2020-09-27T18:24:48 | 2020-09-27T18:24:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,525 | cpp | httpclient.cpp | /*
Copyright (C) 1999-2000 Microsoft Corporation
Module Name:
HttpClient.cpp
Abstract:
Author:
Josh Poley (jpoley) 1-1-1999
Revision History:
NOTE: Include files with error codes:
SSL <winerror.h>
Sockets <winsock2.h>
HTTP <wininet.h>
*/
#includ... |
bd8684fb99b5aa4ad0295f3ec13fd10c917b6548 | 71219ed2748798595af6890258d2f48e1fe63056 | /04-Trees-And-Graphs/0408-First-Common-Ancestor/solution_test.cpp | 1712784acb33d3d8f1056f15bb64737b5375c0b8 | [] | no_license | KoaLaYT/Cracking-The-Code-Interview-Question | ae95a483515eefb18827ecb9eac63e59632a780c | b2fb271ada1b32ffabf985259639671999844137 | refs/heads/master | 2023-04-05T22:45:26.118542 | 2021-04-07T06:25:58 | 2021-04-07T06:25:58 | 334,376,322 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,904 | cpp | solution_test.cpp | #include "solution.hpp"
#include <gtest/gtest.h>
#include <vector>
class FirstCommonAncestorTest : public ::testing::Test {
protected:
void SetUp() override
{
Node* n9 = new Node{9};
Node* n13 = new Node{13};
n9->p = n13;
n13->left = n9;
Node* n2 = new Node{2};
... |
86331076e09ed46bdc1fbb087c40582cabb77f79 | cbf41d6093b2c3615ec085d49ca65a451fffd78a | /dsastudents/tree/graph.cpp | e470389a1c7ebeef6f2b9c3add1e47fea2185a4b | [] | no_license | nhophucrious/Data-Structure-and-Algorithms-CO2003- | 867ae19f032e839e538127f6bf906a2e31be9785 | 3ca14c13fbb56e2d6464eb0f90e51ae7a06a966a | refs/heads/main | 2023-07-27T16:04:03.185521 | 2021-08-24T12:59:06 | 2021-08-24T12:59:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,920 | cpp | graph.cpp | #include <iostream>
#include <iomanip>
#include <string>
#include "geom/Vector3D.h"
#include "graph/IGraph.h"
#include "graph/UGraphModel.h"
#include "graph/DGraphModel.h"
#include "list/DLinkedList.h"
#include "stacknqueue/Stack.h"
#include "stacknqueue/Queue.h"
#include "stacknqueue/PriorityQueue.h"
#inclu... |
df64cb056905131a2bbf00f75a93c01657e46fd7 | 485faf9d4ec7def9a505149c6a491d6133e68750 | /include/inv/bundles/SoTextureCoordinateBundle.H | fc93ff1321fb6d7bc8d38c24645c84c84330f567 | [
"LicenseRef-scancode-warranty-disclaimer",
"ECL-2.0"
] | permissive | ohlincha/ECCE | af02101d161bae7e9b05dc7fe6b10ca07f479c6b | 7461559888d829338f29ce5fcdaf9e1816042bfe | refs/heads/master | 2020-06-25T20:59:27.882036 | 2017-06-16T10:45:21 | 2017-06-16T10:45:21 | 94,240,259 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,830 | h | SoTextureCoordinateBundle.H | /*
*
* Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your opti... |
5f9ec1922e023efee70c1ffddffc1eec7811bc8c | edb4f249883679792e689eea9fcf969f331c28ba | /leetcode/637_averageoflevelsinbinarytree.cpp | 575a161b49a91d4352d696dee6f7a210ed568b48 | [] | no_license | pavelsimo/ProgrammingContest | 2845bddc2a61444bf2c667aa5f77e34f7a324ebc | a2c52be868bcd480a682b872fed85b344731497b | refs/heads/master | 2021-01-25T03:48:05.415007 | 2017-11-11T14:39:51 | 2017-11-11T14:39:51 | 25,308,102 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,161 | cpp | 637_averageoflevelsinbinarytree.cpp | /* ========================================================================
$File:
$Date:
$Creator: Pavel Simo
======================================================================== */
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode... |
81d2402d70b89045b6d85b17867350811422bdd1 | 7ee38191fdfcc5c59ab08c0f1748f2fc52fa959e | /Integer.h | 177c1910e5b54c3f4cbe9a9a86db596f6abcdb58 | [] | no_license | gnom6584/Fft_course_work | 2c6bfe610ae8f4840863fb009af0ea4be15b4fb4 | a1e240d5fc627732bd2be1c04ca29ab4bf740646 | refs/heads/master | 2023-05-23T15:18:58.436381 | 2021-06-17T18:48:19 | 2021-06-17T18:48:19 | 375,441,555 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,571 | h | Integer.h | //
// Created by Gnome on 17.06.2021.
//
#include <iostream>
#include "dft.h"
#ifndef FFT__INTEGER_H_
#define FFT__INTEGER_H_
inline std::vector<int> normalize(const std::vector<int>& input_number) {
auto N = std::size(input_number);
std::vector<int> number(N);
for (auto i = 0u; i < N; ++i)
number[... |
cf8d51d3ba9400c97ca752a7e2ee24effb4f23a1 | 0cd47cd4554fb36c28becdf36dfbac02443e8b03 | /Lab 3b - aula20170510/ptr5.cpp | 45a37e6cd817cd7333f406dc415b4ed1ca74f9aa | [] | no_license | amadojoao/MTP | 77dfb069acdc4a8aed4cdc6f027c25340f61b33e | bf11b7b76cb8f39d8fd88745a7b1a007f3982c40 | refs/heads/master | 2021-01-19T14:24:59.163083 | 2017-09-20T16:31:00 | 2017-09-20T16:31:00 | 88,161,407 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 573 | cpp | ptr5.cpp | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define N 1000
int main ()
{
srand(time(NULL));
int i, numero, contagem = 0;
int vetor[N];
unsigned char *p;
for(i=0; i < N; i++)
vetor[i] = rand();
p = (unsigned char *) vetor;
printf("Escolha um numero entre 0 e 255: ");
s... |
8d8a8554b5abdf6032337847ecbf97c22775da7f | b86d4fe35f7e06a1981748894823b1d051c6b2e5 | /UVa/11878 Homework Checker.cpp | d9a99f1a27371c06b870fd0d245dd728a4bc5486 | [] | no_license | sifat-mbstu/Competitive-Programming | f138fa4f7a9470d979106f1c8106183beb695fd2 | c6c28979edb533db53e9601073b734b6b28fc31e | refs/heads/master | 2021-06-26T20:18:56.607322 | 2021-04-03T04:52:20 | 2021-04-03T04:52:20 | 225,800,602 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 95 | cpp | 11878 Homework Checker.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c;
char sign ,c;
}
|
5ed1ea169be3b9e286bfa283794f84f0a2de99c8 | 7e8386702eed715447098c554d599c718b17345e | /Lab 2-Heap/Not working heap_ptr/heapptr.cpp | fbeb2d3fb6c33f36c0228f0e9325c72737826be1 | [] | no_license | nithinjs88/ADSA_LAB_2014 | 589b3b350e063f8b099daecb3d7335a13dc71830 | a735971f2b5904eabbc110d2c540d4f05812819e | refs/heads/master | 2021-01-20T09:41:14.176114 | 2015-06-11T09:48:14 | 2015-06-11T09:48:14 | 35,878,639 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,870 | cpp | heapptr.cpp | #include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <vector>
#include "common_functions.cpp"
using namespace std;
#define DEBUG 1
#define dout if (DEBUG) cout
#define dout15 if (DEBUG && newKey==15) cout
#define ifdebug if (DEBUG)
#define GET_MAX "getmax"
#define EXTRACT_MAX "extractmax... |
1ca8be80676b00397cff719045f17b35b20b10bf | 2eeab40a405a7b27a52386f52f6f9753672cde78 | /Old_items/Toph/Clock_Math.cpp | d01a9fb604a323575fefacd2ffd9bfffd9944c80 | [] | no_license | rifatr/Competitive-Programming | c562c56f5090b9b76510d8c57e74a2c90d723643 | e802d9e73624607904223fddf7f29950fa429341 | refs/heads/master | 2023-05-24T02:02:56.062656 | 2023-05-22T08:08:02 | 2023-05-22T08:08:02 | 611,465,080 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 282 | cpp | Clock_Math.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
double h, m, ha, ma;
cin >> h >> m;
ha = h * 30;
ha += (m / 60) * 30;
ma = m * 6;
double ans = ha - ma;
if(ans > 180.0)
ans = 360 - ans;
cout << fixed << setprecision(4) << abs(ans) << endl;
return 0;
} |
f5a8117982eebc0e7099c67537988748a001b44d | 55822e9e9222134dfb7e3b042536e7df87fff2bc | /Source/LostInSpace/AI/StateMachine/SSMNode.cpp | ddd30b8f1f165fbae4aa87ae93f4eb49c11ce7a6 | [] | no_license | bpeake13/LostInSpace | 378b3f07b8a5a3bee17b531b39866f33cb3f3c70 | a8518171bb4f2966eaf72d85bb5f7d1e88003a8f | refs/heads/master | 2016-09-05T10:59:08.721607 | 2015-05-05T01:08:34 | 2015-05-05T01:08:34 | 33,699,861 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 331 | cpp | SSMNode.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "LostInSpace.h"
#include "SSMNode.h"
void USSMNode::Tick(UHSMSimpleStateMachineNode* machine){
}
USSMNode* USSMNode::GetNext(int transitionId)
{
if (transitionId >= NextStates.Num())
return NULL;
return NextStates[transitio... |
cf7bc482423c1cfdf0883286b48d4341895c2941 | 8ae9bdbb56622e7eb2fe7cf700b8fe4b7bd6e7ae | /llvm-3.8.0-r267675/lib/Target/MMPULite/MCTargetDesc/MMPULiteMCAsmInfo.h | 87607d441806cd4f228a5cf8551b6814f900dcea | [
"NCSA"
] | permissive | mapu/toolchains | f61aa8b64d1dce5e618f0ff919d91dd5b664e901 | 3a6fea03c6a7738091e980b9cdee0447eb08bb1d | refs/heads/master | 2021-09-16T00:07:16.731713 | 2017-12-29T04:09:01 | 2017-12-29T04:09:01 | 104,563,481 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 783 | h | MMPULiteMCAsmInfo.h | //===-- MMPULiteMCAsmInfo.h - MMPULite asm properties ----------------*- C++ -*--===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------... |
8270f7bb9e3f754b996caff9a2880e3d491c0f24 | 0841c948188711d194835bb19cf0b4dae04a5695 | /mds/sources/thelib/src/mds/cmdmanager.cpp | bb5343c0fe201f6d00784bdaa4b930dc767e9cba | [] | no_license | gjhbus/sh_project | 0cfd311b7c0e167e098bc4ec010822f1af2d0289 | 1d4d7df4e92cff93aba9d28226d3dbce71639ed6 | refs/heads/master | 2020-06-15T16:11:33.335499 | 2016-06-15T03:41:22 | 2016-06-15T03:41:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,739 | cpp | cmdmanager.cpp | #include "mds/cmdmanager.h"
#include "mds/mdsprocess.h"
#include "mds/cmdworker.h"
CmdManager::CmdManager(uint32_t count) {
count_ = count;
mddb_ = NULL;
}
CmdManager::~CmdManager() {
for (int i = 0; i < count_; i++) {
delete worker_[i];
}
if ( NULL != mddb_ ) {
delete mddb_;
mddb... |
7a8c0311710bef13b02a39ae24e4fa7391cafdd3 | 3da596a2ea8617d0f150662e3b0fdc763ea936e1 | /iree/compiler/Utils/TracingUtils.h | c81cbb2dca1a429d33ec983ae6564985ed4ef13b | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | 1121589/iree | e0f1a40c02f195a1b58c305e38b37952f53c8993 | 22a905c485e3ae2ff9743dc9d195de3b90b08ed5 | refs/heads/main | 2023-05-04T23:17:19.839076 | 2021-05-13T06:17:21 | 2021-05-13T06:17:21 | 367,058,873 | 0 | 0 | Apache-2.0 | 2021-05-13T13:33:42 | 2021-05-13T13:33:41 | null | UTF-8 | C++ | false | false | 2,048 | h | TracingUtils.h | // Copyright 2021 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
b42123461fe2f4a88f3fb1ff6974c8c3cb4bec6b | f8f2bd26df4d3bae5a59c05501997a5e2f414f02 | /Vector/Vectoroperation.cpp | e1d3c502ac5a5d0cc20a587a3f284a728804042e | [] | no_license | abhi-1993/geeksstldsa | 05c45f6d8542c3f45e87fca4cf8fb1bf87b34eb7 | 57ce2a9b7bc5ac6c2182707f740ae3cdb354820c | refs/heads/main | 2023-02-08T15:35:44.161212 | 2021-01-02T16:08:17 | 2021-01-02T16:08:17 | 326,166,602 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,809 | cpp | Vectoroperation.cpp | #include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
bool sortcol(const vector<int>& v1, const vector<int>& v2)
{
cout<<"\nV1[1] "<<v1[1] <<" "<<"V2[1]"<<v2[1];
return v1[1] < v2 [1];
}
int main()
{
vector<vector<int> > vect { {3,4,5},
... |
ff90bb7b762d8c7b73dd442b804f5539d3537f5c | 01bcef56ade123623725ca78d233ac8653a91ece | /common/xbox/xbox_launch.h | b602f6e8cde0f41588b9acc925c3d153de444a9d | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | SwagSoftware/Kisak-Strike | 1085ba3c6003e622dac5ebc0c9424cb16ef58467 | 4c2fdc31432b4f5b911546c8c0d499a9cff68a85 | refs/heads/master | 2023-09-01T02:06:59.187775 | 2022-09-05T00:51:46 | 2022-09-05T00:51:46 | 266,676,410 | 921 | 123 | null | 2022-10-01T16:26:41 | 2020-05-25T03:41:35 | C++ | WINDOWS-1252 | C++ | false | false | 11,700 | h | xbox_launch.h | //========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose: Xbox Launch Routines.
//
//=====================================================================================//
#ifndef _XBOX_LAUNCH_H_
#define _XBOX_LAUNCH_H_
#pragma once
#ifndef _CERT
#pragma comment( lib, ... |
4320e268930fbea5ed00866905406ad6be2bf649 | 689af7ab127a24d527301cd5dc0e3ec0ec8c3940 | /inc/dg/topology/fem_weights.h | fe1b03d097e78d11757106249f86a653d17bef61 | [
"LicenseRef-scancode-other-permissive",
"MIT",
"Apache-2.0"
] | permissive | feltor-dev/feltor | 98df35a2d905e7033b90a13e4ad1b5fa3df4cb7d | cafe7d194f149e28b8e9c644a187132af95ecc0c | refs/heads/master | 2023-08-17T04:11:34.363108 | 2023-08-09T09:09:13 | 2023-08-09T09:09:13 | 14,143,578 | 30 | 13 | MIT | 2023-08-09T09:09:15 | 2013-11-05T14:29:41 | C++ | UTF-8 | C++ | false | false | 3,567 | h | fem_weights.h | #pragma once
#include "weights.h"
/*! @file
* @brief Creation functions for finite element utilities
*/
namespace dg {
namespace create{
///@cond
namespace detail
{
template<class real_type>
std::vector<real_type> fem_weights( const DLT<real_type>& dlt)
{
std::vector<real_type> x = dlt.abscissas();
std::v... |
cea62eabbbe0414449113fd63dbef8d59e583a89 | 96f638860c0e73e39e5c41808692ed9b06942fee | /bark/world/tests/observed_world_test.cc | 26f8ed1d7adcfb008cdeafc6aa369b0906e13b33 | [
"MIT"
] | permissive | xmyqsh/bark | 5432a7ecb40f45dbb1722202fe7a4eb8a34edd7f | 8a2aef12a37e0cc7d26b51f8b65c3832af062771 | refs/heads/master | 2022-06-15T02:49:36.484886 | 2022-06-13T15:44:33 | 2022-06-13T15:44:33 | 207,952,703 | 0 | 0 | MIT | 2022-06-13T23:59:24 | 2019-09-12T03:00:54 | C++ | UTF-8 | C++ | false | false | 15,154 | cc | observed_world_test.cc | // Copyright (c) 2020 fortiss GmbH
//
// Authors: Julian Bernhard, Klemens Esterle, Patrick Hart and
// Tobias Kessler
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
#include "bark/world/observed_world.hpp"
#include "bark/commons/params/setter_... |
7b0685d3574a4065d6120272a23ecc49b87f3c84 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_6404600001200128_1/C++/golmansax/A.cc | 3ff6bfca0dd0e4df832b9128b890ddb3676f5b0a | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 725 | cc | A.cc | #include <iostream>
#include <cstdio>
#include <cmath>
#include <string>
using namespace std;
int main() {
int n_cases;
cin >> n_cases;
for (int i_case = 0; i_case < n_cases; i_case++) {
int n;
cin >> n;
int m[n];
long long ans_1 = 0;
int prev_m = 0;
int worst_diff = 0;
for (int i ... |
53461151fc4f49bcffa80d4ed0a4019afeb21b82 | 3dba2b348b3a29235ddfeac8f91797f04f306cd9 | /src/bench/ccoins_caching.cpp | 9280670fa1146510edf24891dd657878eaf5b8a0 | [
"MIT"
] | permissive | VadiqueMe/dogecoin | f331c35a504258fc7d30073121d6ec32d22836cb | b9693e5854157bdff733416083a956d8499e30ed | refs/heads/master | 2022-06-05T08:10:55.669611 | 2021-01-03T19:08:58 | 2022-05-22T18:37:58 | 209,979,651 | 1 | 1 | MIT | 2019-09-21T12:16:04 | 2019-09-21T12:16:03 | null | UTF-8 | C++ | false | false | 3,657 | cpp | ccoins_caching.cpp | // Copyright (c) 2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php
#include "bench.h"
#include "coins.h"
#include "policy/policy.h"
#include "wallet/crypter.h"
#include <vector>
// FIXME: Dedup wi... |
8c8df04b252c69f1be8740525d82934372665557 | 95e5da8d91a213c69856db4f50ba95e12f4d6d98 | /cc/library/sim_world/sim_world.cc | 315d8de0a38462095c7be058b3b7be517ab0e666 | [] | no_license | aushani/summer | 4f2ba146a9cafc8e0ed239e8d2ddecb30518bf11 | 01ef8e9fa05d13bd853f37d5d9f3aba2fe74d2fb | refs/heads/master | 2020-03-22T04:18:04.547751 | 2018-01-15T17:13:20 | 2018-01-15T17:13:20 | 137,923,798 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,183 | cc | sim_world.cc | #include "library/sim_world/sim_world.h"
#include <random>
#include <chrono>
namespace ge = library::geometry;
namespace library {
namespace sim_world {
unsigned seed = std::chrono::system_clock::now().time_since_epoch().count();
std::default_random_engine rand_engine(seed);
SimWorld::SimWorld(size_t n_shapes) :
... |
6b9569306ad58d902cf93dba1588003a1db19d7c | 98570eab097534253abf2d4e24e2297ef9e339ab | /bellman_ford.cpp | 120eadbca18119505a9ee0393bf260b38e5916ee | [] | no_license | jagadeeshnelaturu/standard_implementations | 26ae0bad052fb8ca033edeee570a683af3395bcb | 372dc1243e4b80422a1748a70d919a4b25f0843f | refs/heads/master | 2021-01-10T10:31:41.794732 | 2015-12-01T19:58:04 | 2015-12-01T19:58:04 | 44,399,954 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,832 | cpp | bellman_ford.cpp | #include <iostream>
#include <list>
#include <climits>
struct node {
std::list< std::pair<int, int> > _adjacency_list;
};
void addEdge(node** graph, int src, int dst, int weight) {
graph[src]->_adjacency_list.push_back(std::make_pair(dst, weight));
}
void bellman_ford(node **graph, int n, int source, int* distan... |
7e2b96265c6a8c7f7b0b9bc00c7b6b383c42db6e | 6529a9e1f5fb1297dbbc6f93d64c7facaf6e67c1 | /rmw_ecal_dynamic_cpp/src/internal/serialization/protobuf/serializer_c.cpp | 5efb0f1d64e8e2f5dc4358e71bb1170a0c208810 | [
"Apache-2.0"
] | permissive | flynneva/rmw_ecal | cceb4abc9a7970568231c34ca48b7434f9cfb3fd | bad0d8885b3bfea158203c591c3bd61c38b448d7 | refs/heads/master | 2023-01-19T01:58:37.543464 | 2020-10-30T21:27:00 | 2020-10-30T21:27:00 | 308,684,831 | 1 | 0 | Apache-2.0 | 2020-11-09T03:39:47 | 2020-10-30T16:25:12 | C++ | UTF-8 | C++ | false | false | 12,043 | cpp | serializer_c.cpp | /* ========================= RMW eCAL LICENSE =================================
*
* Copyright (C) 2019 - 2020 Continental Corporation
*
* 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
* ... |
05c52cb80c073dd5eeaacfd08953935dd987dc0d | 15fcf2266ef08c8c7a6720e27b431544e912f9b5 | /tools/ftdi/ftdi_list_devices.cpp | d86e1ae8c95d1d5d30d293b8d1046483c184c425 | [] | no_license | d-hawkins/avnet_minized_tutorial | 003b0e837d40e69bd4d46afef777b145af3fbb94 | b52f7340498fe3f058db75fa44693acf8a77e1c5 | refs/heads/main | 2023-04-09T14:55:36.025756 | 2021-04-14T07:01:39 | 2021-04-14T07:01:39 | 356,716,810 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,050 | cpp | ftdi_list_devices.cpp | // ----------------------------------------------------------------------------
// ftdi_list_devices.cpp
//
// 12/10/2018 D. W. Hawkins (David.W.Hawkins@jpl.nasa.gov)
//
// List the FTDI devices attached via USB.
//
// ----------------------------------------------------------------------------
// Windows types used ... |
604d0e602dde4de4fe01bb8550f01b9f4c669bba | a741637c734b5a73889b1508a1ee5442573681f4 | /external/pdlfs-common/src/status.cc | e80b80f00ec6c8457d6871aebe2817aa9f7b9745 | [
"BSD-3-Clause"
] | permissive | dlambrig/deltafs | 0c06565145c6777ab10783b198d80ebcc720dc6b | 4ce381ba9f4c5c256a82df95971149b6b85db600 | refs/heads/master | 2020-04-22T19:23:28.243009 | 2019-02-09T21:04:50 | 2019-02-09T21:04:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,279 | cc | status.cc | /*
* Copyright (c) 2011 The LevelDB Authors.
* Copyright (c) 2015-2017 Carnegie Mellon University.
*
* All rights reserved.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. See the AUTHORS file for names of contributors.
*/
#include <stdint.h>
#include <st... |
49c5349f27472022d7914ad34a4b54fff645ff07 | 443edae9d0064be944dc0160d8ffb3b8ee8faf1f | /initxml.h | 8e038cbfd232810074c9921d8e05b53521773884 | [] | no_license | trigrass2/i700-m | 3e3ed24f00c9fa457cbc88045b8fab0a6dd80ad3 | 17d582b3b270ac3c1f1f27e4f07d2031da1dc289 | refs/heads/master | 2020-07-11T21:25:31.326485 | 2018-07-20T09:08:30 | 2018-07-20T09:08:30 | 204,646,892 | 1 | 0 | null | 2019-08-27T15:35:00 | 2019-08-27T07:34:59 | null | UTF-8 | C++ | false | false | 1,056 | h | initxml.h | #ifndef INITXML_H
#define INITXML_H
#include <QDialog>
#include <QString>
#include <QStandardItem>
namespace Ui {
class initxml;
}
class initxml : public QDialog
{
Q_OBJECT
public:
explicit initxml(QWidget *parent = 0);
~initxml();
int read_xmll(QString filename);
//void do_xml(const QString opt... |
2dc0cd2bf6ad72467356bbbbe34bfb3c3c5a712d | f7a2aa9d933466c25177a1abe06cc25a0650d9dd | /client/libraries/game/CFileObjectInstance.h | 4b75c401b8c8ff6c5097c02ecdc7ace891810b1b | [
"MIT"
] | permissive | CyberMor/sampvoice | b6f055dc32c975faef95a1eca31e60e6ea0120b2 | 11988682bf46a6ebdff8eab2810385610f221a21 | refs/heads/master | 2023-07-26T15:16:11.941105 | 2023-07-18T11:17:21 | 2023-07-18T11:17:21 | 165,523,561 | 139 | 105 | MIT | 2023-07-16T06:59:55 | 2019-01-13T15:47:46 | C++ | UTF-8 | C++ | false | false | 557 | h | CFileObjectInstance.h | /*
Plugin-SDK (Grand Theft Auto San Andreas) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#pragma once
#include "PluginBase.h"
#include "CVector.h"
#include "CQuaternion.h"
class PLUGIN_API CFileObjec... |
77557dddd306744fa100fb7aa9f6e1f815eae600 | e8432ea0bd17cc866214dad44068088b202fa2b7 | /InteractiveFusion/PlaneCutSegmenter.cpp | f15743251c716a1297a579eae07de52f64bed7ee | [] | no_license | sirkryl/EditingRealityCPP | a531f13b5f7f92281b512b1ea82838435b0c9bbb | 4d2aa6db2bb33c7cb4257ffc0d8be73bde3630e3 | refs/heads/master | 2020-05-17T16:24:33.302625 | 2015-11-17T12:35:06 | 2015-11-17T12:35:06 | 25,351,681 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,752 | cpp | PlaneCutSegmenter.cpp | #include "PlaneCutSegmenter.h"
#include "DebugUtility.h"
#include "ModelData.h"
namespace InteractiveFusion {
PlaneCutSegmenter::PlaneCutSegmenter() :
Segmenter()
{
}
PlaneCutSegmenter::~PlaneCutSegmenter()
{
}
void PlaneCutSegmenter::SetSegmentationParameters(PlaneCutSegmentationParams _segmentationPa... |
8609076b16e23ceda9e69ce8bae77002b36e452a | c6f5524dd21cf8050aa06c9758ff54ec1811a469 | /ET580/Day 1 Array_recursion_asymptotic/01_Review_Arrays_Examples/EX_2_Linear_Search.cpp | 55283cf9ef83103b1abfb26c2eb2873380afcda9 | [] | no_license | AChen24562/C-Plus-plus | 482dbb33bd6b6b9b1cf49e3b5c0360285816d049 | 27364b7f02e5172aec89f2132bc963313b99d16b | refs/heads/master | 2022-06-21T12:37:40.370312 | 2022-06-17T14:44:46 | 2022-06-17T14:44:46 | 236,824,208 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,111 | cpp | EX_2_Linear_Search.cpp | // S. Trowbridge 2020
#include <iostream>
using namespace std;
void print(int *a, int size) { // print array
for(int i=0; i<size; ++i) { // iterate from 0 to size-1
cout << a[i] << " "; // print value at index i
}
}
int getIndex(int *a, int size, int value) {... |
691499a2002788ec239914ad5894cc01f6ca2605 | 3190a9606fdb6a32b68b4012869c1074a5933ca4 | /c++/20140721/pthread/Consume.h | e52efa20f52db9fe33665beaae85a7086ca7bc5d | [] | no_license | lvchao0428/ultrapp | caa5971eddc98226bb62d8269b7be2537c442ca3 | 614c85e88dce932663389a434297f516ea3c979b | refs/heads/master | 2021-01-23T17:31:10.722025 | 2015-09-22T03:30:57 | 2015-09-22T03:30:57 | 21,064,395 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 254 | h | Consume.h |
#ifndef CONSUME_H_
#define CONSUME_H_
#include <pthread.h>
#include "Thread.h"
class Buffer;
//inherit must use .h file
class Consume:public Thread
{
public:
Consume(Buffer &buffer);
void run();
};
#endif /*CONSUME_H_*/
|
824332f4375da63eba8cad24ce83415b91bf6af3 | 7bf40ccb547c9dbe267aea74517ab8df5e4626ac | /TinyObj/GrahpicTut1/GraphicTut/src/PlayerController.cpp | 67d677aef210a39e5770f598e15fcb0ca3b2b442 | [] | no_license | BenjaminMatthewMoore/Virtual | 04d1ee5ae25210c336d611c0001d798cb6c92f1e | 07335be631c894d8765c2c10355ed12da041b973 | refs/heads/master | 2021-01-01T05:42:29.708471 | 2016-06-08T02:33:25 | 2016-06-08T02:33:25 | 59,450,315 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,297 | cpp | PlayerController.cpp | #include "PlayerController.h"
#include "ControllerHitReport.h"
#include "PhysicsScene.h"
#include "Gizmos.h"
#include "Window.h"
#include "GLFW\glfw3.h"
using namespace physx;
PlayerController::PlayerController(PhysicsScene* physicScene)
{
startPosition = PxExtendedVec3(20, 20, 20);
m_hitReport = new ControllerHitR... |
5370787666f57d6fee26cff726a99de9c2f29448 | a736f20a3dd0282a20d64d717fba98ece9e456c5 | /util/testHistPlotter.cxx | 10de1a45dbecaac223d3901ccdf58b10fce13317 | [] | no_license | oviazlo/WprimeTestingPackage | 1cea181633a823ecf31beb48e2bca6b8705d862d | dd5f4d51e55e73034d925c71b3f5688aee267a33 | refs/heads/master | 2020-04-06T06:50:56.052016 | 2016-08-17T15:33:13 | 2016-08-17T15:33:13 | 32,322,616 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,245 | cxx | testHistPlotter.cxx | /* Copyright 2016 Oleksandr Viazlo */
///*****************************************************************************
///
/// Plotting script. Plot MCs as THStack. Data - TH1 histogram.
/// Still in developing and testing state
///
///*****************************************************************************
/// ... |
3015befd2e7ef28f849c812058b6def06530af41 | 638d256d0417a5721bfd5592c0dc0b5ddb8163ef | /lab10/Mebel.h | c57a8176548edaf8684c4912fdeff6954e9e0ec1 | [] | no_license | Es1337/OOP1 | 19238767f4da511f80a05147989ed52af092d27a | 019fa7f659d072b65cdb7d0cef1d93248a6037aa | refs/heads/master | 2022-09-21T20:47:30.129030 | 2020-06-06T11:40:25 | 2020-06-06T11:40:25 | 269,939,776 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 750 | h | Mebel.h | #pragma once
#include <iostream>
class Mebel
{
friend std::ostream& operator<<(std::ostream& os, const Mebel& m);
public:
Mebel() = default;
Mebel(int setSz, int setWys, int setDl) : sz(setSz), wys(setWys), dl(setDl){}
virtual ~Mebel()
{
std::cout <... |
9c09bd191855aa865c2ea968bc0768a0153a6a27 | b7d4fc29e02e1379b0d44a756b4697dc19f8a792 | /deps/boost/libs/compute/test/test_svm_ptr.cpp | 1546deb70426cc90361b774e5c4a2f7d2f04c975 | [
"GPL-1.0-or-later",
"MIT",
"BSL-1.0"
] | permissive | vslavik/poedit | 45140ca86a853db58ddcbe65ab588da3873c4431 | 1b0940b026b429a10f310d98eeeaadfab271d556 | refs/heads/master | 2023-08-29T06:24:16.088676 | 2023-08-14T15:48:18 | 2023-08-14T15:48:18 | 477,156 | 1,424 | 275 | MIT | 2023-09-01T16:57:47 | 2010-01-18T08:23:13 | C++ | UTF-8 | C++ | false | false | 4,595 | cpp | test_svm_ptr.cpp | //---------------------------------------------------------------------------//
// Copyright (c) 2013-2014 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://boosto... |
d6e2974d599909424f8bcb5c922b127e75ce9028 | 660f8a1a5c389cf02e0cac03fcad44e15a12784f | /AudioEqualizer/main.cpp | 0fdbc8e30f4b736650f3137e6091600e4a090cfb | [] | no_license | johnneycat/AudioEQ | 25b42d5d301c89854d1e123390e89838a6a84622 | ed89a0268ef9f84c30d8a6556547f30c8500aafa | refs/heads/master | 2022-03-01T17:31:10.722549 | 2019-09-02T22:32:22 | 2019-09-02T22:32:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,660 | cpp | main.cpp | // main.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "AudioDevice.h"
#include "Window.h"
#include "InputManager.h"
#include "FrameRateLimiter.h"
#include "EQDraw.h"
#include "Equalizer.h"
#include "DFT.h"
#include "EqualizerDFT.h"
#include "EqualizerDCT.h"
#include "Equa... |
8ea639dab3ada3caa4bb01237876d113af77ffb8 | f4d4695405d981ce0a7a612a826c9d26735f25f3 | /MoonliteAccelstepperAFMotor.ino | 57717247fea8b5f6da186281571d5a10ae968f67 | [
"BSD-2-Clause"
] | permissive | orlyandico/arduino-focuser-moonlite | 42994fa943aae0d226bd65295ac7ec514e470c65 | 486d0684c2c09c6b9c64c007d266e216354cf9f9 | refs/heads/master | 2021-01-01T05:09:31.137244 | 2020-09-29T23:30:05 | 2020-09-29T23:30:05 | 58,908,120 | 4 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 5,978 | ino | MoonliteAccelstepperAFMotor.ino | // Moonlite-compatible stepper controller
//
// Uses AccelStepper (http://www.airspayce.com/mikem/arduino/AccelStepper/)
// Uses AFMotor and the Adafruit v1.2 Motor Shield https://learn.adafruit.com/adafruit-motor-shield
//
// Requires a 10uf - 100uf capacitor between RESET and GND on the motor shield; this prevents th... |
b90af8e0399bbcae1dc0522a4d2896ef53d37d75 | 2d4221efb0beb3d28118d065261791d431f4518a | /OIDE源代码/OLIDE/Controls/scintilla/SyntaxCtrl.h | f028857df44252a76e021581ed5ab40e61f6d17b | [] | no_license | ophyos/olanguage | 3ea9304da44f54110297a5abe31b051a13330db3 | 38d89352e48c2e687fd9410ffc59636f2431f006 | refs/heads/master | 2021-01-10T05:54:10.604301 | 2010-03-23T11:38:51 | 2010-03-23T11:38:51 | 48,682,489 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 779 | h | SyntaxCtrl.h | #pragma once
#include "ScintillaCtrl.h"
// CSyntaxCtrl
class SCINTILLACTRL_EXT_CLASS CSyntaxCtrl : public CScintillaCtrl
{
DECLARE_DYNAMIC(CSyntaxCtrl)
public:
CSyntaxCtrl();
virtual ~CSyntaxCtrl();
public:
int GetCurrentLine();
protected:
afx_msg void OnRButtonDown(UINT nFlags, CPoint... |
83edbaba5dc3208cd1830d96a523285b51bc303c | 01ec5fae952211e0a0ab29dfb49a0261a8510742 | /backup/source/cpp/[430]扁平化多级双向链表.cpp | 4d6b3e9a9b901f6e943920a125204bf128803da7 | [] | no_license | algoboy101/LeetCodeCrowdsource | 5cbf3394087546f9051c493b1613b5587c52056b | 25e93171fa16d6af5ab0caec08be943d2fdd7c2e | refs/heads/master | 2021-02-20T00:18:51.225422 | 2020-06-21T09:04:24 | 2020-06-21T09:04:24 | 245,323,834 | 10 | 4 | null | 2020-03-09T02:23:39 | 2020-03-06T03:43:27 | C++ | UTF-8 | C++ | false | false | 1,117 | cpp | [430]扁平化多级双向链表.cpp | //您将获得一个双向链表,除了下一个和前一个指针之外,它还有一个子指针,可能指向单独的双向链表。这些子列表可能有一个或多个自己的子项,依此类推,生成多级数据结构
//,如下面的示例所示。
//
// 扁平化列表,使所有结点出现在单级双链表中。您将获得列表第一级的头部。
//
//
//
// 示例:
//
// 输入:
// 1---2---3---4---5---6--NULL
// |
// 7---8---9---10--NULL
// |
// 11--12--NULL
//
//输出:
//1-2-3-7-8-11-12-9-10-4-... |
e5e9959e002c91d368cbf724c6a67fa6ec75ac84 | 278a387702eccb05752471d80e9ff21cc232f941 | /src/components/hitable.cpp | ff83e46751d265d6ebae5ebdb68411b3da46b179 | [
"MIT"
] | permissive | ChinYing-Li/ClusterEngine | 2707f92870360aaea8d179181cc0c4d697d0ce92 | 2625dfb194a65d6b277f6c3c57602319000bce16 | refs/heads/master | 2023-07-07T06:26:27.533531 | 2021-08-15T13:44:16 | 2021-08-15T13:44:16 | 263,721,285 | 3 | 0 | MIT | 2020-10-09T11:37:34 | 2020-05-13T19:13:01 | C | UTF-8 | C++ | false | false | 156 | cpp | hitable.cpp | #include "src/components/hitable.h"
Hitable::Hitable():
Drawable()
{}
Hitable::Hitable(const float x, const float y, const float z):
Drawable(x, y, z)
{}
|
12f10ee83841b2f2ac2180556c8b3e09b9bc4f13 | eacb94b1e073d390c7f24c3b3bb59d3e600f204a | /tests/cuda3.2/tests/sortingNetworks/main.cpp | 481a6776588240424b728a6459a180ff616ad474 | [
"BSD-3-Clause"
] | permissive | mprevot/gpuocelot | b04d20ee58958efd7146ab7b3e798df8127b1a9c | d9277ef05a110e941aef77031382d0260ff115ef | refs/heads/master | 2020-10-01T19:01:38.047090 | 2019-12-12T12:41:41 | 2019-12-12T12:41:41 | 227,603,673 | 1 | 0 | BSD-3-Clause | 2019-12-12T12:38:19 | 2019-12-12T12:38:19 | null | UTF-8 | C++ | false | false | 5,664 | cpp | main.cpp | /*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related... |
9c1e076cdcb22742710275793db26639fc31d97d | ae4a20cbbff5e77cfe632c75be577577fd7b64da | /cp3/ad-hoc/UVa_489_HangmanJudge.cpp | d955f00a405fc9d5fe62d2fc2b80250ac8c53c2b | [] | no_license | geeooleea/ACM-ICPC | 43903d2c99d747305884f0ec387adde6f700b958 | 6ed19114f0aa535f932fdd3afc577f5b3176f9b7 | refs/heads/master | 2020-04-02T16:40:35.700428 | 2019-11-13T16:36:36 | 2019-11-13T16:36:36 | 154,623,588 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,411 | cpp | UVa_489_HangmanJudge.cpp | #include <iostream>
#include <unordered_set>
using namespace std;
unordered_set<char> tried; // avoid duplicate wrong guesses
int main() {
int round_n;
string word;
string guess;
int lives;
cin >> round_n;
while (round_n != -1) {
cout << "Round " << round_n << endl;
cin >> wor... |
c4d5e2990fc82fac97f3f786b590c41ef81ba533 | 4fddbc04d6196e915a68968e9845bf2d77513cec | /lib/jpegli/common.cc | 5f34372f3e534647d3b39d1520496596d85a2c1d | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | libjxl/libjxl | 4159f66557f01b7f8e76df8710d7a46bcbfa7fa3 | 4b8aad231bc7857158be8e4bf554a805596b1916 | refs/heads/main | 2023-08-25T19:45:32.798803 | 2023-08-24T10:11:25 | 2023-08-24T14:02:13 | 340,219,494 | 1,254 | 237 | BSD-3-Clause | 2023-09-14T11:13:28 | 2021-02-19T00:56:12 | C++ | UTF-8 | C++ | false | false | 1,602 | cc | common.cc | // Copyright (c) the JPEG XL 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.
#include "lib/jpegli/common.h"
#include "lib/jpegli/decode_internal.h"
#include "lib/jpegli/encode_internal.h"
#include "lib/jpegli/memory_manag... |
c3bb386aaf104429bda6e60cc80537ebe052f5a0 | d50ab7fe87359deb5c97588994402e94e8c57432 | /base/communication.hpp | ca67b80cca8d6b2e70a43664b1155858cd96f1a0 | [
"Apache-2.0"
] | permissive | Aaronchangji/Grasper | ee4aeb5566a6b0e298ad26c7e541b1d6874f4f8c | 51b272bf7304f1b9758e68dbbcf68517803b1fa6 | refs/heads/master | 2021-06-25T13:28:37.697321 | 2021-04-03T09:33:12 | 2021-04-03T09:38:15 | 223,234,231 | 0 | 0 | Apache-2.0 | 2019-11-21T18:04:15 | 2019-11-21T18:04:14 | null | UTF-8 | C++ | false | false | 3,024 | hpp | communication.hpp | /* Copyright 2019 Husky Data Lab, CUHK
Authors: Hongzhi Chen (hzchen@cse.cuhk.edu.hk)
*/
#ifndef COMMUNICATION_HPP_
#define COMMUNICATION_HPP_
#include <mpi.h>
#include <vector>
#include "base/node.hpp"
#include "base/serialization.hpp"
#include "utils/global.hpp"
#include "utils/unit.hpp"
using namespace std;
// ... |
b1d64775d21cccee8809c26c5578c8102ab49ad4 | 738853f3f29836c9d3ea26a25df85913c876e2a9 | /include/clu/type_erasure.h | f461223e642bb01437d6dcfc3044cc80e53ff172 | [
"MIT"
] | permissive | gorilux/clu | c61f4823323078739a2f97e2d17c06cebe561c5a | 92e382a854cd9c5d678c4465c099cd3a84f190c0 | refs/heads/master | 2023-03-28T07:48:27.760676 | 2021-03-13T11:51:51 | 2021-03-13T11:51:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,469 | h | type_erasure.h | #pragma once
#include <tuple>
#include <typeinfo>
#include "new.h"
#include "take.h"
#include "concepts.h"
#include "function_traits.h"
#include "type_traits.h"
#include "meta/value_list.h"
namespace clu
{
namespace te
{
struct policy_base {};
template <typename T> concept policy = std::deriv... |
cef023adc3f588a42c13e9ba255ccd09c49c8cab | e99416680ccd308d39a3e679d609d46b1ad42514 | /cpp/string2/string.h | dc860c39a91b29e495d0eaad3c04de0209487d37 | [] | no_license | lim1992kr/ForStudy | 123295b80196d294dab615c598ce04870c567798 | 77d2810607ada140df733ddce42e4315faaa5dfb | refs/heads/master | 2022-12-12T19:49:36.979941 | 2020-09-08T04:47:25 | 2020-09-08T04:47:25 | 276,047,088 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,051 | h | string.h | #ifndef STRING_H
#define STRING_H
#include "stringRep.h"
#include <iostream>
class String {
friend std::ostream& operator << (std::ostream& out, const String& rhs);
//맴버함수 아니고 전역함수다.
private:
//char *str;
//int len;
StringRep *ptr_;
/*
StringRep *ptr_; 을 호출하면 아래 세개가 호출된다.
char *str_;
int len_;
int rc_; //참조... |
fe1f94bd0e7a3305542ddbe0b8baa306ebf1d574 | 59e51f6466c7232f9d235e32b15a421b37bfb772 | /Graph store/Traits/Traits.h | 9e961ebca8e345677950a3540e01d354a5451561 | [] | no_license | IDragnev/Graph-store | 125fe050d5081b4a85430cad88f1b79ce419a6f3 | e435064a63e84c12b16d37b66a13b7799644f5ba | refs/heads/master | 2021-03-27T20:41:13.824270 | 2019-07-28T16:22:07 | 2019-07-28T16:22:07 | 122,102,047 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,276 | h | Traits.h | #ifndef __TRAITS_H_INCLUDED__
#define __TRAITS_H_INCLUDED__
#include <type_traits>
#include <iterator>
namespace IDragnev::Traits
{
namespace Detail
{
template <typename Iterator>
using IteratorCategory = typename std::iterator_traits<Iterator>::iterator_category;
template <typename Iterator>
using Iterato... |
657d8f552901aff4e0c8c54651bee97a008f5a13 | 7eca32bc2f32d8deee9a07e027cba753c3bc440a | /Arduino/PinenerdDerby/PinenerdDerby.ino | c751ab8e3390897216d6924012c4a51fa39354bc | [] | no_license | joshing/pinenerd-derby | e11bde289fac2df4f1a7e2d8990b8349af5845ce | bbdd394aa9b76ae884e4cc104d1c154554e04dfc | refs/heads/master | 2020-06-07T12:34:38.237563 | 2015-05-19T18:29:49 | 2015-05-19T18:29:49 | 35,890,287 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,386 | ino | PinenerdDerby.ino | /*
Copyright (c) 2015 Josh Gunnar
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, including without limitation
the rights to use, copy, modify, merge, publ... |
74e277e85266473d548e00eaea8f66f118e36eec | 542ac9465b7683ae7c649e739b47a320b8094f05 | /cpp/degree.h | 5d99c74b8dea12bf4d3e2ab4af753163105e46e3 | [] | no_license | ZenoTan/mini_pbg | 4f75a9315d3a33a430a2458741f9d32f422329be | cd337ae8432a0b535c2fb2aed09d99eec8f26499 | refs/heads/master | 2020-06-29T17:03:16.935633 | 2019-09-02T09:43:28 | 2019-09-02T09:43:28 | 200,572,652 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 874 | h | degree.h | #ifndef DEGREE_H
#define DEGREE_H
#include <vector>
#include <string>
#include <fstream>
using namespace std;
namespace degree {
class DegreeBucket {
public:
DegreeBucket(int N, int E): num_node(N), num_edge(E) {
count_in.resize(N);
count_out.resize(N);
count_all.resize(N);
}
void Process(const string &fil... |
f6ed88865684d30def7ca250dadf1cd4af2dbf15 | 2b0b07242be5ea756aba992e171b43fbee9bfada | /BOJ/1647/1647.cpp | f44c238d1d057f2290e799721c194f387d313c96 | [] | no_license | newdaytrue/PS | 28f138a5e8fd4024836ea7c2b6ce59bea91dbad7 | afffef30fcb59f6abfee2d5b8f00a304e8d80c91 | refs/heads/master | 2020-03-22T13:01:46.555651 | 2018-02-13T18:25:34 | 2018-02-13T18:25:34 | 140,078,090 | 1 | 0 | null | 2018-07-07T11:21:44 | 2018-07-07T11:21:44 | null | UTF-8 | C++ | false | false | 1,150 | cpp | 1647.cpp | // =====================================================================================
//
// Filename: 1647.cpp
// Created: 2017년 04월 29일 13시 41분 04초
// Compiler: g++ -O2 -std=c++14
// Author: baactree , bsj0206@naver.com
// Company: Chonnam National University
//
// ========... |
b47d26d27630eb7e001ea975c34a7cbbff7a95e1 | f5fea98d29872099558d33631bbb0974016ee08e | /include/Menu.hpp | ff986fa20cb8d3738de89def2a5fbe72af708173 | [] | no_license | EsSamdel/superLoloBross | 30ca7768296ab2204a772ac86264e6df35794442 | 75bae9d97e76223f189a9748a262cf765baebf72 | refs/heads/master | 2020-04-27T23:20:37.900162 | 2017-04-04T12:11:27 | 2017-04-04T12:11:27 | 17,454,798 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 324 | hpp | Menu.hpp | /*
* Menu.hpp
*
* Created on: 6 mars 2014
* Author: simon
*/
#ifndef MENU_HPP_
#define MENU_HPP_
#include "Common.hpp"
class Menu {
public:
Menu(const char * fileName);
virtual ~Menu();
void display(SDL_Surface* screen);
private:
SDL_Surface * _image;
SDL_Rect _menuPos;
};
#endif /* MENU_HPP_... |
80cecce2ce198fe37bdb238fd625bba55c58198f | 25c9f6d13c101dd6c6e8014c0861bc536c133ce0 | /src/utils/Utils.h | 4107ed9d714d167450129f3bc29898b2687a0778 | [
"MIT"
] | permissive | Patbott/Masterkeys | 1970140ff9e035a7e034a750b57e70ddba9a2341 | a4cc07c21faffd5228e16405eb10b8931c86fdfa | refs/heads/master | 2020-03-15T20:40:45.823405 | 2018-05-06T13:03:19 | 2018-05-06T13:03:19 | 132,338,563 | 0 | 0 | null | 2018-05-06T12:58:36 | 2018-05-06T12:58:36 | null | UTF-8 | C++ | false | false | 279 | h | Utils.h | #ifndef MASTERKEYS_UTILS_H
#define MASTERKEYS_UTILS_H
template<typename T, typename U, typename V, typename W>
inline T clamp(U min, V val, W max) {
if (val < min) { return (T) min; }
if (val > max) { return (T) max; }
return (T)val;
};
#endif //MASTERKEYS_UTILS_H
|
0a6568aba3af150b6301213ccbbc17d85a20149a | b2b9e4d616a6d1909f845e15b6eaa878faa9605a | /C++/1.cpp | 61447d5af78d10cf06942686cc5bcbd91a690737 | [] | no_license | JinbaoWeb/ACM | db2a852816d2f4e395086b2b7f2fdebbb4b56837 | 021b0c8d9c96c1bc6e10374ea98d0706d7b509e1 | refs/heads/master | 2021-01-18T22:32:50.894840 | 2016-06-14T07:07:51 | 2016-06-14T07:07:51 | 55,882,694 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 208 | cpp | 1.cpp | #include <iostream>
using namespace std;
int gcd(long long a,long long b){
if (b==0)
return a;
return gcd(b,a%b);
}
int main(){
long long a,b;
while (cin>>a>>b){
cout<<gcd(a,b)<<endl;
}
return 0;
}
|
105fb79c1f5e387b7646020b78cf2e2eb6f51122 | 20d4f5c63fe27fe4eea9e6e4e318e63928f517ec | /thrill/api/write_lines_one.hpp | eab6c0c9035d386015f90140b3a604e4139bbc26 | [
"BSD-2-Clause"
] | permissive | TiFu/thrill-hyperloglog | 13101b70ae23667940c2bf277ecbc3ea5f9a331e | bac13cd4ba23ec4bf6fe2e32ffa79d68c348cbcf | refs/heads/master | 2020-04-02T13:28:28.679216 | 2017-01-09T21:29:56 | 2017-05-10T13:56:15 | 154,482,700 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,250 | hpp | write_lines_one.hpp | /*******************************************************************************
* thrill/api/write_lines_one.hpp
*
* Part of Project Thrill - http://project-thrill.org
*
* Copyright (C) 2015 Matthias Stumpp <mstumpp@gmail.com>
* Copyright (C) 2015 Timo Bingmann <tb@panthema.net>
* Copyright (C) 2015 Alexander N... |
8f5e1581257c1678a75059b9c640da1781d37f5a | 73c8a3179b944b63b2a798542896e4cdf0937b6e | /Notebook/src/DP - Subset Sum.cpp | fed25bc2608b0821d9ebc3dbefcd70f9cf99dc52 | [
"Apache-2.0"
] | permissive | aajjbb/contest-files | c151f1ab9b562ca91d2f8f4070cb0aac126a188d | 71de602a798b598b0365c570dd5db539fecf5b8c | refs/heads/master | 2023-07-23T19:34:12.565296 | 2023-07-16T00:57:55 | 2023-07-16T00:57:59 | 52,963,297 | 2 | 4 | null | 2017-08-03T20:12:19 | 2016-03-02T13:05:25 | C++ | UTF-8 | C++ | false | false | 377 | cpp | DP - Subset Sum.cpp | //Subset-Sum -> (G = O valor total sendo testado, N = numero de valores disponiveis no array 'values'
int values[n];
bool subsetSum(int n, int g) {
for(j = 0; j <= g; j++) sub[j] = 0;
sub[0] = 1;
for(j = 0; j < n; j++) if(values[j] != g) {
for(int k = g; k >= values[j]; k--) {
sub[k] |= ... |
7f313617cca4871d0fa8affdbe291c5c3eb63be9 | a669cbf67299dd54e89562e45927a2f5148d97ab | /vr/shapes/implicitshape.cpp | 95756bd6bd2e3a59375b2d3fbe035ce825032867 | [] | no_license | nicsteinberg/cs123-final | e3713311b8cc4342fce1f1af3bf84f9f3b0e9623 | a11800424956ddfbbf1abe50b7cb77e892643c58 | refs/heads/master | 2020-04-10T10:39:50.441516 | 2018-12-15T21:50:48 | 2018-12-15T21:50:48 | 160,972,525 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 407 | cpp | implicitshape.cpp | #include "implicitshape.h"
// Parent class for all implicit shapes for ray. Each has functionality
// for intersection t values and normals at given intersections.
ImplicitShape::ImplicitShape()
{
}
glm::vec4 ImplicitShape::getNormal(glm::vec4 p, glm::vec4 d, float t) {
return glm::vec4();
}
glm::vec2 ImplicitSh... |
4e6d3739f404b4b3317519d88927c951c6abc0e8 | f2f17f11433e732777c031a8b2af85cc809140d9 | /shared/test/unit_test/gen12lp/test_command_encoder_gen12lp.cpp | 7605e916b5d119e5b8af94271cfaa7d35ceceb2a | [
"MIT"
] | permissive | ConnectionMaster/compute-runtime | 675787c428de81abe96c969ecadd59a13150d3a2 | 1f6c09ba1d6ca19cd17f875c76936d194cc53885 | refs/heads/master | 2023-09-01T04:05:47.747499 | 2022-09-08T11:12:08 | 2022-09-09T09:50:09 | 183,522,897 | 1 | 0 | NOASSERTION | 2023-04-03T23:16:44 | 2019-04-25T23:20:50 | C++ | UTF-8 | C++ | false | false | 6,799 | cpp | test_command_encoder_gen12lp.cpp | /*
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/command_container/cmdcontainer.h"
#include "shared/source/command_container/command_encoder.h"
#include "shared/source/gmm_helper/gmm_helper.h"
#include "shared/source/helpers/preamble.h"
#include "shared/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.