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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c41fdefe4822b912f494fd0fb134c760f95e7c0f | 368243aa6d93d7f455627a8e9d95400eb40f03e4 | /concurs_entrenament_2/P9_C5.cc | 826f340dc0d4b332e067391a6d5a5843462014b2 | [] | no_license | oicatalana/solucions_oicat_2021 | 4ade1d014a7a45acf1b8088afc01459768523392 | abf05c75d5226ff73123e2565702c705c25051a7 | refs/heads/master | 2023-08-27T01:50:22.208973 | 2021-10-27T09:31:28 | 2021-10-27T09:31:28 | 372,782,747 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 543 | cc | P9_C5.cc | #include <iostream>
using namespace std;
typedef long long int LL;
LL resol(LL n) {
if (n == 0)
return 0;
// Trobem el major 2^m tal que 2^m <= n, i calculem 3^m
LL pot_2 = 1, pot_3 = 1;
while (2*pot_2 <= n) {
pot_2 *= 2;
pot_3 *= 3;
}
// La resposta serà resol(n) = r... |
1c847b5f4aaccb31c44006a4ada24587728d5c28 | 66cfd4c6aeb372fe9bff90a9ff3ed1e162560bab | /GameModel.cpp | 42b0e87e667bf9b267dc48019c9a174ffcbe6687 | [] | no_license | dylanswiggett/gl-whatevs | 15841d82a19edfc523d6c6af7e34548829567947 | 45a03513f52da8cb5c5f0427cca0bd049ae30322 | refs/heads/master | 2021-01-16T18:06:52.908252 | 2014-06-17T06:42:00 | 2014-06-17T06:42:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,479 | cpp | GameModel.cpp | #include <string>
#include <map>
#include "GameModel.hpp"
#include "GamePhysicsState.hpp"
using namespace std;
GameModel::GameModel() {
physics_state_ = new GamePhysicsState();
game_object_ids_ = new std::map<std::string,GameObjectID>();
game_objects_ = new std::map<GameObjectID,GameObject *>();
}
GameModel::... |
3d91f31bf6ee52b8754be5d022515c75694efe98 | 0bf46c80b6bbd93c0f3fb09fbd52cace6a1d9786 | /PhatEngine/src/phat/PhatPlane.cpp | b434f300e11ca3fa08aca9e3de91e461b7ac1d6e | [
"MIT"
] | permissive | pluspingya/PhatEngine | 89ca3071048ea1b5f9e4a2057074dc9bf87807bf | 2f78ce01a84fe8b97376064d922aaba7fee52bac | refs/heads/master | 2020-06-08T18:13:37.918982 | 2013-08-07T02:55:58 | 2013-08-07T02:55:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,911 | cpp | PhatPlane.cpp | //
// PhatPlane.cpp
// PhatEngine
//
// Created by Plus Pingya on 7/31/13.
// Copyright (c) 2013 Plus Pingya. All rights reserved.
// Contact pluspingya@gmail.com
//
#include <phat/PhatPlane.h>
/////////////////////////////////////////////////////////
// Constructor - Intialize
void PhatPlane::_initialize(vec2f ... |
66d2d182b1a160d8a4c0b0ffb74022e145c30417 | f68a1ad75c51abf812b2bc93aa8e8d3ebd6a346b | /src/ngraph/opset/opset0_tbl.hpp | d83e12ba9267400800d6ccbaaae1cb2097c5e107 | [
"Apache-2.0"
] | permissive | adstraw/ngraph | 2e26d37975d09d6d52189090e32ee1bbb2e0545d | d7b8785eadbce8e53d2228638048d3ddacf3b0eb | refs/heads/master | 2021-02-04T06:03:27.705085 | 2020-11-10T01:10:34 | 2020-11-10T01:10:34 | 243,630,184 | 0 | 0 | Apache-2.0 | 2020-05-19T19:49:56 | 2020-02-27T22:31:35 | null | UTF-8 | C++ | false | false | 7,562 | hpp | opset0_tbl.hpp | //*****************************************************************************
// Copyright 2017-2020 Intel 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
//
// http://w... |
e02c99de4077facea3c7f0b570b62660f0d5065b | d4cb39a70dd8d1172eab852b9b86e5e442555f3e | /Car Dealership/Car.h | c7c701a7529dece4b76a8082057f870db75fa220 | [] | no_license | lukelmiller/Programming-Foundations | e2f85e4e2dc3fef198bb39969eeb9c9ba52e6ca3 | 0197241284b1ea5892441f3b19059b36f57a4b8c | refs/heads/main | 2023-04-20T17:13:09.388840 | 2021-05-11T23:33:26 | 2021-05-11T23:33:26 | 366,534,659 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 914 | h | Car.h | //@author lukelmiller
#ifndef CAR_H
#define CAR_H
#include <string>
#include <fstream>
using namespace std;
class Car
{
public:
//Constructors and destructor
Car();
Car(const Car& orig);
~Car();
//Accessors
string getMake() const;
string getModel() const;
float getMileage() const;
... |
5debeba8e4a7a76d7108778e82fce2ae81766d9b | 7098f7d65a5759278661ab0e9bde96731c297c45 | /day04/ex01/AWeapon.hpp | 69ed5f8144b40d75c5ddbc76459ff2e630f8bdc6 | [] | no_license | ViktoriaLi/cpp_pool | 9838a7bb917c60c44b5d41492ae5b45fb1bbc1bd | 2c27559ea2aed8131550f91992ff5d36a2efefc5 | refs/heads/master | 2020-03-20T04:34:19.654055 | 2018-06-30T10:33:39 | 2018-06-30T10:33:39 | 137,187,473 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 457 | hpp | AWeapon.hpp | #ifndef AWEAPON_HPP
#define AWEAPON_HPP
class AWeapon
{
private:
public:
AWeapon();
AWeapon(std::string const & usname, int apcost, int damage);
AWeapon(AWeapon const & copy);
~AWeapon();
AWeapon & operator=(AWeapon const & over);
std::string getName() const;
int getAPCost() const;
... |
e9ee0281029e7d57989d335bb3b05e681b4c7b3e | cb80a8562d90eb969272a7ff2cf52c1fa7aeb084 | /inletTest3/0.053/turbulenceProperties.I | 0fc1bd4b75f47db8fbf6ba2c201d59eb580bbb96 | [] | no_license | mahoep/inletCFD | eb516145fad17408f018f51e32aa0604871eaa95 | 0df91e3fbfa60d5db9d52739e212ca6d3f0a28b2 | refs/heads/main | 2023-08-30T22:07:41.314690 | 2021-10-14T19:23:51 | 2021-10-14T19:23:51 | 314,657,843 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 154,430 | i | turbulenceProperties.I | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
... |
82f59ec279ce380c1deb946537334d87812e2454 | c193f398bae6b7f67bf933317b9edd78dc31b007 | /Heap/Median from stream of data.cpp | 1e20590b037f8b578e7b106e6642087b0a2b6750 | [] | no_license | rohitopal23/SDE-sheet | 3ac198fe292291ab142e34b6f30096e93abe247e | 1a972363959340a190d158603e1c3ebe7752df21 | refs/heads/master | 2023-04-05T23:11:35.269171 | 2021-04-13T17:38:18 | 2021-04-13T17:38:18 | 357,237,770 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 432 | cpp | Median from stream of data.cpp | if(max.empty() == true)
{
max.push(x);
return;
}
if(max.size() > min.size())
{
if(max.top() > x)
{
min.push(max.top());
max.pop();
max.push(x);
}
else
{
min.push(x);
}
}
else
{
if(x < max.top())
{
max.... |
77324486f311d254adfe2dd55b0a62b1687b7c69 | c59b6123262a72420609b792bba501fb73e2d265 | /patient_details.cpp | ff4693a43626235b84c44a7f396c2434999d8441 | [] | no_license | Gokulakrishnansekar/hospital_system_project | 915102855eaf6c553c8be96ce31d6cf7e8c51483 | 59415aad6275bec8900e2bc7f12ee13427a6cc39 | refs/heads/main | 2023-08-05T06:19:57.882740 | 2021-09-22T12:55:27 | 2021-09-22T12:55:27 | 403,320,902 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,727 | cpp | patient_details.cpp | #include "patient_details.h"
#include<bits/stdc++.h>
void patient_details::pget_details()
{
// string s=pa_details();
ans=false;
hput_details();
ifstream H;
H.open("h_details.txt");
cout<<"enter the hospital name: ";
string dname;
cin>>dname;
H>>name;
H>>location;
H>>contact;
H>>... |
894060895b6edf3b105a208f5de3d1e070dfa4de | 4f2039cae3a481016296d3a8e6a393f7004ad8f1 | /version3/base/http_parser_api.cpp | d623e62076388bb4781b2e594e3c63d54fe97b85 | [] | no_license | johnzhd/boost | 7e841a1b97f67ef0d8bca9462e1e1782bdfa5409 | a60aa2ac01bb96c3654542f13bd7e2d080f62805 | refs/heads/master | 2021-01-01T16:56:08.363201 | 2016-01-14T09:51:01 | 2016-01-14T09:51:01 | 15,996,464 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,832 | cpp | http_parser_api.cpp | #include "stdafx.h"
#include "http_parser_api.hpp"
#include <algorithm>
#include <assert.h>
#include "string_tools.hpp"
typedef const struct http_parser_settings c_st_settings_type;
template<typename T>
class http_parser_tools
{
public:
static int on_message_begin(http_parser* p) {
return ((T*)p->data)->on_mess... |
624b8e52ff5a6d0d92cd0952ac1ce79a838d5342 | 83a1ccba5981b7638e61fadfb0fcd75d028cd0be | /tests/TestServer.cpp | 8f47a234b5beb25737de9b46fa70960b8027a84e | [] | no_license | blaizard/IrStd | 6152cec5ac8c7f9ff087f6285fc1ee350249ac7d | 3dd45f95973f9a3df98ee179d18fa71f416477fa | refs/heads/master | 2021-01-19T16:48:41.518487 | 2018-05-03T20:18:07 | 2018-05-03T20:18:07 | 88,287,655 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,785 | cpp | TestServer.cpp | #include <thread>
#include "../Test.hpp"
#include "../IrStd.hpp"
//#define DEBUG 1
IRSTD_TOPIC_USE(IrStdServer);
class ServerTest : public IrStd::Test
{
public:
void SetUp()
{
// Call parent function setup
IrStd::Test::SetUp();
#if defined(DEBUG)
// Enable specific traces
IrStd::Logger::getDefault().addT... |
87c28260d074b7a0bda7b2ed03e51eb390789ff7 | e4ede473d3e27d5b0b3b62614010586684d28188 | /Week 7/Practice Contest - 1/404A - Valera and X.cpp | 7d20452efc63db306c4842d2f17c6ddfd73e6a2f | [] | no_license | AhmedGharseldin/Coach-Academy_PST-LEVEL-2- | 2be5a0ad6d2f5d34c7ae2c98d766ae406787d0bd | fbec7d9d3ddbe131480e0f3e99f297390b8ccd32 | refs/heads/main | 2023-08-31T22:41:15.414551 | 2021-10-20T12:03:00 | 2021-10-20T12:03:00 | 330,391,110 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 645 | cpp | 404A - Valera and X.cpp | //https://codeforces.com/problemset/problem/44/A
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
set<char> c[2];
cin >> n;
char arr[n][n];
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
cin >> arr[i][j];
if (i == j || j ==... |
55c9085f2848a054cdc6705a8d569c2677218067 | 0f65f0540632fd04d34ce80ff9bee27e2d2f749f | /Tic Tac Toe/Board.h | 3833b3e7d97b360fca50f36d56039bd73dcde519 | [
"MIT"
] | permissive | TaykPC/TicTacToe | 7c8dc43428cfed5350039727c03583c1ff2b693b | b594da0891a16a6aacabf67462e8f550f1bd59d6 | refs/heads/master | 2022-12-05T17:59:24.884460 | 2020-08-28T19:03:00 | 2020-08-28T19:03:00 | 291,123,091 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,076 | h | Board.h | #pragma once
#include <vector>
#include <string>
static const int TIE_VAL = -1;
// Indexes for board values
static const int NO_VAL = 0;
static const int X_VAL = 1;
static const int O_VAL = 2;
class TTTBoard
{
public:
// Initializes the board
void Init(int InSize);
// Clears the board
vo... |
8b2e8ba3dcde024d9a9cc28ee0ab9a521a7a6012 | 56a3df7f18d06005b6185152bd7941add18edfa9 | /bcos-security/bcos-security/DataEncryption.h | 862397e6990ce3b173cc7869a6a29282b73243b8 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | FISCO-BCOS/FISCO-BCOS | bac8b40f12315e043f006fac8152af93662f3444 | 3014f5be43fe93ddb455d277d30837ab5ba8c14f | refs/heads/master | 2023-08-31T20:28:49.049631 | 2023-08-14T09:01:07 | 2023-08-14T09:01:07 | 113,932,055 | 2,413 | 829 | Apache-2.0 | 2023-09-14T12:01:28 | 2017-12-12T02:17:31 | Shell | UTF-8 | C++ | false | false | 2,130 | h | DataEncryption.h | /*
* Copyright (C) 2021 FISCO BCOS.
* SPDX-License-Identifier: Apache-2.0
* 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
*
* Unl... |
365d0c9851dd114d3c1816b01d0bcc9614064179 | 95231ce7e41b970b8dc8d452d91b6db8f7e7bedc | /src/lib-centurion/ui/text_box.h | a49a78b691406167b41fe89fa90d8bce02efb6b4 | [] | no_license | bmjoy/centurion | 1d47bcae88ccef0a27826436b586774293fbe639 | 5ba6a9ee7f200abc819ec5719bedfae0246609af | refs/heads/master | 2022-04-16T18:00:53.984006 | 2020-04-17T09:35:59 | 2020-04-17T09:35:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,485 | h | text_box.h | /*
* ---------------------------
* CENTURION
* [2019] - [2020] Rattlesmake
* All Rights Reserved.
* ---------------------------
*/
#ifndef TEXT_BOX_H
#define TEXT_BOX_H
#include <gl_bitmap_font.h>
namespace gui {
/// <summary>
/// Class of TextBox
/// </summary>
class TextBox {
public:
TextBox();
/// <sum... |
479b14ed24c6407efa31495d73db8b9596c40225 | a75feff03ca2f3236e20bf6eeb303be3e6bf89c2 | /BusBar-PC/busbar/bus_home/bus_homewid.cpp | c2667cb69abd7c0ee944c35a3b08742488bf4ee9 | [] | no_license | luozhiyong131/BusBar | 50b446c00fadff0a56a454de413dd80ad8ce4b6b | e9119903134276e866a68f7e70fad2ddb2770f8a | refs/heads/master | 2021-06-23T14:27:06.610207 | 2019-05-20T07:19:57 | 2019-05-20T07:19:57 | 92,152,932 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,643 | cpp | bus_homewid.cpp | #include "bus_homewid.h"
#include "ui_bus_homewid.h"
BUS_HomeWid::BUS_HomeWid(QWidget *parent) :
QWidget(parent),
ui(new Ui::BUS_HomeWid)
{
ui->setupUi(this);
initFun();
initWidget();
}
BUS_HomeWid::~BUS_HomeWid()
{
delete ui;
}
void BUS_HomeWid::initFun()
{
busChangedSlot(0);
mMaxNu... |
07e4ef7a2262d0f556e8ab8109a4baa3a30c1c43 | 89f81a6c469644cce9ec4b2bb81ebaef270bfb35 | /BIZSrc/BIZ_DataFilling.cpp | 6af14dd6346a2e6918e57b52f95ffb54fa1e042a | [] | no_license | e-shark/BIZClientV2 | e08b4bfe4b15d3ce5668e258e6b7b6f13150ba79 | ac6bde971f827ba31adf9c3319e28156e6b2c3e3 | refs/heads/master | 2020-04-05T04:17:02.194467 | 2019-02-20T16:33:34 | 2019-02-20T16:33:34 | 156,545,026 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31 | cpp | BIZ_DataFilling.cpp |
#include "BIZ_DataFilling.h"
|
abe959331b591704caba659d9f132383a969fc37 | 35b169143738f115b101aefe56a1f1d1c7c9a6da | /RemotePC Library/Inputs/KbHookDllStub.h | d4d61f2b1632d88897d4a6ddfe7d5a6ebba6958d | [] | no_license | wyrover/RemotePC | bd60fb4fe9cdf5481c37b0894718af290bdfff2e | 1cabff8a1e9584aba7826099e97c89c237fe9ee5 | refs/heads/master | 2021-01-18T01:27:29.667903 | 2014-06-15T16:15:49 | 2014-06-15T16:15:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 711 | h | KbHookDllStub.h | #pragma once
//----------------------------------------------------------------------//
#include <Windows.h>
#include <stdio.h>
//----------------------------------------------------------------------//
#include "..\\Preproc.h"
//----------------------------------------------------------------------//
typedef BOOL (WI... |
c5ed6acea9d479f43c86a2fa58145019c0c34ede | 660ed951b06d7a8abf77d30483fe718f70d98c4c | /EngineV1/Minigin/SoundManager.h | 75402580ac6706e66e2c9af4fc644a581a85ec13 | [] | no_license | mowenli/EngineV1 | 2eb54e64593895d6226b0e5aeda57753cffe35fb | 438ffeee8384804f9a8fae589c7e78f7f95c778e | refs/heads/master | 2022-10-22T22:38:35.403076 | 2020-06-15T22:13:39 | 2020-06-15T22:13:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,215 | h | SoundManager.h | #pragma once
#include "Singleton.h"
#include <SDL_mixer.h>
#include "Music2D.h"
#include "Effect2D.h"
#include "ResourceManager.h"
struct MusicObject
{
MusicObject(const std::string& name, const std::string& pth = " ")
{
strcpy_s(id, name.c_str());
strcpy_s(path, pth.c_str());
pMusic = ResourceManager::GetIns... |
097193257c308c53983d140dd35950649680a3a6 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/agc021/B/4562021.cpp | 9348e548f7cf98463d84e38a54c43289691a8e1c | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 8,215 | cpp | 4562021.cpp | /*** Template Begin ***/
#pragma region template
#define USING_NAMESPACE
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
... |
a806afdaf5d20c08c1ec84b90c422b13a568c027 | 0c09aab4a5258bc0643a71250b5b26bfe092647f | /my_classes/notUsing/MY_NS/arch/MyClassNormal.h | b0ebb09e5a483af7a31ab992cd166e73b0d1ce4a | [] | no_license | apany15/Pull-Pusher | 3c19ba25a4819c070a3b3a474ec12421ba5dc92b | 92b4adec4b271d59b1aea59e3ce66a9368823967 | refs/heads/master | 2021-01-21T17:46:19.110611 | 2013-08-01T13:15:49 | 2013-08-01T13:15:49 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 1,298 | h | MyClassNormal.h | #pragma once
#include"MyNSModel.h"
namespace MY_NS_MODEL
{
class MyClassVector;
class MyClassNormal
{
protected:
float coord[3];
public:
MyClassNormal(const float *_coord = 0);
MyClassNormal(float _coordX, float _coordY, float _coordZ);
const float * GetCoord()const;
void SetCoord(const ... |
ccf01bd791ebb73b0c1232ded9d05443050db73a | c86b0e4b5f3966e5a6d7a83314cfaeb3fd1fcea4 | /Game-1/LoadPopUp.cpp | f4543cee8f425af628fe178dcb4b806b3a5dfd89 | [] | no_license | mickedance/Game-1 | 7197c8e0f35e9048ff3bf83a77ae0084ed1bc164 | f2307f6598bf6cabbf78978601226664333d3b4e | refs/heads/master | 2023-04-23T07:50:54.942538 | 2021-05-12T16:12:00 | 2021-05-12T16:12:00 | 359,219,806 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,622 | cpp | LoadPopUp.cpp | #include "PopUps.h"
#include "Mode.h"
#include "Program.h"
#include "Button.h"
#include <filesystem>
using std::cout;
LoadPopUp::LoadPopUp(std::string _title, Mode* _mode, int _index): WindowLayer(_mode, _index) {
title = _title;
}
void LoadPopUp::stop() {
//Destroy texture of buttons and popup's texture
for (auto... |
448159f15531b67c3c45106010fda5192413cbd1 | 733de464662408d2ed3fa637b0c7ecdc7c281c0a | /gfx/circle/circle_render_2d_plug_factory.h | e5712004255aa3a00b3894af78378b8db593ad80 | [
"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 | 1,326 | h | circle_render_2d_plug_factory.h | //------------------------------------------------------------
// snakeoil (c) Alexis Constantin Link
// Distributed under the MIT license
//------------------------------------------------------------
#pragma once
#include "../protos.h"
#include "../result.h"
#include "../typedefs.h"
#include "../api.h"
#include "ci... |
b161677463bf626b2882c3db03189af02ba631fc | 0bd23c4e41aa9173e0d3799964a7ccb25de2badc | /4. selection sort.cpp | 532813b0daf6d1feb210dcc098be2cd4a6cdb794 | [] | no_license | Mahmudul-Hasan-Moon/Data-Structure | 048adc1dd80ca6738a8333f6c52f45eec40122a3 | 6df83ae651bd9cd6cc6662b49e868f720933a882 | refs/heads/master | 2021-06-14T05:41:55.222886 | 2021-03-13T14:17:03 | 2021-03-13T14:17:03 | 159,781,624 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 539 | cpp | 4. selection sort.cpp | #include<bits/stdc++.h>///Selection sort
using namespace std;
int main()
{
int n,i,j;
cout<<"Enter number of element :"<<endl;
cin>>n;
int arr[n];
cout<<"Enter the element :"<<endl;
for(i=1;i<=n;i++)
cin>>arr[i];
for(i=1;i<=n;i++){
for(j=i+1;j<=n;j++){
... |
6e4358447c3c7a6cc3c169d39567d6c52239cebb | b2d20993dbb359244b48dfce1ec94a61fc21a116 | /src/crc7.cpp | aa594d4d573d6ffa8cc1c99f66363d4f10414f94 | [] | no_license | thewon86/crc_checksum_qt4 | c107224517b68531488474a2184a0a51a0dfc849 | bd2f315fdefb586ca5028f91bf2006ac6c7297df | refs/heads/master | 2020-04-06T04:03:12.408887 | 2015-06-30T09:40:05 | 2015-06-30T09:40:05 | 38,300,184 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,116 | cpp | crc7.cpp | #include "crc7.h"
/** CRC table for the CRC-7. The poly is 0x9 (x^7 + x^3 + 1) */
unsigned char const crc7_table[256] = {
0x00, 0x09, 0x12, 0x1B, 0x24, 0x2D, 0x36, 0x3F,
0x48, 0x41, 0x5A, 0x53, 0x6C, 0x65, 0x7E, 0x77,
0x19, 0x10, 0x0B, 0x02, 0x3D, 0x34, 0x2F, 0x26,
0x51, 0x58, 0x43, 0x4A, 0x75,... |
303bf11ddd4ad04403c768a98199b8ccaf529aaf | ed4308d8589252d237d588e9ba782ba06f09e87e | /codeforces/1173/A.cpp | 23c8b928f136f7ed8445076ffc62b62a817cfad6 | [] | no_license | BryanMauricio/Codeforces | cac74beec9937a6ef21e4eec95389ffed4567a93 | 0b6772b74b58ae9ba27e5a64e0ac73e46a73439c | refs/heads/master | 2023-02-07T10:01:26.330718 | 2020-12-31T20:53:02 | 2020-12-31T20:53:02 | 325,866,580 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 403 | cpp | A.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
int x,y,z;
cin >> x >> y >> z;
if(x == y && z==0)
cout << 0;
else if(x > y + z)
cout << "+";
else if(y > x + z)
cout << "-";
else if(x > y && z==0)
cout << "+";
else if(y > x && z==0)
cout <... |
21fada2d5087b19a1002c15e591afdab50d29446 | a15995d0790b61b55ef179b583197925dce7c192 | /PhysicallyBasedRendering/FrameBufferObject.cpp | 47ced49c82b48dafce5267d343d9b314d04af21c | [] | no_license | NadaG/PhysicallyBasedRendering | 14a5542a398129e664b42bfbe90bff6c878885aa | fc094affed56185800c890b97dcede4823ea5b5f | refs/heads/master | 2022-06-23T05:18:06.213459 | 2018-10-15T06:12:06 | 2018-10-15T06:12:06 | 108,380,337 | 2 | 0 | null | null | null | null | UHC | C++ | false | false | 2,532 | cpp | FrameBufferObject.cpp | #include "FrameBufferObject.h"
void FrameBufferObject::GenFrameBufferObject()
{
glGenFramebuffers(1, &fbo);
glBindFramebuffer(GL_FRAMEBUFFER, fbo);
}
// 주의할것!!!
// 여기는 rbo를 depth로 사용하고 있음
void FrameBufferObject::BindRenderBuffer(GLenum attachment, RenderBufferObject rbo)
{
glBindFramebuffer(GL_FRAMEBUFFER, fbo);
... |
4ee3216e242b51936ef7cc3065874474b8f36d4e | 570a21c39b9af163ef0793c149b83f6a302bd84c | /folly/experimental/channels/detail/MultiplexerTraits.h | e195d00456954cda1e6d943705cfdd903e420feb | [
"MIT",
"Apache-2.0"
] | permissive | facebook/folly | 544d17b45bda70c51ba593f920e0200bde177927 | ab45d9b6a7a2a24b2a725447387f36772dd2cc4a | refs/heads/main | 2023-08-17T10:31:22.589640 | 2023-08-17T09:29:35 | 2023-08-17T09:29:35 | 4,524,181 | 23,991 | 5,805 | Apache-2.0 | 2023-08-23T18:23:26 | 2012-06-01T20:49:04 | C++ | UTF-8 | C++ | false | false | 2,026 | h | MultiplexerTraits.h | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 appl... |
f21e8c440586e0556a149e4eb166fb385c253685 | 2bc222c4afd9db25917d5469db0ff5da0a076797 | /src/uri/Compare.hxx | d06e5f1426b9e919c7d9c47dde2f996ed85c691f | [] | permissive | CM4all/beng-proxy | 27fd1a1908810cb10584d8ead388fbdf21f15ba9 | 4b870c9f81d5719fd5b0007c2094c1d5dd94a9c4 | refs/heads/master | 2023-08-31T18:43:31.463121 | 2023-08-30T14:03:31 | 2023-08-30T14:03:31 | 96,917,990 | 43 | 12 | BSD-2-Clause | 2023-09-11T10:00:43 | 2017-07-11T17:13:52 | C++ | UTF-8 | C++ | false | false | 426 | hxx | Compare.hxx | // SPDX-License-Identifier: BSD-2-Clause
// Copyright CM4all GmbH
// author: Max Kellermann <mk@cm4all.com>
#pragma once
#include <string_view>
/**
* Compare the end of the given (unescaped) URI with the given
* (escaped) suffix.
*
* @return the beginning of the suffix within #uri or nullptr on
* mismatch
*/
[... |
c735ce4ab2a68acc1492cca5be00cb0fd5f9ecf3 | 33df011da15af6f1dd1589796a0fba8bae11cd1e | /Algorithms/Algorithms/binarytree.h | 0bf3a2d118fbb53abd652e20d01cba5a6a0d2ef8 | [
"MIT"
] | permissive | Dengjianping/AlgorithmsPractice | deb352d6d25f7b57366e0af3e894afd96e4e148b | 612f40b4fca4c1cf2b0cd9ca4df63e217b7affbf | refs/heads/master | 2021-01-01T05:28:18.763140 | 2019-02-28T09:15:01 | 2019-02-28T09:15:01 | 57,347,905 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 653 | h | binarytree.h | #pragma once
#include "algorithms.h"
struct TreeNode
{
int data;
TreeNode* left;
TreeNode* right;
TreeNode(int value)
{
data = value;
left = right = NULL;
}
};
class Binarytree
{
private:
TreeNode* top;
public:
Binarytree(const int range);
Binarytree(const int range, const int number);
TreeNode* topNode... |
6fafe371a9e38ca8cf6a3c5c1fc3092b93237cef | 7a615a4818cbad72fe6bc21d169200c8982d0cd1 | /src/libcode/vx_python3_utils/python3_dict.h | 0983f12880668fe747681ac219168fb68df659e7 | [
"Apache-2.0"
] | permissive | dtcenter/MET | 860f42331d22f6b616320bb4629aaecc8ac8db67 | 3f0411b65cef5719bf11b6fb75f7e8413fe633f0 | refs/heads/main_v11.1 | 2023-08-02T00:38:11.726674 | 2023-08-01T22:36:19 | 2023-08-01T22:36:19 | 184,336,905 | 46 | 21 | Apache-2.0 | 2023-09-14T18:50:21 | 2019-04-30T21:56:39 | C++ | UTF-8 | C++ | false | false | 2,119 | h | python3_dict.h | // *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
// ** Copyright UCAR (c) 1992 - 2023
// ** University Corporation for Atmospheric Research (UCAR)
// ** National Center for Atmospheric Research (NCAR)
// ** Research Applications Lab (RAL)
// ** P.O.Box 3000, Boulder, Colorado, 80307-3000, USA
// *=*=*=*=*=*... |
3649fc63586d0097535ec57cef7ee1f3687fe21a | d9e3cc612c7277384725a4df7a1066c88c8f9297 | /cocos/renderer/gfx-gles3/GLES3Queue.cpp | ab536ec121223e824b15b03d9290130041251a2d | [
"MIT"
] | permissive | PatriceJiang/cocos2d-x-lite | 64764a1eded5dfca9542f17dd53e3aa90abcd397 | c34fab5cef3427ec5ac3bcab479897efa2aab769 | refs/heads/ohos | 2023-08-16T19:21:53.541303 | 2021-04-27T12:52:05 | 2021-04-27T12:52:05 | 139,783,503 | 2 | 2 | null | 2021-06-22T03:32:56 | 2018-07-05T02:09:32 | C++ | UTF-8 | C++ | false | false | 2,311 | cpp | GLES3Queue.cpp | /****************************************************************************
Copyright (c) 2020 Xiamen Yaji Software Co., Ltd.
http://www.cocos2d-x.org
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 Sof... |
6c281928c27c17a470bd43cc7d977ce0bc618a53 | f532af95be72db19fba4918fa89f7635f4935cdf | /arraysIntersectionAndUnion.cpp | 83b89334e3f65927136862d6268016d565e8157a | [] | no_license | kanhaiyagetgit/C- | a4d5c66a28a46a2bedbae903111cfd9b04ba403c | 6ba03ea374156f263b18a5069a0e6ef41c08fb66 | refs/heads/master | 2023-06-12T12:52:26.209113 | 2021-07-10T08:20:00 | 2021-07-10T08:20:00 | 286,951,778 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 831 | cpp | arraysIntersectionAndUnion.cpp | #include<bits/stdc++.h>
using namespace std;
void findUnionAndIntersection(int a[],int b[],int x,int y){
unordered_map<int,int> m;
for(int i=0;i<x;i++){
if(m.find(a[i])!=m.end())
m.at(a[i]) = m.at(a[i]) + 1;
else m.insert(make_pair(a[i],1));
}
for(int i=0;i<y;i++){
i... |
c65f0d8c42c6cbdbba0f332e41961930ed718861 | cc2b07d9e4266efcc830451adfb69b925ec10867 | /RenderSystems/GLES2/src/GLSLES/include/OgreGLSLESProgramManager.h | 2bf098b3a6f25657095d3475a3a1f21b7050ffb0 | [
"MIT"
] | permissive | OGRECave/ogre | 74c9c318d95010a3e5fba9709ffebc7e781f27a2 | 15631ca2dd44bd0c925e33411bee05ccac95fc55 | refs/heads/master | 2023-09-04T21:08:30.326815 | 2023-09-02T10:49:34 | 2023-09-02T10:49:34 | 47,069,819 | 3,716 | 1,178 | MIT | 2023-09-14T05:33:08 | 2015-11-29T15:57:03 | C++ | UTF-8 | C++ | false | false | 4,498 | h | OgreGLSLESProgramManager.h | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person ... |
4206e36f3f568999daf7e846405979c1398a3a95 | 6b5b5f3e86860bdc564ddaa3540cd64de3e3de03 | /C++/C++_OOC/test1.cpp | d1ea322117d84034b8b7b8fb3a1d0ae678a23763 | [] | no_license | kokowhen/my_Learning_Notes | 29dc58a261dc3704d97e93f5bd3e026dd1247038 | c6dcd2cb81212f5b8926ff66c04c47aef0005150 | refs/heads/main | 2023-07-13T11:30:06.225576 | 2021-08-23T09:29:53 | 2021-08-23T09:29:53 | 387,367,469 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,238 | cpp | test1.cpp | //初识C++面向对象
#include<iostream>
using namespace std;
class Box //定义类
{
public: //类成员的访问属性为public
double length;
double breadth;
double height;
//成员函数声明
double get(void);
void set(double len,double bre,double hei);
};
//成员函数定义
double Box::get(void) //get函数无... |
2f8d177ddf88fb1b6270e25264b4c85456cc4bec | 19d62199e263e6a7200f33f4af1d685cb7b3c0be | /google/kickstart/2019/round-c/c.cc | ac8e51bfeb297650b6c116fa202529f64e590777 | [] | no_license | yottacto/competitive-programming | b63067ec30986adc197ce32be8b613d0bc7ce408 | 6ef21e1cb3331dcf7f2c97bb4dae9d26f8024363 | refs/heads/master | 2021-06-08T01:51:30.445619 | 2019-12-21T12:58:30 | 2019-12-21T12:58:30 | 115,851,334 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,298 | cc | c.cc | // ml:run = $bin < input
// ml:std = c++14
#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
auto constexpr maxn = 1500;
auto constexpr inf = 1<<30;
int p[maxn];
int a[maxn];
int f[2][maxn][2];
int n, k;
struct data
{
int pos;
int color;
};
int main()
{
std::ios::sync_with_stdio(... |
dc6374fe8204d3db28022a50b940e0c1e6932e03 | 5015c9c9afcf669bf3d446ff1a1fbe0233fe75bc | /oct-17/main.cpp | 9d8c63fd4f261b83097eeb0487cf4e9b780c63a8 | [] | no_license | ivanzamanov/spawncamping-octo-ironman | 2a67c94fe8615ccc479db399d475ec509561fb7a | 70c62503daa62031a48bebe8bb67d2452ff18d0b | refs/heads/master | 2021-01-21T15:48:41.665924 | 2014-12-11T20:57:13 | 2014-12-11T20:57:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 340 | cpp | main.cpp | #include<iostream>
#include<fstream>
#include<cstring>
#include"ppm.hpp"
int main() {
Image img(255, 255);
for(int x=0; x<img.getWidth(); x++) {
for(int y=0; y<img.getHeight(); y++) {
img(x,y)(x, y, x & y);
//img(x,y)("#CDCDCD");
}
}
std::ofstream output("test.ppm");
img.print(output);
... |
f4d7d502e7ae3aeb5d902705176dc008a0fa85f4 | 554dae615756ca43162041afc98ad7a99e90ae8f | /ConsoleApplication31/算法提高 P1001.cpp | 3f70689f3cf6f75ddf1f75c7c237d222b088f2dd | [] | no_license | David-Zanen/Algorithm | a015a0f8c11aa45b19278f4d3325c45a4291d53c | fc9bf10b04e1e58c4b3e907c609a190b3a0aee46 | refs/heads/master | 2020-04-27T06:45:09.789726 | 2017-02-09T09:33:49 | 2017-02-09T09:33:49 | 174,116,799 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 535 | cpp | 算法提高 P1001.cpp | /*#include<iostream>
using namespace std;
int main()
{
char bcs[9]; int cs;
cin >> cs;
cin >> bcs;
long long jg = 0;
//int q;
//for (q = 0; cs[q] != '\0'; q++);
int h;
for (h = 0; bcs[h] != '\0'; h++);
int z = 0;
long long wei;
for (int x = h - 1; x >= 0; x--,z++)
{
wei = 1;
if (z >= 1)
{
for (int... |
2d3cc75d63cfb10c7da02aa2d828f58ff5ed1845 | 33b567f6828bbb06c22a6fdf903448bbe3b78a4f | /opencascade/BlendFunc.hxx | 3d38856383246cc3b0f5731013bd7488a6056b27 | [
"Apache-2.0"
] | permissive | CadQuery/OCP | fbee9663df7ae2c948af66a650808079575112b5 | b5cb181491c9900a40de86368006c73f169c0340 | refs/heads/master | 2023-07-10T18:35:44.225848 | 2023-06-12T18:09:07 | 2023-06-12T18:09:07 | 228,692,262 | 64 | 28 | Apache-2.0 | 2023-09-11T12:40:09 | 2019-12-17T20:02:11 | C++ | UTF-8 | C++ | false | false | 2,438 | hxx | BlendFunc.hxx | // Created on: 1993-12-03
// Created by: Jacques GOUSSARD
// Copyright (c) 1993-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the G... |
a3a63705a0002ee1b68c68abddb08a212a1855de | 3c997c1f6e46c9b9a809e299a54b58956228d9e6 | /S2Sim/SocketLibrary/UDPSocket.cpp | cb457db3f422c7ec0dd7cc4b172e3dd8f536c1f5 | [] | no_license | asakyurek/S2Sim | 8897805034e4202d8d6650dc36d2533d1c36ee64 | 7d8fae8d89d327423847deb40ec7164716e53f66 | refs/heads/master | 2020-05-17T03:33:37.659916 | 2014-07-08T03:55:36 | 2014-07-08T03:55:36 | 17,011,994 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,190 | cpp | UDPSocket.cpp | /**
* @file UDPSocket.cpp
* Implements the UDPSocket class.
* @date Jun 21, 2013
* @author: Alper Sinan Akyurek
*/
#include "UDPSocket.h"
UDPSocket::UDPSocket( void )
{
}
UDPSocket::~UDPSocket( void )
{
}
UDPSocket::TNumberOfBytes
UDPSocket::SendData( const TBuffer buffer, const TNumberOfBy... |
eac3c48e0e33884576af16c7cc120baa0d55683f | 9889e7fd73314382fb2f9e8f63d92cf3254b75fb | /Vaango/src/StandAlone/vaango.cc | 8cbeb63db3b19627177480b631535ae53ee07cab | [] | no_license | bbanerjee/ParSim | 0b05f43cff8e878658dc179b4a604eabd873f594 | 87f87816b146f40013a5e6648dfe20f6d2d002bb | refs/heads/master | 2023-04-27T11:30:36.252023 | 2023-04-13T22:04:50 | 2023-04-13T22:04:50 | 13,608,512 | 16 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 14,458 | cc | vaango.cc | /*
* The MIT License
*
* Copyright (c) 1997-2012 The University of Utah
* Copyright (c) 2013-2014 Callaghan Innovation, New Zealand
* Copyright (c) 2015-2023 Biswajit Banerjee
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (... |
b44a44611eca47f9c36960154b3f6f81bcb5849c | ca943ec7d0914185866cd699ff268ee048b4f202 | /test/CodeGenCXX/const-init-cxx11.cpp | 6f13faa2fce4eadb88a3595cfd1600489d85ad9d | [
"NCSA"
] | permissive | nobled/clang | 9d2b567e9ff6db7d9c2217d18cdf05be71b2f574 | e29cdebb4b9bb435d58aec5da844f46cf78cfbe2 | refs/heads/master | 2021-01-19T00:29:31.204002 | 2012-01-30T12:25:35 | 2012-01-30T12:25:35 | 1,579,190 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,718 | cpp | const-init-cxx11.cpp | // RUN: %clang_cc1 -verify -triple x86_64-apple-darwin -emit-llvm -o - %s -std=c++11 | FileCheck %s
// FIXME: The padding in all these objects should be zero-initialized.
namespace StructUnion {
struct A {
int n;
double d;
union U {
constexpr U(int x) : x(x) {}
constexpr U(const char *y) : y(... |
140b59e3a63d290dbb9c49f96964a51fa4dd7129 | e555b01eeb09117ab35d66a90dba60cf526f6088 | /BaseApp/MainPage.xaml.cpp | 45ca8ff96bb0a1c4432f480e1c809c10697faba0 | [] | no_license | ArthurFSharp/WinRTDevelopmentSamples | 4b6ad50464ad2479472f14ea2ef1eec667bb055d | 4fa4a8c1b9e4e0d85ab9a4ffc2cf5d2ac6ef820a | refs/heads/master | 2021-01-25T14:23:27.274061 | 2018-03-04T16:43:33 | 2018-03-04T16:43:33 | 123,692,815 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,248 | cpp | MainPage.xaml.cpp | //
// MainPage.xaml.cpp
// Implémentation de la classe MainPage.
//
#include "pch.h"
#include "MainPage.xaml.h"
#include "BasicPage.xaml.h"
using namespace BaseApp;
using namespace Platform;
using namespace Platform::Collections;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;... |
204f35c11c3707a9cc0608d1096df23e22a0ab1b | 8d43e357adb05d5f0a6ec8bfa50dd265eb0fdbc7 | /bilibili_fans_clock/2/2.ino | 53d63621ad7a7b8938f398a262ebc9cdd9ae702c | [] | no_license | heropoo/esp8266 | 5f0283807ad4ef61f2edb242bb52e4f9b2cf16fd | 39a61ae7428d0dd0d53f9ccdd55df0d677c1d893 | refs/heads/main | 2023-08-04T02:10:48.423910 | 2021-09-21T02:06:32 | 2021-09-21T02:06:32 | 352,130,337 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,015 | ino | 2.ino | #include <Arduino.h>
/* 作者:flyAkari 会飞的阿卡林 bilibili UID:751219
* 本代码适用于ESP8266 NodeMCU + 12864显示屏
* 7pin SPI引脚,正面看,从左到右依次为GND、VCC、D0、D1、RES、DC、CS
* ESP8266 --- OLED
* 3V --- VCC
* G --- GND
* D7 --- D1
* D5 --- D0
* D2orD8--- CS
* D1 --- DC
* RST ... |
876915d29073850adcf436c0fc5a5bcb122cddbe | 39eae5cc024b6631a3a77853afed6983d8af31fe | /mix/qt/popstars/star.cpp | 6d00b20d11217e80cbf5f9b0c91b4aa97dd7e629 | [] | no_license | SniperXiaoJun/mix-src | cd83fb5fedf99b0736dd3a5a7e24e86ab49c4c3b | 4d05804fd03894fa7859b4837c50b3891fc45619 | refs/heads/master | 2020-03-30T06:21:14.855395 | 2018-09-28T03:32:55 | 2018-09-28T03:32:55 | 150,854,539 | 1 | 0 | null | 2018-09-29T10:44:41 | 2018-09-29T10:44:41 | null | UTF-8 | C++ | false | false | 740 | cpp | star.cpp | #include "star.h"
Star::Star(QWidget *parent,int type, int size_x,int size_y) :
QLabel(parent)
{
this->setFixedSize(size_x,size_y);
if(type==0)
{
//this->setIcon(* new QIcon(":Images/blue_blank.png"));
this->setStyleSheet("border-image: url(:/Images/blue_blank.png);");
}
else if... |
2c743a563cb012ae8a061f52de1eacd358db61dc | 5bed48198ef84768519948c51cbc238b4bbaf8d7 | /Block.cpp | e4615016890e4bf8a5723da7d7e5b6144128530c | [] | no_license | 2002ljy/homework | 3fd7cf81816c9af2a677af3e2089fd6f33bf072f | e8a3f8604e8b2a588eaf211a26c0315c8a0c86ae | refs/heads/master | 2020-12-26T20:25:46.602092 | 2020-06-09T14:44:20 | 2020-06-09T14:44:20 | 237,631,379 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,026 | cpp | Block.cpp | #include"head.h"
#include "other.h"
#include"Block.h"
const int sharp[15][8] = //组成图形的各个点的各个坐标,先纵后横
{
{0,0,1,0,2,0,3,0},{0,0,0,1,0,2,0,3},
{0,0,1,0,0,1,1,1},
{0,0,1,0,1,1,1,2},{0,1,1,1,2,0,2,1},{0,0,0,1,0,2,1,2},{0,0,0,1,1,0,2,0},
{1,0,1,1,1,2,0,2},{0,0,0,1,1,1,2,1},{0,0,0,1,0,2,1,0},{0,0,1,0,2,0,2,1},
{0,0,0,1,1,... |
242f0e947d5ab8caa85282f677c21513718bf429 | f4203d8e67946851abf8af2f80c77d180df34b62 | /src/gbxnovatelacfr/gbxnovatelutilacfr/novatelmessages.h | 5f5f4c1f4caf4315475f15a2a973bae2d66f6b50 | [] | no_license | naderman/gearbox | 997547c6e6cb0f7830d2c8d9c30dfa999f8f86ff | a92ff328944502ed8ad0cc879a86bc177c5aa335 | refs/heads/master | 2016-09-05T10:06:36.371732 | 2010-02-23T23:20:33 | 2010-02-23T23:20:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,466 | h | novatelmessages.h | /*
* GearBox Project: Peer-Reviewed Open-Source Libraries for Robotics
* http://gearbox.sf.net/
* Copyright (c) 2004-2008 Michael Moser
*
* This distribution is licensed to you under the terms described in
* the LICENSE file included in this distribution.
*
*/
#ifndef GBX_NOVATEL_MESSAGES_H
#defin... |
b87c650fb4e92ecac56ca5eee11676f13163b217 | bb0210020d8d1b8ce84095d8252c55bf6e7db9d8 | /project3/dNode.cpp | 2f385ea4d517654faba5e508f9a04b8e6bade49e | [] | no_license | jventura1738/COSC220 | 3bad2d123805b537b51f799bb372f04f82c12cd4 | 2b45ab654e3e74c2b6192b74225ed5af4d5c172d | refs/heads/master | 2020-08-24T23:36:07.594450 | 2019-12-11T03:57:16 | 2019-12-11T03:57:16 | 216,927,895 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 685 | cpp | dNode.cpp | // Justin Ventura (COSC220-003)
// Project 3 (modified 11/12/19)
// File: dNode.cpp (Justin Ventura)
// Implementation for the Doubly
// Linked List Node.
// Created: 11/12/19.
#include <iostream>
#include "dNode.h"
// Copy Constructor
template <class T>
dNode<T>::dNode(dNode<T>* obj)
{
this->next = obj->next;
... |
cd2f244adcb36668f30fd3bc44f5d1821ce3fa9e | c20b9846c869cc6b9d745122788d32a34657d75b | /upcxx-2018.3.0/src/future/impl_when_all.hpp | e9ad055f84cbe96de02092ded99f7e8140cf26f4 | [
"MIT-Modern-Variant"
] | permissive | persja40/PSRS_p2 | e06f977cd9c5406646004d67cdf64ee3499e9d79 | ea9709565b043c31cc26d8a239597690a4fc1bc4 | refs/heads/master | 2020-03-14T05:40:58.610691 | 2018-05-05T08:41:02 | 2018-05-05T08:41:02 | 131,469,353 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,479 | hpp | impl_when_all.hpp | #ifndef _3e3a0cc8_bebc_49a7_9f94_53f023c2bd53
#define _3e3a0cc8_bebc_49a7_9f94_53f023c2bd53
#include <upcxx/future/core.hpp>
#include <upcxx/future/body_pure.hpp>
namespace upcxx {
//////////////////////////////////////////////////////////////////////
// future_is_trivially_ready: future_impl_when_all specializat... |
aa726fe5a0092f582daa0cc788d6a04a5e60b044 | 36e649cb326402a23a1a38e72ac1e765329d9315 | /C&C++/OpenCV_VS2013/FaceCheck/faceColor.cpp | 56f6980d677e2f698d3b92d4983752622194e1a4 | [] | no_license | yanglw115/Softwares | 6d844818bbf99271137cc41c64c8636a9a560f8a | d6772bd1ba89d44a134e396ce9ed8221f40a271f | refs/heads/master | 2021-12-09T19:22:13.273159 | 2020-03-29T02:42:08 | 2020-03-29T02:42:08 | 139,205,287 | 2 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 4,122 | cpp | faceColor.cpp |
#include "faceColor.h"
#ifdef With_Debug
#include "opencv2/highgui/highgui.hpp"
#endif // With_Debug
#include "opencv2/imgproc/imgproc.hpp"
#include <iostream>
#include <stdio.h>
#include <math.h>
using namespace cv;
static const char *g_colorString[] = {
"tou bai",
"bai xi",
"zi ran... |
750b963628cc57acdc571c364b61af2e3982b083 | 57a53a46ca425412051ee75771e53c830713e4f6 | /Employee.h | add7966c5a4cf737aea238c584a8b11387106b87 | [] | no_license | Heisenberg0001/restaurant_oop_cpp | 0406f25946a1fa69b706b01397dac05eb8342e17 | f45ff7c0a67a2780e82b4a66144083606ad2bb44 | refs/heads/master | 2022-10-10T17:52:27.501476 | 2020-06-14T12:08:43 | 2020-06-14T12:08:43 | 272,188,965 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,027 | h | Employee.h | //
// Created by George on 04.06.2020.
//
#include <string>
#include <iostream>
#ifndef OOP_EMPLOYEE_H
#define OOP_EMPLOYEE_H
using namespace std;
class Employee {
protected:
string name; // Employee Name
unsigned int emplId; // Employee ID
char emplClass; // Employee Class that can be '... |
88f159589c9779f491c6e25af1c3cef7f2c2890a | 45949c38f35d8c6d673103f3ce0f9174d731e0a6 | /radioclock5/radioclock5.ino | 34448a027f126808bded28a34f78d66614d0c417 | [] | no_license | wuftymerguftyguff/Jeffduino | 0bed0fa36be131f9b4739a2f0fa1b5e39b0aa4c6 | 506811d128ad7fd67b5801473e85073e5ca733e3 | refs/heads/master | 2021-01-20T08:46:10.365117 | 2014-09-25T07:33:32 | 2014-09-25T07:33:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,855 | ino | radioclock5.ino | #define wwvbPin 2
#define ledPin 13
#define LOW 0
#define HIGH 1
unsigned long currentMillis;
unsigned long previousMillis = 0;
unsigned long interval = 1000;
int ledState = LOW;
// the bit number of the current data
volatile unsigned long secondBitOffset;
// time of this pulse state change
long thisPulseChange = 0... |
5c82f78565773ac72867be1247baad9178987303 | 576a8f0cc7ad4bacba80d28c63ac7a5d46465a89 | /Custom Classes/CString (1).h | 4190c921f643ab135172e254bf31e5a4aa440280 | [] | no_license | OmerBhatti/Cpp-Classes | 2916159b0afa2928405cb9deda0d2f2ee374134e | a2127ea1277a2a17d102b731fea07c51bc9d9eb0 | refs/heads/main | 2023-01-08T11:51:57.339373 | 2020-11-08T12:32:37 | 2020-11-08T12:32:37 | 304,613,814 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,342 | h | CString (1).h | #ifndef C_STRING_H
#define C_STRING_H
#include<iostream>
using namespace std;
class CString
{
friend istream& operator>>(istream&, CString&);
friend ostream& operator<<(ostream&, const CString&);
//Data Members
char* data;
int size;
//Utility Member Functions
static int getLength(const char*);
bool isValidI... |
1a9043b887bf2419e5fa3965e64d1cc4352ab56c | 58090e0254b0152041004ae6261aa4a378d33b1d | /UnitTest1/unittest1.cpp | cc65c55bdf7f0efddaa544c59d467bf290a5ca99 | [
"MIT"
] | permissive | wzv5/libpck | 6b3b930af059ecef0c1a006befdcd7e8181fcb7e | a8f2e8f5e3c1bd889eacfd6fd681525d0ff1bfa7 | refs/heads/master | 2021-12-03T05:42:53.199995 | 2021-11-26T12:27:18 | 2021-11-26T12:27:18 | 54,653,240 | 7 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 4,528 | cpp | unittest1.cpp | #include "stdafx.h"
#include "CppUnitTest.h"
#include <sstream>
#include "../include/pckfile.h"
#include "../include/pckitem.h"
#include "../include/pckfile_c.h"
#include "../src/stringhelper.h"
#include "../include/pcktree.h"
#include <Windows.h>
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
using na... |
38355ad3a5fde42d62d4273694f5734719a54e8c | b77be7114854b8ac177d66c3295908dccd899fd8 | /MotionCueingInterface/Source/MotionCueingInterface/Public/MyMotionHost.h | a31fc73f267cf2a37baae5b6dd1a1b66e0b31906 | [
"BSD-3-Clause"
] | permissive | okkann/MotionCueingInterface | da5245ad83c7355c9bdc3bbe843b9818d1addd8b | ba7e30bd00422474745fe961a86dee4d49403cf0 | refs/heads/master | 2022-02-17T10:38:23.872586 | 2019-05-10T18:10:01 | 2019-05-10T18:10:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,111 | h | MyMotionHost.h | // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#include "MotionHost.h"
#if WITH_THEAPI
// add API include here
// ...
// ...
// ...
// ...
#endif
class MyMotionHost : public MotionHost
{
private:
virtual void MapData(FMotionData& Data) override
{
// Map data from Unreal to your API data structure... |
ca9e22b4196d2c7e3e4ced1548ea7993adf0ed5d | 9db2bd0e9ee4d39ae1c3adb6bdf39e8b35a8c781 | /Orbitersdk/Space Shuttle Ultra/vc/PanelF7.cpp | 464204b92d830ba6865a8a3389b5591bd783bf2a | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | mrozigor/spaceshuttleultra_mirror | 95aae304af32179a5c1f33ff1e103b874c5c39db | caeffa89129ba749061c8e751d254882e21417c4 | refs/heads/master | 2021-01-25T16:53:44.829629 | 2017-07-31T21:26:20 | 2017-07-31T21:26:20 | 101,912,508 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,233 | cpp | PanelF7.cpp | #include "PanelF7.h"
#include "../Atlantis.h"
#include "../meshres_vc.h"
#include "MDU.h"
#include "../Atlantis_defs.h"
namespace vc {
PanelF7::PanelF7(Atlantis* _sts)
: AtlantisPanel(_sts, "F7")
{
Add(pCRT1 = new MDU(_sts, "CRT1", MDUID_CRT1, true));
Add(pCRT2 = new MDU(_sts, "CRT2", MDUID_CRT2... |
25af603909ea5f046193659ee92af77718b0b6db | 07d784d60aacc1872b19525e4de755378ba5fe9e | /EersteGraphicEngine/OrthographicCamera.cpp | 0d509826068f0e991d9781fa82e90cc8ac4747ee | [
"MIT"
] | permissive | fabsgc/EersteGraphicEngine | 0c9308a51d1b2b2e83f0f22da9950e75bdf5ee0b | 09d0da03dbe3a17a5da6651409f697a0db8634bd | refs/heads/master | 2021-04-29T15:47:30.391663 | 2018-09-24T14:13:48 | 2018-09-24T14:13:48 | 121,803,405 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,376 | cpp | OrthographicCamera.cpp | #include "OrthographicCamera.h"
namespace ege
{
const float OrthographicCamera::DefaultMinZoom = 0.01f;
const float OrthographicCamera::DefaultMaxZoom = 256.0f;
OrthographicCamera::OrthographicCamera()
: Camera(CameraType::OrthographicCamera)
, _zoom(0.5f)
, _lastMousePosition(... |
7de9b795bc9711cc52b110c69d42166818deabc0 | 8ea9c207a2887df19e8a5941c4ca324b4b0557c6 | /include/hscpp/typeclass/monoid.hpp | 9ac17c96383e8fc8c4fc6454a77da3cdb34ccf4c | [
"MIT"
] | permissive | TRCYX/hscpp | 61f567e3fb7ddc1c545020e62437690ce4b0f1ac | 42b5807021cd29f76e784aadb1f610d73cebe989 | refs/heads/master | 2020-04-27T16:33:16.298951 | 2019-03-09T09:15:49 | 2019-03-09T09:15:49 | 174,485,724 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,987 | hpp | monoid.hpp | #pragma once
#include <hscpp/basics.hpp>
#include <hscpp/operator_identifiers/M.inl>
template <typename M>
struct Monoid;
template <typename M>
constexpr bool is_monoid =
is_same_v<remove_reference_t<decltype(Monoid<M>::memptyImpl)>, const M>
&&is_same_v<remove_cvref_t<decltype(
Monoid<M>::ma... |
e9779152e38845c76030ed344c22e8603bdceda8 | 5c815d149f180d194b13a0ff9eaa0260e1496508 | /Spring'14/J. Tom & Jerry/Tom & Jerry.cpp | 5041f607a87bad93dec7b6a09ec41184ab1f1037 | [] | no_license | math10/Intra-Aust-Programming-Contest | 1f4eb3b308e377ef6efce76bb590f5051dd33bb6 | 62622b092a6700cbe52d0da29a15bf55bfe17a03 | refs/heads/master | 2020-12-25T16:48:31.072976 | 2019-11-13T19:26:42 | 2019-11-13T19:26:42 | 40,723,729 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,265 | cpp | Tom & Jerry.cpp | #include <bits/stdc++.h>
using namespace std ;
typedef long long Long;
string toString(Long X){ stringstream p ; p << X ; return p.str(); }
Long dp[22][2][2][10][10];
int N ;
string s;
Long solve( int pos , int sm , int st , int FirstdigiT , int LastdigiT )
{
if( pos == N ) return FirstdigiT == LastdigiT ;
if... |
29fa9fe46819e1055d200ee763a502e61cba8f69 | bba4ca2e62d0c982575d06ffa1d5aaa824509df2 | /PROI Project 2/PROI Project 1/Sails.cpp | 29a79d13ae04f4c8176d3560bbb805d4823763a8 | [] | no_license | goctokloc/PROI | 26692d9cff35c59dec67c07a165b892a630f6c9b | 350c3a0294d716631c5274f88f4e0f011e3673ab | refs/heads/master | 2020-08-28T22:39:43.028117 | 2019-12-17T10:42:23 | 2019-12-17T10:42:23 | 217,841,583 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,425 | cpp | Sails.cpp | #include "Sails.h"
#include "Macros.h"
Sails::Sails()
{
/// \return obiekt Sails
DEBUG_MSG("SAILS CREATED!\n");
}
Sails::Sails(double l, double w)
{
/// \param double dlugosc zagla
/// \param double szerkosoc zagla
/// \return obiekt Sails
length = l;
width = w;
area = l * w;
DEBUG_MSG("SAILS CREATED!\n");
}... |
967014e88df7a987166776a947c2cfa35aef9cd5 | 7afb92c4e47397372e795c2b597e947fc6c5f12f | /SimpleUI/Simple_Mouse.cpp | 67541b8638d8cde84f2d08fe4c6e3dd0ecbac841 | [
"MIT"
] | permissive | tienery/SimpleUI | ef4181cb17f5c421395af6364b9fd90f0890875f | d248c5e3d84e8af7637bef76547377653a2045b2 | refs/heads/master | 2021-01-10T02:38:08.186648 | 2016-03-31T08:04:08 | 2016-03-31T08:04:08 | 55,109,787 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 140 | cpp | Simple_Mouse.cpp | #include "Simple_Mouse.h"
Simple_Mouse SimpleMouse_Create(int x, int y)
{
Simple_Mouse mouse;
mouse.x = x;
mouse.y = y;
return mouse;
} |
867fb04a2420872406520c748037ae524521c8ff | 466241cbd8ef888b61ae08deebf69a925e558fd1 | /src/tools.cpp | 78920f3138c32e503e4d5dfc5a86087e4bbccecf | [] | no_license | karanvivekbhargava/CarND-Extended-Kalman-Filter-Project | 919daf2aee03490a0d9123f6a1a246a465734666 | fc83bba3a1f60636e8f4ad4445f39d9f18539b47 | refs/heads/master | 2021-06-18T08:09:06.323889 | 2017-06-25T18:55:36 | 2017-06-25T18:55:36 | 93,469,548 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,846 | cpp | tools.cpp | #include <iostream>
#include "tools.h"
using Eigen::VectorXd;
using Eigen::MatrixXd;
using std::vector;
Tools::Tools() {}
Tools::~Tools() {}
VectorXd Tools::CalculateRMSE(const vector<VectorXd> &estimations,
const vector<VectorXd> &ground_truth) {
/**
TODO:
* Calculate the RMSE... |
ac00dd2d246f06b6344ba2851a3d304a429fc1f1 | 6c9c2a201b21863050b44452cec0717dfa08090d | /include/ezy/string.h | e6f338c7a9af1fb8a07aa349d35b282b6b3d96c5 | [
"MIT"
] | permissive | aDakic/ezy | ea2e920a27151f843c053178b9849e350f96f7a5 | e3abcb0c47e3299daebf05165f69e24503f3427f | refs/heads/master | 2022-11-13T17:54:42.209533 | 2020-07-03T21:16:19 | 2020-07-03T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 513 | h | string.h | #ifndef EZY_STRING_H_INCLUDED
#define EZY_STRING_H_INCLUDED
#include <string>
namespace ezy
{
struct to_string_fn
{
template <typename T>
constexpr auto operator()(T&& t) const -> decltype(std::to_string(t))
{
return std::to_string(std::forward<T>(t));
}
template <typename T>
conste... |
73d537518f74bee19260d948afb707fb026b1092 | cf7d3e5c7902cda2d482323ff74cac191752ac6d | /scheduling.cpp | 56b710ea2c89de917291247d8b62f152e668d2ac | [] | no_license | rashmiths/Os_Simulator | 42f2598b5db0ce0a478cf303d5d22105064f12eb | f37092d87d973c344d521424efa4e8657ee310ae | refs/heads/master | 2023-06-03T10:08:34.280401 | 2021-06-12T07:22:12 | 2021-06-12T07:22:12 | 359,075,769 | 0 | 8 | null | 2021-04-24T04:25:20 | 2021-04-18T07:33:57 | C++ | UTF-8 | C++ | false | false | 23,442 | cpp | scheduling.cpp | #include <bits/stdc++.h>
using namespace std;
void roundRobin()
{
cout << "Enter the number of processes: ";
int n, i, j;
cin >> n;
while (n < 0)
{
cout << "Wrong input, try again\nEnter number of processes: ";
cin >> n;
}
vector<tuple<int, int, int, int, int>> times(n); // {... |
fa033560a52fb6e2de245c57ec09cbfecc9864ae | 6dcd47fea09a5c3c499bfda618dee7e342976dd2 | /VisualTrackingUI-QT/VisualTrackingUI-QT/AlgorithmManager.cpp | ff8ba3150cde9d38b3f455f451476c8bffc704d6 | [] | no_license | Bardo91/DepartamentoESI | b65447e82ca2a2061e26583de6038db9eff12f98 | 878ba5de8cb51fe795e045ac96f0a7f414ff7cc1 | refs/heads/master | 2021-01-13T02:37:17.798615 | 2014-03-05T08:53:51 | 2014-03-05T08:53:51 | null | 0 | 0 | null | null | null | null | ISO-8859-2 | C++ | false | false | 4,698 | cpp | AlgorithmManager.cpp | ////////////////////////////////////////////////////////////////////////////////
// Visual Tracking UI
//
// Author: Pablo Ramón Soria
// Date: 2013/11/24
//
////////////////////////////////////////////////////////////////////////////////
// Algorithm Manager
#include "AlgorithmManager.h"
#include "ParamsEKF.h"
#... |
c9e17eac4938e5c0900dcf7a4e1b0237d6c2b8a3 | 3c085d6386aa79de4c1b94cbddba5552761c6714 | /Fin/src/fin/ui/iuielement.h | 4bec203d47e2df1e8c4e4c4c3e66b37cd8b36344 | [] | no_license | MeltyPlayer/FinRpg | 971840c5ab8fed746f9a293b4e2140d8ae241830 | d147067840f97166c5310952457cce4099835010 | refs/heads/master | 2021-04-26T04:15:44.448591 | 2018-11-04T02:58:57 | 2018-11-04T02:58:57 | 106,984,049 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 258 | h | iuielement.h | #pragma once
#include "fin/graphics/igraphics.h"
namespace fin::ui {
class IUiElement {
public:
virtual void control_move(double direction) = 0;
virtual void control_action() = 0;
virtual void render( graphics::IGraphics* g ) = 0;
};
}
|
9e8e2c68c581815d2ccbff9945f1f26a777551ae | d7cb533ff510c57d5c4876f9961cbf1ab9597020 | /HW06/_mainTest.cpp | 26860c023d0004c74f338ad7a2661192359c6c7c | [] | no_license | Layso/CSE241-Homeworks | 3dabb666688d820bb5b1fd8325886a63767e4766 | 157e1c9d979f316e36b8839d6529a2b156ff36ef | refs/heads/master | 2020-04-06T03:32:47.224485 | 2017-10-23T14:42:59 | 2017-10-23T14:42:59 | 69,148,257 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,556 | cpp | _mainTest.cpp | /*
* main.cpp
* This is the main (driver) file
*
* This main file has copied from the HW6 definition PDF to test all classes
* acquired for homework. It creates objects of CPUProgramDyn class with
* implemented constructors, makes a few tests of its functions
*
* This file coded for the homework 6 of GTU's CS... |
2255fe70498c21e97875afd794fbf8a6471ef1a0 | bdfaabd11526dd43554823ba0d934899c9898b7e | /spritelet2_itsybitsy_m0/spritelet_util.cpp | 00ecfd2b452b0bc93c8d605f5f3c14fae7e93573 | [] | no_license | kreativekorp/spritelet | 245aa229b8715c3962f6c5f21126b62f61f917c7 | 4060f8d34fe463ef7a88b3a07d33c87053868833 | refs/heads/master | 2021-04-12T11:45:14.201810 | 2019-12-30T07:44:07 | 2019-12-30T07:44:07 | 126,273,252 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 514 | cpp | spritelet_util.cpp | #include <Arduino.h>
#include "spritelet_font.h"
#include "spritelet_input.h"
#include "spritelet_util.h"
#include "st7735.h"
extern ST7735 tft;
void error_message(int16_t x1, char * m1, int16_t x2, char * m2, uint16_t clr) {
tft.fillScreen(0);
if (m2) {
tft_drawString(x1, 52, m1, 0, clr);
tft... |
80c41bfa2004bceff4b8a9777512f00cedab44ec | 511872278bea465e58c64d96c9dbe58bc726e1a6 | /1_strings/4_rotationOfOther.cpp | 708f9390cd930c9a0d8cf264f3c9cb501b7c456b | [] | no_license | SubashChandra/placements-Mtech | d0bca826e4342635138e330f5ec23e1119cbc57e | 85c8b09b0400243d3db5af5db6578ba70fad8058 | refs/heads/master | 2021-01-20T11:23:46.143637 | 2016-11-02T17:08:56 | 2016-11-02T17:08:56 | 59,268,656 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 491 | cpp | 4_rotationOfOther.cpp | #include<cstdio>
#include<iostream>
#include<string>
using namespace std;
int auxFunc(string str1,string str2)
{
if(str1=="" || str2=="")
return 1;
//now append str1 to itself
str1+=str1;
void *ptr;
//check if str2 is substring of str1
if(str1.find(str2)!=string::npos)
return 1;
return 0;
}
int main... |
ac3a7de2ceea1aadce35e8fe6d3c6ab6977b3bc5 | 20f51d25dc70223a8fd9b411cf53c7646b06739c | /CodeForces/strangeList.cpp | d01889c171032ae8b237bdb1a54780c04a14bf4c | [] | no_license | Santirax/competitive-solutions | da9252bd0808f380a4b6bd79394dcd6582ba8baa | b42a7cfe579a6fb7e0818fb46d1eb66bf01c8587 | refs/heads/master | 2022-10-22T13:20:16.609965 | 2022-09-30T05:49:23 | 2022-09-30T05:49:23 | 215,106,186 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 935 | cpp | strangeList.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main (){
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
int t; cin>>t;
while(t--){
ll n, x, sum = 0; cin>>n>>x;
vector<ll> nums(n);
vector<ll> aux (n);
bool ban = ... |
9ef31e32eb0c91705fec9215e8671733753ffcc1 | ff41cc133ed28ae42bb8181bb86018bde6acf441 | /source/Core/FilePathInfo.cpp | 497bf2fce754a99fb9b01145b3b4a1a160be4436 | [] | no_license | dmitry123/lame | 048440c953677df3ae237151b7d93c263ef4d7c7 | 6ee32c8e9db67d1cd42ceb1bd3580c5e51b1c40b | refs/heads/master | 2020-05-18T19:40:55.231139 | 2014-09-23T05:55:44 | 2014-09-23T05:55:44 | 18,167,360 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 521 | cpp | FilePathInfo.cpp | #include "FilePathInfo.h"
#include "File.h"
LAME_BEGIN2(Core)
Void FilePathInfo::Parse(StringC buffer) {
this->name = File::GetFileNameWithoutExtension(buffer);
this->extension = File::GetFileExtension(buffer);
this->path = File::GetPathWithoutEnd(buffer);
this->buffer = File::NormalizePath(buffer);
}
Void File... |
c63c2dd552b117fe1abf2cbc324f4f892a985280 | 460f981dfe1a05f14d2a4cdc6cc71e9ad798b785 | /3/amd64/envs/navigator/include/kml/dom/abstractview.h | 8b0b51a8d2d23f370af073597f1c8cfe084d6375 | [
"LicenseRef-scancode-proprietary-license",
"BSD-3-Clause",
"Intel",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only",
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"LicenseRef-scancode-mit-old-style",
"dtoa",
"LicenseRef-scancode-public-domain-disclaimer",
"Zlib",
"LicenseRef-scancod... | permissive | DFO-Ocean-Navigator/navigator-toolchain | d8c7351b477e66d674b50da54ec6ddc0f3a325ee | 930d26886fdf8591b51da9d53e2aca743bf128ba | refs/heads/master | 2022-11-05T18:57:30.938372 | 2021-04-22T02:02:45 | 2021-04-22T02:02:45 | 234,445,230 | 0 | 1 | BSD-3-Clause | 2022-10-25T06:46:23 | 2020-01-17T01:26:49 | C++ | UTF-8 | C++ | false | false | 7,973 | h | abstractview.h | // Copyright 2008, Google Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and ... |
ccfb47302aee356c4c36c6122688a27455581817 | 6b28df12d3a45c20a19503e0eeb3649460d587f9 | /data/885.cpp | 6afc0b464aa3160c66da49939d3db3d4c6de8756 | [
"MIT"
] | permissive | TianyiChen/rdcpp-data | 9bb1f0319de5a22c601192c3eef33e4024b172fe | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | refs/heads/master | 2021-04-15T09:26:01.359253 | 2018-03-21T18:57:09 | 2018-03-21T18:57:09 | 126,216,374 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,479 | cpp | 885.cpp | int u ,LWc, F9 , XU3z,fnDx,pJ, v,Sal
, ppae3 ,
HSP9 ,Po1B9 ,//ncs
bYb/*A*/,/*ykX5*/
XWn
,z/*k*/
,
hAFm,//0V
V ,E8b, lzp/*oPL*/,IH
//pz
,fh3F//NMr
, g ,//
dhO//4zCdiED
, Ok,cF6q,hSwk,/*YK6*/
lsl,QXuX
, In
,coxL
, EhI,YrWK ,
Bsa8r, kfgTz
,gu
,
J0
,
Xgpf, gd
,w7, ixs/*in*/, hDv,
DU, Z... |
2cc8fc6f87cc50d3ddbe45d5d3354a0b05290016 | fe413f8747ddddc011f4dd6783cc084881da870a | /Code/application/Gui/.svn/text-base/PropertiesModuleDescriptor.h.svn-base | 354a87437a7330fce421cd809166a1337b22411f | [] | no_license | GRSEB9S/opticks-cmake | f070b7ee32e5fff03de673c178cd6894113bc50b | 497f89ccbcbf50c83304606eb586302eec3e6651 | refs/heads/master | 2021-05-27T08:16:26.027755 | 2011-08-13T06:03:04 | 2011-08-13T06:03:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,396 | PropertiesModuleDescriptor.h.svn-base | /*
* The information in this file is
* Copyright(c) 2007 Ball Aerospace & Technologies Corporation
* and is subject to the terms and conditions of the
* GNU Lesser General Public License Version 2.1
* The license text is available from
* http://www.gnu.org/licenses/lgpl.html
*/
#ifndef PROPERTIESMODULEDESCRI... | |
06f0d862e61df6c04b81c5da51f9062fb8d52afd | fbd92a69e0d949cf277a95244ccc992e4859079d | /Lista5/1B/Shader.cpp | 4778ef9c65b9298c2c1045377adf651120915f14 | [] | no_license | camilagomes05/Lista5 | 20d9032be104229a966030a5bc317006b63872d6 | 6d0227e822e2932a59664b4f5436d99c72045ca7 | refs/heads/master | 2023-09-05T04:31:51.736399 | 2021-11-21T23:51:55 | 2021-11-21T23:51:55 | 429,226,435 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 33 | cpp | Shader.cpp | #pragma once
#include "Shader.h" |
5e913627ff9147993be8754cc1f31b34eb369adc | b0dbb3fea35162ed2f5967d4811a90e03fba3f9b | /PUCCH.h | 9ef99e8dc16a6ed1985afa1d3902504d617f6d33 | [] | no_license | interfector1303/LteModeling | e4b73d3e7833bfafc50cb6942ff683405f62686d | 879f4ea571eada588cf832b6672db7f994e1f537 | refs/heads/master | 2021-01-16T21:02:25.319946 | 2018-03-04T22:24:39 | 2018-03-04T22:24:39 | 100,205,867 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 253 | h | PUCCH.h | #pragma once
#include "RadioChannel.h"
class PUCCH : public RadioChannel
{
public:
PUCCH(Runtime& p_runtime, std::shared_ptr<spdlog::logger> p_logger, const std::string& p_name)
: RadioChannel(p_runtime, p_logger, p_name, 0)
{}
~PUCCH()
{}
};
|
4d2ac13dfd9a5784dd74e40c1c102abf15d30a03 | 596416c91dfc87ea23ccdbcd2094eb78a0497ca9 | /fmdeGui/extended/logwindow.h | 8afcdeebb5fc1d1f755b70d2f968dfae0f63f48a | [] | no_license | victorshch/axiomlib | 23b7c3e7e22e20dc5ac72122e1578c12cc4fbb17 | c56b93da3df4cf1aec92f3aa698e8cdcfbc608e5 | refs/heads/master | 2020-12-24T06:36:27.980785 | 2016-10-17T15:05:42 | 2016-10-17T15:05:42 | 6,461,839 | 2 | 1 | null | 2015-01-09T18:29:48 | 2012-10-30T17:59:55 | C++ | UTF-8 | C++ | false | false | 500 | h | logwindow.h | #ifndef LOGWINDOW_H
#define LOGWINDOW_H
#include <QDialog>
#include <QCloseEvent>
#include "qdebugstream.h"
namespace Ui {
class LogWindow;
}
class LogWindow : public QDialog
{
Q_OBJECT
public:
explicit LogWindow(QWidget *parent = 0);
~LogWindow();
public slots:
void finis... |
f8e6b4186a73b644e7089dc0db8d222789684c96 | b18330180bc2dddf483e2eb81160934dcd818ef8 | /api/hdf5_tests/hdf5ExternalArrayTest.cpp | 875015bcba561a86321e3ae5aa5c0d28a0d5be3e | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ComparativeGenomicsToolkit/hal | 3e5cc48c09bd0083d8d2eb849401ac5ed0bf8b06 | e9e70b6c4a46a82aacf36632e1761804595d7f66 | refs/heads/master | 2023-08-31T06:32:09.551768 | 2023-06-22T23:55:36 | 2023-06-22T23:55:36 | 3,778,244 | 110 | 42 | NOASSERTION | 2023-08-31T15:13:38 | 2012-03-20T17:58:31 | C++ | UTF-8 | C++ | false | false | 4,351 | cpp | hdf5ExternalArrayTest.cpp | /*
* Copyright (C) 2012 by Glenn Hickey (hickey@soe.ucsc.edu)
* Copyright (C) 2012-2019 by UCSC Computational Genomics Lab
*
* Released under the MIT license, see LICENSE.txt
*/
/**
* Test the external HDF5 array wrapper
*/
#include "allTests.h"
#include "hdf5ExternalArray.h"
#include "hdf5Test.h"
#include <H5... |
d87a62d71e84d820dbc6ebd1980aaa667638be7e | c1423d66d88fd976b0ebba9fc3dbd00fd2b7a42d | /terapiaComp/src/juego2.cpp | 163f6f0dc2e96b6fa8037335e8441c7e8b35514b | [] | no_license | robocomp/robocomp-robolab-deprecated | c3735db40749771ebca8c4a378946cb7ab8774c0 | 80536e7ee2609931f42b91b02479941fa7dfe377 | refs/heads/master | 2021-01-13T02:07:35.664519 | 2013-01-25T12:02:18 | 2013-01-25T12:02:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,601 | cpp | juego2.cpp | /*
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 ... |
f6e7b9467a5af0d93762ed8462e743c144e45a51 | 935e7844bf754cf405b5d797e9f5488286235e22 | /containments/homescreen/plugin/applicationlistmodel.h | d05d0d32c0e2c4a8a5bf2afd15a59b9a4162b731 | [] | no_license | KDE/plasma-bigscreen | 68c8c351557b8c2050e0b0f161d20f6bc495a799 | fc9124950aaaff625294c504a1dc0f3311cf0dde | refs/heads/master | 2023-09-01T11:31:11.597295 | 2023-08-28T19:04:52 | 2023-08-28T19:04:52 | 243,533,712 | 89 | 10 | null | null | null | null | UTF-8 | C++ | false | false | 2,471 | h | applicationlistmodel.h | /*
SPDX-FileCopyrightText: 2014 Antonis Tsiapaliokas <antonis.tsiapaliokas@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef APPLICATIONLISTMODEL_H
#define APPLICATIONLISTMODEL_H
// Qt
#include <QAbstractListModel>
#include <QList>
#include <QObject>
class QString;
struct ApplicationData {
... |
bb6fea684a961412ffaf3d7dbf05ba3bd5a7e5cc | f6c0270b00ae78607c91a1b393510144f0f595b3 | /TestAppTM4C129+88E6352/ethernet.cpp | 6a6ab0d436f2f5019566129245ea4ab97c2f723f | [
"Apache-2.0"
] | permissive | yacoub-automation/mstp-lib | 3d9bea7d93308aa9e7a80b427a8a7ccb6d4a1ab5 | 57089f9b7826a65fdd8d391a31d0598476c3488c | refs/heads/master | 2023-04-26T05:28:04.951248 | 2021-05-04T08:30:24 | 2021-05-04T08:30:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,942 | cpp | ethernet.cpp |
#include "ethernet.h"
#include "clock.h"
#include <TM4C1294KCPDT.h>
#include <assert.h>
#include <string.h>
struct dma_descriptor_t
{
volatile uint32_t status;
volatile uint32_t count;
void* buffer1;
union
{
dma_descriptor_t* next;
void* buffer2;
};
};
static constexpr size_t tx_desc_count = 3;
st... |
bea6905741daa3385caa1407d027369e8edbd908 | e6751a5e64f761ae2e6d5753f9eb120c92b6632f | /HW3/part2.cpp | dc42b2bd1a664d5b7dbf755ecfd4e5132c9cfd5a | [] | no_license | victai/ADA | a320179067c8d49e48bfe7a494ca01c3e26dfbe5 | a6381c1dc379865c421ee020b1b8a5c5e779807d | refs/heads/master | 2020-03-21T02:21:33.326122 | 2018-06-20T07:21:53 | 2018-06-20T07:21:53 | 137,994,782 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 906 | cpp | part2.cpp | #include <stdio.h>
int V;
int matrix[300][300];
int Input() {
char cha;
unsigned int x = 0;
while(cha = getchar())
if(cha != ' ' && cha != '\n' || cha == EOF) break;
if(cha == EOF) return -1;
x = cha-48;
while(cha = getchar()) {
if(cha == ' ' || cha == '\n') brea... |
d1d499f3525d6c86306a98ffe3501f3dcc474a98 | 9e291b0acb851f57aca34ff78c617990eaa09fa4 | /BlockedSimulation.h | 05f4e142f8605fea65cd1ece300e0e5c0ce6efa1 | [
"MIT"
] | permissive | kenlimmj/water | a5a5a007c1261f82c64337ee3299203bf5a62c57 | 4cd137cf01f431b9e0f858501d3418b735918802 | refs/heads/master | 2021-01-15T14:31:26.835036 | 2015-11-02T08:15:43 | 2015-11-02T08:15:43 | 44,132,468 | 0 | 0 | null | 2015-10-28T17:43:24 | 2015-10-12T20:30:00 | C++ | UTF-8 | C++ | false | false | 5,980 | h | BlockedSimulation.h | #ifndef BLOCKEDSIMULATION_H
#define BLOCKEDSIMULATION_H
#include "SimBlock.h"
#include <algorithm>
#include <cstdio>
#include <cmath>
#include <cassert>
#include <vector>
#include <immintrin.h>
#ifdef _OPENMP
#include <omp.h>
#endif
class BlockedSimulation {
public:
BlockedSimulation(real w, real h, /... |
5649db234707bbe98046c507ebc9220615f48d01 | cd99ca9461435d1417cb146d966e54272fbcc7ad | /3rd party/maxsdk/samples/maxscript/mxsdotNet/dotNetControl.cpp | b9ccacad80cd6d6fb54ab2e852507938e04b897a | [] | no_license | mortany/xray15 | eacce7965e785dd71d1877eae25c1f9eff680eec | 72a13fb24e9b388850bc769427c231da8f599228 | refs/heads/master | 2020-08-02T20:45:23.493981 | 2019-10-14T18:48:48 | 2019-10-14T18:48:48 | 211,499,718 | 0 | 0 | null | 2019-09-28T12:50:47 | 2019-09-28T12:50:46 | null | UTF-8 | C++ | false | false | 12,943 | cpp | dotNetControl.cpp | //**************************************************************************/
// Copyright (c) 1998-2006 Autodesk, Inc.
// All rights reserved.
//
// These coded instructions, statements, and computer programs contain
// unpublished proprietary information written by Autodesk, Inc., and are
// protected by Feder... |
8cfa407069f42edee2a526dbe1d929d0c663581d | 190c26cb3d00a89e228aba5796460266f72e0c6e | /dali-extension/internal/evas-plugin/evas-plugin-impl.h | 7cc0f311d8d8e5d3768861ef0caa11067aaf8772 | [
"Apache-2.0"
] | permissive | dalihub/dali-extension | 242af6a0829eeeb31117b57863d2f3c345cce7d2 | e7dce7fefe56eebc13100cbc9058f541afd526a5 | refs/heads/master | 2023-08-18T00:31:31.880869 | 2023-08-11T09:56:39 | 2023-08-11T09:56:39 | 247,213,895 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 6,453 | h | evas-plugin-impl.h | #ifndef DALI_EXTENSION_INTERNAL_EVAS_PLUGIN_H
#define DALI_EXTENSION_INTERNAL_EVAS_PLUGIN_H
/*
* Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* 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 Li... |
4055233755b7d5d3afc5fa7857d0a127900f610b | 0b90d18bf8e2000d3c47a17f3403be51b4a8ecd8 | /src/Applications/Seg3D/SliceWindow.cc | b0af1ce96b3ac9ab8dc0285ddefaf4efd619ee0e | [
"MIT"
] | permissive | merced317/scirun4plus | c3d8d65dd68f9d119b43cf084ea8b9d94921ce33 | f29630e03d3cf13c0ce8b327676ad202e3981af0 | refs/heads/master | 2020-12-10T19:20:18.401161 | 2018-06-27T09:21:54 | 2018-06-27T09:21:54 | 233,683,375 | 0 | 0 | null | 2020-01-13T20:09:14 | 2020-01-13T20:09:13 | null | UTF-8 | C++ | false | false | 30,262 | cc | SliceWindow.cc | //
// For more information, please see: http://software.sci.utah.edu
//
// The MIT License
//
// Copyright (c) 2009 Scientific Computing and Imaging Institute,
// University of Utah.
//
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated ... |
d6271f437b12295f4ba0cc4cb72e6a01b4c94503 | f53d3f888e05fcfb0614639e40e76164b9eb4944 | /1010.cpp | 0b881711bdb68ed965a62c231aace5ee53e25952 | [] | no_license | jinzhaochaliang/PTA-Advanced-Level | 2699120b4a9a5b783dc69ca2e5a2b8347f016c7e | d84c77920eaa97c5e54b4a944a60f7e2c0da60fb | refs/heads/master | 2020-05-01T03:41:24.442344 | 2019-04-21T13:06:39 | 2019-04-21T13:06:39 | 177,251,705 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 983 | cpp | 1010.cpp | #include<iostream>
using namespace std;
long long tonum(char c){
if(c>='0'&&c<='9'){
return c-'0';
}
return c-'a'+10;
}
long long shi(long long radix,string n){
long long sum=0;
long long index = 1;
for(int i=n.length()-1;i>=0;i--){
sum += tonum(n[i])*index;
if(sum<0||index<0){
return -1;
}
index *=... |
a92901d8a7a62edfbd8bfe8f6c9f42dad3cfed19 | 7f591298e761b88b5102a09e6f8f9a93b42c4cc2 | /Matrix Power.cpp | e2341954622e99b041fc5c66ce53e2570cdd97d4 | [] | no_license | Abdelrahman-Atia/My-Algorithms | 11d25cd9282ba0502bbb0e445a79b30c2efc63d0 | 4cb472f75ad75aa643ebfeda571e1f1de7eea9c0 | refs/heads/master | 2021-06-04T00:28:39.473171 | 2021-05-14T14:34:25 | 2021-05-14T14:34:25 | 94,834,075 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,287 | cpp | Matrix Power.cpp | #include <bits/stdc++.h>
using namespace std;
#define fr first
#define sc second
#define sz(c) int(c.size())
#define all(c) c.begin(), c.end()
#define rall(c) c.rbegin(), c.rend()
#define vlong long long
const int md = 1e9 + 7;
typedef vector<long long> vl;
typedef vector<vl> matrix;
matrix initial(int n, ... |
b46d1114e00d4799d8b83974eebc082b1c815bd5 | 86e5c0d24c1d16f4963173859b6dfe202692a879 | /src/lib/hash/whirlpool/whirlpool.cpp | 7b6a705a6b16d0bfc7caebd491ca6f892f267b28 | [
"BSD-2-Clause"
] | permissive | reneme/botan | ad3a0414a0d486c02b8203521f9c19feb3a2c207 | 5b815bf45aaa0861d40139969c2a64125779983e | refs/heads/master | 2023-07-07T13:50:19.435090 | 2023-06-08T12:27:01 | 2023-06-08T12:27:01 | 88,077,987 | 0 | 0 | BSD-2-Clause | 2022-08-05T13:17:01 | 2017-04-12T17:20:34 | C++ | UTF-8 | C++ | false | false | 13,399 | cpp | whirlpool.cpp | /*
* Whirlpool
* (C) 1999-2007,2020 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/internal/whrlpool.h>
#include <botan/internal/loadstor.h>
#include <botan/internal/rotate.h>
namespace Botan {
namespace {
alignas(256) const uint64_t WHIRL_S[256] = {
0x181... |
83d91937a609d64b92ec4e46de1b405afd4b5d34 | 9864a681b7587d18a0f825cba28aea43a8397603 | /IEEECheckinGUI2/UpdateDataBase.h | 7a75151a4ee99baee1ac9e8700723aadf166a16f | [] | no_license | x4n4th/IEEECheckin | e36d0cf25996fa4f28b1cd5c2859e23d87d53412 | 42f9e605eb1c0ff8620d168b1a981b8676e0ccde | refs/heads/master | 2021-01-23T14:04:05.274273 | 2012-09-19T01:39:21 | 2012-09-19T01:39:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 258 | h | UpdateDataBase.h | //DataBase Update Handeler
#pragma once
#include <WinSock2.h>
#include <mysql.h>
#include <string>
using namespace std;
void UpdateMembers(MYSQL *connection);
void Query(MYSQL *connection, string& myQuery);
string esc(MYSQL *connection, string& toEscape); |
1c157fa3d7a1f7d55567da7f410200e5b75452a2 | 9dec077ee5bb1f8490aa598c59962ca23b9d70d2 | /include/btree.h | 8d77285656673284e3e190654b5a6b9b45da6c8a | [] | no_license | zurgzurg/dback | 7f5688c947e924e144fdbc7b02b3e5573c820113 | 56bc24176ff7a21eae4653ac053b5d00de492a0c | refs/heads/master | 2016-09-06T18:25:31.120669 | 2011-12-07T16:36:42 | 2011-12-07T16:36:42 | 37,202,049 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,641 | h | btree.h | #ifndef _BTREE_H_
#define _BTREE_H_
namespace dback {
/**
* @page btree Overview of BTree implementation.
*
* This B-Tree is modeled on the B+-Tree as described
* in "The Ubiquitous B-Tree" by Douglas Comer, Computing
* Surveys, Vol 11, Number 2, 1979. His paper says "The term B*-Tree
* has frequently been app... |
62e4e41b4e7e9b45cbb0777eee9c6a5d3cf90371 | d34491914a659b09e9e1e86ca304643d03735592 | /unittest/objectpool_test.cpp | 6b1cc22d4daf03099843692f02dcbd2ea3c5c1c5 | [
"BSD-3-Clause"
] | permissive | ithewei/libhv | acfa23901ebff7445631df7abfb4ac832af4cef6 | 23ed8fbe22a4b270cef70d2924bab4f3f8fff2c2 | refs/heads/master | 2023-09-03T19:14:57.606708 | 2023-08-29T13:36:08 | 2023-08-29T13:36:08 | 146,397,768 | 6,015 | 1,171 | BSD-3-Clause | 2023-09-12T03:31:03 | 2018-08-28T05:47:15 | C | UTF-8 | C++ | false | false | 987 | cpp | objectpool_test.cpp | #include <stdio.h>
#include <thread>
#include "hobjectpool.h"
#ifdef _WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif
void msleep(unsigned int ms) {
#ifdef _WIN32
Sleep(ms);
#else
usleep(ms*1000);
#endif
}
class Task {
public:
Task() {printf("Task()\n");}
~Task() {printf("~Task()\n");}
... |
c9dc780985b637e4cb5435f8fcdf75432d02b64a | 4f7119f30506b5672d06813dd5f8376dd8074c30 | /ImageNote.cpp | 3e7d9d09777442ecf443a0c4932f8d4c63316837 | [] | no_license | mdepuydt/Notability | ff06d4e6a34c41e2fa176cf2a1b7e08a4a9d02ce | 4b91be9ccbf86fb2fe8e05f722781270bbed1466 | refs/heads/master | 2021-01-16T18:14:28.117022 | 2013-06-14T12:44:30 | 2013-06-14T12:44:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 642 | cpp | ImageNote.cpp | #include "ImageNote.h"
#include "ExportStrategy.h"
/***
* ImageNote
*/
ImageNote::ImageNote(const QString& filepath)
:Binary(filepath) {type = imageNote;}
ImageNote::ImageNote(const QString& filePath, const QString& ti, const QString& des, const QString& iPath)
:Binary(filePath, ti, des, iPath) {type = imag... |
74e6255d8d0a581536ce0982d8db076759284eb8 | d020f624a375fc51f79fd5eabb87bc00e3e75854 | /#483 div2/D.cc | f4aa3475001e3d9f3bde8390ae8e89bca85c632c | [] | no_license | thirtiseven/CF | 50649e51ebeb183e26606e31ac7d141b08f2044c | 21ea775563643b8e4d35a97c4d9c80323bb5717b | refs/heads/master | 2023-07-23T22:53:01.822563 | 2023-07-06T15:58:37 | 2023-07-06T15:58:37 | 88,733,957 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 653 | cc | D.cc | #include <iostream>
#include <algorithm>
const int maxn = 5009;
int b[maxn];
int q[maxn][maxn];
int n;
int main(int argc, char *argv[]) {
std::ios::sync_with_stdio(false);
std::cin.tie(0);
std::cin >> n;
for (int i = 1; i <= n; i++) {
std::cin >> b[i];
q[i][1] = b[i];
}
for (int i = 2; i <= n; i++) {
fo... |
30010ff41badb3f7e2770bead3c8781bedd478ac | e5b98edd817712e1dbcabd927cc1fee62c664fd7 | /Classes/commonData/dictData/DictMusouBattleReward/DictMusouBattleReward.h | 838d50f0081ba4151a6afe434600d8271ea40377 | [] | no_license | yuangu/project | 1a49092221e502bd5f070d7de634e4415c6a2314 | cc0b354aaa994c0ee2d20d1e3d74da492063945f | refs/heads/master | 2020-05-02T20:09:06.234554 | 2018-12-18T01:56:36 | 2018-12-18T01:56:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 553 | h | DictMusouBattleReward.h | #ifndef __DictMusouBattleReward__
#define __DictMusouBattleReward__
#include "cocos2d.h"
USING_NS_CC;
using namespace std;
class DictMusouBattleReward:public Ref
{
public:
DictMusouBattleReward():
id(0)//ID
,stageBattleId(0)//关卡ID
,stageBattleName("")//关卡名称
,itemType(0)//掉落物品类型
,itemId(0)//掉落物品ID
,i... |
4f7454480c7575467292f3ad317219ebbef5f887 | d1aacb086323f2c91722e8ccbc3597646512161f | /University Programming/1.10_basic_elements/ex20_II/main.cpp | 8c90ecea1ae43381e4969194d0fe685c93885192 | [] | no_license | Praytic/cpp-basics | 78fc25f934c949cb3d55f838e78715caa25bd8c9 | f909e624bfbbb3ef0391b93dd55909848737200e | refs/heads/master | 2021-01-15T10:53:39.087560 | 2015-07-01T17:00:42 | 2015-07-01T17:00:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 223 | cpp | main.cpp | #include <iostream>
#include <cmath>
using namespace std;
int main()
{
double b1, q, n;
cout << "Type b1, devisor and count: ";
cin >> b1 >> q >> n;
cout << "Solution: " << (b1*(pow(q, n) - 1) / (q - 1)) << endl;
}
|
acf1def9b417281fe9ba0fcb7a5aee4c27d62eea | 5a7e24bda9ac356f44c7f0f3149ed8d3ae73d96d | /libraries/gl/src/gl/OffscreenQmlSurface.h | 9142e7f2efb45ce94fa2239949f0b982931573c9 | [
"Apache-2.0"
] | permissive | JamesLinus/hifi | 6c6495d71a2f561c1e51088b4f2b651a08923f1b | 7275674d697486a1c0c3eefe5ba702bbd5e2b963 | refs/heads/master | 2021-01-14T10:18:33.534191 | 2016-03-10T21:47:09 | 2016-03-10T21:47:09 | 53,623,288 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,989 | h | OffscreenQmlSurface.h | //
// Created by Bradley Austin Davis on 2015-04-04
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#pragma once
#ifndef hifi_OffscreenQmlSurface_h
#define hifi_OffscreenQmlSurfa... |
de63a94a7732dd6aebf7041e248199852b89769e | 361f078d17dad7648c09cdd8c6e4f0012933da1c | /loadsave.cpp | 9f0490c88c8539b7ed080c8065820c7b25b14ade | [] | no_license | abprice96/PlatformerFun | 5c91374ef5dd922ef21850ef7fdd98ce35466cc1 | 7fbbdff789c036cebb90da68b271944a0ce3ea7f | refs/heads/master | 2020-01-24T20:49:26.977673 | 2016-11-15T22:09:09 | 2016-11-15T22:09:09 | 73,858,783 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,505 | cpp | loadsave.cpp | /*
* loadsave.cpp
*/
#include "world.h"
#include "loadsave.h"
#include "object.h"
#include "highscore.h"
QString getQListElement(QList<QString> theList, int index)
{
if (index >= theList.size() || index < 0)
throw invalid_argument("Index out of range.");
else
return theList.at(index);
}
Loa... |
90ced7a67fa9de444474ab9c72e0d0c3ff233ef0 | d8984cd56b2acef39ac63f494349b545d77d181a | /strings/strings.cpp | 70b43fbe5cbf91c579762b15a388c56730492c00 | [] | no_license | ShantanuRoy-02/DataStructures | e0f1c09670096593cdccdf7c5cea7851f6f6be90 | 3d0c5516f7523464eddce200f6e417fe410871e8 | refs/heads/master | 2022-11-28T06:35:42.040459 | 2020-08-14T22:50:34 | 2020-08-14T22:50:34 | 259,816,889 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 634 | cpp | strings.cpp | // checking length of a string
// changing case of a string.
#include <iostream>
using namespace std;
int main()
{
char A[] = "Welcome";
char B[] = "HELLOWORLD";
//CHECKING LENGTH A
int i;
for (i = 0; A[i] != '\0'; i++)
{
cout << A[i];
}
cout << endl;
cout << "length is: "... |
b97efc7c1b1013671617fa0681efc9abe963b7eb | 400f2bd233ba997af651c8fa1d6ce08ef557c97a | /seengine_c++/SE_TextureCoordData.cpp | da05b2181e38f900a9926475eb482d26e3a2730c | [] | no_license | huhuhu1092/test-server | 08878dbef203479cd0879d59caec1fed70f5ad70 | 57e7d09daca19fdf0298df38ee0c7ad6a7b8f317 | refs/heads/master | 2021-01-01T15:45:14.516984 | 2014-09-06T06:25:35 | 2014-09-06T06:25:35 | 406,540 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 33 | cpp | SE_TextureCoordData.cpp | #include "SE_TextureCoordData.h"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.