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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72979cbe9e5ace50d5939d23c585fdff430b1379 | 61deafb2dcf4820d46f2500d12497a89ff66e445 | /1775.cpp | 43fdd114d4f83d409a0170326114c9c13ec000e1 | [] | no_license | Otrebus/timus | 3495f314587beade3de67890e65b6f72d53b3954 | 3a1dca43dc61b27c8f903a522743afeb69d38df2 | refs/heads/master | 2023-04-08T16:54:07.973863 | 2023-04-06T19:59:07 | 2023-04-06T19:59:07 | 38,758,841 | 72 | 40 | null | null | null | null | UTF-8 | C++ | false | false | 1,819 | cpp | 1775.cpp | /* 1775. Space Bowling - http://acm.timus.ru/problem.aspx?num=1775
*
* Strategy:
* For each pair of points, sort the other points by distance from the line spanning the pair and
* use the kth such distance to update the global minimum.
*
* Performance:
* O(N^3 log N), runs the tests in 0.764s using 404KB memory.... |
7b1838317102e9c74a3e8cc18d9a3d406eaf4f45 | 9b727ccbf91d12bbe10adb050784c04b4753758c | /ZOJ/ZOJ Monthly, June 2013/ZOJ3717.cpp | d5c6e7a070871f25eb658035c2deb51145401220 | [] | no_license | codeAligned/acm-icpc-1 | b57ab179228f2acebaef01082fe6b67b0cae6403 | 090acaeb3705b6cf48790b977514965b22f6d43f | refs/heads/master | 2020-09-19T19:39:30.929711 | 2015-10-06T15:13:12 | 2015-10-06T15:13:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,867 | cpp | ZOJ3717.cpp | #include <cmath>
#include <vector>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <algorithm>
using namespace std;
const int MAXN = 400 + 10;
vector<int> G[MAXN];
int low[MAXN], dfn[MAXN], stk[MAXN], belong[MAXN];
int vis[MAXN], cnt, top, tid;
void dfs(int x) {
low[x] = dfn[x] = ++ tid;
stk[top +... |
4d213c43e8d8a523a4612805d8ac408cc3357515 | 7912617cf87b9104a6bd38231508535d959e998d | /gameengine/src/generic/TwoWayUnorderedMap.cpp | ac88899890c23c45b37d100f992c68fbcc4d24bf | [] | no_license | seckujdivad/gameengine | 47ebb1ee98e09dcac38728f63d22f5aa99cc9303 | 50a676d4faeeeb68587133048444a153b8539186 | refs/heads/master | 2021-10-16T20:49:57.050929 | 2021-10-10T03:58:23 | 2021-10-10T03:58:23 | 222,322,461 | 5 | 0 | null | 2021-03-16T21:04:33 | 2019-11-17T22:43:54 | C++ | UTF-8 | C++ | false | false | 31 | cpp | TwoWayUnorderedMap.cpp | #include "TwoWayUnorderedMap.h" |
79769ccbea8e5031f41b410b9a936bbdbff2f854 | 75cd69287a6063726be4496d2a3b2a100e69f12e | /chapter_15/funcmacro.cpp | c08722af08d561ace07a5f02f0a4a8f11a1950e5 | [] | no_license | kou164nkn/tutorial-cpp | e63ee8bcedf4996c29da8080ec2fd4b0b95c9bb9 | c93ee44f3ef63ec2ab63840378378a3c2148d3b1 | refs/heads/master | 2023-03-02T06:35:33.746880 | 2021-01-30T14:53:09 | 2021-01-30T14:53:09 | 275,815,304 | 0 | 0 | null | 2021-01-30T14:53:10 | 2020-06-29T12:56:20 | C++ | UTF-8 | C++ | false | false | 485 | cpp | funcmacro.cpp | #include <iostream>
#define sqr(x) ((x) * (x))
#define sss(x) (#x) // # で受け取ったパラメータを文字列化する
// デバッグ用マクロ
// ... で可変数個のパラメータを受け取り __VA_ARGS__ でパラメータを使用する
#define dbg(...) std::cout << #__VA_ARGS__ << " = " << [&]{ return __VA_ARGS__; }() <<std::endl;
int main() {
std::cout << sqr(4) << std::endl; // => 16
std::c... |
a93b332660e66aa2133e808eeb69dbcc134fb506 | 6bf03623fbe8c90c32ba101f9d6f110f3c654ce3 | /BOJ/알고리즘 분류/그리디/11047.cpp | 31d677cd66d909d301787c33d63d9b5402376c6b | [] | no_license | yoogle96/algorithm | 6d6a6360c0b2aae2b5a0735f7e0200b6fc37544e | bcc3232c705adc53a563681eeefd89e5b706566f | refs/heads/master | 2022-12-27T05:15:04.388117 | 2020-10-09T14:48:58 | 2020-10-09T14:48:58 | 177,144,251 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 660 | cpp | 11047.cpp | #include <cstdio>
using namespace std;
int main(void) {
int n;
int money;
int count = 0;
scanf("%d", &n);
scanf("%d", &money);
int * arr = new int(n);
for(int i = 0 ; i < n; i++){
scanf("%d", &arr[i]);
}
for(int i = n-1; i >= 0; i--){
if(arr[i] > money){
... |
0466ca435fcbd80725fe1888e20a5f825d5a218f | de81e62eb730b3ff0e8cfafbdfc5bdebf5083e7f | /src/LinearAlgebra.h | 57388a88601f7142344271fe39e7513ab3e18118 | [] | no_license | Siim-Alas/AeroOptimizer | d0069ee7032d202f8d014f52124f9720c1857fb0 | 06b971cad4d4ed9736ef9d6e677a104fa457cfac | refs/heads/main | 2023-04-06T09:47:45.980952 | 2021-03-25T09:25:29 | 2021-03-25T09:25:29 | 327,970,866 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,409 | h | LinearAlgebra.h |
#pragma once
namespace AeroOptimizer
{
namespace LinearAlgebra
{
/*
* result = left + right, adds the left and right vectors.
*
* @param left, the array representing one vector to be added.
* @param right, the array representing the other vector to be added.
* @param result, the array where the resultin... |
f1f952e0eb791e71c43e9fc5c1b74f5390bf2eec | 93d68c3c498cc9be902ea7894231e3e9bc40c1c5 | /User.h | a31b7de5665afe5b20a610bf81d62e9aed22b80d | [] | no_license | rares04/Lab-6 | 0bebe6d1d40899ac7d9fb575ad1421e410ecebf9 | 4dce20d1df256fa14fe69120937be5988ced8be1 | refs/heads/master | 2022-08-02T07:30:39.718079 | 2020-06-05T06:55:14 | 2020-06-05T06:55:14 | 262,234,463 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,131 | h | User.h | #pragma once
#include<iostream>
#include <vector>
#include "Film.h"
#include "FilmRepository.h"
using namespace std;
class User {
private:
vector <Film> watchList;
FilmRepository filmRepo;
public:
// Default constructor, nothing will be initialized, made to pass User as attribute in UI
User();
Us... |
745cf3cfc832fd71491ecf04f3467cce3f099903 | 00387cb8474ca01052a189b6a9370a6577384919 | /src/plugins/bittorrent/pieceswidget.cpp | 7d3c65057000487cdce3b38db88412956e755c5d | [
"BSL-1.0"
] | permissive | WildeGeist/leechcraft | bcfd646b407c6ae6654eb9c17d095cf070f7c943 | 719c9635a2f8e7bb7540d2a11301d61bbfeead7a | refs/heads/master | 2023-01-24T03:41:58.670559 | 2020-10-04T15:06:19 | 2020-10-04T15:06:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,520 | cpp | pieceswidget.cpp | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE... |
20e650aa13e97a4c187cefa5ab9044c3d9e4e9c7 | 1634d4f09e2db354cf9befa24e5340ff092fd9db | /Wonderland/Wonderland/Editor/Foundation/UI/Components/Frame/UIFrameToken.cpp | 792e1984d14181bb6b7be2ef00e53cbe50771de4 | [
"MIT"
] | permissive | RodrigoHolztrattner/Wonderland | cd5a977bec96fda1851119a8de47b40b74bd85b7 | ffb71d47c1725e7cd537e2d1380962b5dfdc3d75 | refs/heads/master | 2021-01-10T15:29:21.940124 | 2017-10-01T17:12:57 | 2017-10-01T17:12:57 | 84,469,251 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 836 | cpp | UIFrameToken.cpp | ////////////////////////////////////////////////////////////////////////////////
// Filename: UIFrameToken.cpp
////////////////////////////////////////////////////////////////////////////////
#include "UIFrameToken.h"
//////////////////
// CONSTRUCTORS //
//////////////////
UIFrameToken::UIFrameToken()
{
// Set the ... |
1baefb845df2805e6628288e50873f17b8b1a799 | 267d1ecc53f7896c02e144bdf0248882633deb30 | /d01/ex00/Pony.hpp | fba0a15a337aa539be4f5dc22dc41971be7da9f0 | [] | no_license | fabienblin/piscineCPP | c015a7c1996f43b03d6573f32a5831defa5f9499 | 85ad4ea72afc022050e3cb20fa955907ad9ddf8b | refs/heads/master | 2022-04-04T03:22:44.378943 | 2020-01-29T16:57:10 | 2020-01-29T16:57:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,190 | hpp | Pony.hpp | /* ************************************************************************** */
/* LE - / */
/* / */
/* Pony.hpp .:: .:/ . .:: ... |
d9b723042b72b53e4b29e7f4504fd5025c00a98c | 0e27a85d6825cfdd277e7fe9e232d55785d7303f | /calculator.cpp | 67a59d98a4c876fe4e58971b3fd2f7f75cb215d8 | [] | no_license | IvanAnanchikov/calculator | c6ac756c1df3cf06792a5bf0cedd07b95650f6e7 | 7f81f5f6e23313f0ded3cdc2922012101f272157 | refs/heads/master | 2020-03-26T15:20:48.137812 | 2018-08-16T20:53:06 | 2018-08-16T20:53:17 | 145,037,704 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,608 | cpp | calculator.cpp | #include "calculator.h"
Calculator::Calculator (QWidget *parent) : QWidget(parent) {
lcd = new QLCDNumber(this);
lcd->setMinimumSize(150, 50);
lcd->setSegmentStyle(QLCDNumber::Flat);
lcd->setDigitCount(11);
lcd->setSmallDecimalPoint(true);
label = new QLabel("");
label->setMinimumSize (150, 50);
label->setAlig... |
013e407a2c5b837bee7e80bd058fe5067069e49a | a0dce37339bf2e60d7ddff5b1b9346e364a04bc8 | /rational.cpp | bfb82b48142792642690baa43034ee1ce19caa71 | [] | no_license | archiver/spoj | c0dfdc2bfea0c4d811ee0b95dce83c720bea3eae | ac78437594b4ff062db886d03db2a7192478b603 | refs/heads/master | 2020-05-18T00:58:53.697941 | 2013-01-18T22:00:38 | 2013-01-18T22:00:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,237 | cpp | rational.cpp | #include <stdio.h>
#include <math.h>
#define N 1001
#define M 1000001
#define P 200
typedef unsigned long long ull;
int primes[P];
int phi[M];
ull phi_sum[M];
void init()
{
bool pmask[N];
int i,j;
int limit=sqrt(N)+1;
//sieve of erasthosenes
for(i=0;i<N;++i) pmask[i]=true;
primes[0]=2;
for(i=3;i<li... |
29ebf4f85a352c2136fb5288c9e37c8d0fa32e78 | 0577a46d8d28e1fd8636893bbdd2b18270bb8eb8 | /chromium/chrome/browser/page_load_metrics/observers/page_anchors_metrics_observer.h | 607510b6c418e04d72a8734e133290529165bda5 | [
"BSD-3-Clause"
] | permissive | ric2b/Vivaldi-browser | 388a328b4cb838a4c3822357a5529642f86316a5 | 87244f4ee50062e59667bf8b9ca4d5291b6818d7 | refs/heads/master | 2022-12-21T04:44:13.804535 | 2022-12-17T16:30:35 | 2022-12-17T16:30:35 | 86,637,416 | 166 | 41 | BSD-3-Clause | 2021-03-31T18:49:30 | 2017-03-29T23:09:05 | null | UTF-8 | C++ | false | false | 3,051 | h | page_anchors_metrics_observer.h | // Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_PAGE_ANCHORS_METRICS_OBSERVER_H_
#define CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_PAGE_ANCHORS_METRICS_OBSERVER_H_
#includ... |
78f01b532b5614484c40dd3de1bb23a5c354882c | 179ffb8f2137307583a23cb6826d720974fc9784 | /Unit04/TotalArea/TotalaArea.cpp | e107a29baede0741ad1111301e1a7188f79d4444 | [] | no_license | Sheepypy/MOOC | e59f85732e225cc0f6059e46b0620dd34869faa8 | 258b178481419dcea1dc32f07aab4536f606205c | refs/heads/master | 2023-08-13T23:14:52.245101 | 2021-09-14T09:57:46 | 2021-09-14T09:57:46 | 392,976,556 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,091 | cpp | TotalaArea.cpp | #include <iostream>
#include "Circle2.h"
using std::cout;
using std::cin;
using std::endl;
int main() {
//1
Circle ca1[]{ Circle{1.0}, Circle{2.0}, Circle{3.0} };//原生数组不能用auto
Circle ca2[]{ 1.0, 2.0, 3.0 };
ca1[2].setRadius(4.0);
ca2[1].setRadius(100.0);
auto area1{ 0.0 };
auto area2{ 0.0 };
for (int i = 0;... |
177e15ce8f7c049e8a690bd925c3e74f170cc197 | 2fa31ae8d02cd92bf24bd8cf0f2a611a02a28519 | /since2018/integrated_algorithm/16561.cpp | d119c85cf7b2b0987f325b62bb2e0d72dc378ac6 | [] | no_license | dlftls38/algorithms | 3619186d8d832cda695dfbf985e5d86ef6f2f06e | 18ab96bbb3c8512a2da180477e4cc36a25edd30d | refs/heads/master | 2021-07-10T06:09:53.211350 | 2020-10-17T00:04:43 | 2020-10-17T00:04:43 | 206,953,967 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 778 | cpp | 16561.cpp | #include <stdio.h>
#include <iostream>
#include <string.h>
#include <string>
#include <algorithm>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <limits.h>
#include <functional>
#include <math.h>
#include <fstream>
#define INF 987654321
#define MAX_VALUE 1000000000
#define MO... |
c8ab5a8291713e8ea5aa3fc824a1faf05bf02cc8 | 1c9ad827c00830e9fc3723612645e509b9e698d8 | /TheGame/Background.h | bc471926f298b0582d60009d87b25689247ed604 | [] | no_license | JoBri93/Astrosolver | 2f499b864236e0f07456b41ec7b632afd7766897 | b621cdf5fee32871c591643c09e0faeb92712cdd | refs/heads/master | 2020-05-05T11:15:51.647480 | 2019-04-07T15:29:31 | 2019-04-07T15:29:31 | 179,982,034 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 167 | h | Background.h | #pragma once
class Background : public SceneObject
{
public:
std::string textureName;
void Render();
void Update();
Background(std::string);
~Background();
};
|
5e435d8ea2f190bd384fe23e2c60519aae7a639b | ef35552267ac45345c60135845470260afbd6687 | /Applications/sprout_alcc/alfalfa/src/examples/sproutbt2.cc | 3e9d5b7905c6e8ab6f3f2227d5ac355a04f4a289 | [
"MIT"
] | permissive | xianliangjiang/ALCC | 2bbe7e48aaf7ab273cfea4622855be12e261730f | fc9c627de8c381987fc775ce0872339fceb43ddf | refs/heads/main | 2023-05-16T21:11:06.738812 | 2021-06-10T11:43:23 | 2021-06-10T11:43:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,673 | cc | sproutbt2.cc | #include <unistd.h>
#include <string>
#include <assert.h>
#include <list>
#include <sys/time.h>
#include <iostream>
#include <fstream>
#include "sproutconn.h"
#include "select.h"
using namespace std;
using namespace Network;
int main( int argc, char *argv[] )
{
struct timeval time2;
char *ip;
int port;
ofstr... |
52549f1da85024ce35646cc8dd2ec164d34ba256 | d310f6d99f5c966f0a7b1ebf7e5312ac6317976e | /RCCar.ino | 4ec574090274ac88f7841f65d9225b109a088b90 | [] | no_license | Sryther/RCCar | b53417caa9cf6043fa917233e4ea8c0d6887bfe8 | c2fc61f238f0437ed989e81fe74fa345b637c0e6 | refs/heads/master | 2021-01-23T00:15:52.945087 | 2014-01-14T15:36:09 | 2014-01-14T15:36:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 181 | ino | RCCar.ino | #include <nmea.h>
void setup() //fonction d'initialisation de la carte
{
}
void loop() //fonction principale, elle se répète (s’exécute) à l'infini
{
}
|
6e6de8ea270e805f0da739b721c466d540930fec | 707d78afbff89aa8a7ab6c3b1253e1f032be8073 | /Heap Sort/Heap.h | 0ab80120413ad8f28692520c188534ec15480054 | [] | no_license | KDunc11/Heap_Sort | 8589a963a6b71dffb18ed2787534bfd5c8fa0790 | 2de24ea6b019d3a04408c1aa2bec05e9e7a21327 | refs/heads/master | 2022-12-26T17:12:12.297056 | 2020-10-05T17:29:22 | 2020-10-05T17:29:22 | 301,487,463 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 889 | h | Heap.h | #ifndef HEAP_H
#define HEAP_H
#include <iostream>
using namespace std;
template<typename T>
class Heap
{
public:
//Default Constructor
Heap<T>();
//Constructor
Heap<T>(T dataArr[], const int& dataSize, const char& type);
//Destructor
~Heap();
void sort(); //Used to sort the heap either as a min or max heap b... |
1b9ec1f7f77458eb47564850265cdbf87d21861e | ea2ef79d13c8c8c70f96ba6683bf0f321e9942c1 | /src/input/XWindowManager.cpp | f172967f64b70f7366858277abacaecd847ea46e | [
"MIT"
] | permissive | stnma7e/scim | 32145a3d51aadb2013f2ab452fb1c83af563ca13 | a82f0e97018a4a2abf0a225f75ebc7e8ef6f1e0d | refs/heads/master | 2021-01-10T20:17:34.222501 | 2014-02-01T19:08:54 | 2014-02-01T19:08:54 | 7,210,907 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,898 | cpp | XWindowManager.cpp | #include "input/XWindowManager.h"
#include "input/InputTools.h"
#include "event/EventManager.h"
#include "event/events/ShutdownGameEvent.h"
#include <stdio.h>
#include <stdlib.h>
namespace scim
{
extern EventManager* g_eventManager;
XWindowManager::XWindowManager(const char* windowName, I32 width, I32 height, bool ... |
ed5cbe2295c3fe05d2c1c908ab2d66506f5f0299 | e92af86f33f4bdd457578733074d3c7f6aa7c7fb | /source/GameCommon/MissionConfig.pb.h | 2e085780876c9d4cb90730900688b2f4de0a44d4 | [] | no_license | crazysnail/XServer | aac7e0aaa9da29c74144241e1cc926b8c76d0514 | da9f9ae3842e253dcacb2b83b25c5fa56927bdd3 | refs/heads/master | 2022-03-25T15:52:57.238609 | 2019-12-04T09:25:33 | 2019-12-04T09:25:33 | 224,835,205 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 63,028 | h | MissionConfig.pb.h | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: MissionConfig.proto
#ifndef PROTOBUF_MissionConfig_2eproto__INCLUDED
#define PROTOBUF_MissionConfig_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 2005000
#error This file was generate... |
71e817fd74a8343b2c8abdd1b260450f0a1e3b6a | d73a472a633a88ca54560e0761557266f3a5ff61 | /src/GatewayServer/main.cpp | 67a6d2fb8e90cc534e8e7bdc1fe76d54e24a61ba | [] | no_license | lcbkeith/MServer | b412ec73cdf4820722edc01a1f9f9e1a49e209be | ef5a0e3752492ccdca21f6e1cdc25881bdf9495f | refs/heads/master | 2021-01-18T03:40:01.783948 | 2017-10-26T08:49:35 | 2017-10-26T08:49:35 | 85,799,393 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 381 | cpp | main.cpp | #include "GatewayApp.h"
#include "../ServerBase/Tools/JsonConfig.h"
int main()
{
JsonConfig config;
if (!config.Parse("GatewayServer.setting"))
{
return 0;
}
int port = config.GetInt("port");
GatewayApp* gateway = new GatewayApp;
gateway->Start(port);
while (true)
{
gateway->Tick();
boost::this_thread:... |
9fcee69dd6689cd78d92e226ba0281b441e54c78 | 872095f6ca1d7f252a1a3cb90ad73e84f01345a2 | /mediatek/proprietary/hardware/ril/rilproxy/mtk-rilproxy/telephony/ir/RpIrNwRatSwitchCallback.cpp | 50248e39c922154522dee530df24bc103ad960e4 | [
"Apache-2.0"
] | permissive | colinovski/mt8163-vendor | 724c49a47e1fa64540efe210d26e72c883ee591d | 2006b5183be2fac6a82eff7d9ed09c2633acafcc | refs/heads/master | 2020-07-04T12:39:09.679221 | 2018-01-20T09:11:52 | 2018-01-20T09:11:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,835 | cpp | RpIrNwRatSwitchCallback.cpp | /* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein
* is confidential and proprietary to MediaTek Inc. and/or its licensors.
* Without the prior written permission of MediaTek inc. and/or ... |
cc2f20e2591fde9b67fd270e912c56b7f57d1bf0 | 92a9f837503a591161330d39d061ce290c996f0e | /SiNDY-u/CheckSplitShape/RWN.cpp | b905c94feb171d74601e4dee507982072843c580 | [] | no_license | AntLJ/TestUploadFolder | 53a7dae537071d2b1e3bab55e925c8782f3daa0f | 31f9837abbd6968fc3a0be7610560370c4431217 | refs/heads/master | 2020-12-15T21:56:47.756829 | 2020-01-23T07:33:23 | 2020-01-23T07:33:23 | 235,260,509 | 1 | 1 | null | null | null | null | SHIFT_JIS | C++ | false | false | 2,645 | cpp | RWN.cpp | /*
* Copyright (C) INCREMENT P CORP. All Rights Reserved.
*
* THIS SOFTWARE IS PROVIDED BY INCREMENT P CORP., WITHOUT WARRANTY OF
* ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
* AND NONINFRINGEMENT.
*
* IN NO EVENT SHAL... |
0e05ac284676b9ed1fabb74111c4a79c5f70f64d | 412c58404a2937f180838a0d436ea77a1e88aa50 | /src/tm_uint128/cpp_wrapper.h | 4fb56815523ea5f9bd03c352f5368caa6d4c3359 | [
"LicenseRef-scancode-public-domain"
] | permissive | ExternalRepositories/tm | 6f54b0e6db0a90f27ba67027a538faec216e1187 | c97a3c14aa769b5a8f94b394b4535cd42eeb31d2 | refs/heads/master | 2023-01-23T18:24:51.311720 | 2020-12-05T11:29:24 | 2020-12-05T11:29:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,056 | h | cpp_wrapper.h | namespace tml {
class uint128_t {
private:
tmi_uint128_t value;
public:
#ifdef TMI_ARGS_BY_POINTER
typedef const uint128_t& uint128_t_arg;
#else
typedef uint128_t uint128_t_arg;
#endif
uint128_t(tmi_uint128_t x);
uint128_t(uint64_t x);
uint128_t(uint32_t x);
uint128_t(uint16_t x);
... |
829c0e5c86f6d789972efec3dd52c3cea6d4d274 | 56eb04e5fcb8651b62fb89d0e7521278e7eff913 | /libs/file_utils/pvm.cpp | 6e5801d7de41728984f431a356c8f35772199f20 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"GPL-1.0-or-later",
"GPL-3.0-only",
"MIT"
] | permissive | lquatrin/cpp_volume_rendering | dda046836d0c5a355341a408867d2f9eda0a0fc8 | 8cf7d918edb73ea0408941d14bc4cbadbd02303b | refs/heads/main | 2022-05-31T20:27:34.967805 | 2022-05-24T00:44:53 | 2022-05-24T00:44:53 | 351,811,252 | 22 | 6 | MIT | 2022-01-25T02:36:53 | 2021-03-26T14:34:56 | C++ | UTF-8 | C++ | false | false | 30,905 | cpp | pvm.cpp | #include "pvm.h"
#include <fstream>
#include <iostream>
#include <cmath>
#include <glm/glm.hpp>
#include <glm/exponential.hpp>
#include <glm/ext.hpp>
#include <glm/common.hpp>
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <cerrno>
#define DDS_MAXSTR (256)
#define DDS_BLOCKSIZE (1<<20)
#define DD... |
c45b585de5690803e76ab766943f82e33771b4fd | 55ef8b7e4daa6b4c44961e12fdc7a5f268d5cc2e | /src/simple_examples/BinAddStr.cpp | 54551c5716b0b1a5d48a67aefb3a00c3423c4e14 | [] | no_license | leonardoaraujosantos/CPPBookCode | 65297ce61e92e0974c9f805daa1068c97399b8b7 | 595b4072493b5e7ee89a97734658b28e87f565d9 | refs/heads/master | 2021-01-11T22:58:18.302742 | 2017-03-27T10:44:28 | 2017-03-27T10:44:28 | 78,529,225 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,411 | cpp | BinAddStr.cpp | #include <iostream>
#include <string>
#include <stack>
using namespace std;
inline int binChar2Num(const char ch){
int val = 1?(ch=='1'):0;
return val;
}
// Alexey inline func
inline int getVal(const std::string a, size_t ind)
{
if (a.size() <= ind)
return 0;
if (a[a.size() - ind - 1] == '1'... |
56a308421c357edf70860ff045990c20330d1d6e | 47cec727aa95560ac54184fccab50d1a6c727083 | /ReEngine/src/Runtime/GlobalAssets/CommonExt.h | ba16e47f87bbe3b109b22aa769c66aee189c2185 | [] | no_license | kingdomheartstao/Renderer-Learning | 303cd8f054178dfdc629d81f3569c7fcb2b1eb1d | b35f963414a4dabf6d2fd9ab7dee278ecf38284a | refs/heads/master | 2023-07-28T01:07:32.919132 | 2021-09-10T09:24:46 | 2021-09-10T09:24:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 573 | h | CommonExt.h | #pragma once
#include <string>
#include <vector>
namespace Assets
{
const std::vector<std::string> PrefabExt { ".prefab" };
const std::vector<std::string> MaterialExt { ".mat" };
const std::vector<std::string> SceneExt { ".scene" };
const std::vector<std::string> MeshGroupExt { ".fbx", ".obj" };
const std::vecto... |
ce2f1407ebcfc7bc25332a86256b5ca329f683da | d3f0dc80a3e43fe9a14f1ba0dc6f71d6ff611f68 | /sample/sample.cpp | d256a424c0ee16b0db942b0bf64b6658d05140cf | [] | no_license | Maxim-Doronin/lists | d58e568c74595d0826ebfbceac146c2ca81696fe | f2627555671395eb30adb1bae296e2ebfaf7590f | refs/heads/master | 2021-01-10T16:16:24.435808 | 2015-11-25T08:13:42 | 2015-11-25T08:13:42 | 45,968,421 | 0 | 0 | null | 2015-11-24T20:51:38 | 2015-11-11T08:12:21 | C++ | UTF-8 | C++ | false | false | 449 | cpp | sample.cpp | #include "list.h"
int main()
{
List list(0);
list.insertionEnd(2);
list.insertionEnd(10);
list.insertionEnd(-2);
list.insertionEnd(3);
list.insertionEnd(5);
List *list1 = new List(0);
list1->insertionEnd(-2);
list1->insertionEnd(3);
List *list2 = new List(0);
list2->insertionEnd(4);
list2->insertionEnd(0... |
9e3ecb1f5c78c5a178b8fd5c414fdc436b6b18d9 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2464487_0/C++/alpc27/A.cpp | 6816aac55fb87f7476186d127522af32569fb3e7 | [] | 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 | 945 | cpp | A.cpp | #include <stdio.h>
#include <string.h>
#include <math.h>
#include <algorithm>
using namespace std;
long long MAX = 1000000001;
long long r,t;
bool ok(long long c)
{
if (t < (r * c * 2 + c * (c * 2 - 1)))
return 0;
return 1;
}
long long cal()
{
int i,j;
long long k,a,b,c;
... |
1c9b94d10f106c987a69480e9fd679fc275341b4 | 2e08cd3c9c8260075af6116a3ed8acf4c3548b77 | /MyTest/Opencv_Clock/Opencv_Clock/test.cpp | a69dc207827f9ec314266eedb7c9239e6da9e4fc | [] | no_license | Dutch-Man/Company | 628626e9a80745898101e52c02163dbf6276b327 | 48ebd163b3edd93d560304ec53f349c3293a5f8f | refs/heads/master | 2021-01-09T20:43:25.176229 | 2016-08-10T17:27:38 | 2016-08-10T17:27:38 | 63,476,728 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 259 | cpp | test.cpp | #include <iostream>
#include "opencv2/opencv.hpp"
#include <stdio.h>
using namespace std;
using namespace cv;
void salt(Mat &img,int n)
{
}
int main()
{
cout << rand() << endl << rand() << endl<<rand() << endl;
waitKey(0);
return 0;
}
|
57a995320b40bde69a77433dbd4e945493fdc230 | b0fdd5347dc3b821a057f6f079247ac81a91a91f | /T3Engine/sprite/picturetext.cpp | e3f50557599eac629eebed65cc4cf29039aede7b | [] | no_license | qwertylevel3/TestEngine | c4cd7c7d6c75df7d67cf4d5de9ff98aefc2c807e | dea2c11b3f0690f8dd87e4544ed746aa38ff07c9 | refs/heads/master | 2021-01-14T12:30:09.425614 | 2016-05-30T08:06:29 | 2016-05-30T08:06:29 | 48,836,891 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,275 | cpp | picturetext.cpp | #include "picturetext.h"
PictureText::PictureText()
{
textColor=Qt::white;
textAlignment=Qt::AlignLeft;
textFont=QFont("Arial", 20);
}
void PictureText::writeToImage(QImage &image)
{
textRect=QRect(image.width()/12,
image.height()/5,
image.width()-image.width()/12... |
3c1493072d3a84c9c44eea76e3dc92330b13f27e | 847eaede760d346f7e0d21aa9b96345298655916 | /Arduino/lees/lees.ino | 97f334fcdd8be50080b3e52e3718f4f7aa8b928b | [] | no_license | aisaraysmagul/3rd_course | 1b49c1dc00bfc08b764dea4577769d5133a03768 | 00f3c17028fb31acee3a0e082b205c17e69bfda7 | refs/heads/master | 2020-05-24T03:26:13.138930 | 2019-05-16T17:34:00 | 2019-05-16T17:34:00 | 187,072,256 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 415 | ino | lees.ino | const int ledPin = 2; // choose the pin for the LED
const int inputPin = 7; // choose the input pin (for a pushbutton)
int state = 0;
void setup() {
pinMode(ledPin, OUTPUT); // declare LED as output
pinMode(inputPin, INPUT); // declare pushbutton as input
}
void loop() {
state = digitalRead(inputPin);
if ... |
da034afbc4ec46970457a0e2758889bd2837554b | 2f7fc196c78b10fd341aa2c959aacaa75363a4b6 | /common/log.h | 5af252ed06fe28beb585a26ca449528f0054502f | [
"MIT"
] | permissive | raddinet/raddi | 71db78e74e7aa19cd1175bc5d427426bfb261511 | af48e49675d2a4a524ecc4c6fa49d3173458e1cd | refs/heads/master | 2023-06-10T05:42:37.081451 | 2023-05-28T23:50:55 | 2023-05-28T23:50:55 | 134,083,847 | 46 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 15,190 | h | log.h | #ifndef RADDI_LOG_H
#define RADDI_LOG_H
#ifndef RC_INVOKED
#include <winsock2.h>
#include <ws2tcpip.h>
#include <guiddef.h>
#endif
// TODO: rewrite:
// - remove note..error levels (let call-site decide importance)
// - add 'object' distinction (below component) for classes (or merge with MAIN,SERVER,SOURCE,...)
// ... |
7ed63ae9b68bf904c3316ad1489e6902cdef4de4 | 033b3613935215952868301eaf7ac283b4e49394 | /Implementation/FileAccess.cpp | 8c49cdb114e529b5b1a6b25ec7196c484486bde8 | [] | no_license | ebunge1/Assembler | 4ba33840bdc6fd1a468301971d9e13936d8c57fc | 46cb18577e495d4b77fe542be84dfb30e84113ca | refs/heads/master | 2021-01-20T14:52:59.339336 | 2017-05-09T00:11:01 | 2017-05-09T00:11:01 | 90,683,272 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,984 | cpp | FileAccess.cpp | //
// Implementation of file access class.
//
#include "stdafx.h"
#include "FileAccess.h"
/*
FileAccess::FileAccess()
NAME
FileAccess - constructor, opens file
SYNOPSIS
FileAccess::FileAccess()
DESCRIPTION
Gets the file name from the arguement line.
Opens the file for reading
RE... |
a3fc684d561f811959e89bd11b44a26decf2796b | 075d6888ff126d14aea6834a605984292b45a17e | /phone_cells_provider/user.cpp | 8ab88e7ae1722382f7b3266eec8292f791f4306a | [] | no_license | Jabolo/TelephoneProviderSystem | ca35181d7a2a286f5bec3d38eab772d353906305 | e93c20715a34a7e93050a0db4593a3bc1b0ca8af | refs/heads/master | 2020-04-19T00:32:34.134573 | 2019-01-28T17:55:37 | 2019-01-28T17:55:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,001 | cpp | user.cpp | #include "pch.h"
#include "user.h"
user::user(int num, string name, string psw, int prv)
: cellNumber(num), userName(name), privileges(prv)
{
stringstream hashedPsswrd, fin;
string xxx;
hashedPsswrd << hex << transaction::hash(psw);
xxx = hashedPsswrd.str();
this->psswrd = xxx;
}
void user::setIdUser(int x)
{
... |
c68874396b4897356d32ab844474a5b12842a837 | 7efb9e8596ddf7d67bcca8459d0647cd82399565 | /Laby/ListaPracownikow.h | 9747867a147944a9f278a255331ee1d91cdc53bf | [] | no_license | DarkRaven255/LabCpp | 399f69adaf476bf8b5a7aad8e71152d0c089b3ef | 9456e594b2b6c4c321ca05c9ea079476acd16740 | refs/heads/master | 2020-04-18T18:25:56.733334 | 2019-01-28T01:29:44 | 2019-01-28T01:29:44 | 167,683,174 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 449 | h | ListaPracownikow.h | #pragma once
#include "Pracownik.h"
class ListaPracownikow
{
public:
ListaPracownikow();
~ListaPracownikow();
void Dodaj(const Pracownik& p);
void Usun(const Pracownik& wzorzec);
void WypiszPracownikow() const;
const Pracownik* Szukaj(const char* nazwisko, const char* imie) const;
void ZapiszDoPliku();
void W... |
9771681bf283256253905f39789e5ffe89592db2 | b4ba3bc2725c8ff84cd80803c8b53afbe5e95e07 | /Medusa/MedusaExtension/CocosStudio/Reader/ReaderFactory.h | 1c31216b0056c1cced7eea2020269e960f6d4a72 | [
"MIT"
] | permissive | xueliuxing28/Medusa | c4be1ed32c2914ff58bf02593f41cf16e42cc293 | 15b0a59d7ecc5ba839d66461f62d10d6dbafef7b | refs/heads/master | 2021-06-06T08:27:41.655517 | 2016-10-08T09:49:54 | 2016-10-08T09:49:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 999 | h | ReaderFactory.h | // Copyright (c) 2015 fjz13. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
#pragma once
#include "MedusaExtensionPreDeclares.h"
#include "CocosStudio/CocosDefines.h"
//[PRE_DECLARE_NAMESPCAE] Cocos
#include "Core/Pattern/Singleton.h"
#includ... |
4f46a5baf01e1143d702eccdcc6c9b30d06918b9 | e5541f3eb965a9e732b8587d98345acbeb3afcc9 | /6-Pointers/3-Demos/2_creating_deleting_dynamic_objects.cpp | a748c5678a50b423cc9042caee85d0fb92040d84 | [] | no_license | neerajkumarsj/Cpp-Satya | 5951ee56f2e9d20ce7ae464d090f2fa03c725cd2 | a5c36ea1d198d09c1ef5af32974781ebd1133ea9 | refs/heads/main | 2023-08-26T09:41:52.796254 | 2021-11-11T02:36:25 | 2021-11-11T02:36:25 | 410,327,981 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 416 | cpp | 2_creating_deleting_dynamic_objects.cpp | /*
1. Dynamic
C - malloc, calloc, realloc, free
run-time
Heap segment
2. C++
- new and delete are operators
- Runtime
- Heap
*/
#include <iostream>
using namespace std;
class Sample
{
private:
int a;
int b;
public:
Sample()
{
cout << "Constructing an object\n";
a = 10;
b = 20;
}
};
int mai... |
a550105b63dd9f29a07fdaf2dd9da02d8ffdfe9b | 962413f97e3c7b8301d64d86a3570bd073b720ed | /src/Menu.cpp | f81acf01509ead6122c6dc18853e92300606f22b | [] | no_license | Bazard/HeroKart | 33e674daa6243b8225f036f44e3b36094ad94d49 | f03ae290cf1fad32463b52054015fec994a20fb0 | refs/heads/master | 2021-01-20T06:17:15.222285 | 2014-01-10T16:03:54 | 2014-01-10T16:03:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 51,216 | cpp | Menu.cpp | #include <iostream>
#include <cstdlib>
#include <cmath>
#include "VBO.hpp"
#include "VAO.hpp"
#include <vector>
#include <ctime>
#include <cstring>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "Program.hpp"
#include <SDL/SDL.h>
#include <SDL/SDL_mixer.h>
#inc... |
09dfad572e7bebf2e67a99e1cbb6b31ed3dacc2f | f01ca8cd70c77f45174fdd7a2b6bcf60d8546299 | /Core/MotionModels.cpp | 837072cf2fef94433d5278f8e2e17fb9688778a6 | [] | no_license | krzyyyy/Gra | 0ef0df254b556d2d04ce017b066db75ff3cf945f | cc6f27044d1ef2a1484b4a8c9261c48451020d75 | refs/heads/master | 2023-08-16T10:18:43.193654 | 2021-10-06T19:11:24 | 2021-10-06T19:11:24 | 216,491,859 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,295 | cpp | MotionModels.cpp | #include "MotionModels.h"
#include "..\SharedUtilities\MathHelperFunctions.h"
namespace MotionModels
{
RectilinearMotion::RectilinearMotion() : _velocity(0)
{}
RectilinearMotion::RectilinearMotion(float velocity, glm::vec3 moveDirection) : _velocity(velocity), _moveDirection(moveDirection)
{}
RectilinearMotion::... |
3b1157ed45c96cdfd939d72c21811fe4d1bd1067 | 401aa02f1b23d451c856e038bb71b91baec13eb4 | /NeoML/Python/src/PyMathEngine.h | b0d4b3dd98a6d70aa966f38a7b74893138e018a9 | [
"Apache-2.0",
"NCSA",
"BSD-3-Clause",
"LLVM-exception",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-protobuf",
"LicenseRef-scancode-arm-llvm-sga",
"MIT",
"Intel"
] | permissive | neoml-lib/neoml | fb189a74e0ce1474fdbe8c01d73fcb08d28d601c | b77ff503c8838d904f8db5f482eafb41de61c794 | refs/heads/master | 2023-08-18T13:28:19.727210 | 2023-08-17T12:49:49 | 2023-08-17T12:49:49 | 272,252,323 | 788 | 141 | Apache-2.0 | 2023-09-14T11:59:19 | 2020-06-14T17:37:36 | C++ | UTF-8 | C++ | false | false | 1,579 | h | PyMathEngine.h | /* Copyright © 2017-2023 ABBYY
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distr... |
496c132d06cb91bc107bdeec8cdeadb0efbd0cb4 | 6929c919911ddfaae5d03e44f1fe3b06595c970d | /ext/ceguicolor.cpp | 651ae95aa42b331b761f567d59f68e1f6036f87c | [] | no_license | Hanmac/libcegui-ruby | a93f16f44d3a548e5a52783da2e8edaaf2b0996a | b38f63ecb06e8d8e1a1aec30cab931b76de4c4ee | refs/heads/master | 2020-04-06T04:31:21.233123 | 2011-12-29T15:38:47 | 2011-12-29T15:38:47 | 2,022,261 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,230 | cpp | ceguicolor.cpp | #include "ceguicolor.hpp"
#include "ceguiexception.hpp"
#define _self wrap<CEGUI::Colour*>(self)
VALUE rb_cCeguiColor;
namespace CeguiColor
{
VALUE _alloc(VALUE self)
{
return wrap(new CEGUI::Colour);
}
macro_attr(Red,float)
macro_attr(Green,float)
macro_attr(Blue,float)
macro_attr(Alpha,float)
singlereturn(getHue... |
f7ebdc2363ff9ef6d7fefa37954f26dc61eba6f3 | b1fdeb29c93e4ef35bbb840fe192251855d3746c | /runtime/object/core/Scene.cc | 3e62167a252b107f1defd0fe470544c89fcd04d4 | [] | no_license | WooZoo86/xEngine | b80e7fc2b64a30ed3d631fdd340c63a45f6e6566 | 0d9f7c262d04f53402d339bd815db0c50eaa9d24 | refs/heads/master | 2021-05-14T13:25:00.430222 | 2017-10-11T11:21:50 | 2017-10-11T11:21:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 848 | cc | Scene.cc | #include "Scene.h"
namespace xEngine {
void Scene::Initialize() {
}
void Scene::Finalize() {
game_objects_.clear();
}
GameObjectPtr Scene::AddGameObject() {
auto game_object = GameObject::Create();
game_objects_.push_back(game_object);
return game_object;
}
void Scene::RemoveGameObject(GameObjectPtr game_... |
aa43af81de7ab652bf12f121597056214d8c4b69 | ef006d7e27df637e5588420278969aa79c4bf2f9 | /plugin/main.cpp | 1193caa56f6204011a127d161bf2cb1a757fa7ba | [] | no_license | leftp/lsarelayx | 4671d622b8059831f7e18a5e3749d782af0ee634 | abdbbd3e823bac15a665e592e3806bc269fe8c6d | refs/heads/main | 2023-08-27T10:37:09.832799 | 2021-11-16T12:33:05 | 2021-11-16T12:33:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,276 | cpp | main.cpp |
#define WIN32_NO_STATUS
#define SECURITY_WIN32
#define UNICODE
#include <windows.h>
#include <sspi.h>
#include <ntsecapi.h>
#include <ntsecpkg.h>
#include <winternl.h>
#include <string>
#include <vector>
#include <system_error>
#include <map>
#include <sddl.h>
#include <ntdef.h>
#include "lsarelayx.hxx"
#include "p... |
0354486f622b8696f6b84f4010e417bbddea1687 | bcceadbcd31c1c38d41d5515c38121cf7cd5492f | /structures/templateHead.hpp | aa05d36a5ac6d2a5dd269f23c1b1413639aa86b6 | [
"MIT"
] | permissive | pat-laugh/websson-libraries | 2ad7cfdc99109ac6b087afc14482a54a69ef047e | c5c99a98270dee45fcd9ec4e7f03e2e74e3b1ce2 | refs/heads/master | 2023-07-13T09:59:09.625566 | 2019-02-09T05:45:39 | 2019-02-09T05:45:39 | 78,256,423 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,508 | hpp | templateHead.hpp | //MIT License
//Copyright 2017 Patrick Laughrea
#pragma once
#include "parameters.hpp"
#include "webss.hpp"
namespace webss
{
template <class Param>
class BasicThead
{
public:
using Params = BasicParams<Param>;
using size_type = typename Params::size_type;
BasicThead() {}
BasicThead(Params params) : para... |
c4f06dc9bc3924bdcabb14495595006b8c3cc0e6 | 933c9f60bccedfa5a628d0980c861fa00766157f | /src/leetcode/leetcode9.cc | b643c616d739f260259685902dac968eae052243 | [] | no_license | yujinghui/BeautyOfProgramming | 376d053a0854bf288ef65d47407c69b34a2a65c5 | 9a7253e5c8501c7debb6cdbf67d9f9cbc966bd73 | refs/heads/master | 2023-07-11T00:11:45.495104 | 2021-08-12T06:35:24 | 2021-08-12T06:35:24 | 380,482,511 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 555 | cc | leetcode9.cc | #include <stdio.h>
#include <math.h>
#include <string>
#include <iostream>
#include <unordered_set>
using namespace std;
class Solution
{
public:
bool isPalindrome(int x)
{
int newVal = 0, oldVal = x;
while (x > 0)
{
newVal = newVal * 10;
int remain = x % 10;
... |
e0945c6b91097c4c4025e17e021185ee1b98645c | f2540197958e6c11edf63b0281df9948d89795b2 | /PSOSolver.cpp | 2ca6f165835467b681bfc7be115ef0303ee317d7 | [] | no_license | theazgra/BIA | 8f39703c2658769f490ed4808cda830f8dcd93b5 | 19045bd4d0c97df852f82556176d854595ac77ea | refs/heads/master | 2020-08-04T15:49:37.011619 | 2019-12-09T18:35:53 | 2019-12-09T18:35:53 | 212,191,239 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,322 | cpp | PSOSolver.cpp | #include "PSOSolver.h"
PSOSolver::PSOSolver(const OptimizationProblem &problem, const size_t particleCount, const size_t iterationCount)
{
m_dimension = problem.dimensionCount;
m_dimensionLimits = problem.dimensionLimits;
m_fitnessFunction = problem.testFunction;
m_iterationCount = iterationCount;
... |
c781dbd81aeef7bcba22fbbde1a3ce4fa929c224 | 3cc352b29b8042b4a9746796b851d8469ff9ff62 | /src/btl/ValidateTALENs.cc | 805dbe6504e780d1644dd38b2f2d6204675867f9 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | CompRD/BroadCRD | 1412faf3d1ffd9d1f9907a496cc22d59ea5ad185 | 303800297b32e993abd479d71bc4378f598314c5 | refs/heads/master | 2020-12-24T13:53:09.985406 | 2019-02-06T21:38:45 | 2019-02-06T21:38:45 | 34,069,434 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,622 | cc | ValidateTALENs.cc | ///////////////////////////////////////////////////////////////////////////////
// SOFTWARE COPYRIGHT NOTICE AGREEMENT //
// This software and its documentation are copyright (2013) by the //
// Broad Institute. All rights are reserved. This software is supplied //
... |
0c5b56db7eaaadb07ccadb27ede134e58328f5aa | 0c67576053f75679bca0162ec0f644f3659dc4fc | /RA_TempSensor/RA_TempSensor.h | 70e75b7a12bc90dc23dd1202c926bc626021ce52 | [] | no_license | mjpelmear/Libraries | 8942ee36aacaf51030036ce3828b0391e2d13178 | bf32c5ecffb22711c2028d38b79ee690f672e787 | refs/heads/master | 2021-01-18T06:47:59.068524 | 2013-05-10T01:51:47 | 2013-05-10T01:51:47 | 9,928,435 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,045 | h | RA_TempSensor.h | /*
* Copyright 2010 Reef Angel / Roberto Imai
*
* 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 ... |
3159c68d4f993f97c2f56614b55c30d28469bfa1 | 9f1fa0a8259aebe001d1f2a3591963e200c91ff8 | /Windows/Windows_Print.cpp | 481ff0caeba72bcd91f1ce870f2c945b59423a46 | [
"Zlib"
] | permissive | tringi/emphasize | 0e95a697d69c5a580a5b7196fe1f87e1731977b9 | ad017ec3e7a4f03267943ccfa3b9a4fead4a5930 | refs/heads/master | 2022-06-30T08:20:00.258569 | 2022-06-17T18:45:19 | 2022-06-17T18:45:19 | 98,049,754 | 1 | 0 | null | null | null | null | MacCentralEurope | C++ | false | false | 130,193 | cpp | Windows_Print.cpp | #ifndef NOMINMAX
#define NOMINMAX
#endif
#include <winsock2.h>
#include <ws2tcpip.h>
#include <windows.h>
#include "Windows_Print.hpp"
/* Windows Print
// Windows_Print.cpp
//
// Author: Jan Ringos, http://Tringi.TrimCore.cz, jan@ringos.cz
// Version: 1.9
//
// Changelog:
// 18.05.2016 - initial version
*/
#i... |
3dad8b86b64a7cc5d44d149199eb8f4e03fc7eed | 8d4c446a130e781bfde9f39413669083dd1f9369 | /qt_viewer/mainwindow.h | 628e2f5127ecde2ee8c84e451cba4020270a25b6 | [] | no_license | newmen/d_life | 7f09ddef2e8b8ecf636350cde60e90ddd8db6473 | d7aad54030dbb17d323ff8c2f335bb4aea572eeb | refs/heads/master | 2016-09-11T02:17:16.632174 | 2013-07-22T20:54:11 | 2013-07-22T20:54:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 395 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QWidget>
#include "renderarea.h"
#include "playbutton.h"
class MainWindow : public QWidget
{
Q_OBJECT
public:
explicit MainWindow();
~MainWindow();
private:
RenderArea *_renderArea;
Button *_nextButton;
Button *_saveButton;
Button... |
b44860ae5fca4934a9a644e65096f728008e7e09 | 0ef9c87bd9a27cddef27768c5902a185c0b319b4 | /filterdesigner.h | 4123b942dd780e90d455276d52e288bd2a00f62a | [
"MIT"
] | permissive | aliihsancengiz/FirFilterDesigner | d19647cc911c247b280db3fbe6a9cbb49c98d39f | 64aec54ae19e86df099f225805cbc68da3163d47 | refs/heads/main | 2023-01-31T22:39:35.956272 | 2020-12-08T16:02:25 | 2020-12-08T16:02:25 | 319,688,143 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 848 | h | filterdesigner.h | #ifndef FILTERDESIGNER_H
#define FILTERDESIGNER_H
#include <QMainWindow>
#include <QDebug>
#include <QtMath>
#include <QFileDialog>
#include <algorithm>
#include <numeric>
#include <fstream>
#include "fft/FFTReal.h"
#include "qcustomplot.h"
#include "windowfunction.h"
#include "filtercoeffgenrator.h"
QT_BEGIN_N... |
5567c65768579803f4abcbb2fe87ee2005bb3fcd | 3ac7658c1554f63865eb92a92a9a9b29f462b797 | /EXP/2018-2019(2) EXP/实验7 王程飞 201806061219/Visual Studio Project/Transportation/Transportation.cpp | dfc19a2956853b7ded659420c3715d60fb25f8eb | [] | no_license | yuhuarong/MyCPPExperiment | 9d8f050c616d97f9725fd5809867aedbaddcf637 | 13cac9edb0a1857a456409ba92151c6a90183ac3 | refs/heads/master | 2020-09-22T16:25:04.214263 | 2019-11-26T17:41:52 | 2019-11-26T17:41:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 285 | cpp | Transportation.cpp | #include <iostream>
#include "Vehicle.h"
#include "Taxi.h"
#include "Trunk.h"
using namespace std;
int main()
{
Vehicle v(2, 6, 3, "blue", 14.6);
cout << v << endl;
Taxi t(4, 6, 5, "yellow", 3.3, 0);
cout << t << endl;
Trunk r(4, 6, 5, "black", 3.3, 1);
cout << r << endl;
}
|
c2b4115d3179ffd327cd30aad22cb83349d88079 | 1c6065d97f72014f90dcf2c21547c20bd1ccac29 | /Tema05LinearStructures/Ejercicios/Ejercicio03/Ejercicio03/Transaccion.cpp | ad0cc9b5a5fbfc5c76d571db27185d306eafdc9e | [] | no_license | gerardogtn/EstructuraDatos | 2627d2de3d02f0abe80af95bb953d305803a9098 | 143c1eee53c3a339f58913a0a6a1b802acd4baa6 | refs/heads/master | 2020-05-28T14:15:22.376379 | 2015-05-12T19:35:03 | 2015-05-12T19:35:03 | 31,332,419 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 464 | cpp | Transaccion.cpp | //
// Transaccion.cpp
// Ejercicio03
//
// Created by Gerardo Teruel on 3/23/15.
// Copyright (c) 2015 Gerardo Teruel. All rights reserved.
//
#include <functional>
#include "Transaccion.h"
//using namespace std;
class Transaccion{
private:
enum tipoDeTransaccion {RETIRO, DEPOSITO, CONSULTA, ACTUALIZACIO... |
aeed6ee5b4d05f838d9720d24dc251ba58aa2abb | baf133d09dc0239c62abe63e8da4e3cb9e205f38 | /1st-Year/Intro-to-Computer-Science/HW7-Array-Algorithms/3.sortPyramids.cpp | f5c1c3901f3ad80a83c93a03657d38a73821d85a | [] | no_license | abrahammurciano/homework | b7c9555688221299e4eea7fe635299d4a6ab01ba | 879607be45c24f49c03cfad4c7eaa0c1f81afa4d | refs/heads/master | 2022-03-18T20:38:10.283054 | 2021-09-19T20:09:52 | 2021-09-19T20:09:52 | 154,134,294 | 11 | 10 | null | 2022-03-02T19:16:55 | 2018-10-22T11:47:39 | TeX | UTF-8 | C++ | false | false | 5,137 | cpp | 3.sortPyramids.cpp | /*
* File Name: 3.sortPyramids.cpp
* Program Description: Takes input of 10 by 10 matrix, then sorts the bottom left triangle and
* the top right triangle
* Course Name: Introduction to Computer Science
* Assignment Number: 7
* Question Number: 3
* Author: Abraham Murciano
*
* Created on: Wed ... |
3d209e8d3ef56a0c8be7cc88891f1131b4ef7b1d | 6840356bb8428865c1c64fa8ca9b42c0aca348a7 | /Core/KernelSML/src/sml_AgentOutputFlusher.h | c78034985e74e9c9c4eca8f1cb98dab23585cd0f | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | SoarGroup/Soar | a5c7281e0673665a4b7eddd39ae4e5eb2a507aef | ef42bb24f7b58f9d244c83f5a2f2153c3ee17b77 | refs/heads/development | 2023-09-01T08:47:44.349033 | 2023-08-31T22:54:57 | 2023-08-31T22:54:57 | 21,206,914 | 289 | 86 | NOASSERTION | 2023-09-14T05:14:06 | 2014-06-25T14:50:12 | C++ | UTF-8 | C++ | false | false | 911 | h | sml_AgentOutputFlusher.h | /////////////////////////////////////////////////////////////////
// AgentOutputFlusher class file.
//
// Author: Jonathan Voigt
// Date : February 2005
//
/////////////////////////////////////////////////////////////////
#ifndef AGENT_OUTPUT_FLUSHER_H
#define AGENT_OUTPUT_FLUSHER_H
#include "sml_KernelCallback.h"
#i... |
ce4e7122f92b0a7571c6d6db5e31d64aaf1970b0 | 062b08f57ce7e3dc88862fd1bdfa321c7e2bbbd7 | /src/Gpio/GpioSim.hpp | a05d59cbe74716ae0916082a129ef802fd368354 | [] | no_license | maeseee/Raspberry-AirController | fdfe4cb2db82ba9d8ff3925d92fbfcfd1681d325 | 8a352992f7a71d32c2cf508e1711df73a62455dd | refs/heads/master | 2023-03-21T11:33:12.388896 | 2021-03-04T13:43:43 | 2021-03-04T13:43:43 | 282,379,247 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 830 | hpp | GpioSim.hpp | #pragma once
#include <Gpio/IGpio.hpp>
#include <string>
// FWD
namespace logger
{
class SysLogger;
using SysLoggerPtr = std::shared_ptr<SysLogger>;
} // namespace logger
// Class
namespace gpio
{
/**
* @brief The Gpio class controls one GPIO pin
*/
class GpioSim : public IGpio
{
public:
explicit GpioSim(con... |
c6cab5fadafac7c91aec467c26584198e1c78f38 | 7607201e01c7d45140a8d1cf0852259c1eb5c667 | /snippet/src/Ch10/Reduction/reduction_serial.cpp | 444b625b4d00ed74ecd38fc3af103482a2c84f0b | [] | no_license | nhanloukiala/OpenCL-Benchmark | 1f5f3b56c2554cccf2a7fe62103958e4c1323203 | 3dce52cb9947f77657d4a0af8e1ba1549996eabc | refs/heads/master | 2021-01-10T07:08:01.492871 | 2018-12-14T19:05:03 | 2018-12-14T19:05:03 | 51,155,774 | 4 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 520 | cpp | reduction_serial.cpp | #include <cstdlib>
#include <iostream>
template<typename T>
T reduce(T (*f)(T, T),
size_t n,
T a[],
T identity)
{
T accum = identity;
for(size_t i = 0; i < n ; ++i)
accum = f(accum, a[i]);
return accum;
}
int add(int a, int b) {return a + b;}
int identity = 0;
int main(int a... |
99e03b7e81e3fe134da70981e23577e2d9ed6480 | e3f578e81aa4402c2fa4bc3434be80c2e203dbf9 | /libs/bitblocks/block.hpp | d84bb23c7b66219d83840e259d6f2f5f450b8539 | [] | no_license | bytemaster/GeneralPublicMarket | b4d53a651bfe3cacb7c363517dc24224ae51e9d9 | 70f73235f33be1feac6f209b719d2bb79d6da0b3 | refs/heads/master | 2016-09-10T18:58:42.152557 | 2011-05-23T04:08:52 | 2011-05-23T04:08:52 | 1,485,893 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 2,024 | hpp | block.hpp | #ifndef _BLOCK_HPP_
#define _BLOCK_HPP_
#include <boost/reflect/reflect.hpp>
#include <bitblocks/keyvalue_db.hpp>
using boost::rpc::sha1_hashcode;
struct block
{
uint64_t publish_date;
uint64_t last_request;
uint64_t total_btc;
uint64_t total_requests; // total_btc/... |
07eeac43912c1eed7a24d6ed746dd6ce2156b97a | 5288f2d9dc811d0a06bbc23302329ca25174d5d1 | /src/main.cpp | 6e171f5a2ea0903319bb524dc262a326c7ab1445 | [
"MIT"
] | permissive | S-YOU/GrayBlue | 1c339126fb2c699deb368ba1d1994c52da32845f | b649fdb642c197ea740c201b9d4fc28c2ed5845a | refs/heads/master | 2020-06-10T17:36:35.377725 | 2019-06-09T10:28:21 | 2019-06-09T10:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,433 | cpp | main.cpp | #include <M5Stack.h>
#include "imu/IMU.h"
#include "ble/BLE.h"
#include "ble/BLEData.h"
#include "input/ButtonCheck.h"
#define SERIAL_PRINT 0
void printSerial(unsigned long t, const float a[], const float g[], const float m[], const float q[]);
void printLcd(unsigned long t, const float a[], const float g[], const fl... |
301641fb1ac1df53b08d6540acb461e9ef957d6f | 009956c413ac892b90d3cfadea05caa08086c193 | /src/modules/ioc/FFEADContext.h | ce83c23643fdee7bf6736bc7f35ceebf4fa27808 | [] | no_license | sumeetchhetri/ffead-cpp | b12c6389877c87acff88349456bde5758861d8eb | 8072c7a0b4c81d1558e10e091d239fbf474993ce | refs/heads/master | 2023-05-14T02:00:29.875099 | 2023-04-29T13:25:49 | 2023-04-29T13:25:49 | 4,089,214 | 611 | 135 | null | 2022-09-24T09:51:35 | 2012-04-20T17:19:47 | C++ | UTF-8 | C++ | false | false | 2,841 | h | FFEADContext.h | /*
Copyright 2009-2020, Sumeet Chhetri
Licensed under the Apache License, Version 2.0 (const 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 appl... |
70fed3639e0c02ca84be10739c7c98bb3e349fa6 | 733de464662408d2ed3fa637b0c7ecdc7c281c0a | /scene/visitor/render/direct_gpx_render.cpp | 0f9358340ce5400375e4861b030d84aae12729af | [
"MIT"
] | permissive | aconstlink/snakeoil | f15740eb93d3e36b656621bb57a0f7eb2592f252 | 3c6e02655e1134f8422f01073090efdde80fc109 | refs/heads/master | 2021-01-01T17:39:53.820180 | 2020-02-23T20:56:36 | 2020-02-23T20:56:36 | 98,117,868 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,886 | cpp | direct_gpx_render.cpp | //------------------------------------------------------------
// snakeoil (c) Alexis Constantin Link
// Distributed under the MIT license
//------------------------------------------------------------
#include "direct_gpx_render.h"
#include "../../node/transform/transform_3d.h"
#include "../../node/render/renderable.h... |
fa515841b22846bd67ddde7b3ea62413c8d8da62 | 20a59a738c1d8521dc95c380190b48d7bc3bb0bb | /pictographs/AknPictograph/src/AknPictographPanic.cpp | dee3b23b7f6777845bdd7fdce934d30e02bdb203 | [] | no_license | SymbianSource/oss.FCL.sf.mw.uiresources | 376c0cf0bccf470008ae066aeae1e3538f9701c6 | b78660bec78835802edd6575b96897d4aba58376 | refs/heads/master | 2021-01-13T13:17:08.423030 | 2010-10-19T08:42:43 | 2010-10-19T08:42:43 | 72,681,263 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 933 | cpp | AknPictographPanic.cpp | /*
* Copyright (c) 2002 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.h... |
3616a64ee29b31332ad33e05745a78b2a19b403e | b9e4f272762d5cf871653e4b4a3aa9ad33b05117 | /ACM/cccc天梯赛2017-3-26/L2-020. 功夫传人cbh.cpp | 23746ff954fa3ec014c307e5410b7913853b6b28 | [] | no_license | haozx1997/C | e799cb25e1fa6c86318721834032c008764066ed | afb7657a58b86bf985c4a44bedfaf1c9cff30cf4 | refs/heads/master | 2021-07-11T23:54:17.357536 | 2017-10-12T03:42:23 | 2017-10-12T03:42:23 | 106,662,415 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 703 | cpp | L2-020. 功夫传人cbh.cpp | #include<cstdio>
struct node{
int id;
int b;
}tmp[100005];
int ii=0;
int par[100005];
int find(int x,int d)
{
if(x==par[x])
return d;
return find(par[x],d+1);
}
int main()
{
int n,k,b,be;
double z,r;
scanf("%d%lf%lf",&n,&z,&r);
for(int i=0;i<n;i++)
par[i]= i;
for(int i=0;i<n;i++)
{
scanf("%d",&k);
if(k... |
8904a26ebebaca88ba3d80935c6ca0b4330fcd8f | 338bd4e9ffdb9ab7c260b4f23b20f51d91d4793b | /BattleBoard/vieBBSkillsWidget.cpp | d30c5f32257a08cce93141e002a37249e90cf14d | [] | no_license | Greykoil/BattleBoard | e17357b6566eeee8e2acbda1732b161f188d7d40 | 3796765ae1c2bf78a5b9a15de77138139c40e2ce | refs/heads/master | 2021-05-07T15:27:39.189970 | 2018-03-08T13:15:01 | 2018-03-08T13:15:01 | 109,824,659 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 179 | cpp | vieBBSkillsWidget.cpp | #include "vieBBSkillsWidget.h"
vieBBSkillsWidget::vieBBSkillsWidget(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
}
vieBBSkillsWidget::~vieBBSkillsWidget()
{
}
|
d0b7de2cbcd26234df452de503b359bb5613dba0 | b55aef9461d99530339bcdff62796113b34686ad | /Hw4/code/Circle.cpp | 8e457c1fd742fdfa4118481d86a23603b5682b37 | [] | no_license | Degermandal/Object_Oriented_Programming | 8859e2ec89f0af0e5a9edc24dacb3d824173aba8 | f68c159ad656b4479a198bf65f66803cfcd3ea3e | refs/heads/master | 2020-04-22T00:03:53.162491 | 2019-02-10T10:29:55 | 2019-02-10T10:29:55 | 169,966,342 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,523 | cpp | Circle.cpp | #include "Circle.h"
using namespace std;
void Circle::setRadius(double r)
{
if(r > 0.0)
radius = r;
else
cout<<"Incorrect radius input\n";
}
void Circle::setX(double x)
{
if(x >= 0.0)
cor_x = x;
else
cout<<"Incorrect x input\n";
}
void Circle::setY(double y)
{
if(y >= 0.0)
cor_y = y;
else
cout<<... |
8220fa596ecad7a5d7e650316619bf41546b03d3 | 7a49fdcdfe606c3e2d701056d7b752b8a1258265 | /Source/seminar2/seminar2GameModeBase.cpp | e8bdf7c4342b35c7f2e639a68e3ecb4473ec2c3d | [] | no_license | JAX3/seminar-2-update- | 0f93f4e4ccfd6ddc5a0d6a6a476dfaff738a8f19 | 572e3190b254be40415e795ac2d2b69e79ac0f45 | refs/heads/master | 2020-09-13T06:07:52.897357 | 2019-11-19T11:04:24 | 2019-11-19T11:04:24 | 222,676,220 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 116 | cpp | seminar2GameModeBase.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "seminar2GameModeBase.h"
|
2361080243a561a0d00e5e3146f1f83a0059367c | 65aaba4d24cfbddb05acc0b0ad814632e3b52837 | /src/osrm.net/libosrm/osrm-deps/boost/include/boost-1_62/boost/coroutine2/detail/pull_control_block_ecv1.hpp | 568be7d4d9c0ecdf8f873e1feb67effcd1ce844a | [
"MIT"
] | permissive | tstaa/osrmnet | 3599eb01383ee99dc6207ad39eda13a245e7764f | 891e66e0d91e76ee571f69ef52536c1153f91b10 | refs/heads/master | 2021-01-21T07:03:22.508378 | 2017-02-26T04:59:50 | 2017-02-26T04:59:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 129 | hpp | pull_control_block_ecv1.hpp | version https://git-lfs.github.com/spec/v1
oid sha256:256a7d9039e44d8f73f228fd7cd61aaa0fc89c654713d55f6913503468393d0c
size 3689
|
72b8e1c6003d23627cec691dd3a7d8eb7609260c | a7d79c535ee42114d80aa6caa2708917321611f9 | /src/leader/leader.hpp | b4d487122abfcd3fef75b1bbe364c93245b85061 | [
"MIT"
] | permissive | di-unipi-socc/FogMon | 422bca2c59ea4faa4d4d7f6811c481a7506e086b | dc040e5566d4fa6b0fca80fb46767f40f19b7c2e | refs/heads/master | 2022-12-22T21:11:06.008599 | 2021-04-13T16:42:00 | 2021-04-13T16:42:00 | 148,777,271 | 7 | 4 | MIT | 2022-12-08T11:39:11 | 2018-09-14T11:05:18 | C++ | UTF-8 | C++ | false | false | 1,291 | hpp | leader.hpp | #ifndef LEADER_NODE_HPP_
#define LEADER_NODE_HPP_
class LeaderFactory;
#include "leader_connections.hpp"
#include "follower.hpp"
#include "leader_storage.hpp"
#include "server.hpp"
#include "leader_factory.hpp"
#include "ileader.hpp"
#include "selector.hpp"
class Leader : virtual public ILeader, public Follower {
pu... |
d6fb8b4079ee3add7aab5ecd27246f1884d13630 | b43e36967e36167adcb4cc94f2f8adfb7281dbf1 | /data_structure/binary_tree/test.cpp | 08a2b888f2da98019fcb0004c9b095cbb1637da4 | [] | no_license | ktosiu/snippets | 79c58416117fa646ae06a8fd590193c9dd89f414 | 08e0655361695ed90e1b901d75f184c52bb72f35 | refs/heads/master | 2021-01-17T08:13:34.067768 | 2016-01-29T15:42:14 | 2016-01-29T15:42:14 | 53,054,819 | 1 | 0 | null | 2016-03-03T14:06:53 | 2016-03-03T14:06:53 | null | UTF-8 | C++ | false | false | 194 | cpp | test.cpp | #include "binary_search_tree.h"
int main()
{
BinarySearchTree<int, int> bst;
bst.insert(4, 9);
bst.insert(3, 9);
bst.insert(9, 9);
bst.insert(4, 9);
bst.tranverse();
}
|
84b50f7756cf0327683b8cfc4ce051e5aedfc619 | 777a75e6ed0934c193aece9de4421f8d8db01aac | /src/Providers/UNIXProviders/KerberosKeyDistributionCenter/UNIX_KerberosKeyDistributionCenter_HPUX.hxx | cdcfe5bfd780e8a289ded39b21109483716bdfa8 | [
"MIT"
] | permissive | brunolauze/openpegasus-providers-old | 20fc13958016e35dc4d87f93d1999db0eae9010a | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | refs/heads/master | 2021-01-01T20:05:44.559362 | 2014-04-30T17:50:06 | 2014-04-30T17:50:06 | 19,132,738 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 153 | hxx | UNIX_KerberosKeyDistributionCenter_HPUX.hxx | #ifdef PEGASUS_OS_HPUX
#ifndef __UNIX_KERBEROSKEYDISTRIBUTIONCENTER_PRIVATE_H
#define __UNIX_KERBEROSKEYDISTRIBUTIONCENTER_PRIVATE_H
#endif
#endif
|
75f2ecc0f3a5f4b9b7c39dfcf0c115861b71f7eb | 8d937ba1412c30a08ffd2a1196d65d836486534c | /Dynamic Programming/322. Coin Change.cpp | 14b88ae0730ac56ca596d573aef7b396c1264e88 | [] | no_license | ArpitSingla/LeetCode | 5988f0a9f43c216ad2d61a847aca8b25ca2330be | 4bfe51209e66ce3cee233841de9d4baa97454415 | refs/heads/master | 2021-03-20T22:14:01.234679 | 2020-07-30T04:09:04 | 2020-07-30T04:09:04 | 247,238,239 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,190 | cpp | 322. Coin Change.cpp | class Solution {
public:
//Using 2D Array
int coinChange(vector<int>& coins, int amount) {
int n=coins.size();
if(amount==0){
return 0;
}
vector<vector<unsigned int>> dp(n+1,vector<unsigned int>(amount+1,INT_MAX));
for(int i=0;i<=n;i++){
... |
c45f24ee40c791ca0bdba9ae61743a129cd5015b | ac01f1a08fa65ddc25c32eb95db7363766bd1de8 | /Exercises/06/Task6/Queue.hpp | d39cd26c15c164857756057897586d8f453b86f6 | [] | no_license | gaper94/SD_IS_2017 | ceace84733924a6d40c9a88fda77bcddb33e9968 | 5ca7b1819cc16f38a04ef28d41f40f657434b9b7 | refs/heads/master | 2021-09-03T15:35:44.269079 | 2018-01-10T06:44:15 | 2018-01-10T06:44:15 | 105,460,471 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,535 | hpp | Queue.hpp | //////////////////////////////////////////////////////////////////////////
template<class T>
queue<T>::queue(const queue& other)
: container(other.container)
{
}
//////////////////////////////////////////////////////////////////////////
template<class T>
queue<T>& queue<T>::operator=(const queue& rhs)
{
if (this !... |
4e82ee494ce00be10b33dcb9b25341578314cd32 | 3abad4016d3500e3a39891531414316df06dfae0 | /Observer/Observer/Observer.h | 378542bda2703b2167111755439bcc301e6389d9 | [] | no_license | helloOK2019/VS | f249b50c1007179231f86b3b88b159bef0c57832 | 7224e35e29d1c32cee7574525d7c4e17e6269386 | refs/heads/master | 2022-02-19T14:19:09.973349 | 2019-09-09T02:55:10 | 2019-09-09T02:55:10 | 207,193,849 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 499 | h | Observer.h | #ifndef _OBSERVER_H_
#define _OBSERVER_H_
#include<string>
using namespace std;
//抽象观察者
class IObserver
{
public:
IObserver();
IObserver(string szName);
virtual ~IObserver();
void virtual Update();
private:
};
//具体观察者
class CConcreteObserver : public IObserver
{
public:
CConcreteObserver();
CConcreteObserver(... |
e1e290fa53cabe35f1b9df6b1da617e482317098 | d2871878756ce2b4dbcfc538bcc0ba7a5900c769 | /ODE/ode_oop/oscillator/functions.h | e2b94482a542f63c7b41607c68ab5c3870f294d9 | [] | no_license | Ziaeemehr/cpp_workshop | 75934095eb057d0643d0b59db3712e83fba053d6 | 5752356aa7aa571c107f2fa042332ebb04ad37f1 | refs/heads/master | 2022-01-18T18:51:29.398280 | 2022-01-03T14:10:35 | 2022-01-03T14:10:35 | 170,557,736 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 582 | h | functions.h | #ifndef FUNCTIONS_H
#define FUNCTIONS_H
#include <fstream>
#include <valarray>
#include <cmath>
#include <iomanip>
using StateVec = std::valarray<double>;
using DerivFunc = StateVec (*) (const StateVec &);
using OutputFunc = void (*) (double , const StateVec &, std::ofstream &);
using Integrator = void (*) (StateV... |
57e63a0c6fa658268f5baf98d6ca3b14dbb2333a | 4c25432a6d82aaebd82fd48e927317b15a6bf6ab | /data/dataset_2017/dataset_2017_8_formatted/imulan/8294486_5654117850546176_imulan.cpp | f2e37dfc9423a16563caa1bc11a2c4e36c45f63d | [] | no_license | wzj1988tv/code-imitator | dca9fb7c2e7559007e5dbadbbc0d0f2deeb52933 | 07a461d43e5c440931b6519c8a3f62e771da2fc2 | refs/heads/master | 2020-12-09T05:33:21.473300 | 2020-01-09T15:29:24 | 2020-01-09T15:29:24 | 231,937,335 | 1 | 0 | null | 2020-01-05T15:28:38 | 2020-01-05T15:28:37 | null | UTF-8 | C++ | false | false | 1,109 | cpp | 8294486_5654117850546176_imulan.cpp | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int(i) = 0; (i) < (int)(n); ++(i))
#define all(x) (x).begin(), (x).end()
#define pb push_back
#define fi first
#define se second
const string ng = "IMPOSSIBLE";
using P = pair<int, char>;
bool check(string s) {
int S = s.siz... |
940fa6bdeaa2c042ad5ddb7f201ecd8d755c13dd | 85fcd407df2eb50ea6e015580986f950882f9fd4 | /basics/Strings/StringSubsequence.cpp | 79357d1ad0a400f20782cc7c12e9f417d3ce0ac9 | [] | no_license | naveen700/CodingPractice | ff26c3901b8721cb0c6de32f8df246b999893471 | d4f7c756974a5eee16c79e8d98f86b546260aa6d | refs/heads/master | 2021-01-16T02:19:27.387955 | 2020-04-26T17:41:08 | 2020-04-26T17:41:08 | 242,941,499 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 529 | cpp | StringSubsequence.cpp | #include <iostream>
using namespace std;
void printAllSubsequence(char *in , char *out , int i, int j){
// base case
if(in[i] == '\0'){
out[j] = '\0';
cout<<out<<endl;
return ;
}
// recursive case
// include the curent char
out[j] = in[i];
printAllSubsequence(in ,ou... |
cb434883774e6ebdb8fa0b7905b20538b3164d40 | a3a7815f2f04bac5844c7144d969a11811d4d188 | /gui/MainWindow.cpp | 4fbb785f70001155686762a9cc4be37565e3fe45 | [] | no_license | Ky3He4iK/InfinityLoopQt | dc909f42961c5a92f5dd12c2c2fb17b064a3a732 | 9ad7d2e5b2ff21ed83a78a1439a05a4de6e9bbfc | refs/heads/master | 2022-03-23T17:08:29.500427 | 2019-12-12T00:13:29 | 2019-12-12T00:13:29 | 198,165,287 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 993 | cpp | MainWindow.cpp | //
// Created by ky3he4ik on 28/07/19.
//
#include "MainWindow.h"
#include "util/IconManager.h"
#include <QVBoxLayout>
MainWindow::MainWindow(size_t width, size_t height, size_t iconSize, uint8_t solverLevel) {
IconManager::getInstance().setIconSize(iconSize);
field = new Field(width, height, solverLevel);... |
90c36bbd1c1af9a3e4442dae52e0710ebba7d9fb | c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64 | /Engine/Source/ThirdParty/llvm/3.5.0/include/llvm/Support/EndianStream.h | 89c66d3b84809337abcd198473ae3c71485f65d6 | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"NCSA"
] | permissive | windystrife/UnrealEngine_NVIDIAGameWorks | c3c7863083653caf1bc67d3ef104fb4b9f302e2a | b50e6338a7c5b26374d66306ebc7807541ff815e | refs/heads/4.18-GameWorks | 2023-03-11T02:50:08.471040 | 2022-01-13T20:50:29 | 2022-01-13T20:50:29 | 124,100,479 | 262 | 179 | MIT | 2022-12-16T05:36:38 | 2018-03-06T15:44:09 | C++ | UTF-8 | C++ | false | false | 1,187 | h | EndianStream.h | //===- EndianStream.h - Stream ops with endian specific data ----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
7e72748e4c274645beb0a0a1f8db7521888bc411 | 449ccdaba93a620dbffb0fd8b5d48cdd9283a0ca | /dibujarCirculo/dibujarCirculo/Source.cpp | 04ef6155c72c74990c8b09bbad488e9594279377 | [] | no_license | AndresFDaza/intCompuGrafica | 965b3803bc7d9d1372aacace0c84e869466a83f1 | 8ab7c43ad88b973af137e8de8b67e8b06e6fdaf6 | refs/heads/master | 2021-01-09T14:57:03.643955 | 2020-10-30T20:19:06 | 2020-10-30T20:19:06 | 242,335,585 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,668 | cpp | Source.cpp | #include <iostream>
#include <math.h>
#include "glut.h"
bool click = false;
int a = 0, b = 0, x = 0, y = 0, radio = 0; // global de puntos insertados
int xPantalla = 800, yPantalla = 800; //global para cambio tamaño pantalla
// Funcion pinta pixel individual
void pixel(float xPos, float yPos, float RedColor, float ... |
ec29af74aecffd7ec361369b2fb47d6ae2ef8cbc | fa86389c80009665eb135fc1857c8c83bf442bbb | /CPP01/ex00/randomChump.cpp | ad3cb92aed26d4ac43756235eea5b34d8e812462 | [] | no_license | Gtaverne/41-CPP | 04a26a3281b311f28bb2fd55fdb3d134aa1ab070 | 4c7976fe8aa47e07c979430003677a032b8b71bb | refs/heads/master | 2023-08-30T03:34:33.566542 | 2021-10-16T19:53:21 | 2021-10-16T19:53:21 | 384,514,595 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 107 | cpp | randomChump.cpp | #include "Zombie.hpp"
void randomChump( std::string name )
{
Zombie arsene(name);
arsene.announce();
}
|
b5b25387583a93f8c23140b10481a0f52967ca87 | 93343c49771b6e6f2952d03df7e62e6a4ea063bb | /HDOJ/5251_autoAC.cpp | 87fea91a16648334012faa01150637c5f74ccb51 | [] | no_license | Kiritow/OJ-Problems-Source | 5aab2c57ab5df01a520073462f5de48ad7cb5b22 | 1be36799dda7d0e60bd00448f3906b69e7c79b26 | refs/heads/master | 2022-10-21T08:55:45.581935 | 2022-09-24T06:13:47 | 2022-09-24T06:13:47 | 55,874,477 | 36 | 9 | null | 2018-07-07T00:03:15 | 2016-04-10T01:06:42 | C++ | UTF-8 | C++ | false | false | 5,006 | cpp | 5251_autoAC.cpp | #pragma comment(linker, "/STACK:1024000000,1024000000")
#include<math.h>
#include<stdio.h>
#include<string.h>
#include<algorithm>
using namespace std;
typedef double typev;
const double eps = 1e-8;
const int N = 50005;
int sign(double d){
return d < -eps ? -1 : (d > eps);
}
struct point{
typev x, y... |
241025cb84782d2ecd1c51bb2dce2160a2e57965 | 70ad0a06c54b68b7d817131f4b139b76739e2e20 | /IO/ClientSocketWriterTask.h | 0915ed41c4dcfffb42b5871ccff72d85a1e1795e | [
"MIT"
] | permissive | SherlockThang/sidecar | 391b08ffb8a91644cbc86cdcb976993386aca70c | 2d09dfaebee3c9b030db4d8503b765862e634068 | refs/heads/master | 2022-12-09T14:57:08.727181 | 2020-09-01T10:31:12 | 2020-09-01T10:31:12 | 313,326,062 | 1 | 0 | MIT | 2020-11-16T14:21:59 | 2020-11-16T14:21:58 | null | UTF-8 | C++ | false | false | 6,344 | h | ClientSocketWriterTask.h | #ifndef SIDECAR_IO_CLIENTSOCKETWRITERTASK_H // -*- C++ -*-
#define SIDECAR_IO_CLIENTSOCKETWRITERTASK_H
#include "ace/Connector.h"
#include "ace/SOCK_Connector.h"
#include "ace/Svc_Handler.h"
#include "IO/IOTask.h"
#include "IO/Writers.h"
namespace Logger {
class Log;
}
namespace SideCar {
namespace IO {
/** An ACE... |
d8ce950ee90058d52d879ef1ef13f9731e5ed15e | d489ca093bc0e70fbc653c35a97564aff79963d7 | /src/debug_operations.ipp | 327ed7d17ec426cb784e053c5c071fe407f9872e | [] | no_license | mocelik/TwoFourTree | 04bb6b7595db28f43efce4b6f3345a3dbe7fa1c1 | ea5bbcfdaafafe913734a8740381a2e155da953d | refs/heads/master | 2023-04-21T06:27:36.156223 | 2021-05-08T05:57:32 | 2021-05-08T05:57:32 | 249,019,969 | 0 | 0 | null | 2021-05-08T05:53:33 | 2020-03-21T16:52:26 | C++ | UTF-8 | C++ | false | false | 10,549 | ipp | debug_operations.ipp | /*
* Filename: debug.ipp
*
* Created on: Apr. 17, 2020
* Author: orhan
*
* Description:
* Contains debug operation implementations for both the TwoFourTree and the Node class
*/
#ifndef SRC_DEBUG_OPERATIONS_IPP_
#define SRC_DEBUG_OPERATIONS_IPP_
#include <iomanip>
#include <functional>
#include ... |
acc9b4d0260111db7ed2db77a4a896110393720e | 57b5abdb8ec6c7df3d162d50f57ff051420b710b | /dxHookDLL/GLScreenshoter.cpp | f5865a2bb8aae6287e6d2fc43ec1d7ae11d3b2f5 | [] | no_license | IGR2014/ScreenShotTool | 3cd40cecc211bbb4799b4dcb059d842f7a663199 | 423d1d54be3d2b294febd6155023d99fc5f42d23 | refs/heads/master | 2020-04-22T10:37:16.498888 | 2019-02-12T12:09:05 | 2019-02-12T12:09:05 | 170,311,090 | 3 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,244 | cpp | GLScreenshoter.cpp | #include <windows.h>
#include <fstream>
#include <GL/gl.h>
#include "HookFunction.hpp"
#include "GLScreenshoter.hpp"
// C-tor
GLScreenshoter::GLScreenshoter() : endFunction(NULL),
endHook(new funcHook()) {
wcscpy_s(logPath, MAX_PATH, dllPath);
wcscat_s(logPath, MAX_PATH, L"\\Logs\\GLLog.... |
6295a8c88f8cd821028c44fd7b97a70ed9df9d42 | f66b53e0909f79403a42f9687a837c85f8ffc150 | /parse/DimacsParser.cpp | e4117986023ff3942bfcd1c00007eeef037f99c2 | [] | no_license | CapacitorSet/graph-coloring | bd325a0cd879fbd7466c6cca3ecb872c66341c65 | 279077eeb4ffaa19236b8d62437a07bfdc4b50d9 | refs/heads/master | 2023-08-28T07:24:08.713733 | 2021-09-27T09:20:32 | 2021-09-27T09:20:32 | 382,003,799 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,431 | cpp | DimacsParser.cpp | #include "DimacsParser.h"
#include "../utils/PCVector.h"
#include "../utils/RangeSplitter.h"
#include "Parser.h"
#include <algorithm>
#include <cmath>
#include <sstream>
#include <thread>
DimacsParser::DimacsParser(std::ifstream &_file, const std::string &filename)
: file(std::move(_file)), fastparse_file(filename... |
fcea9afc08cb567349605332e689ab9b451c4176 | 846c56f9901daebf8e4abf7509ce606c3100633f | /src/util/geometry.cpp | 9a4fc7449bb864ee679fb09484d8af605fdb1324 | [] | no_license | mayacoda/cat-safari | 5999e21e435dbc874cc1358923594c15ec3f62f3 | 2c658e3751b1eda6eace05c8431f0655c3736175 | refs/heads/master | 2020-03-21T12:21:07.764150 | 2018-09-06T10:34:03 | 2018-09-06T10:34:03 | 138,548,446 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,610 | cpp | geometry.cpp | #include "geometry.h"
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
glm::mat4 Geometry::createTransformationMatrix(const glm::vec3 &translate, const glm::vec3 &rotate, float scale) {
// translate an identity matrix to the location
glm::mat4 viewTranslate = glm::... |
14a9b212450511da94e269c2eb1c7cbcfcdabe8a | e862f48c627b8effec2a25b37c590ca4f2649fc0 | /branches/ming_branches/spectrallibrary/SpectrumLibrary.cpp | cb0856fb25ac13239500a5d8fe5424d3006c520e | [] | no_license | Bandeira/sps | ec82a77c315cf1aff9761c801d1dc63cb5c5e9f0 | 1809945c9e5a6836a753a434d2c8570941130021 | refs/heads/master | 2016-09-01T08:18:34.221603 | 2015-12-10T23:56:52 | 2015-12-10T23:56:52 | 47,741,477 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,258 | cpp | SpectrumLibrary.cpp | /*
* SpectrumLibrary.cpp
*
* Created on: Apr 21, 2011
* Author: jsnedecor
*/
#include "SpectrumLibrary.h"
namespace specnets
{
/*
* Generates key for an associated annotation;
*/
string getKey(string &annotation, int charge)
{
stringstream key;
key << annotation << '_... |
acdc00c772cfd19ee2d1282eefc9b31382e9a8ac | b0dd7779c225971e71ae12c1093dc75ed9889921 | /boost/spirit/home/phoenix/object/reinterpret_cast.hpp | 6f94deaf3bdb8719cb26cfd5fbd3b4a69e0e59c4 | [
"LicenseRef-scancode-warranty-disclaimer",
"BSL-1.0"
] | permissive | blackberry/Boost | 6e653cd91a7806855a162347a5aeebd2a8c055a2 | fc90c3fde129c62565c023f091eddc4a7ed9902b | refs/heads/1_48_0-gnu | 2021-01-15T14:31:33.706351 | 2013-06-25T16:02:41 | 2013-06-25T16:02:41 | 2,599,411 | 244 | 154 | BSL-1.0 | 2018-10-13T18:35:09 | 2011-10-18T14:25:18 | C++ | UTF-8 | C++ | false | false | 1,293 | hpp | reinterpret_cast.hpp | /*=============================================================================
Copyright (c) 2001-2007 Joel de Guzman
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)
===================================... |
3938b2b9671e08f8b78b00d9ad5637e10eb1a98f | 592e72a31d310be8601a29e086a5b5d984bad552 | /src/utils.h | 23c57b2da27194bf5f90a5c9aa06d643563f89c1 | [
"BSD-3-Clause"
] | permissive | Xamla/torch-ros | a8ce5bb45e77df4e185e687b006e400b8b52ff4e | 1f42cd4863d68bc4f9134bd1932988c1d5d1e7ca | refs/heads/master | 2020-04-10T01:51:04.389566 | 2018-10-04T16:08:44 | 2018-10-04T16:08:44 | 52,296,061 | 27 | 10 | BSD-3-Clause | 2018-09-06T12:51:15 | 2016-02-22T18:38:02 | Lua | UTF-8 | C++ | false | false | 3,873 | h | utils.h | #ifndef _utils_h
#define _utils_h
/*
#include <Eigen/Core>
#include <Eigen/StdVector>
#include <Eigen/Geometry>
inline Eigen::Vector4d Tensor2Vec4d(THDoubleTensor *tensor)
{
if (!tensor || THDoubleTensor_nElement(tensor) < 4)
throw MoveItWrapperException("A tensor with at least 4 elements was expected.");
TH... |
a1118191a36a6743c6effe407b2889d3bee80f5e | 7b3856478d8009a2b6bbd7101352e9452e7b1414 | /October 14/October 14 Solution.cpp | 4f4ce1dad5caf0dfd1f3f9534bb17cee184cd2f8 | [] | no_license | Sanjays2402/Leetcode-October-Challenge | 40ef29d6dafaa307303f836bb5470e783bc1a8fc | 922956d772a91632787f7993d647dc032a8c3f3f | refs/heads/main | 2023-01-05T14:25:07.122022 | 2020-10-28T17:49:26 | 2020-10-28T17:49:26 | 300,665,444 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 546 | cpp | October 14 Solution.cpp | class Solution {
public:
int helper(vector<int> &nums, int l, int h)
{
int pre = 0, cur = 0;
for (int i = l; i < h; i++) {
int temp = max(pre + nums[i], cur);
pre = cur;
cur = temp;
}
return cur;
}
int rob(vector<int>& nums) {
... |
5725c143aa93ac308f996cdd7a3a2777f2dbb752 | 03380a2cf46385b0d971e150078d992cd7840980 | /Source/Diagnostics/MultiDiagnostics.H | f9907b8bdc626ee75d1d77ab7290f20b0ddde734 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause-LBNL"
] | permissive | ECP-WarpX/WarpX | 0cfc85ce306cc5d5caa3108e8e9aefe4fda44cd3 | e052c6d1994e4edb66fc27763d72fcf08c3a112a | refs/heads/development | 2023-08-19T07:50:12.539926 | 2023-08-17T20:01:41 | 2023-08-17T20:01:41 | 150,626,842 | 210 | 147 | NOASSERTION | 2023-09-13T23:38:13 | 2018-09-27T17:53:35 | C++ | UTF-8 | C++ | false | false | 1,911 | h | MultiDiagnostics.H | #ifndef WARPX_MULTIDIAGNOSTICS_H_
#define WARPX_MULTIDIAGNOSTICS_H_
#include "Diagnostics.H"
#include "MultiDiagnostics_fwd.H"
#include <AMReX_Vector.H>
#include <memory>
#include <string>
#include <vector>
/** All types of diagnostics. */
enum struct DiagTypes {Full, BackTransformed, BoundaryScraping};
/**
* \b... |
4a546c348870a065c276fd39837963fbe5e05406 | 3494794986dc3a0a907c42d0897522f562411d1b | /src/tf_broadcaster.cpp | 2a06f70f3d220c87ae36a794f7ec9d8edbdad719 | [] | no_license | KUKAnauten/iiwa_registration | f8c024d02e402a33a0661e00062fdb08753e881a | f2ee10febb2fa89942b829ebe728afe0971116a4 | refs/heads/master | 2021-09-07T20:50:46.399785 | 2018-02-28T22:42:47 | 2018-02-28T22:42:47 | 114,258,513 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 494 | cpp | tf_broadcaster.cpp | #include <ros/ros.h>
#include <tf/transform_broadcaster.h>
int main(int argc, char** argv){
ros::init(argc, argv, "robot_tf_publisher");
ros::NodeHandle n;
ros::Rate r(10000);
tf::TransformBroadcaster broadcaster;
while(n.ok()){
broadcaster.sendTransform(
tf::StampedTransform(
tf::Transf... |
743c1b511b43ddefce04823607e6a07ed5112440 | 73fbb7ffa48696a618e1aa0f06b996b442a81017 | /src/ScopedReadLock.cpp | b2f143fdcaf6df6107960994d8d5f548e790f8ae | [
"MIT"
] | permissive | mistralol/libclientserver | 57632be76830c78829dd0f8a5d68be528ca9ec58 | b90837149715d396cf68c2e82c539971e7efeb80 | refs/heads/master | 2020-04-12T06:34:58.829682 | 2019-09-08T14:14:40 | 2019-09-08T14:14:40 | 12,540,455 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 283 | cpp | ScopedReadLock.cpp |
#include <libclientserver.h>
ScopedReadLock::ScopedReadLock(RWLock *lock)
{
lock->ReadLock();
m_lock = lock;
m_locked = true;
}
ScopedReadLock::~ScopedReadLock()
{
if (m_locked)
m_lock->Unlock();
}
void ScopedReadLock::Unlock()
{
m_lock->Unlock();
m_locked = false;
}
|
88e7a204cd23ac6df8a47bc3c60ab69be5f70a55 | 2e83ed22512a6292adf10cb1d671730b73f9249a | /BOJ/문제들/b3197_2.cpp | e5bb5943e964dec3346c2c88f6f47dc129f75fa8 | [] | no_license | pkiop/ALGORITHM | b7439d693387279866f061408f39dab91ebbb7cf | 615f2ac07d61c6b46d18b519949349e4dc3036bb | refs/heads/master | 2023-04-28T16:05:10.155585 | 2022-07-14T14:18:06 | 2022-07-14T14:18:06 | 115,351,474 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,464 | cpp | b3197_2.cpp | #include <cstring>
#include <iostream>
#include <queue>
#include <string>
using namespace std;
int R, C;
char input[1501][1501];
bool isCleared[1501][1501];
bool visited[1501][1501];
int dx[] = {0, 0, 1, -1};
int dy[] = {1, -1, 0, 0};
int sx, sy, ex, ey;
bool checkRange(int x, int y) { return 0 <= x && x < R && 0 <... |
b4b6d4469e9b857fa6d46c9472d64a89136c47c1 | be51f00011496dbcddcd6387a72de81b0e33a13c | /inputCollector.cpp | 6831ee48a0ccc22da2263278dffe8ebd940f706c | [] | no_license | prismika/Dijkstra-s-Curse | 3a120b324103df1aadc47f39df34269e887da9a7 | d8eed03d69872ce18a33097289e32d366bc8b630 | refs/heads/master | 2021-06-07T19:13:12.695526 | 2021-05-12T14:49:27 | 2021-05-12T14:49:27 | 167,460,500 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,217 | cpp | inputCollector.cpp | #include <ncurses.h>
#include <stdio.h>
#include "inputCollector.h"
int inputState_init(InputState * inState){
raw();
noecho();
keypad(stdscr, true);
inState->lastType = input_null;
inState->isMovement = false;
inState->isStair = false;
return 0;
}
int inputState_update(InputState * inState){
I... |
71d752888892e4a34a88221fa5db007228c95d6d | 73ebcf788041071a87add04bec5b08675573b78f | /tester.cpp | c6362941ae5cd4e55001ed806598da7de6de494e | [] | no_license | rachan5/ECS158HW2 | 3c721b23f0dcf6830531ca57b75d71ef32b56919 | 443e21edcb3a3622a2f6ed913ee86d7bf5fdcbe3 | refs/heads/master | 2020-04-10T00:08:04.302301 | 2015-03-21T06:51:37 | 2015-03-21T06:51:37 | 30,328,120 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 300 | cpp | tester.cpp | #include <cstdlib>
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
int n = 2000000;
int m = 3;
ofstream myfile;
myfile.open ("seq2Mil.txt");
myfile << n << endl;
myfile << m << endl;
for (int i=0; i<n; i++)
myfile << i << endl;
myfile.close();
return 0;
}//main
|
a3fdabeefea9162fee73ed6eae1d2756b8a7e4e8 | b651c5e235befc487a7006ee9d7cb27897d9f424 | /4111.cpp | 7d71048c7af2b315f0064f74a09fdda57b20b952 | [] | no_license | utoppia/HDU | c318bbb72ba3d365c0dd203020463a7a17515c31 | 6eaa36ba142ce57f4bd5b2ff2cd8fc73cef4d9b7 | refs/heads/master | 2020-05-30T00:40:22.700792 | 2015-04-06T14:12:27 | 2015-04-06T14:12:27 | 18,913,825 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,010 | cpp | 4111.cpp | // HDU 4111
// by utoppia
// 1 %2=1
// 2 (m+n)%2=0 ||
#include<cstdio>
#include<cstring>
int win[60][60000]; // win[i][j] 表示i堆是1,j表示剩余的个数和
int dfs(int u,int v) {
if(win[u][v] != -1) {
return win[u][v];
}
if(u==0)return win[u][v] = (v%2==0?0:1);
if(v==1) return win[u][v] = dfs(u+1,0);
... |
86000a8666fc8f2de4988e1f6c4abb24aeb2f452 | 2ea34a7ff11da761313e32914b23ca748e7d3d66 | /191227_contoh 1 array_2.cpp | c5436cb051805fc7d9c2642260fed5ca3356a0e0 | [] | no_license | andimaliaAMFB/Dasar-Pemrograman-C- | a6c0666f458df1a31c287c3fd7dd80866541ab34 | 1584a080b955851f304a1dbb9e3108ea56d7714c | refs/heads/main | 2023-02-25T20:31:50.498096 | 2021-01-30T05:57:04 | 2021-01-30T05:57:04 | 334,338,569 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 224 | cpp | 191227_contoh 1 array_2.cpp | //contoh 1 array 191227 coba
#include<iostream>
#include<conio.h>
using namespace std;
main()
{
int A[]={2,4,6,4,5};
A[8]=7;
cout<<"Tampilkan Semua Data\n";
for(int i=0;i<=8;i++)
{
cout<<A[i]<<" ";
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.