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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a4729dc6270d04886943d82af4eb6b7567014a9b | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /EventFilter/SiStripRawToDigi/plugins/SiStripDigiToRaw.cc | 67c436a45a5c9565c3c0e93065e1fec8c670b9d5 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | C++ | false | false | 22,414 | cc | SiStripDigiToRaw.cc | #include <iomanip>
#include <iostream>
#include <sstream>
#include <fmt/format.h>
#include "CondFormats/SiStripObjects/interface/SiStripFedCabling.h"
#include "DataFormats/FEDRawData/interface/FEDHeader.h"
#include "DataFormats/FEDRawData/interface/FEDRawDataCollection.h"
#include "DataFormats/FEDRawData/interface/FE... |
0c1689399682e46a25b149ee5c329845568c9529 | 706e45eb33e69782d76b9c9c826de50e6be6539f | /Lab 6/stringStart.cpp | d763c0f0ecd8df51b461e275630815c27019c8e1 | [] | no_license | Arkozak/New-Repo | 3cce0b0c4f97a39f8708c184a3babfa99847e722 | abaf84eee960e72a73b37b68d46babfcb4ee5fe1 | refs/heads/master | 2020-07-17T10:57:11.423144 | 2019-12-09T07:12:51 | 2019-12-09T07:12:51 | 206,006,259 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 925 | cpp | stringStart.cpp | /* Andrew Kozak
09/16/2019
srtingStart*/
#include <iostream>
#include <string>
using std::cout;
using std::cin;
using std::endl;
using std::string;
using std::getline;
void required()
{
string userStr;
cout << "Enter a string:";
getline(cin, userStr);
cout << "The string entered was \"" << userStr << "\", and i... |
c220fa2317f43f119d47f164d15c3419c0a714c0 | f80b4f46b1ce7bb0611f1c709dd2c5e4666959b5 | /Kurs/List.h | 71c77e5778ebc2badfecce8d10a9ed6c24017871 | [] | no_license | timetodosomehomework/Alg | a899bdcf3595729e633f134688fc10219a93bbef | 75a57044fd9b762a0e76e6377b4507802f0816c4 | refs/heads/main | 2023-02-24T10:01:36.043583 | 2021-01-25T14:32:35 | 2021-01-25T14:32:35 | 324,780,732 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 540 | h | List.h | #pragma once
class LinkedList
{
private:
class Node
{
public:
Node(double data, Node* next = nullptr, Node* previous = nullptr) //constructor
{
this->data = data;
this->next = next;
this->previous = previous;
};
~Node() {}; //destructor
double data;
Node* next;
Node* pre... |
8fa793c66cedea7db69892b7794cbbcce97cd00b | 86509c4124a1eb7311efc155869974835b1e7178 | /leetcode/editor/en/273.integer-to-english-words.cpp | 7568bca4182519ab2f5ae2512155c89affe7201f | [] | no_license | limoiie/algorithm-dojo | 3ddd2fe58d1a3c7a648f5d6ec170dc58a35cbcc2 | 5158e889568f108b0a6fc2c2224265b3b870a8c4 | refs/heads/master | 2023-07-11T15:22:33.439864 | 2021-08-20T16:12:13 | 2021-08-20T16:12:13 | 271,736,789 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,921 | cpp | 273.integer-to-english-words.cpp | #pragma clang diagnostic push
#pragma ide diagnostic ignored "cert-err58-cpp"
#pragma ide diagnostic ignored "readability-convert-member-functions-to-static"
#include <gtest/gtest.h>
#include "base.h"
//Convert a non-negative integer to its english words representation. Given inpu
//t is guaranteed to be less than 23... |
eb1bc569982c787357831ccc232c298295b76b4b | de5bf428eed9f3ddb96aac0625ea24daae0f6cef | /PhdObjectArx/CEditableListCtrl.cpp | 10ec2739b3e833b446087b59ae0e3513d4ba4fa1 | [] | no_license | xy0xy/PhdObjectArx | 584367c17c12dfdec25648a73eb526874e838b06 | db6fd18fd87d7ae17b367bd65d2d0f73aca91ea9 | refs/heads/main | 2023-02-19T12:57:55.545754 | 2021-01-19T06:46:24 | 2021-01-19T06:46:24 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,403 | cpp | CEditableListCtrl.cpp | #include "stdafx.h"
#include "CEditableListCtrl.h"
CEditableListCtrl::CEditableListCtrl()
{
// m_OddItemBkColor = 0xFEF1E3;//奇数行背景颜色
// m_EvenItemBkColor = 0xFFFFFF;//偶数行背景颜色
// m_OddItemTextColor = GetSysColor(COLOR_BTNTEXT);//奇数行文本颜色
// m_EvenItemTextColor = GetSysColor(COLOR_BTNTEXT);//偶数行文本颜色
}
CEditableList... |
386728a4dcdd802b8bdfa82d786e524ab3cda717 | f6d1c905dc98b7167ec35ef0813080a2162eb406 | /greedy-tech/cpp/prim's-algorithm.cpp | 4200106f3a57cf27cee37feb795ecfdd7a55aa0b | [
"MIT"
] | permissive | khushi-411/algorithms | 16dd3cc473cf7c202a5539baeeeda33dd4f1bb53 | cc9a50b92e94a4334008c445543ca027bd23c7a9 | refs/heads/main | 2023-04-30T09:18:12.956027 | 2021-05-23T06:27:53 | 2021-05-23T06:27:53 | 355,771,871 | 0 | 2 | MIT | 2021-05-23T06:27:53 | 2021-04-08T05:15:18 | C | UTF-8 | C++ | false | false | 2,239 | cpp | prim's-algorithm.cpp | // Prim's Algorithm
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cout << "Enter number of nodes of a graph: ";
cin >> n;
int key[n], weight[n][n];
cout << "Enter weights : ";
for(int i = 0; i < n; i++)
{
for(int j = 0; j < n; j++)
... |
643a1596dae07dcdc3f7dd767bc522c2a7df143f | 4478bb5f6cffd16234695d1e39f2a986a9d401e7 | /code/盛最多水的容器.cpp | a4ef36f5ad18c57605d3984f8927a49e1adf01ff | [] | no_license | jun113/offer-oriented | fade3da05987d5f7afa8dc40ebfe7a3c72097ff6 | b4f3f296d86e8a46212c39cd9b878c0b142ab564 | refs/heads/main | 2023-09-04T01:24:30.738302 | 2021-09-15T08:36:51 | 2021-09-15T08:36:51 | 397,510,211 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 706 | cpp | 盛最多水的容器.cpp | /*
leetcode id: 11
*/
class Solution {
public:
int maxArea(vector<int>& height) {
if (height.size() <= 1) return 0;
int result;
myMaxAreaOPT(height, result);
return result;
}
private:
void myMaxAreaOPT(vector<int> &arr, int &ans) {
int i(0), j(arr.size() - 1);
ans = 0;
while (i ... |
3fbd2755221417ad99afd2abc9d79d8e7d67ca08 | a76306024add45a020fc96a01f1fa321e8f769b6 | /TIMER-V1.ino | 63297812c047f46af6bbe8d4620494e552055f6f | [] | no_license | VlaVi21/Timer-LEDs-LCD_forArduino | 5171b399c094e4ee45626501de53ebf2f95298b8 | 607b23fe27f9682682cb1bac65ca2da883d6403d | refs/heads/main | 2023-08-22T11:30:57.890225 | 2021-09-18T10:30:37 | 2021-09-18T10:30:37 | 407,824,879 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,160 | ino | TIMER-V1.ino | // by @vla-vi21 (inst)
#include <LiquidCrystal_I2C.h> //Библиотеки для дисплея/шины
#include <Wire.h>
LiquidCrystal_I2C LCD(0x27, 16, 2); //указываем параметры дисплея
const int ledPin1 = 2; //подключаем 1 светодиод (зелёный)
const int ledPin2 = 3; //подключаем 2 светодиод (жёлтый)
const int ledPin3 = ... |
549021565fecf4842c9df5584a169619ffcb9089 | 0569606dc4bd1ec1e0976ec79429686fddea38b4 | /Munchkin/include/Personnage/Personnage.hpp | 5bd10dda4e7d858c2838c545a208afd609da94d4 | [] | no_license | QuentinLeCorvec/Applications | f3cbedffc069cb9160a6aac8371899e6f7b84822 | 994d1a6a903898763f606ea002dee1433b8af086 | refs/heads/master | 2020-07-27T13:02:41.364506 | 2019-09-17T16:23:00 | 2019-09-17T16:23:00 | 209,098,841 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 2,191 | hpp | Personnage.hpp | /**
* \file Personnage.hpp
* \brief declaration classe Personnage
* \author Le Corvec Quentin
* \date Octobre 2014
*/
/****************************************************************************************************/
#ifndef PERSONNAGE_HPP
#define PERSONNAGE_HPP
#include <vector>
#include "../Carte/Tresor/... |
7dbedc77098271a99cf340528ac0a61fcb7b71c6 | fed4fe8b87ce968e854e3ba656bae05e2d54d2a1 | /c/算法/p39-17.cpp | 531afe11577d2be445d5dab09e76e17a823457c5 | [] | no_license | jingdongHe/my-code | fabc8901523a20d2150396a91e2892fb9b88a097 | 2c25580253a8536eb91d8e9394d49e698304f0ad | refs/heads/master | 2020-03-23T14:15:23.457597 | 2018-07-20T05:22:00 | 2018-07-20T05:22:00 | 141,665,641 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 265 | cpp | p39-17.cpp | #include<stdio.h>
#include<string.h>
int main()
{
int a[101],d;
int n,i,j;
memset(a,0,sizeof(a));
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&d);
a[d]++;
}
for(i=1;i<101;i++)
{
for(j=0;j<a[i];j++)
printf("%d ",i);
}
printf("\n");
return 0;
} |
45d2c515ec1eb45de4b823d78c4c10a0b3aa25de | ab9897a06328a187b780a636af477b6fd505a9de | /Dynamic Programming - 1/Boredom.cpp | 7efb2bc39aefebef5f35eb5c3f4a7c942f31995b | [] | no_license | Kannupriyasingh/coding-ninjas-competitive-programming-using-cplusplus | 5af44b35528801b92aaa9530b98ace0e6caade3b | f6fdc538209c79b073c15028d02971f4a3c6222d | refs/heads/main | 2023-03-11T18:27:37.845158 | 2021-03-05T11:28:59 | 2021-03-05T11:28:59 | 333,820,429 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,297 | cpp | Boredom.cpp | /*
Gary is bored and wants to play an interesting but tough game . So he figured out a new board game called "destroy the neighbours" . In this game there are N integers on a board. In one move, he can pick any integer x from the board and then all the integers with value x+1 or x-1 gets destroyed .This move will give ... |
5039989267c1a62afb4cf3c9dba0f3264982388f | 66ad77f8981fc13e5687190db2c50d68e408fba5 | /src/ukf.cpp | af574c9d8ce06c475c4d00de6c6d42f0f5d9d25b | [] | no_license | emoyers/SFND_Unscented_Kalman_Filter | 5a344c6e2375c5eae36dc5bf7accf673deae1b17 | 2aa62c80ca39ee8ec834969fff19d52e45134e42 | refs/heads/master | 2023-07-07T09:01:05.845204 | 2023-06-27T06:07:36 | 2023-06-27T06:07:36 | 257,939,931 | 0 | 0 | null | 2020-04-22T15:20:26 | 2020-04-22T15:20:25 | null | UTF-8 | C++ | false | false | 15,541 | cpp | ukf.cpp | #include "ukf.h"
#include "Eigen/Dense"
using Eigen::MatrixXd;
using Eigen::VectorXd;
/**
* Initializes Unscented Kalman filter
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during init)
use_laser_ = true;
// if this is false, radar measurements will be ignored (except... |
69cf8e233bbddbcf85ef75dd8abfcb81b21cf1ee | fbc7e0c7223127a961a16d85a3e705d149f1e025 | /dataplot/ChannelWidget.h | 2d29a444dbac818dccc35af7ed9659716a6256c0 | [] | no_license | nfbraun/xrp | f406d4c71436e27ff660cca2dc23bc649cc7d3c3 | 3b344ad4f69aaa0350c4708e001b43e66228a7a6 | refs/heads/master | 2016-09-10T06:50:54.646498 | 2014-07-29T18:37:19 | 2014-07-29T18:43:06 | 6,868,442 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,982 | h | ChannelWidget.h | #ifndef VC_CHANNELWIDGET_H
#define VC_CHANNELWIDGET_H
#include <QHash>
#include <QWidget>
#include <QSignalMapper>
#include <QPushButton>
#include <QCheckBox>
#include <QGridLayout>
#include <QComboBox>
#include <QDoubleSpinBox>
#include <QAction>
#include "VCWidget.h"
#include "File.h"
class ChannelComboBox : publi... |
2c4fd0a1bdea43517c3133e4540d375c0587740f | 965f344be7485d22b503d76bc5a85da9cb8c54a3 | /simulation/libraries/mesh/halfSpace.h | 7048969455bf3de0491387140002b3be01804dcf | [] | no_license | baju0218/SnakeLocomotion | 6ab9893aa0639199e6054b42d43e4b2897e88bc0 | 5a1922f240fa2effe76f6030b7bd56c647792c2d | refs/heads/master | 2023-03-15T10:59:15.576719 | 2021-03-14T11:08:58 | 2021-03-14T11:08:58 | 302,481,740 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,774 | h | halfSpace.h | /*************************************************************************
* *
* Vega FEM Simulation Library Version 4.0 *
* *
* "mesh" library , ... |
203ec8e2347574cd1ce2f7486e9e80a519c7480b | 22aedce84f8e662d7562f9979461af6792a7cad5 | /LichtLassig/src/Lichtsteuerung/Strobe.cpp | 685c89751bfe5843bafd9428d9a9e43981ad9e7d | [] | no_license | uaczr/LichtUndLaessig | 9b525a90b05346dba6555b580f6d748408799c05 | b92b64b58d495961b1cdb12745d29a7e49ff9a50 | refs/heads/master | 2021-01-23T04:03:10.351799 | 2015-07-03T16:51:23 | 2015-07-03T16:51:23 | 37,189,916 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,010 | cpp | Strobe.cpp | /*
* Strobe.cpp
*
* Created on: 09.06.2015
* Author: christoph
*/
#include "Strobe.h"
Strobe::Strobe(ledscape_frame_t* iframe, ledscape_pixel_t* icolors,
char* iColorOrder, int nBars, int nLedsProBar) {
// TODO Auto-generated constructor stub
ColorOrder = iColorOrder;
colors = icolors;
frame = iframe... |
90ef54ff4126fa84b9dfead59409add104156da9 | 903767e9e1bd7ae4c273621f2787e8e93ed38553 | /Codeforces/Div3/734/D.cpp | 9db681f0172532290e225a1e0ee325a976b17341 | [] | no_license | itohdak/Competitive_Programming | 609e6a9e17a4fa21b8f3f7fc9bbc13204d7f7ac4 | e14ab7a92813755d97a85be4ead68620753a6d4b | refs/heads/master | 2023-08-04T08:57:55.546063 | 2023-08-01T21:09:28 | 2023-08-01T21:09:28 | 304,704,923 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,992 | cpp | D.cpp | #include <bits/stdc++.h>
#include <print.hpp>
using namespace std;
#define ll long long
#define ld long double
#define REP(i,m,n) for(int i=(int)(m); i<(int)(n); i++)
#define rep(i,n) REP(i,0,n)
#define RREP(i,m,n) for(int i=(int)(m); i>=(int)(n); i--)
#define rrep(i,n) RREP(i,(n)-1,0)
#define all(v) v.begin(), v.end()... |
766a08e07727848bc15363103b96ab507908831c | cb6137728d7bec06611d9e6344f1fb70171da8a8 | /src/execution/physical_plan/plan_copy_from_file.cpp | cf8611d5f9a5558a6a69e7e0ea0fb1698b773b5e | [
"MIT"
] | permissive | xhochy/duckdb | c8d1b3e6d0e553cbb7bcbb6c9489d73f08bb2bb1 | 20ba65f96794ab53f7a66e22d9bc58d59d8bc623 | refs/heads/master | 2020-06-13T04:40:40.385821 | 2019-06-30T13:13:36 | 2019-06-30T13:13:36 | 194,537,502 | 0 | 1 | MIT | 2019-06-30T16:27:09 | 2019-06-30T16:27:09 | null | UTF-8 | C++ | false | false | 420 | cpp | plan_copy_from_file.cpp | #include "execution/physical_plan_generator.hpp"
#include "execution/operator/persistent/physical_copy_from_file.hpp"
#include "planner/operator/logical_copy_from_file.hpp"
using namespace duckdb;
using namespace std;
unique_ptr<PhysicalOperator> PhysicalPlanGenerator::CreatePlan(LogicalCopyFromFile &op) {
// COPY f... |
aceda41526660d178ff4b0f32e64b79a88c930f3 | 3e817162781e139d482e3847b8d5c01b59425a2a | /CookieEngine/include/Core/Window.hpp | b5b9ffe328fa54177619eeac4e282d054e4f7b20 | [
"LicenseRef-scancode-unknown-license-reference",
"CC-BY-4.0"
] | permissive | qbleuse/Cookie-Engine | 4445548fe49c3606cc2575a06b008992b187dd72 | 705d19d9e4c79e935e32244759ab63523dfbe6c4 | refs/heads/master | 2023-07-10T02:19:05.627504 | 2021-08-23T20:27:11 | 2021-08-23T20:27:11 | 390,503,154 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 362 | hpp | Window.hpp | #ifndef __WINDOW_HPP__
#define __WINDOW_HPP__
#include <GLFW/glfw3.h>
namespace Cookie
{
namespace Core
{
class Window
{
public:
GLFWwindow* window = nullptr;
int width = 0;
int height = 0;
private:
void SetIcon();
public:
/* CONSTRUCTORS/DESTRUCTORS */
Window();
~Window();
... |
59d10f3c8fed11a0c2b4feabbe807ee69781f937 | cf35a104dabc3d3647df66aff9db32d18b002e1b | /lib/libstuff/x11/text/textwidth_l.c | 3ec1b00c466dbd8cb7fa22e62333e1539051078a | [
"MIT"
] | permissive | 0intro/wmii | ba2dff4be1a049c7d4475218a914585a3f810ab5 | 024f29d1058b58aa4ee6b956500a78f69355fb53 | refs/heads/main | 2023-07-11T18:08:43.660898 | 2023-06-25T18:57:45 | 2023-06-25T18:57:45 | 74,551,919 | 110 | 17 | null | null | null | null | UTF-8 | C++ | false | false | 260 | c | textwidth_l.c | /* Copyright ©2007-2010 Kris Maglione <maglione.k at Gmail>
* See LICENSE file for license details.
*/
#include "../x11.h"
uint
textwidth_l(Font *font, const char *text, uint len) {
Rectangle r;
r = textextents_l(font, text, len, nil);
return Dx(r);
}
|
fc5c8b8a879a1f2a802c332c35f2cd31425db743 | a04a946d9cf08857f4cbc0259f9ad4af51e418ba | /C-Programs/Billing_System.cpp | e903039c694dd6d56783596cedc797a4f86e9dc3 | [] | no_license | sujoy-coder/Data-Structures-in-C-Programming | 7200c9c4dc0c0d9f8044a26118d773c6196a32a8 | d8142ab54e5055dfc64c170862a4e7a5ae75dfc8 | refs/heads/master | 2023-03-26T08:17:53.211216 | 2021-03-26T05:48:33 | 2021-03-26T05:48:33 | 351,673,200 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,088 | cpp | Billing_System.cpp | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
struct item{
int no;
char name_itm[];
};
struct item itm[50];
float sum[50];
void show(void);
float gst(float);
float discount(float);
float total_sum(int);
char user[50],zip_code[50];
int main()
{
int i=0,f=1,key,j;
float gross_total,rebate;
printf("\n... |
34dcc63f265074c2a9bb3a0baa2d1b7c64a69c08 | 270e185e977ffbb2ef178db208391cfc4c8f6dbf | /AOJ/ALDS1/12_a.cpp | 484d7a2509f907630b103895af6092816c5599dd | [] | no_license | g-morishita/procon | d6d49d1abd3b52b8c9c8935a68078f2e3a306ad8 | a4744f97c70a13de2be109801910612bda16feb0 | refs/heads/master | 2021-07-02T02:26:53.139758 | 2020-09-16T23:52:53 | 2020-09-16T23:52:53 | 162,001,957 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,036 | cpp | 12_a.cpp | #include <iostream>
using namespace std;
const int MAX = 105;
const int WHITE = 0;
const int GRAY = 1;
const int BLACK = 2;
const int INFTY = 1 << 21;
int n;
int m[MAX][MAX];
int color[MAX];
int d[MAX];
int p[MAX];
int prim() {
for (int i = 0; i < n; i++) {
d[i] = INFTY;
p[i] = -1;
}
d[0] = 0;
p[0] = ... |
7a4f04af9784dc43a75f291f5c60830a73ba57f6 | 5252a219b7e9067059be95e8a417f797c1a4a719 | /GueeLib/GMargins.h | e2d60f94d96c6690d80e4f02cd03b70803c85318 | [] | no_license | guee/GueeLib | 4211e816cfce36586bc4104ac76565759b99e700 | 25a78202f7e6fe4e7be2cf22e582a7a53af540c3 | refs/heads/master | 2021-04-29T20:34:06.476808 | 2018-02-15T06:47:00 | 2018-02-15T06:47:00 | 121,598,826 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 8,809 | h | GMargins.h | #pragma once
#include "GGlobal.h"
#include "GRect.h"
//设置与上下左右距离,用于计算 margin、border、padding 和 9 slice 图片的各个区域的 Rect
class GMargins
{
public:
GMargins();
GMargins( int32_t margins );
GMargins( int32_t left, int32_t top, int32_t right, int32_t bottom );
bool isNull() const;
int32_t left() const;
int32_t top() con... |
8bd029f5713738267511a560cc4a5bc9198f2f11 | c48803ee6864f603fc202ede6dab10330ea49bbc | /Best Time to Buy and Sell Stock IV/Best Time to Buy and Sell Stock IV/main.cpp | 15f597b24b5f1be412ae33c23aa37ac2bb4edde7 | [] | no_license | qiannn/leetcode | 2795886c78d104a8f7cceba012474ac988bda97e | e9d5841b7af2cece4bba3ccb7fbe18febe1310b4 | refs/heads/master | 2020-04-05T14:38:48.431928 | 2017-04-01T08:27:48 | 2017-04-01T08:27:48 | 56,846,565 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,480 | cpp | main.cpp | //
// main.cpp
// Best Time to Buy and Sell Stock IV
//
// Created by apple on 16/3/14.
// Copyright © 2016年 apple. All rights reserved.
//
#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
int maxProfit(int k, vector<int> &prices) {
int days = prices.size();
... |
c55ba4adc292a0720789733e6df97eeb0f9c678c | 11348e739dee821e4bdd6ec0e4c6c041a01b0b59 | /resources/cs102/unit06发布版/不升子序列最小划分数1.cpp | d80f1cf4043be43d050256c9bb603771c02a1536 | [] | no_license | Spartan859/Noip_Code | 580b1f022ca4b8bf3e77ff8d57d230340715a98d | 8efe9e7cc6f29cd864b9570944932f50115c3089 | refs/heads/master | 2022-11-18T15:09:19.500944 | 2020-07-11T13:36:21 | 2020-07-11T13:36:21 | 163,517,575 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 295 | cpp | 不升子序列最小划分数1.cpp | #include<iostream>
#include<algorithm>
#define N 1005
using namespace std;
int n,i,j,d[N],x[N];
int main(){
cin>>n;
for(int i=0;i<n;i++)cin>>x[i];
int cnt=0;
for(i=0;i<n;i++){
for(j=0;j<cnt;j++)
if(d[j]>=x[i])break;
d[j]=x[i];
if(j==cnt)cnt++;
}
cout<<cnt<<endl;
return 0;
}
|
b452dd335fbcbf51b27d4ef70062c3aaa7cb380e | 6a2d591e19136f38ea41fd522376ed8dd7ea3595 | /server/map.cpp | f70888654c12f26e406c3d8ab0b5afc8563221be | [] | no_license | tomberek/OneLife | 1a67d8e2dd68cc32e6b15bf85b99a4833403efee | 6fc973ae478875c9ca194591cb2bb61a414cede1 | refs/heads/master | 2021-09-03T02:24:37.676660 | 2017-12-29T19:52:48 | 2017-12-29T19:52:48 | 115,839,080 | 0 | 1 | null | 2017-12-31T03:04:32 | 2017-12-31T03:04:31 | null | UTF-8 | C++ | false | false | 120,211 | cpp | map.cpp | #include "map.h"
#include "HashTable.h"
// cell pixel dimension on client
#define CELL_D 128
#include "minorGems/util/random/JenkinsRandomSource.h"
#include "minorGems/util/random/CustomRandomSource.h"
#include "minorGems/util/stringUtils.h"
#include "minorGems/util/SimpleVector.h"
#include "minorGems/util/SettingsM... |
f0f038dff798470cbbeface569b4b1ec02549a48 | 1db236add9383975cac49bdd4c4ab35074d8934b | /codeforces/1339/C.cpp | 6a2b0b522efa3a203d44b41daf722b6d14f90037 | [] | no_license | codingiamnot/competitive-programming | 526e0c6bd1ab83ddffb5e4ad776792143e2efed2 | b1c0b79f93f2490103b0e86cccf195ccae073266 | refs/heads/master | 2023-02-23T14:22:23.798874 | 2021-01-19T15:35:00 | 2021-01-25T17:49:08 | 325,035,219 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 631 | cpp | C.cpp | #include <bits/stdc++.h>
using namespace std;
int t,n,k,i,b,ans,maxi;
bool ok;
int dif,a[100005];
int maxb(long long nr)
{
for(int b=31;b>=0;b--)
if(nr>>b)
return b;
}
int main()
{
cin>>t;
while(t)
{
t--;
ans=0;
cin>>n;
for(i=1;i<=n;i++)
... |
3f6badd8339e611a88f289aefc3ce6a851cd9b51 | af9d289aef84825c5f232780009065d577bcf554 | /AddRemoveSelectionList/Util/ListCsvProcessor.cpp | d5c955e82b80e7581a9aec74d7ed1fe52b4cf3f9 | [] | no_license | yungyeh22/AddRemoveList | 14d8d60017d5b5dfa0a7a3daa06b45abee5495c8 | ac95911f49c589fad0c2f6abdab0cb9d76c36503 | refs/heads/master | 2022-07-05T23:08:53.008253 | 2019-04-05T17:25:41 | 2019-04-05T17:25:41 | 155,436,208 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,844 | cpp | ListCsvProcessor.cpp | #include "ListCsvProcessor.h"
#include <QFile>
#include <QTextStream>
namespace Util
{
ListCsvProcessor::ListCsvProcessor() {
}
ListCsvProcessor::ListCsvProcessor(const QString &filename) : _filename(filename){
}
int ListCsvProcessor::read(const QString &filename, QStringList &sList_raw, QStringList &sList_alias)... |
181fda73a219ba68c9ac8e33d853ce00d7da8bea | 718e9995394bafa543fe10dcbcce236f0603a074 | /ThreadPool/ThreadPool.h | 35a3c26a3daf0578af365ad5fea96eb5e6cb9f8b | [] | no_license | egalkin/CPP_Code | c2eadbc8ecdc7c9bc3e97aee48b6744ff1f427af | da59b1c78e8e89b61cef39eae3a75fe36c488460 | refs/heads/master | 2021-07-10T21:07:29.192622 | 2017-10-10T18:14:12 | 2017-10-10T18:14:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 664 | h | ThreadPool.h | #ifndef THREADPOOL_H
#define THREADPOOL_H
#include "ThreadItem.h"
#include <thread>
#include <vector>
#include <functional>
#include <atomic>
#include <queue>
#include <mutex>
#include <condition_variable>
using namespace std;
class ThreadPool
{
public:
ThreadPool();
virtual ~ThreadPool();
... |
7b4828327586fca3a1ae56c4b13c632914dbaffd | 3fbafea489a42b05448bc3d78bce9ba187bd0c3a | /Time.cpp | 90a11e4db5764692d4d0a5aacffc69f0a63a28ba | [] | no_license | Sendach/Tengine2D | 508211890a7287c98b070daea7d61d0b51e4c080 | d2e1d37b6ae7bdf82cecfe4d8a0cc7e8438ac911 | refs/heads/master | 2021-06-05T15:07:19.229973 | 2016-10-21T20:51:12 | 2016-10-21T20:51:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 41 | cpp | Time.cpp | #include "Time.hpp"
Time::Time()
{
}
|
fa8074f689d0c5c9b7fc4d8bb0c977557c371afa | eea1820cc4fdff2035ca53d3a464b79798512c48 | /1-Codeforces/Round 548 Div 2/548 Div 2 PA.cpp | c7e3c86956828357fa33cadc8382f0d0ed46fb2b | [] | no_license | anubhavitis/Competitive-Programming | 96711d60fc26d6d89cbacf3733bfde839dda31c6 | 6d7d681d1d4774f0a81245705883433dfccc2a64 | refs/heads/master | 2023-05-13T16:20:42.214627 | 2021-06-06T12:37:17 | 2021-06-06T12:37:17 | 174,858,724 | 12 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 257 | cpp | 548 Div 2 PA.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long int
main()
{
ios_base::sync_with_stdio(false); cin.tie(0);
ll n;
cin>>n;
char ch;
ll sum=0;
for(int i=0;i<n;++i)
{
cin>>ch;
if(ch%2==0) sum+=(i+1);
}
cout<<sum;
}
|
d92c1aa24070bbab4ba8258eed7b1d741e76e01d | d528785c2562680b6fd66c2bed874eb1be074e1b | /Spoj/CADYDIST.cpp | 9368050a302a402c3b6d4c8f500f549a85d70a82 | [] | no_license | shivendra-it/Programming | 5cfbd11fed83854606e5ac5918243d01fff7884f | ad0ed9bbace9c3707b4e6e6327c92fcac7078128 | refs/heads/master | 2021-01-12T02:46:10.433195 | 2017-08-04T05:23:57 | 2017-08-04T05:23:57 | 78,095,199 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 556 | cpp | CADYDIST.cpp | #include<bits/stdc++.h>
using namespace std;
long long a[100005];
long long b[100005];
int main(){
while (1)
{
long long n;
cin>>n;
if(n==0){
return 0;
}
for(long long i =0;i<n;i++){
cin>>a[i];
}
for(long long i =0;i<n;i++){
... |
e85201ec10991a6081aa1b6c53b05964bd3fdcaa | 5ba8da52601bad774716eabb2e7a422a4bc3db7b | /2D top down/Keyboard.h | 58642fdde52c24860dbf43f2d787c929eab24630 | [] | no_license | RampageTerranius/2D-top-down | 2a548531b6d717beb3f67ccbe0aee07007cfdccd | 110c4a00b4a283347b96e18a1d477a9b696d0885 | refs/heads/master | 2020-12-11T20:17:08.233865 | 2020-06-25T06:42:24 | 2020-06-25T06:42:24 | 233,948,507 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 342 | h | Keyboard.h | #pragma once
struct Keyboard
{
public:
bool a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z;
bool n1, n2, n3, n4, n5, n6, n7, n8, n9, n0;
bool plus, minus;
bool leftBracket, rightBracket;
bool lShift, rShift, lCtrl, rCtrl, lAlt, rAlt;
bool space, escape, tab, capsLock, tilde;
};
ext... |
07631bb41253a4372bd4d120c6304e418a090f18 | 50e0e3dfd2afc38de4b1bebf31596692a2214f40 | /strings/src/qstring6.cpp | 7fe3b68d485420bd4f389dd346523c41f30c0807 | [] | no_license | pravin382/qt5_tutorials | e21cb1f16f44af149c4ebeedc707799cc700aca9 | ff5199fe54150d2760e6458a96042b87123c0e39 | refs/heads/master | 2023-03-16T07:45:28.600671 | 2021-03-09T22:15:51 | 2021-03-09T22:15:51 | 344,280,103 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 544 | cpp | qstring6.cpp | // using Qstring example6
// Looping through QString. Remember QString consists of QChars
#include <QTextStream>
int main(void)
{
QTextStream out(stdout);
QString str {"There are many stars."};
// method 1
for (QChar qc : str) {
out << qc << " " ;
}
out << endl;
// method 2
... |
bc3aecb725938ac75c888c7ed97d46063aa69053 | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/eulerVortex.twitch/eulerVortex.cyclic.twitch.test.test/processor0/4.7/p | 35081d9bf29a69b9f34b77b4ac647fb0e16709bf | [] | no_license | dashqua/epicProject | d6214b57c545110d08ad053e68bc095f1d4dc725 | 54afca50a61c20c541ef43e3d96408ef72f0bcbc | refs/heads/master | 2022-02-28T17:20:20.291864 | 2019-10-28T13:33:16 | 2019-10-28T13:33:16 | 184,294,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 28,216 | p | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
2f54a8c6e885271b7d96eb4bafce2e0afc224889 | d5d67dd5000a4c03c164cf27a68dc5d6ea47500e | /lab07/composite/Slide/CStyleGroup.cpp | d1f84227d1c8b40e9e90f97f7d2b8b6c10db8027 | [] | no_license | ImbaCow/OOD | db127161159eab83f440b1e9de41a0e7ff373f57 | 725a37b383265b14fe349da2efdfd1e71f2675af | refs/heads/master | 2020-07-16T14:30:34.544134 | 2019-12-30T15:59:21 | 2019-12-30T15:59:21 | 205,805,646 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 618 | cpp | CStyleGroup.cpp | #include "pch.h"
#include "CStyleGroup.h"
#include "CompositeUtils.h"
CStyleGroup::CStyleGroup(const std::vector<std::shared_ptr<IStyle>>& styleArr)
: m_styleArr(styleArr)
{
}
std::optional<bool> CStyleGroup::IsEnabled() const
{
return GetCompositeValue(m_styleArr, &IStyle::IsEnabled);
}
void CStyleGroup::Enable(b... |
6f1aee06fda4cce6f76c3424856f7e46bbd16e0a | 52d0e79fbdb02d0645c481d94acf67b9c005cb76 | /ModronApplication/Modron_Factory.h | 1090918758b2c4f853fb6a1e74d1dee292a307e8 | [] | no_license | Dobby-The-Nacho/Project_Orion | dce0493a80b993179fa5c0ab1cac5aaa8ea5ea56 | 3265fd5f2b4f4fc38437730deb4eb59993c2e6a1 | refs/heads/master | 2020-11-29T14:52:26.112583 | 2019-12-28T18:33:45 | 2019-12-28T18:33:45 | 230,142,799 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 320 | h | Modron_Factory.h | #pragma once
#include "Modron_Enums.h"
#include "Component_Factory.h"
#include "SubComponent_Factory.h"
class Modron_Factory {
private:
unsigned char part;
unsigned char partNum;
unsigned char quality;
Component_Factory cF;
public:
int decodeDataToCreate(unsigned char* data, int count);
int createModron();
}; |
cb0183dabf424373af8e2bcd250dd19db2479f5c | 5a2124751b7d4561218f8ae1b5c837b7eb44bcad | /Source/Geometry/AABB.cpp | 4765e8c60ed208ce7f931bf3eabf96a015759368 | [] | no_license | wangluo2028/RayTracing | 44722cbd909c760ba2eb8fe3bf104390737c5c6f | 7ba1db7dc5b927f248e08dec6e9e87edc439810a | refs/heads/master | 2020-03-18T23:51:16.817136 | 2018-05-29T16:08:28 | 2018-05-29T16:08:28 | 135,433,460 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,110 | cpp | AABB.cpp | #include "AABB.h"
bool AABB::hit(const ray& r, float tmin, float tmax)const
{
for (int a = 0; a < 3; a++)
{
// Compute every axis (X,Y,Z) of AABB intersect ray separately in X,Y,Z
float t0 = ffmin((min[a] - r.origin()[a]) / r.direction()[a], (max[a] - r.origin()[a]) / r.direction()[a]);
float t1 = ffmax((min[... |
caed02e9d1773336cf8b023b074ea13271a5a58b | 3b8e1dc351d4c3217044a29828fe143cd143caa0 | /include/mitsuba/core/chisquare.h | 72b96c5b61434bc0c2a7d6b8cc2a64bff9a48970 | [] | no_license | beltegeuse/smcmc | 475c118f636aec70cf40636615b467f37df4e400 | 86969da4c8ddbca27c2190015c313f16da45f51a | refs/heads/master | 2023-05-24T23:59:35.188624 | 2023-05-23T00:44:05 | 2023-05-23T00:44:05 | 261,313,097 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,352 | h | chisquare.h | /*
This file is part of Mitsuba, a physically based rendering system.
Copyright (c) 2007-2014 by Wenzel Jakob and others.
Mitsuba is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License Version 3
as published by the Free Software Foundation.
... |
b1aa365ca070e50aa7dd0cc11e1a7139a0738569 | cca65ec61545c472f0a78e6cd126aa7e158ef068 | /rt/solids/disc.cpp | 5abe0f6ff8a5da1ff705f6c8ed1412efd71a8097 | [] | no_license | gkUwen/ray-trace | 875eafd77b27a296ad96a796fc1fb7764dd43b00 | aca750fc965a9f41d861c91c3392911925a70c72 | refs/heads/master | 2022-04-22T14:18:48.417620 | 2020-04-16T21:44:14 | 2020-04-16T21:44:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,633 | cpp | disc.cpp | #include <rt/solids/disc.h>
#include <rt/solids/infiniteplane.h>
namespace rt {
Disc::Disc(const Point& center, const Vector& normal, float radius, CoordMapper* texMapper, Material* material):Solid(texMapper, material)
{
this->center = center;
this->normal = normal.normalize();
this->radius = radius;
}
B... |
cfc88a4285c1c0ddca6c5ab284f9a47227ac0015 | e9398a3f49614812fed85e9cbd43160c0947813e | /src Matrixprojekt/MusikDing/MusikDing.cpp | e3d2fe48695f8fab98c2ef06642b5f0d92ba39ba | [] | no_license | Martchus/AudioBoard | 26df934fd7485fd05de93e25f5a721aef6507f87 | eeccd47f4fb682c85675cf995de27e3158db2bd9 | refs/heads/master | 2020-03-30T14:42:42.279375 | 2015-02-16T20:30:53 | 2015-02-16T20:30:53 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 3,800 | cpp | MusikDing.cpp | /*
TCC1 - System timer
TCC0 - Sampling
TWIE - LCD
USARTC1 - LED
DMA0 - LED
DMA1 - ADC
DMA2 - ADC
ADCA
ADCB
*/
#include <avr/io.h>
#include <util/delay.h>
#include <avr/interrupt.h>
#include <stdlib.h>
#include "CSSD1306.h"
#include "CInput.h"
#include "CLED.h"
#include "global.h"
#include "adc.h"
#include "CFFT... |
51cdda9affe3fca13d16d7dd1d800a3f21bddbbf | f81124e4a52878ceeb3e4b85afca44431ce68af2 | /re110_2/6/p | 27d6cb9f321caaef83fb75116d7d95075818b9f1 | [] | no_license | chaseguy15/coe-of2 | 7f47a72987638e60fd7491ee1310ee6a153a5c10 | dc09e8d5f172489eaa32610e08e1ee7fc665068c | refs/heads/master | 2023-03-29T16:59:14.421456 | 2021-04-06T23:26:52 | 2021-04-06T23:26:52 | 355,040,336 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 425,347 | p | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*-------... | |
084fc6051fd28bfa7b2a21c0991fd631ad28f125 | 3802934b14ec8bbc0e62cd37f25fcc337d37d426 | /Online Contest/Individual Long Contest/J.cpp | 650b7580bb2e744c321ebbef4242926076e65b0d | [] | no_license | Mdananda/Competitive-Programming | b8f21c177bc71d55e086689f3782be2bb4caae2d | a59f605f2d2bc7f693001831c1aeb1182581e3da | refs/heads/master | 2023-04-27T14:14:48.799117 | 2021-05-02T15:26:56 | 2021-05-02T15:26:56 | 363,454,275 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,163 | cpp | J.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define sc scanf
#define pf printf
#define pb push_back
int main()
{
int T, cur, sz, tc = 1;
sc("%d", &T);
while(T--)
{
pf("Case %d:\n", tc);
string vc[10000];
char ss[100], url[100];
sc("%s", ss);
... |
369e3dda8047f7bcdbecb1eedc7a8f2a0a748789 | dc0556f335aa72e067fffb2a7acdee24241c97b3 | /include/charmed/tag/member_function.hpp | 42d0e2a70b7db6c18e7ecd99363983e9163a316d | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | diosmosis/charmed | 3c835a97446ef28c0e12ee759fbe78668defb98c | 5a80e6c9832817f11976154ced2c0aef971e3ce2 | refs/heads/master | 2016-08-04T08:31:59.928630 | 2010-10-27T00:33:32 | 2010-10-27T00:33:32 | 302,617 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,687 | hpp | member_function.hpp | ///////////////////////////////////////////////////////////////////////////////
//
/// \file member_function.hpp
/// Contains the <c>CHARMED_TAG_MEMBER_FUNCTION()</c> attribute tagging macro.
//
// Copyright (c) 2010 Benaka Moorthi
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// ... |
14ca0d611e7c721e51b81a3ba6f4c8d0b4906f15 | 594eb1f1cad2c7a01ae74ba1653047134ad6d310 | /xanadu/timer.cpp | cd7cca41cab7c00a4f2e78485b6d96e0034ab007 | [] | no_license | icelemon1314/xanadu | 9003e9e65fd4475914ebf04bdff0f4023edfd1cb | a5f4a7260efdca5bb346fae15c523afd3ad8e70d | refs/heads/master | 2021-01-21T20:46:25.015648 | 2017-05-02T03:22:58 | 2017-05-02T03:22:58 | 92,274,961 | 1 | 0 | null | 2017-05-24T09:31:27 | 2017-05-24T09:31:27 | null | UTF-8 | C++ | false | false | 528 | cpp | timer.cpp | //
#include "timer.hpp"
#include <chrono>
#include "world.hpp"
// constructor
Timer::Timer(int seconds) :
timer_(new asio::basic_waitable_timer<std::chrono::high_resolution_clock>(World::get_instance()->get_io_service()))
{
std::error_code ec;
timer_->expires_from_now(std::chrono::seconds(seconds), ec);
}
// d... |
b4dfcd11266c20b3149f72c9df89a5e472f6bb45 | 84cfbf9c54342f68db97dfeffa6ee733de76749b | /lib/OptimizerSystems/ceinms/NMSmodelSystem.h | de011b2aba86aeaa0e418f1b4519d889334f2b48 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | sunlixin723/CEINMS | d3b2aa23c1be0d15aed2014f381547f692ace90e | 2eef5dea51d5c9841582210d850d25e96293af62 | refs/heads/master | 2021-01-18T16:32:07.359287 | 2015-08-05T23:06:13 | 2015-08-05T23:06:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,106 | h | NMSmodelSystem.h | /* -------------------------------------------------------------------------- *
* CEINMS is a standalone toolbox for neuromusculoskeletal modelling and *
* simulation. CEINMS can also be used as a plugin for OpenSim either *
* through the OpenSim GUI or API. See https://simtk.org/home/ceinms and the *
... |
2b517106f70b7242b75abbd31c8e33785a002059 | cbe1d6e16e9798129f1dc1867a90d55ab8c923c8 | /src/AbstractClient.cpp | 3974ba94717c5c1b51597976ada0516091284b5a | [] | no_license | COM8/proto-assignments | d330823f4566f878f3ec7c4aad3a5c6595d352e7 | ffbfc02529db087238f4b47014aace89166a26cd | refs/heads/master | 2021-06-16T17:37:04.873868 | 2019-10-02T07:53:44 | 2019-10-02T07:53:44 | 129,932,857 | 0 | 5 | null | 2019-10-02T07:53:46 | 2018-04-17T16:18:39 | C++ | UTF-8 | C++ | false | false | 6,428 | cpp | AbstractClient.cpp | #include "AbstractClient.h"
using namespace std;
using namespace net;
using namespace sec;
AbstractClient::AbstractClient(unsigned int clientId)
{
this->clientId = clientId;
this->seqNumberMutex = new mutex();
this->seqNumber = 0;
this->shouldConsumerRun = false;
this->enc = NULL;
this->tTimer... |
abce53e530572fa47a8d31cac81a2e4d89a8dba6 | 5d77f215073acb296009181149b7e297f555d87e | /qt/event_01/mywidget.cpp | b5b49ba347bc3c2474087007384063bdfab96cec | [] | no_license | NGPONG/code | 2b8bdc81890f9213f2025619dd2ae784be0c840f | 0c71c01c77b655f93fd70118c5316f7f2c550358 | refs/heads/master | 2023-05-26T05:00:18.709327 | 2023-05-10T15:00:23 | 2023-05-10T15:00:23 | 196,204,550 | 2 | 0 | null | 2022-11-15T23:42:08 | 2019-07-10T12:50:05 | HTML | UTF-8 | C++ | false | false | 741 | cpp | mywidget.cpp | #include "mywidget.h"
#include "ui_mywidget.h"
MyWidget::MyWidget(QWidget *parent)
: QWidget(parent)
, ui(new Ui::MyWidget)
{
ui->setupUi(this);
ui->label->installEventFilter(this);
startTimer(500);
}
MyWidget::~MyWidget()
{
delete ui;
}
void MyWidget::timerEvent(QTimerEvent *event) {
static int _inde... |
30807932f40cc541a01026f1dd15c92a334bbdd7 | a3e442718ce6c57bb62ed4d061e9d53a2cbcb0c8 | /src/ObjNPC.cpp | d2c1a7ef1ef55b1ab3bc2a68bed9ffe10b9f33dd | [] | no_license | oinkatron/RetroRPG | cda4b315a8c43639e49d4dab55e4b929c8703495 | e128da2e4a600550248e124c159ad1c488fae718 | refs/heads/master | 2021-06-05T07:08:19.310086 | 2016-10-30T18:35:53 | 2016-10-30T18:35:53 | 72,367,733 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,822 | cpp | ObjNPC.cpp | #include "../include/ObjNPC.h"
ObjNPC::~ObjNPC()
{
//dtor
}
void ObjNPC::handleKeyInput(SDLKey key, bool pressed)
{
ControlScheme controls = Controls();
if (key == controls.upKey())
{
if (pressed)
{
Velocity().y = -25;
Velocity().x = 0;
sprite(spr_se... |
34c91bb6b086a109eaad76334920a0c014f52570 | 66b22521738e07656f5ea6deb1e6f2027a36c2e0 | /JadeMonkey/ActionShootFireboltBehaviourNode.h | 05be55b7ba5904252d4c66359b3baee7377e9fbd | [] | no_license | patpaquette/JadeMonkey | bb8e0c467e24ff2fae96d044d9a127a15cd218f9 | 694a6837dd62874b770b646a4826125ddefa222d | refs/heads/master | 2021-01-21T08:01:47.954453 | 2013-07-28T15:58:07 | 2013-07-28T15:58:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 448 | h | ActionShootFireboltBehaviourNode.h | #pragma once
#include "BehaviourTreeNode.h"
class FireboltSkillComponent;
class BehaviourComponent;
class GameEntity;
class ActionShootFireboltBehaviourNode : public BehaviourTreeNode
{
public:
ActionShootFireboltBehaviourNode(BehaviourComponent* behaviourComponent, GameEntity* player, FireboltSkillComponent* firebo... |
005d0d0a0b19204374a25a637b9f8ff0ec6def1c | 4aa62bc251799af8a58921b5f6706c73607ec309 | /PabulumElement/FunctionPage/MultipleComboBox.cpp | 6937cf813717f7cab08d15098a7f353924c9897e | [] | no_license | shenjunHZ/PabulumElement | cc3758c473478aacdd9d757f1f0f769e455ea514 | e7ac97166f90d8576c17fbf577c411c40182267a | refs/heads/master | 2021-05-02T07:50:20.464130 | 2018-09-12T14:15:07 | 2018-09-12T14:15:07 | 120,839,776 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,110 | cpp | MultipleComboBox.cpp | #include "MultipleComboBox.h"
#include <QtWidgets/QListWidgetItem>
#include <QtWidgets/QCheckBox>
namespace mainApp
{
MultipleComboBox::MultipleComboBox(QWidget* pParent /*= nullptr*/)
: DSGUI::DSComboBox(pParent)
, m_pListWidget(nullptr)
, m_pLineEdit(nullptr)
, m_bSelected(true)... |
4e85fb5a99026e28c5b82ffb89ac2cc32f2d36da | d3cbb37c1e0da0c3d0e72662084ff4dde99cf6d8 | /AdHoc/Joseph’sCousin.cpp | 18aa20d607666528d09ee3fb1d191e8eebdf35e5 | [] | no_license | vcshahriyer/CPP2018 | edc35f5662932f0e09bd0e4f69ffe5142b8eec3c | def77ae0db8bd78917c881c02962dc17ed5325f2 | refs/heads/master | 2021-04-09T11:35:12.670623 | 2021-01-09T04:45:23 | 2021-01-09T04:45:23 | 125,563,700 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,419 | cpp | Joseph’sCousin.cpp | // URI Online Judge | 1032 Joseph’s Cousin
#include <bits/stdc++.h>
using namespace std;
void NthPrime(int n, int arr[])
{
int i = 3, count, c;
arr[1] = 2;
// Corner cases
for (count = 2; count <= n; i++)
{
// iteration to check c is prime or not
for (c = 2; c < i; c++)
{
... |
5bcdcdc53d8f37dfd4057653dbdc3139d475cb19 | 408a38c6600fef858e0061d1ac9e61bf7f410e9d | /datanet_openresty_1.9.7.3_0.1.1/datanet_engine/cache.h | d1e5e266d18653f267ac679b97e3244fcf533714 | [
"BSD-2-Clause"
] | permissive | qiaoba/datanet | 5b6455b193a646920535ed12aa74265f0dfcf9b0 | ac448c2886becce253b247b9fa480b7a783810e6 | refs/heads/master | 2021-01-20T12:51:55.468037 | 2016-10-17T16:47:37 | 2016-10-17T16:47:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 615 | h | cache.h |
#ifndef __DATANET_CACHE__H
#define __DATANET_CACHE__H
#include <string>
#include "helper.h"
#include "storage.h"
using namespace std;
sqlres zcache_agent_store_cache_key_metadata(string &kqk, bool watch,
jv *jauth);
jv process_client_cache(lua_State *L, string id, jv *... |
ca11d2cf964949c8dcdc31df28414b99a4b3ce5d | 150fafc2219783d6b72420e050ec1ffe68b259b2 | /UbiGame_Blank/Source/Game/Components/PlayerMovementComponent.cpp | eca7346af890c983762380c1245f2af48abbedc0 | [
"MIT"
] | permissive | yumin-wu/HTNgame | 21560e818eb3234e67a03f5482179b00e7020595 | a0b8dbaa1ad57b8ca6b9fa5f75d1231cab09ccf2 | refs/heads/main | 2023-02-14T21:16:45.619190 | 2021-01-17T09:52:49 | 2021-01-17T09:52:49 | 330,110,733 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,118 | cpp | PlayerMovementComponent.cpp | #include "PlayerMovementComponent.h"
#include <SFML/Window/Keyboard.hpp> //<-- Add the keyboard include in order to get keyboard inputs
#include "GameEngine/GameEngineMain.h" //<-- Add this include to retrieve the delta time between frames
#include <iostream> // debug
using namespace Game;
void PlayerMovementCompon... |
fd68e6a329de30f95981e9fbbc3b4e01a7b285ec | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /ash/system/message_center/message_center_scroll_bar.h | 4d212a7f5078f553aae73d048df68b89d3372598 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 1,993 | h | message_center_scroll_bar.h | // Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_SYSTEM_MESSAGE_CENTER_MESSAGE_CENTER_SCROLL_BAR_H_
#define ASH_SYSTEM_MESSAGE_CENTER_MESSAGE_CENTER_SCROLL_BAR_H_
#include <memory>
#include "ash/controls/rounded... |
47931eca6ba5a61b3c515c1b518791eb0e8755a9 | 65cf3bce7910098405627e08b372553e48abad7d | /UVA/Volume CXII/11292 Dragon of Loowater.cpp | 6a11cc63d5fe0c0c3432e1dd3bbf22f4dd9bdd0a | [] | no_license | bluemix/Online-Judge | 77275c1a3e94272a07ba10de16f1d068217b64de | 11f6c0bf1e8adf5b0136670bcebef975b7e0f3a1 | refs/heads/master | 2021-01-12T00:48:32.642462 | 2015-09-15T13:18:47 | 2015-09-15T13:18:47 | 78,298,357 | 0 | 0 | null | 2017-01-07T19:13:15 | 2017-01-07T19:13:14 | null | UTF-8 | C++ | false | false | 3,753 | cpp | 11292 Dragon of Loowater.cpp | /* 14007848 11292 Dragon of Loowater Accepted C++ 0.036 2014-08-08 07:57:28 */
/* Template By Shark */
// C++
#include<iostream>
#include<vector>
#include<queue>
#include<map>
#include<set>
#include<bitset>
#include<algorithm>
#include<functional>
#include<deque>
// C
#include<cstdio>
#include<cstring>
#include<ctime>... |
df5d6ac85b82eb74f28749a3ee4c67a8b6d6f01a | a59f768864aa2a6816850115965d8a5b51c3a042 | /quizzes/Quiz8.c++ | 1ac11026d4a0c060af6c7b25394646f4ea5660e7 | [] | no_license | imjeee/cs371p | fe6ab889dd680ae00d2dd107d5d0a6bef9c63c07 | b3a86d70f78741ada2ff83745851d67c7c08aa08 | refs/heads/master | 2016-09-05T10:48:34.853598 | 2012-04-04T17:05:58 | 2012-04-04T17:05:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 506 | Quiz8.c++ | /*
CS371p: Quiz #8 (5 pts)
*/
/* -----------------------------------------------------------------------
1. In Java what is a checked exception?
What makes an exception an unchecked exception?
(2 pts)
an exception that must be caught or advertised as being thrown
a descendent of RuntimeException
*/
/* --------... | |
1145cc084d6a63d79fb81c265109d6ad0bd3101e | 288c98f15b637a158950c73c930f6c378673f7a1 | /Grids/GridCell.cpp | 21e288ec7dc797b614302bf2af8a46532d26ca86 | [] | no_license | atdyer/lidarTool | 9a5df905c79d7a96c4d77d51d00048fe055f9ead | e2602010670274ac835635d06a624cc5be7fef93 | refs/heads/master | 2020-12-24T14:52:39.355257 | 2014-08-08T14:19:35 | 2014-08-08T14:19:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 368 | cpp | GridCell.cpp | #include "GridCell.h"
GridCell::GridCell(double xMin, double xMax, double yMin, double yMax, QObject *parent) :
QObject(parent),
xMin(xMin),
xMax(xMax),
yMin(yMin),
yMax(yMax)
{
cloud = new PointCloudT;
cloudPtr.reset(cloud);
}
void GridCell::addPoint(PointT point)
{
cloud->points.push_back(point);
}
Point... |
1df1f0765ef7c92c6ba6d4742c1fbaa36a75f500 | e1c41cea7d42d6b126fe87948a5357bd8eb40c3c | /combine-two-tables/combine-two-tables.cpp | 65e43cc173d78370c54810eac6c63f456bd1fdf2 | [] | no_license | sklationd/leetcode | 51b31e929fa03cb9875ed48bd534be3470b303d5 | 96a06bc14babdd519179ab329a62d241483a646d | refs/heads/master | 2023-06-04T17:32:53.978378 | 2021-07-04T08:20:02 | 2021-07-04T08:20:02 | 285,795,734 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 156 | cpp | combine-two-tables.cpp | # Write your MySQL query statement below
SELECT p.FirstName, p.LastName, a.City, a.State FROM Person AS p LEFT JOIN Address as a ON p.PersonId = a.PersonId; |
efdfe3f461ea0bb6dda1a8ec020dfbc199fd030c | 125dc48785e7c2f5865cb684db2422a0a37994ce | /mainwindow.cpp | 1570ea0d8c81add16e31d6f5cd6864da498381bb | [] | no_license | afanasyevanar/microIDRISI | cdf5fdfa452de1acfb4ad9a37a8b1f6e6b94fd7a | ee3c45c5df99632b7cb44499ed7c11480d61e08b | refs/heads/master | 2020-03-17T00:07:30.124701 | 2018-10-04T05:09:23 | 2018-10-04T05:09:23 | 133,104,530 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,544 | cpp | mainwindow.cpp | #include "ui_mainwindow.h"
#include "mainwindow.h"
#include "layer.h"
#include <QFileDialog>
#include <QMessageBox>
#include <QMdiSubWindow>
#include <QDebug>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
QAction* mapOpen = new QAction("Ope... |
45fc63531d81e5b3c5e58f9a573fd46f43ea09f2 | 6c45e044af0f6ef907d9a1ed872e5d1b3abcdfd3 | /GL001/ShaderHelper.cpp | 5c2d908f2c7d1911270ae2aee40df1c03a3274cf | [] | no_license | shawnstudio/OpenGL | fa68be0b5e337904dd34386fe2537e3caee76e99 | 65dcec58c2d1e917945ab087dda2d531c5286812 | refs/heads/master | 2020-09-01T13:49:58.825210 | 2019-12-23T01:58:24 | 2019-12-23T01:58:24 | 218,971,860 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,990 | cpp | ShaderHelper.cpp | #include "ShaderHelper.h"
#include<fstream>
#include<sstream>
#include<string>
#include<iostream>
#include <cstdarg>
using namespace std;
GLuint CompileShaderFile(GLenum type,const char* file) {
ifstream fs(file, ios::in);
if (!fs.is_open()) {
cout << "read file" << file << "error!!!" << endl;
return 0;
}
str... |
40f16da3bdd300e6cd79940d901b0f2728466b31 | 79eabdc844465398e8130d7235b27d7a8716046b | /Binary search tree iterative/functions.cpp | 4782572d385923481f7436c0455780e208566db8 | [] | no_license | Illia1F/data-structures | 614a51ce5bfb5db8c68b5d98b1910446219331ac | 9b335976b6f66e971e44f4a965b82a89f7a9b316 | refs/heads/master | 2020-03-13T16:10:55.526300 | 2018-04-28T20:21:09 | 2018-04-28T20:21:09 | 131,191,524 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,547 | cpp | functions.cpp | #include "BSTree.h"
#include <iostream>
BST::~BST()
{
_root = DeleteAll(_root);
_size = 0;
}
void BST::Clear()
{
_root = DeleteAll(_root);
_size = 0;
}
int BST::getSize()const
{
return _size;
}
bool BST::Add(int key)
{
if (_root == NULL) {
_root = new BST_Node(key);
}
else
{
... |
e707622acf8ad47f4dae2649d53eff9f0b1447e8 | 6c0d209ef31cc818596b954f3d1631a1056096f8 | /src/model/tracksqlmodel.cpp | f26306b271a2b2ee3da7516210d23243d1c5a190 | [] | no_license | neochapay/radon | 8543e3ffac4a1f11d99fca01e487ff19b682bc3a | 173ec1dba6e0cb7b1f50b87f079a56f11b7352ad | refs/heads/master | 2021-01-17T11:34:01.883530 | 2016-05-20T15:30:11 | 2016-05-20T15:30:11 | 30,340,075 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,038 | cpp | tracksqlmodel.cpp | #include "tracksqlmodel.h"
TrackSqlModel::TrackSqlModel(QObject *parent) : QSqlQueryModel(parent)
{
hash.insert(Qt::UserRole ,QByteArray("track_id"));
hash.insert(Qt::UserRole+1,QByteArray("artist_id"));
hash.insert(Qt::UserRole+2,QByteArray("title"));
hash.insert(Qt::UserRole+3,QByteArray("album"));
... |
a72dc7cb0d2ddaea3c10d45ee2094533041712a5 | d17a8870ff8ac77b82d0d37e20c85b23aa29ca74 | /lite/operators/linspace_op.cc | db4419aa49c7d3aec71f5ef9b56ef5a87ecb5bf1 | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle-Lite | 4ab49144073451d38da6f085a8c56822caecd5b2 | e241420f813bd91f5164f0d9ee0bc44166c0a172 | refs/heads/develop | 2023-09-02T05:28:14.017104 | 2023-09-01T10:32:39 | 2023-09-01T10:32:39 | 104,208,128 | 2,545 | 1,041 | Apache-2.0 | 2023-09-12T06:46:10 | 2017-09-20T11:41:42 | C++ | UTF-8 | C++ | false | false | 2,669 | cc | linspace_op.cc | // Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
2fc11779f5334b744352d54c3458e4bb3072b49c | 001a66904478117cd0ea3c3204ac4e33c343ef25 | /src/json/ColorAlternativoDef.cpp | 208d393bb48e3be68b88db089f5ba48d4d124a9a | [] | no_license | debmartin/taller-tp1 | 5ead9b5af5403069adb512083ee52939fc3f8a60 | 853a728204aef30981454eb93225a605ac95268c | refs/heads/master | 2021-01-10T11:56:04.804190 | 2015-06-12T21:28:32 | 2015-06-12T21:28:32 | 55,717,271 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,377 | cpp | ColorAlternativoDef.cpp | /*
* ColorAlternativoDef.cpp
*
* Created on: 30/4/2015
* Author: ariel
*/
#include "ColorAlternativoDef.h"
#include <sstream>
ColorAlternativoDef::ColorAlternativoDef() {
this->hinicial = -10;
this->hfinal = 10;
this->desplazamiento = 30;
}
ColorAlternativoDef::ColorAlternativoDef(double hinicial, dou... |
021e390c136861e62d9dcab43566a0153dee1881 | 9d7649ca193d5e62b6752ba4098c43eb5a16aa5f | /native/alder/media/webrtc/signaling/src/media/CSFAudioTermination.h | f151b326d2248b5887f6c06919e87a28fc46db18 | [] | no_license | yiw2/ikran | 6aafe7d2b6ede852bdcffd9fc3ac4613ee9976a8 | cc8a3205cdbcb34f7807373db01c7f8b2558a639 | refs/heads/master | 2020-12-25T17:12:41.280090 | 2012-03-13T05:42:58 | 2012-03-13T05:42:58 | 3,196,837 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,687 | h | CSFAudioTermination.h | /* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... |
0d933a26a71fb17a2e6a17699a3e93b9c9acb6d3 | 6fe108be8c7384a600011a6f6a7c4923894df323 | /01_nyan25/Classes/GameScene.h | 6d498ed0392134601d681a433551d9a6ded4f007 | [] | no_license | korenaga-makoto/cocos2dx_study | 502d4ddf078f653dd700861849ff8285612b35cd | 5610f63ce42997d636abc551a51b1720a0c1fcbd | refs/heads/master | 2021-01-13T02:22:51.346322 | 2014-01-13T09:59:00 | 2014-01-13T09:59:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 916 | h | GameScene.h | //
// GameScene.h
// nyan25
//
// Created by cocos2d-x on 14/01/12.
//
//
#ifndef __nyan25__GameScene__
#define __nyan25__GameScene__
#include "cocos2d.h"
class GameScene : public cocos2d::CCLayer
{
private:
int nextNumber;
float gametime;
bool pauseFlag;
void makeBackground();
void makeC... |
7d15b6812d6f4f173349be60e7f2bfd3fabcc657 | 51f4106e2a42bf3c9794b85ccb1f103870c4643a | /testInteract/src/viewManager.cpp | b521fb21ee6fd86cf1c6af72ef96668933b99214 | [] | no_license | expokorea/korea | 7eaf84e62ef0dbe63cddd6a6c590e85d78633c24 | d88d3206e66845ee72eda91b72963f43e591045d | refs/heads/master | 2021-01-01T19:15:34.462778 | 2012-04-14T15:16:08 | 2012-04-14T15:16:08 | 3,376,639 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 158 | cpp | viewManager.cpp | /*
* viewManager.cpp
* test3DScene
*
* Created by Chris on 2/27/12.
* Copyright 2012 csugrue. All rights reserved.
*
*/
#include "viewManager.h"
|
b5bac72c501c346f914b3bc8c3cd35a791163868 | 44ab57520bb1a9b48045cb1ee9baee8816b44a5b | /Engine/Code/CoreTools/Helper/Assertion/AssistToolsCustomAssertMacro.h | 1cfd192f9d1715341dacad4960d42000d6cd69f1 | [
"BSD-3-Clause"
] | permissive | WuyangPeng/Engine | d5d81fd4ec18795679ce99552ab9809f3b205409 | 738fde5660449e87ccd4f4878f7bf2a443ae9f1f | refs/heads/master | 2023-08-17T17:01:41.765963 | 2023-08-16T07:27:05 | 2023-08-16T07:27:05 | 246,266,843 | 10 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,644 | h | AssistToolsCustomAssertMacro.h | /// Copyright (c) 2010-2023
/// Threading Core Render Engine
///
/// 作者:彭武阳,彭晔恩,彭晔泽
/// 联系作者:94458936@qq.com
///
/// 标准:std:c++20
/// 引擎版本:0.9.0.4 (2023/03/23 15:43)
#ifndef CORE_TOOLS_HELPER_ASSIST_TOOLS_CUSTOM_ASSERT_MACRO_H
#define CORE_TOOLS_HELPER_ASSIST_TOOLS_CUSTOM_ASSERT_MACRO_H
#include "CoreTools/Contract/A... |
7fa446d709f209b52639634b06dbd5be06a1cf32 | bd8620721487ba0db96872d652e88ff4b670ef8a | /practicamatriz.cpp | 742e7dd82052ff38d0fc0ac620d4893bddea384e | [] | no_license | Wiizs13/tareacplusplus | a66c5e479aaa0d765db48c55be8a3885c80f0c9e | 017eeb7b147edb8b5724a51f0a6944110a5bb2e2 | refs/heads/master | 2020-03-30T18:27:06.044377 | 2019-09-11T23:57:31 | 2019-09-11T23:57:31 | 151,500,512 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 987 | cpp | practicamatriz.cpp | /******************************************************************************
Codigo Creado por:
Wilbert Alexander Arana Diaz
AD18005
Ingeneria en Sistemas Informaticos
********************************************... |
8513fe64d83e90052d935d447ff2d32c82beff83 | 60f7491ef229e6907e3e6220794cae9fd7bd36dd | /Utils.h | 7341fac4d59e684ed0da07182dc5b98c5e575e7d | [] | no_license | d13125710/ANTSGUI_old | 60fe741aea744df36a470733fdd0368ab077ae8c | d64f8ca66cce11ef4b205a7e0ad9da16ff15071c | refs/heads/master | 2016-08-03T18:01:15.522319 | 2014-07-22T03:11:25 | 2014-07-22T03:11:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,727 | h | Utils.h | #pragma once
#ifndef UTILS_H
#define UTILS_H
#include <string>
#include <cstdarg>
#define IDC_INCITTERATION 2096
#define IDC_VERBOSE 2097
#define IDC_INCITTERATION 2098
#define ID_INDICATOR_NISH WM_USER +100
#define ID_INDICATOR_TIME WM_USER +101
class Parameters
{
public:
enum {MMAS =5 , ACS=0 , AS=1 , GS=4, ... |
79ed7a8391805456d66c0bf70898aa4cf23bce20 | 814f3c93fb66adee4bd29464b915e4b597290f1a | /SourceCode/B.cpp | 4427ad48c4e0d7ea76ec09d8ec573bee8e73fadc | [] | no_license | ErikHorus1249/Cpp | c1aeaafa02947d29970d481ea81ff4acbdd9e0dc | 506ea80755e0158d82f99c5dcff6ee104371c25c | refs/heads/master | 2021-03-14T07:46:38.680829 | 2020-03-12T05:28:59 | 2020-03-12T05:28:59 | 246,751,052 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 587 | cpp | B.cpp | #include<iostream>
using namespace std;
int binarySearch(int a[100000],int n, int x) {
int l = 0 ,r = n - 1;
while(l<=r) {
int mid=(r+l)/2;
if(a[mid]==x)
return mid+1;
if(a[mid]<x)
l=mid+1;
else
r=mid-1;
}
return -1;
}
int main() {
... |
dfc3de642474a79607b50be4261549554e715e1b | 2b746b43d94938b010d9b7548c6ab814e08fb1b5 | /src/Bot.h | fb02f549334370dbdd24ce045a5286661db7033a | [] | no_license | diogojr2d/hello_world | ebe1ef8fc49a5113c3f71c5871ea6f9a50eb2173 | b5033a083a2cf116ba163c28f0ff9f785fc0c9cd | refs/heads/master | 2021-01-23T00:25:07.139097 | 2017-06-06T02:37:33 | 2017-06-06T02:37:33 | 85,729,483 | 0 | 0 | null | 2017-03-21T17:48:29 | 2017-03-21T16:53:43 | null | UTF-8 | C++ | false | false | 890 | h | Bot.h | #ifndef BOT_h
#define BOT_h
#include <iostream>
#include <stdio.h>
#include <sys/time.h>
#include <vector>
#include "Board.h"
class Bot {
private:
Player playerId;
int width, height;
Board board;
int posX;
int posY;
static unsigned int countGeral;
protected:
void MakeMove(BoardMoves boardMove);
unsig... |
bb46f34762798757ed91d657708db5a18193b56c | d36c04662209782bf326741f657ae7275edea932 | /arreglo5.cpp | 0c65b4930cb58b0a420127eb19a50f2b822af610 | [] | no_license | julioasp03/FP-tareas-de-clase-00085518 | 3368713ff87a6bc24fd21b994d62e4256da0dc8e | fd6cf87fae2f02466443f4db9c080e86a16ea3f8 | refs/heads/master | 2020-09-07T09:26:46.684469 | 2019-11-10T03:46:30 | 2019-11-10T03:46:30 | 220,737,810 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 781 | cpp | arreglo5.cpp | #include <iostream>
using namespace std;
int main(){
int cantNotas;
cout<<"ingrese la cantidad de notas:"<<endl;
cin >> cantNotas;
float notas[cantNotas];
float ponderaciones[cantNotas];
float suma1=0,multi[cantNotas],suma2=0,promedio;
for (int i = 0; i < cantNotas; i++)
{
cout... |
62c2d6c83b9dd1b436aef7ac7097407d10cc8830 | d877f938ceba791be7f49ceeafe1f8fc0d298496 | /src/lib/include/journal/journal_manager_fwd.hpp | 23cc4f69a72aa6ea047b9ef229be12e1af7ca7fa | [] | no_license | baarmaley/bug-free-chainsaw | 1291a1d8a77e733574f19d62b68b4aa258efd57f | 554c69f7e81270abd4342de2472b93f2c7f3262d | refs/heads/master | 2020-04-25T06:25:29.826297 | 2019-07-08T20:50:03 | 2019-07-08T20:50:03 | 172,580,777 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 90 | hpp | journal_manager_fwd.hpp | #pragma once
namespace barmaley::lib {
class JournalManager;
} // namespace barmaley::lib
|
d663ae50d4fe6fbd72bb2eec5c956a9810ab313c | d6227c3a6ad7fb836aed7ea24fbe483be1ffc2df | /solution-kevtranle90/main.cpp | 6bf725da406f1d8a6e6dc343f9864aded16c0a86 | [
"CC-BY-4.0",
"MIT"
] | permissive | kevtranle90/assignment-01 | ccd25c4d303db7d2878eda3e09fb13dac7f846db | ace5963309ccad9da3942e190a63d6dd7bdc51aa | refs/heads/master | 2021-01-21T00:53:33.372882 | 2016-02-04T23:02:25 | 2016-02-04T23:02:25 | 51,110,374 | 0 | 0 | null | 2016-02-04T22:28:41 | 2016-02-04T22:28:41 | null | UTF-8 | C++ | false | false | 2,068 | cpp | main.cpp | /* ------------------------------------------------------------------------
* Copyright © 2016 Kevin Tran <kevintran323@fullerton.edu>
* Released under the [MIT License] (http://opensource.org/licenses/MIT)
* -------------------------------------------------------------------------*/
/*------------------------... |
aac8a81c9b1b0c171ac8bc730e736b36c96ce690 | 094eab3e8f2ac87a6a8467b5a6d75f207f19d9f6 | /src/jisuangenebiaodazhi/main.cpp | 920dbcf33fff1124f97b7a8c2ae8f28ab1c30ea9 | [] | no_license | FlyInsect/HCC-drug-prediction | b338167bd1f6234bcc5de1598f8b0a8a1002eb02 | dd6ebbff25603f195ff06d20ebf12613db4bb58c | refs/heads/master | 2022-12-15T16:53:51.890569 | 2020-09-11T08:09:15 | 2020-09-11T08:09:15 | 294,574,968 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 5,021 | cpp | main.cpp | #include <iostream>
#include <fstream>
#include <stdlib.h>
#include <winsock2.h>
#include <mysql.h>
#include <windows.h>
#include <string.h>
#include <vector>
#include<sstream>
using namespace std;
string getprobe(char* str){
const char user[] = "root"; //username
const char pswd[] = ""; //pas... |
7906aaf5a86824f9e9030d1322b31a149226651c | 2903fe3847bec81feba2fde70dc9c2d0702973c3 | /src/shader.cpp | ab1d3f088bf0624022a2d7b9f8a1425cb0d51e09 | [
"MIT"
] | permissive | Belfer/PhotonCaster | c22fd5ed5a9dc14e8991b035ec2b43e111b6ebc6 | 947e62e2d8f65bd3526f3672436812b22816caa8 | refs/heads/master | 2021-06-07T18:03:54.350677 | 2016-11-23T16:23:23 | 2016-11-23T16:23:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,665 | cpp | shader.cpp | #include "shader.h"
namespace graphics
{
static void CheckShaderError (GLuint shader, GLuint flag, bool program, const std::string& msg);
void Shader::CreateProgram ()
{
DeleteProgram ();
program = glCreateProgram ();
}
void Shader::DeleteProgram ()
{
if (program != 0... |
251f0a50e707992c36c13a4ba79563478263a80f | 3a6b67fd7146f42e0c354ad5ba8aac13b48445e4 | /cpp/optimized_walk_sat/SAT.h | 6b23cd984eea3aaeff766a5e11006e42c7f0aa53 | [] | no_license | vinaylohana/walk-sat-solver | 9080fa33ebf12dea58ffa7696c70aa43fb572fc6 | e711297cb78dddab735520c5457e68dd58d211b0 | refs/heads/master | 2022-06-12T00:45:54.609039 | 2020-05-03T17:47:32 | 2020-05-03T17:47:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 991 | h | SAT.h | #include <vector>
#include <string>
#include <map>
#include <set>
#ifndef __SAT_H__
#define __SAT_H__
class SAT {
public:
SAT();
~SAT();
std::map<int, bool> walk_sat(float p, int max_flips);
void load_from_file(char* file_path);
void display_model(const std::map<int, bool>& model);
bool veri... |
ec6f120a2df45f4f72ceec4894ecf1b26b66914a | 20d52640ca3b625535b766ee093a98d64a67fdc3 | /slave/dns/exceptions.h | 4d02ec90b1156d7e503122f56a506f48676ccc20 | [] | no_license | zdnscloud/zdhcp | ebe4013ca65d2c01b305a04d15a5b66564891cb4 | b2308b9c62ea755bc5c410d16b559748f38f966d | refs/heads/master | 2020-08-07T19:41:44.601357 | 2019-10-08T06:58:29 | 2019-10-08T06:58:29 | 213,567,680 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,011 | h | exceptions.h | #pragma once
#include <kea/exceptions/exceptions.h>
namespace kea {
namespace dns {
class Exception : public kea::Exception {
public:
Exception(const char* file, size_t line, const char* what) :
kea::Exception(file, line, what) {}
};
class DNSTextError : public kea::dns::Exception {
public:
DNSTextEr... |
92ea2d35a82faebadfb56a26745ea73cf4c18650 | 286d09352bbab8d5c9c0e618e5c34658a477f2e0 | /oncoder/제13회 온코더 공식 코딩테스트/1.cpp | f309d32ba71ceb384bc0a6fed997b820307ee413 | [] | no_license | Othereum/Problem-Solving | 87a0a7eced07fb1fb7ec60613630405d73afdc50 | b7d4a59710fae5a09a5a244360c01e0e9be56c36 | refs/heads/master | 2021-07-16T16:52:26.361754 | 2020-06-14T14:22:42 | 2020-06-14T14:22:42 | 174,680,007 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 360 | cpp | 1.cpp | // https://www.oncoder.com/developer/score-detail/SyTKZzp3E
#include <vector>
#include <algorithm>
using namespace std;
class Solution
{
public:
int solution(vector<int> apples)
{
sort(apples.begin(), apples.end());
auto Max{ 0 };
for (auto i{ 0 }; i < apples.size(); ++i)
Max = max<int>(Max, apples[i] * (a... |
b7bed770c896039b7ae7c2ea82b5706c47231291 | e2e18ba78cfa6719c5a912da1a98faf82306189f | /Listings/Listing-36.h | 33a523c98322992a81eac95fd90c916a92ff048c | [] | no_license | Tkachenko-vitaliy/Callbacks | af6ec5a52fe6f8770c2f0e7f56a9ca7e9d47fa58 | d7253f2209fed6f4782fe8e25a1e95c4788582f0 | refs/heads/master | 2023-03-14T11:19:18.214171 | 2021-03-05T11:30:27 | 2021-03-05T11:30:27 | 269,055,264 | 6 | 2 | null | 2021-03-05T11:30:28 | 2020-06-03T10:13:26 | C++ | UTF-8 | C++ | false | false | 1,105 | h | Listing-36.h | #pragma once
class Executor;
class CallbackHandler
{
public:
void operator() (int eventID);
};
//Pointer to function
class Initiator1
{
public:
using ptr_callback = void(*) (int, void*);
void setup(ptr_callback pPtrCallback, void* pContextData);
private:
ptr_callback ptrCallback = nullptr;
void... |
7a0cb41bdeed19b5db88d33e869921b5a5884eba | d57beb277987b70f794b618cd66c195629be8892 | /code/36_反转链表2.cpp | f49b91a9eef2e0e4fea64e13808d46c838ce4da7 | [] | no_license | 2369931/LintCode | 32f1fe6d84294f113cb6bb11c0d62537a95b9262 | 06a6c4ebd0b928283604189cfcb38dd8ba033d64 | refs/heads/master | 2020-08-14T22:20:39.792172 | 2019-10-15T08:09:43 | 2019-10-15T08:09:43 | 215,240,254 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,543 | cpp | 36_反转链表2.cpp | #include <iostream>
using namespace std;
class ListNode {
public:
int val;
ListNode *next;
ListNode(int val) {
this->val = val;
this->next = NULL;
}
};
ListNode* reverse(ListNode * head) {
if (head == NULL) {
return NULL;
}
else if (head -> next == NULL) {
re... |
d02d73625d04f50b460461524defa211381af1aa | c3406c11c0f9f9c6e854af41bff17062720d1333 | /Codeblocks Project/date.h | 86f53a8bcdabecdf6b23001167233d01d83583b5 | [] | no_license | TravisPatriarca/Weather-Data-CPLUS | 37e597d878429fe38fdc047bdbea89071f25d206 | 0784e62fd3569cb73764d99c21bcbbdbdecb4725 | refs/heads/main | 2023-08-30T18:56:34.178030 | 2021-10-21T03:17:16 | 2021-10-21T03:17:16 | 419,565,845 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,670 | h | date.h | #ifndef DATE_H
#define DATE_H
#include <iostream>
class date
{
public:
date();
date(int d, int m, int y);
/**
* @brief get date day
*
* @return unsigned
*/
int getDay() const;
/**
* @brief sets date day
*
* @pa... |
6080b8e248a8ad253a16aebac157d0124168f083 | ad8371cd760a78d026085408b6ea9aefaffd359c | /instance/problem/continuous/multi_modal/classical/equal_maxima.cpp | b2af1d4832fa6815ce2e8d21fabaa50a37cadcad | [] | no_license | Changhe160/OFEC_Alpha | f117384c4c026316b43c62849bf86c9e975ab4a5 | e8fe5dd7928e4051e94cc8bd574d548794c76d26 | refs/heads/master | 2021-01-19T20:55:34.735993 | 2020-02-27T10:01:16 | 2020-02-27T10:01:16 | 101,239,434 | 11 | 8 | null | 2017-11-08T06:59:28 | 2017-08-24T01:14:55 | C++ | UTF-8 | C++ | false | false | 1,017 | cpp | equal_maxima.cpp | #include "equal_maxima.h"
namespace OFEC {
equal_maxima::equal_maxima(param_map &v) : equal_maxima((v.at("proName"))) {
}
equal_maxima::equal_maxima(const std::string &name) :problem(name, 1, 1), function(name, 1, 1) {
}
void equal_maxima::initialize() {
set_range(0, 1.);
set_init_range(0, 1... |
25d8064e099f705bd2f3deffcae7c18d945e3450 | 74c415d346e0bf7f0d107a9836ab3e6bcd169165 | /模板实现的插入排序/函数模板实现的插入排序.cpp | 40ba14c9cf83ec4fb62598fb861dd84e835c1cfe | [] | no_license | iYaphetS/CPP | 74649851961412716a5a2552d253e0e03fa44370 | af30f4da68a1c1e9b4a4629d819b67a966c48b1d | refs/heads/master | 2021-01-19T05:45:31.566231 | 2017-08-19T01:52:20 | 2017-08-19T01:52:20 | 100,583,064 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,549 | cpp | 函数模板实现的插入排序.cpp | #include <iostream>
using namespace std;
#include <string>
/*
使用模板实现插入排序
*/
class person
{
friend ostream& operator<<(ostream &os, person &p);
friend bool operator<(person &p1, person &p2);
public:
person(string name, int age)
{
this->name = name;
this->age = age;
}
public:
string name;
int age;
};
ostream& ... |
e0f4e168b95f7248051075273aed6ef6473c8354 | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/dodgr/src/run_sp.h | fcf37548571900d2ca16915edee998814f08a555 | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,624 | h | run_sp.h | #pragma once
#include <memory>
#include <vector>
#include <algorithm> // std::fill, std::reverse
#include <iostream>
#include <fstream>
#include <Rcpp.h>
// [[Rcpp::plugins(cpp11)]]
// [[Rcpp::depends(RcppParallel,RcppThread)]]
#include <RcppThread.h>
#include <RcppParallel.h>
#include "pathfinders.h"
class DGraph;... |
43ff0ec3ba2bd29675e5d06d434f1d8b24e25c30 | 805adb2f9e73ec3a3c8f4e1f44588af2298dc38b | /tt/analysis/src/tt_embedded.cc | f682f034e532a2525c7c8072abb5e1e38ebd77e4 | [] | no_license | abdollah110/SMHTT2016 | 2ebc3c6b6efe25efb5f29dbf94097381dd2fc5a0 | 9928fa2d4c6e1043ec32e27ef650dd19f4848f29 | refs/heads/master | 2020-03-29T16:25:47.184674 | 2018-10-14T15:57:37 | 2018-10-14T15:57:37 | 150,113,432 | 0 | 0 | null | 2018-09-24T14:14:33 | 2018-09-24T14:14:32 | null | UTF-8 | C++ | false | false | 60,527 | cc | tt_embedded.cc | #include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include <utility>
#include <stdio.h>
#include "Python.h"
#include <typeinfo>
// ROOT
#include <TH2.h>
#include <TStyle.h>
#include <TCanvas.h>
#include <TGraph.h>
#include <TGraphAsymmErrors.h>
#include "TMultiGraph.h"
#include <TF1.h>
#include... |
0393ed88c42b05fc9975b607279e7f19fb43b8a6 | 2fb70cd291b4864f460338d095f13be5e7c152f3 | /Assignment01_Douglas/Assignment01_Douglas.cpp | 1fb29ea836c9fe5966c0e25729899405316cf9be | [] | no_license | RabbitAI/2143oop | 1b7df68a6c57f4e0ac7df5f15b8c8326c443d2c1 | 82b3bd2cff9c04f12248ea97452df19d66a83b9e | refs/heads/master | 2020-09-21T20:24:36.799288 | 2019-12-02T17:28:11 | 2019-12-02T17:28:11 | 224,915,033 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,742 | cpp | Assignment01_Douglas.cpp | /******************************************************************************
Name: Christian Douglas
Assignment: Program 1 2143 OOP
Purpose: The program uses a programmer defined class call myStacks to
create an array of stacks in the function initDeck. openFiles allows the
user to open any... |
8cfd3688cbd636deb11db989653c25bdb03a772c | c48899f60b3b345965aa5118676fcc493e4af2f0 | /src/lua/module/lua_iobuffer_module.cpp | f0bd2aad107f77613bbc91527e81dca5e319cd8b | [] | no_license | derofim/beeSDK | 95b2426e16beb6d095bae29feab5ce8061bffa64 | f745dec3aef6bb3cd0eac0649cfc8e45bdc74d3d | refs/heads/master | 2020-04-20T15:37:14.525871 | 2018-12-29T11:06:22 | 2018-12-29T12:43:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,630 | cpp | lua_iobuffer_module.cpp | #include "lua_iobuffer_module.h"
namespace bee {
LuaIOBufferModule::LuaIOBufferModule() {
}
LuaIOBufferModule::~LuaIOBufferModule() {
}
int32_t LuaIOBufferModule::lua_open_module(lua_State *l) {
luaL_Reg reg[] = {
{ "new", LuaIOBufferModule::lua_new },
{ "delete", LuaI... |
5121e141c4d3462422e6d566a34f93c69315b2f3 | 52a952b907f72872f8aa1c33e05d24c5c3968417 | /src/main.cpp | 13aafa3bf2572f781a9bdb145cd08bad2a896122 | [] | no_license | yuki-inaho/cv_hdf5_test | b7ce5e93132c490e2a19d167f507554392f54b70 | 1c0460189972bd42004e1c2f5698a425498f8700 | refs/heads/master | 2020-09-24T20:04:04.853516 | 2019-12-04T09:51:39 | 2019-12-04T09:51:39 | 225,832,193 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,088 | cpp | main.cpp | #include <iostream>
#include <chrono>
#include <opencv2/opencv.hpp>
#include <opencv2/hdf/hdf5.hpp>
using namespace cv;
int main(int argc, char **argv) {
cv::Ptr<cv::hdf::HDF5> h5io = cv::hdf::open("../lena.h5");
std::string rgb_img_path = "/image/lena";
cv::Mat rgb_img;
... |
46c8dc546c51c740741298646314fad7fccd0e0d | e11ee558c0f87f8b47ae403d20ceb220abb5d6b0 | /src/weq/memory/ResourceManager.cpp | a539c2d4a5308355c8adc6a4efa56c333bd0f232 | [] | no_license | AntonJohansson/weq | bc1a44548755cbd20a19823c2c8ca5db8dd65285 | 6a13acba7acb14cc98f6669a175eb3e96f92d2c2 | refs/heads/master | 2021-07-04T17:17:33.580363 | 2021-04-20T10:25:15 | 2021-04-20T10:25:15 | 96,276,694 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,475 | cpp | ResourceManager.cpp | #include <weq/memory/ResourceManager.hpp>
#include <weq/memory/Resource.hpp>
#include <weq/ecs/EventManager.hpp>
#include <weq/ecs/EntityManager.hpp>
#include <weq/gl/Texture.hpp>
#include <weq/gl/Shader.hpp>
#include <weq/gl/ShaderProgram.hpp>
#include <weq/gl/Cubemap.hpp>
#include <weq/vars/Vars.hpp>
#include <we... |
8436dc7ae035019f89860c09af98189220f78af1 | 54578fada432afd5237a234e35e9936183b7d8a8 | /range.hpp | 1d2e38fceceb761b244e3ba689858acaad6f9d0d | [] | no_license | AxelStrem/range17 | 079044cb9cffc55968b5aab4677d1ca1ed5d15f3 | 3d15836b0c199009182df05ee042c405cbd9cf54 | refs/heads/master | 2021-01-13T06:11:04.696379 | 2017-06-20T11:15:21 | 2017-06-20T11:15:21 | 94,880,274 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,625 | hpp | range.hpp | #pragma once
#include <iterator>
#include <algorithm>
template<class V> struct default_step
{
void operator()(V& value) const { value++; }
};
template<int v> struct int_step
{
template<class V>
void operator()(V& value) const { value+=v; }
};
template<class V> struct step
{
V s;
void opera... |
9fc299400f0072f5fd54e3efba6d4e08db92ff7e | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_basic_block_block_13141.cpp | 4f3d88efcc57f6b2a33f5b42b249b5488f7c36a3 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11 | cpp | Kitware_CMake_repos_basic_block_block_13141.cpp | return (t); |
6acddb0a4138dea93d5df50dd6c260f8623a4dbd | 42c31a963795a710e7e32e8f641774ff8dede780 | /src/Warp-Framework/WVector4.h | d7bd0760e97ab0dc026cdabe3a931e442dc0f851 | [
"MIT"
] | permissive | Crasader/Warp-Framework | 5a498b2aa4a518779b4d9a8615c3574fd8de2604 | 63e3bf12711fdc11da6d6f4d526003a38ecd724b | refs/heads/master | 2021-02-28T22:43:43.630378 | 2020-02-09T07:24:15 | 2020-02-09T07:24:15 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 3,020 | h | WVector4.h | // © 2019 NIREX ALL RIGHTS RESERVED
#ifndef _W_VECTOR_4_H_
#define _W_VECTOR_4_H_
#include "WDefines.h"
#include "WVector3.h"
template <typename T>
class WVector4 : public WVector3<T>
{
public:
WVector4() {}
WVector4(T x, T y, T z, T w)
:
WVector3(x, y, z),
w(w)
{}
WVector4(const WVector4& vect)
:
WV... |
1d251f94954c3447253fa9d722b9034c018d49e2 | 84c0f3189fa4dfcf1f0490576abfe5c52759fc4e | /Gevorg_Antonyan/Homeworks/c++/27.04/hashMap.cpp | 3d21a1cc0cb098c410ccd74e2f5704bc6e5854b8 | [] | no_license | Araksya-Hambaryan/ITC-9 | bfb2741c52f5de208d3637e33ed3bb547dd0971a | c44b4603a9ddd4395bac86808b3c42217ea60879 | refs/heads/master | 2023-02-11T16:11:30.324645 | 2021-05-16T18:45:13 | 2021-05-16T18:45:13 | 127,136,193 | 1 | 7 | null | 2023-01-26T03:22:51 | 2018-03-28T12:22:48 | Java | UTF-8 | C++ | false | false | 1,268 | cpp | hashMap.cpp | #include <iostream>
#include <list>
class hMap {
private:
std::list<int> arr[4];
public:
int hash(int);
void add(int);
void del(int);
void printPos(int);
void printMap();
};
int hMap::hash(int num) {
if (0 <= num && 9 >= num) {
return 0;
}
if (10 <= num && 99 >= num) {
... |
7d1c85271b771f2ca41fab102a5582d6478ff2d3 | a09c9f3ade599639c84d235f580c8981814ee030 | /smartweddingreception2A4/mainwindow.cpp | 20f8265fbdbd2777f3097333b159526e9829d027 | [] | no_license | HaythemBenMechichi/smart_wedding_reception_2A4 | ee15ec7271681935fb8407fb79e13851773cc2b4 | 27ab7f025f53ba6add420f891fd266414fc45fe0 | refs/heads/main | 2023-02-13T04:19:52.350588 | 2021-01-05T16:46:29 | 2021-01-05T16:46:29 | 316,033,206 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,423 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include "client.h"
#include "gateau.h"
#include "salle.h"
#include <QMediaPlayer>
#include "fleuriste.h"
#include <qdebug.h>
#include "reclamation.h"
#include <iostream>
#include <QMessageBox>
#include "arduino.h"
#include <QDebug>
#include <QRadioButto... |
5495725805768337fd97f5ce36e2de6ece7ebf74 | 7a5dce836d3467e702dca8e30eb2fe7256ed922d | /C Programs/aditya.cpp | d72a638ef5c565a3093dff8011bbac9523e19d1f | [] | no_license | anubhav23sept/My-Spoj-Submissions | 9605358b13899ef74ad0445012ac3c44205f1497 | eb906538a9242d3cf19ce42956bee931a12639df | refs/heads/master | 2021-01-22T05:33:39.978362 | 2017-02-11T19:07:11 | 2017-02-11T19:07:11 | 81,674,854 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 670 | cpp | aditya.cpp | /* Anubhav Singh
MNNIT Allahabad
CSE
*/
#include<bits/stdc++.h>
using namespace std;
int arr[1000002];
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
scanf("%d",&n);
for(i=0;i<n;++i)
scanf("%d",&arr[i]);
dp[0][n-1]=dp[1][n-1]=arr[n-1];
for(i=n-2;i>=0;--i)
... |
49a21b87b222c2214e9979113f4aac754766ff86 | 28518f77abbba9c6c49eb8ddda6e19c18591efd8 | /smartBartender.ino | adf47e92c1b515c932dbfbf90ad3d910c5ea4412 | [] | no_license | RazvanBusuioc/SmartBartender | 61a116d9b49b701ce31a010ac0ea367f9101e22a | e3533f51526a61018c0d2b96705e399ac9e5718a | refs/heads/main | 2023-05-05T13:19:29.190340 | 2021-05-31T08:03:40 | 2021-05-31T08:03:40 | 370,620,123 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,475 | ino | smartBartender.ino | #include <SoftwareSerial.h>
#define NO_PUMPS 4
#define BUZZER_PIN 8
#define PUMP_DEBIT_MIN 1000 // ml / min
//DO MI SOL DO notes for buzzer
#define NOTE_C6 1047
#define NOTE_E6 1319
#define NOTE_G6 1568
#define NOTE_C7 2093
int pump_pins[NO_PUMPS] = {4,5,6,7}; // pumps are connected to these pins
i... |
2ce0c08455bbaf3fe7e99b5e51f24db4358ccbe8 | ec76c1297252070d72fd194baebca3146bafac59 | /damBreak_turbulence/damBreak/4.75/epsilon | b094e55913374266e603e3fdc88e149bed8e584a | [] | no_license | Shivam-IITKGP/CFD_InterFoam_BottleFill | 413cdb5536cf71d95da882821fa36c7bd138e17e | be711e0f19a5331bb1094b8e54982c9ad101da5c | refs/heads/main | 2023-04-13T12:58:09.332312 | 2021-04-15T16:24:42 | 2021-04-15T16:24:42 | 358,315,309 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 87,926 | epsilon | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ M anipulation |
\*-------... | |
1d73f3faf897a0f004edfc652213b3610185689b | 25312dc9300ec5e221bc8be42afbbc64040e3338 | /reverseStr.cpp | 95a52fc28b15526e363a070c4527b149a5de7fdd | [] | no_license | badugunn/data-structures | 6552c0c5ef493b4ca7ca3bc1f89b1caed8000f9c | 95cb8f60b4d82afc04ba8969681276f6b5d2e985 | refs/heads/master | 2020-04-03T14:32:04.243215 | 2019-02-04T20:29:11 | 2019-02-04T20:29:11 | 155,325,147 | 0 | 0 | null | 2019-02-01T04:16:25 | 2018-10-30T04:38:11 | C++ | UTF-8 | C++ | false | false | 1,058 | cpp | reverseStr.cpp | #include<iostream>
#include<stdlib.h>
#include<stdio.h>
#include<stack>
using namespace std;
void reverseStr(string& s)
{
int n = s.length();
int start = 0; int end = n-1;
while(start<end)
{
char temp = s[start];
s[start] = s[end];
s[end] = temp;
start++;
end--;
}
}
void reverseStr2(str... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.