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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
90b9903d4e80c610103b1639e4bc8d6c959dbe0c | fbd889ee87d8b078198660f1340010c182b10a3a | /atcoder/abc156_b.cpp | 8d5f65fd86e7ba231a06753c98228f00c032ed66 | [] | no_license | en30/online-judge | 66760ad982d2437c0c15b7d5b1db87c8c86acee0 | 20443311f5a94dbfd468ef91c3383008e6f85a84 | refs/heads/master | 2022-04-09T18:41:50.015048 | 2020-04-01T17:04:25 | 2020-04-01T17:15:28 | 190,676,995 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 215 | cpp | abc156_b.cpp | #include <bits/stdc++.h>
#include "../include/template"
int f(int n, int k) {
if (n == 0) return 0;
return 1 + f(n / k, k);
}
int main() {
int N, K;
cin >> N >> K;
cout << f(N, K) << endl;
return 0;
}
|
338d254039a949228a952a7c293e1c3dcc59ed5c | 0b1f18c37bfbf6901749916a5935c49b1afe17e3 | /core/vm/common.cpp | 6b88f3a3fa07bc52976ca0be184ea2370b2e318d | [
"OpenSSL",
"Zlib",
"BSD-3-Clause"
] | permissive | objeck/objeck-lang | 2e97ff6c070492e53d4a5f1bec88e07dda4b4296 | 627482005da67618fd46133d18ade2d66e515284 | refs/heads/master | 2023-08-24T05:38:15.489677 | 2023-08-22T20:06:43 | 2023-08-22T20:06:43 | 20,608,381 | 240 | 33 | NOASSERTION | 2023-09-06T20:13:02 | 2014-06-08T03:25:12 | C | UTF-8 | C++ | false | false | 211,076 | cpp | common.cpp | /***************************************************************************
* VM common.
*
* Copyright (c) 2023, Randy Hollines
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
... |
305bfde1666d2e28e4fc8efb22019bc2e4a0cc1a | 857b5ce0da5e8a6909bf8ae69ef6ddafc24d3f99 | /Engine/H/Graphics/Vertex Index Buffer.h | 8d033b34f4c7d1e524f00da64ce16af0aa290a95 | [
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | psydox/EsenthelEngine | 6b6d171000feeec60eace4f089575adc19c450af | 18088042e40a31cbd186348fb0652c643cbd8f5d | refs/heads/master | 2023-05-07T05:38:59.186560 | 2023-03-03T05:16:16 | 2023-03-03T05:16:16 | 181,012,405 | 1 | 0 | null | 2019-04-12T13:20:31 | 2019-04-12T13:20:30 | null | UTF-8 | C++ | false | false | 13,003 | h | Vertex Index Buffer.h | /******************************************************************************
Use 'VI' vertex index buffer for drawing simple 2D or 3D buffered graphics.
/******************************************************************************/
#if EE_PRIVATE
enum VI_TYPE : Byte // VertexIndex vertex type
{
VI_NONE ... |
c1512e2e92982a3eed13caf356250b489a726212 | 79c2d89bbfb0fcea09358e8fbee9187c40443b9b | /source/MassEffectTrilogy.FOVFix/dllmain.cpp | 0d40c1361e1102ff80573d0767c7376e884ee949 | [
"MIT"
] | permissive | Sergeanur/WidescreenFixesPack | 0d230f6ca733ac6e73a3e322f07db5b303c04fdf | 7e159be860a870476a97c322a0c4dd244e50cee7 | refs/heads/master | 2020-04-01T04:49:49.295083 | 2018-10-13T15:54:55 | 2018-10-13T15:58:33 | 152,878,656 | 0 | 0 | MIT | 2018-10-13T14:12:39 | 2018-10-13T14:12:39 | null | UTF-8 | C++ | false | false | 3,735 | cpp | dllmain.cpp | #include "stdafx.h"
void InitME1()
{
auto pattern = hook::pattern("8B 35 ? ? ? ? 57 8B 3D ? ? ? ? 89 74 24 20 89 7C");
if (pattern.empty())
return;
static auto nWidth = std::ref(**pattern.get_first<uint32_t*>(2));
static auto nHeight = std::ref(**pattern.get_first<uint32_t*>(9));
pattern ... |
086b3d4fcf3eff754545ebf6e3452657a57f4446 | 6e6542d3e5c491570ae86ee40bd9424e4de6ecc1 | /Data Structures Problems/Graph/Easy/BFS_of_Graph/main.cpp | beb24bffac295c08af82705c7ac2067382efcdb4 | [] | no_license | Ubaid-Manzoor/Interview_Practice | 9b66a920dfdc934f50b171d990e45dbddd9d7b54 | d1ae188123da060b31e4e537713a45349786835a | refs/heads/master | 2023-02-10T15:52:02.851818 | 2020-12-26T14:58:43 | 2020-12-26T14:58:43 | 275,573,186 | 20 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,012 | cpp | main.cpp | // { Driver Code Starts
#include <bits/stdc++.h>
using namespace std;
vector <int> bfs(vector<int> g[], int N);
int main() {
int T;
cin >> T;
while (T--) {
int N, E;
cin >> N >> E;
vector<int> adj[N];
for (int i = 0; i < E; i++) {
int u, v;
cin >> u... |
23db56b06e3f61b00c88ebb77af88e4d52ede968 | 0f842042e2916273392f0272bd3d2b4921f4844c | /2DAE01_Exam_Timo_Nys/Source/Minigin/ObserverComponent.cpp | c1a6c35b3e63c5faeeceff6c297762bd36039115 | [] | no_license | timonys1998/RiptideEngineRetake | 891678f5c96a419556ec5ab7b28fe9747844cce9 | 20f3e91c4fb71a3cae2802b9abf324a08d498af9 | refs/heads/master | 2020-03-27T07:22:51.423305 | 2018-08-26T14:55:08 | 2018-08-26T14:55:08 | 146,186,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 146 | cpp | ObserverComponent.cpp | #include "MiniginPCH.h"
#include "ObserverComponent.h"
ObserverComponent::ObserverComponent()
{
}
ObserverComponent::~ObserverComponent()
{
}
|
c2c047e5fbb7ecc67329dbb8fb13c2bc1b14d56f | b3e02c7f144a74a92724aa20f1b6d4a2de3fd138 | /src/ppl/cv/x86/util.hpp | 93bfb6e9ecaddd35e8a1329fd9d3e0584923939b | [
"Apache-2.0"
] | permissive | chensusu11/ppl.cv | 92194fa2c282f07a31a79b0251fbe3f8737a689d | 04ef4ca48262601b99f1bb918dcd005311f331da | refs/heads/master | 2023-07-18T18:58:35.125567 | 2021-09-14T01:00:00 | 2021-09-14T02:18:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,354 | hpp | util.hpp | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
2e2d51674b5ec41563a43a2c56df1dcebf28ffce | 919c0bb06476e965f963424873edcc585193d587 | /src/Extractor.cpp | 0bb978a29ccc7be547da3926f48fee52f8630386 | [
"MIT"
] | permissive | vfspirit/wavextract | 6195c5a2693f28cb68d740788329979e4d05563f | 8f64da87fb2e884d66932bd64a12453a0a897823 | refs/heads/master | 2021-01-13T02:27:59.431456 | 2016-12-15T13:14:23 | 2016-12-15T13:14:23 | 76,552,465 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,294 | cpp | Extractor.cpp | #include "Extractor.hpp"
Extractor::Extractor(const char *file_name)
{
setFile(file_name);
}
Extractor::~Extractor()
{
_free();
}
void Extractor::setFile(const char *file_name)
{
if (_file) {
_free();
}
_file_name = file_name;
_file = fopen(file_name, "rb");
if (!_file) {
throw std::runtime_error(std::str... |
84f219b1b5abcc0b9ecbcfa22af1cba4701761dc | 75fa4c0d599215b15107c729428891e2a01a29fe | /58/main.cpp | 230fb9439e334d262b9c0f7f3d47d4be9c09f5ef | [] | no_license | richardcypher/leetcode | db577631415499a63044c1efe9ddfc4197157c85 | cfedb8d713c4770b24b23a09cfdebc043d74a838 | refs/heads/master | 2021-01-17T11:21:02.689077 | 2016-04-10T10:23:16 | 2016-04-10T10:23:16 | 34,598,465 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 523 | cpp | main.cpp | #include <iostream>
#include <string>
using namespace std;
int lengthOfLastWord(string s) {
int lastlen = 0, i = 0;
while(i < s.length()) {
while(i < s.length() && s[i] == ' ')
i++;
if(i == s.length())
return lastlen;
int curlen = 0;
while(i < s.length()... |
09cb237aca6d54b8ce8a72b5f003f0df903b06fa | 3a72a2b15f232a98d0d945f9d7d016238fa4e3e3 | /C++/C++_example_6_Linked_Lists/product/NodeList.h | 70d09de0d660439b64d84bc37b3a1c73bf328dfc | [] | no_license | diemonator/c-plus-plus-course | 42664b79e5b1c806ee569382918111b4aaf6dff1 | b0dc51c49e6337ef0cad0a69d42b85b0550e57a7 | refs/heads/master | 2020-04-12T03:32:58.017541 | 2018-12-24T16:06:18 | 2018-12-24T16:06:18 | 162,269,792 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,486 | h | NodeList.h | /*
* NodeList.h
*
* Created on: Sep 25, 2013
* Author: P. Lambooij
*/
#ifndef NODELIST_H
#define NODELIST_H
#include "Node.h"
class NodeList
{
private:
Node * head;
public:
NodeList(void);
/* pre :
post: object NodeList has head == NULL
*/
virtual ~NodeList(void);
/* pre : -
... |
0592c793d7c8749c86ba46179ecbc915d17bc290 | d34f53a2a67881b3ec07430292723640bb832a85 | /OtrosEjercicios-C++/pintandoFractales.cpp | 538978f2444f103f6a9744e0bc7d1ba6bb962322 | [] | no_license | Yisas12/University | 3417cdaee5be8012a83cbdc081330e1c4c92ce4b | 8dfb9beb0ed4f593839bb3f947f34ef2ae684b7a | refs/heads/master | 2021-08-19T22:54:26.233436 | 2020-12-02T11:42:40 | 2020-12-02T11:42:40 | 230,428,141 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 602 | cpp | pintandoFractales.cpp | #include <iostream>
#include <vector>
using namespace std;
long long int fractales(int &num, int &cuadrados, long long int &suma)
{
long long int p;
if (num == 0) return 0;
else if (num == 1)
{
suma += num * 4 * cuadrados;
}
else
{
suma += num * 4 * cuadrados;
cuadrados *= 4;
num /= 2;
//if (num / 2 ... |
e49b106552f6659699bfe0ead3ab456313d552f4 | 6e9ebdae850c5b949509ef4ad5d096879aca68b5 | /src/trainingconfigwidget.cpp | 305c48ea2d8fc4d8503afc2c179a58b807469474 | [] | no_license | KDE/ktouch | 2e77d5d82d81a4b9d308ce4e1aad2475633d6175 | 0e7210682023e7e0a33eac5a37ef8dda5b4719f3 | refs/heads/master | 2023-09-01T15:31:55.731936 | 2023-08-28T19:50:13 | 2023-08-28T19:50:13 | 42,719,453 | 59 | 23 | null | 2023-02-12T18:54:51 | 2015-09-18T12:03:07 | C++ | UTF-8 | C++ | false | false | 351 | cpp | trainingconfigwidget.cpp | /*
* SPDX-FileCopyrightText: 2012 Sebastian Gottfried <sebastiangottfried@web.de>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "trainingconfigwidget.h"
TrainingConfigWidget::TrainingConfigWidget(QWidget *parent) :
QWidget(parent),
Ui::TrainingConfigWidget()
{
setupUi(this);
}
#include ... |
87e547923b4783f8949cbb4338064f66ac60e888 | 41bfbdae0d123154eefafea154c114de939916a8 | /src/TileMap.cpp | 7eda66ec6d691364eb56c6afa459d5ac2feef91a | [] | no_license | rafael-g-depaulo/IDJ_trabalhos | 064a3c87eb1655d1637773880fe4720c282d8dab | f8e722958f986cc64df891059990f1ab9040f81a | refs/heads/master | 2023-04-21T21:07:37.750410 | 2021-05-21T22:09:48 | 2021-05-21T22:09:48 | 345,400,168 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,962 | cpp | TileMap.cpp | #include <fstream>
#include <sstream>
#include <regex>
#include "../include/TileMap.h"
TileMap::TileMap(GameObject& associatedObj, string file, TileSet* tileSet): Component(associatedObj) {
this->SetTileSet(tileSet);
this->Load(file);
}
void TileMap::Update(float dt) {}
void TileMap::Render() {
int cameraX = ... |
e1a5c7172f341f6387100bcac5f77b8373052df2 | 06bed8ad5fd60e5bba6297e9870a264bfa91a71d | /libPr3/logixng/genericexpressionvariable.cpp | aedf5a4ebdd7d1f88ca33423e0e24acdfe058cce | [] | no_license | allenck/DecoderPro_app | 43aeb9561fe3fe9753684f7d6d76146097d78e88 | 226c7f245aeb6951528d970f773776d50ae2c1dc | refs/heads/master | 2023-05-12T07:36:18.153909 | 2023-05-10T21:17:40 | 2023-05-10T21:17:40 | 61,044,197 | 4 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,118 | cpp | genericexpressionvariable.cpp | #include "genericexpressionvariable.h"
#include "loggerfactory.h"
#include "femalegenericexpressionsocket.h"
/**
* A variable that evaluates a generic expression
*/
// /*public*/ class GenericExpressionVariable implements Variable {
/*public*/ GenericExpressionVariable::GenericExpressionVariable(FemaleGener... |
ba701e51c770ca1db13d4cbb240c72f7442df6b4 | 748ffaf0b87ce96456206441993f0510000a24f6 | /include/SchedulerCreator.h | aa5726a65e4c952b1e278f9414818368b9487e7e | [] | no_license | vantas/intelevator | 1363cb0e63d49e157a6102f022cf88eb1965df1c | 3070502223a3849fa496efdac94dde567966ea0b | refs/heads/master | 2021-01-21T04:59:47.143307 | 2016-07-04T00:03:26 | 2016-07-04T00:03:26 | 49,675,464 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 847 | h | SchedulerCreator.h | #pragma once
#include "PlanningScheduler.h"
#include "Scheduler.h"
#include "SchedulerType.h"
#include "SimpleScheduler.h"
class SchedulerCreator {
public:
template <class T> static const std::shared_ptr<Scheduler> create();
static const std::shared_ptr<Scheduler>
create(const SchedulerType schedulerType);
};
... |
e131c1d54baf86b8c526f39b99ad3f98f0c4951a | e84a10d08e93db20b06d97dcb7a2c35a8ee8359c | /Application/Scene/Polyline.cpp | 9a36ed4bcc7df4df0d1cd519057ba2b449c85217 | [] | no_license | randyfan/NOME3 | 44b142f87105dcaeaa25fa03b79e9ab73de6115d | 26c47cc6d45214e619d89dcc29787528f4db4aeb | refs/heads/master | 2023-07-29T00:24:01.433701 | 2021-09-19T16:45:14 | 2021-09-19T16:45:14 | 293,137,094 | 4 | 6 | null | 2021-03-10T21:26:27 | 2020-09-05T18:58:36 | C++ | UTF-8 | C++ | false | false | 2,422 | cpp | Polyline.cpp | #include "Polyline.h"
namespace Nome::Scene
{
DEFINE_META_OBJECT(CPolyline)
{
BindPositionalArgument(&CPolyline::Points, 1);
BindNamedArgument(&CPolyline::bClosed, "closed", 0);
}
void CPolyline::MarkDirty()
{
// Mark this entity dirty
Super::MarkDirty();
// And also mark the Face output dirty
... |
8625745ce774ab9a96d58ae28d9d1dec84abc361 | bf5a2f114426fcdad8996684985330e91c2592ec | /乐学/2019DSXTL/3. 单词压缩存储.cpp | 07648b971a3632f706296ead314019790d35e8a9 | [
"Unlicense"
] | permissive | everything411/BIT_Exercises | 9e0c02a724bfd2fa58424a3cbab04ab2b537db51 | 2d0e31dca2b9607dce0bb43340ebeaa2c42c4a43 | refs/heads/master | 2021-06-03T10:06:22.259395 | 2020-06-05T03:07:24 | 2020-06-05T03:07:24 | 153,399,890 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,154 | cpp | 3. 单词压缩存储.cpp | /* PRESET CODE BEGIN - NEVER TOUCH CODE BELOW */
#include <stdio.h>
#include <stdlib.h>
extern "C" char *gets(char *);
typedef struct sdata
{
char data;
struct sdata *next;
} SNODE;
void setlink(SNODE *, char *), outlink(SNODE *);
int listlen(SNODE *);
SNODE *ziplist(SNODE *, SNODE *);
SNODE *findlist(SNODE ... |
53643924f0045d4728cc11f13670ddd74a20b591 | 079e9f928924c1787869f6caf7ce4b7dbd1d605b | /PositionManager/PositionManager.cpp | 3d10ac2b3cfc18bc44ea3e7602128ac179b1a142 | [] | no_license | mkucharsky/PositionManager | e34555a139c56363c3bc96e00ab73d0d4bd77a09 | f3165a11f2a6adf2c5e816f45e77865731c47a30 | refs/heads/master | 2020-04-09T20:47:14.159918 | 2018-12-05T22:49:17 | 2018-12-05T22:49:17 | 160,584,096 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 399 | cpp | PositionManager.cpp | #include "pch.h"
#include <iostream>
#include"ElephantPosition.h"
#include <ctime>
int main()
{
std::string data;
std::getline(std::cin, data);
ElephantPosition series1(data);
std::getline(std::cin, data);
series1.setValues(data);
std::getline(std::cin, data);
series1.setInitialPositions(data);
std::getline... |
216ae091a476434a7290972a61231cf66e12b216 | 3cf97ef0c6a03597b43022200fad3633b856468f | /pair_sum_doubly_linked_list.cpp | 480be48059468040dc3271640ba4550efc756ffd | [] | no_license | Dishantdhillon/Babbar_Sheet_and_Interview_questions | e5e31f420bc6f8fe5583d4c27a742b844081cf77 | c5b9ef8197951bbb627f2cd1a80518aa9defea6f | refs/heads/master | 2023-08-14T00:19:21.184961 | 2021-10-06T17:37:42 | 2021-10-06T17:37:42 | 413,917,916 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,441 | cpp | pair_sum_doubly_linked_list.cpp | #include<bits/stdc++.h>
using namespace std;
class Node {
public:
int data;
Node* next;
Node* prev;
Node(int data) {
this -> data = data;
next = NULL;
prev = NULL;
}
};
void pairSum(Node* head, int sum) {
Node* start = head;
Node*... |
c37f22f5a82b23a46308587197144abc01654dd8 | 018eac278e23bf4611b1b5d4aa0ac106dff8238b | /problem/SGU/149 Computer Network(树形DP).cpp | 02ec359a7b70a61883435dc4debef0ec111662be | [] | no_license | qian99/acm | 250294b153455913442d13bb5caed1a82cd0b9e3 | 4f88f34cbd6ee33476eceeeec47974c1fe2748d8 | refs/heads/master | 2021-01-11T17:38:56.835301 | 2017-01-23T15:00:46 | 2017-01-23T15:00:47 | 79,812,471 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,774 | cpp | 149 Computer Network(树形DP).cpp | #include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
#include<algorithm>
#include<map>
#include<queue>
#include<set>
#include<stack>
#include<cmath>
#include<vector>
#define inf 0x3f3f3f3f
#define Inf 0x3FFFFFFFFFFFFFFFLL
#define eps 1e-9
#define pi acos(-1.0)
using namespace std;
type... |
f63c86e005b3da01923febd6be9d4893aed2d833 | 238a3d27b6863ada30516c01202df67efb5258f9 | /app/test_servo/src/main.cpp | 15f28fa1aa3b8626f5fd3d30742068406536b40e | [] | no_license | younesr1/MarsRover2019-firmware | d77c096053eae0ec114c16a8574bde423637b2dd | 85881ddf66b4fa5a2afdc97fdc8fc2006ba8a167 | refs/heads/master | 2022-04-05T17:32:14.487249 | 2020-01-17T23:08:44 | 2020-01-17T23:08:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 571 | cpp | main.cpp | #include "mbed.h"
#include "Servo.h"
DigitalOut led(LED1);
Serial pc(SERIAL_TX, SERIAL_RX); // Uses default baud rate defined in config/mbed_config.h
Servo myservo(SERVO_P);
int main() {
while(1) {
myservo = 0.3;
wait(1);
myservo = 0.55;
wait(1);
myservo = 0.7;... |
e1dbbd9a0eba083dc4ce380bc1541b15966943be | b6d1df49c1ec621a02204b1100312ecbb3e76ad3 | /src/mains/Qt/Qt_course/examples/signalSlots/myreceiver.h | 4a67865fc66dd2b27b2b69417369c30e534a1445 | [] | no_license | flylong0204/projects | 5271acde325cf3947fac7433077353b52fa07bc4 | b1e5c918d4aeb34c36576dababc5509dbb89afd1 | refs/heads/master | 2017-12-06T06:35:20.926786 | 2017-01-24T23:53:13 | 2017-01-24T23:53:13 | 79,988,197 | 1 | 2 | null | 2017-01-25T06:11:23 | 2017-01-25T06:11:23 | null | UTF-8 | C++ | false | false | 271 | h | myreceiver.h | #ifndef MYSLOT_H
#define MYSLOT_H
#include <qobject.h>
class MyReceiver :public QObject
{
Q_OBJECT
public:
MyReceiver( QObject* parent = 0 );
public slots:
void aSlot();
void anOtherSlot( int, QObject* );
};
#endif /* MYSLOT_H */
|
ecd567c7fb0cff4dfd88fab63d16fd81e63abe06 | 71f4c55fccac2be0c5c4dbdcf1b7d069458c3af1 | /langdetectpp/src/profiles/langs/cs.cpp | e3f7e707a52f65a9489096e10ff11ec646b74514 | [
"Apache-2.0"
] | permissive | IMelker/langdetectpp | a334717cfa8fe08124add6c06cdbd26edd7f3005 | d6da1b16272a89f486d0334141e1e55c12ca4a22 | refs/heads/master | 2023-04-08T21:48:55.032461 | 2021-04-02T23:59:33 | 2021-04-02T23:59:33 | 353,118,296 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 202,416 | cpp | cs.cpp | #include "profiles/langs/cs.h"
#include <unordered_map>
#include <tuple>
static const std::unordered_map<uint32_t, size_t> cs_one_grams {
{ 101, 908926 },
{ 111, 890229 },
{ 97, 764805 },
{ 110, 728035 },
{ 116, 548551 },
{ 105, 521717 },
{ 114, 514188 },
{ 115, 514164 },
{ 118, 451146 },
{ 108, 44... |
9fae741c56614b41cc416284f3d189028909b8eb | 54b7d0937f073e8645862674c0cbcd25abf86d2a | /00414/sol.cpp | 423a72c24606a06beba4da4e7eafdd477a7b4b98 | [] | no_license | adithya-tp/uva | b936a2c8f647d40ca45aff8b93c70dcbfc35f7ec | caba28fa3397ad372c93e521c2de21ed70e201a8 | refs/heads/main | 2023-02-22T16:08:37.287179 | 2021-01-22T16:27:03 | 2021-01-22T16:27:03 | 320,002,529 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,313 | cpp | sol.cpp | #include <bits/stdc++.h>
using namespace std;
/*
The amount of space is sum of the following difference performed for each row:
(Max_X count among all rows) - (number of Xs in row i).
*/
#define pb push_back
#define forn(i, l, r) for(int i = l; i <= r; i++)
#define fornr(i, r, l) for(int i = r; i >= l; i--)
#... |
803d64516f7199d4a582569a94df5d4bac669675 | 4c171f8b664c2c3018449484d27985161502abf0 | /stereoView.cpp | 074b1c74ec87476296443ad9aa42839978d27e3e | [] | no_license | txin/view | 5131e891a963bcba81f9e978ad7429e7e036bfa0 | 2023b5294f5a469f5efbd5d42b03f68be1fd8ade | refs/heads/master | 2020-04-15T22:28:20.236104 | 2014-08-26T14:18:21 | 2014-08-26T14:18:21 | 21,615,537 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,303 | cpp | stereoView.cpp | /*
* Getting depth from 2 cameras (stereo vision system setup)
* 1. cameras calibration
* 2. get the fundamental matrix and essential matrix, disparity
* 3. compute depth
* reference: docs.opencv.org
* disparity opencv-2.4.9/samples/cpp/tutorial_code/calib3d/stereoBM
* /SBM_Sample.cpp
*/
#... |
0809099179b1bdd4cf37ea0e9cc3476fa7faaf26 | 8e78f5da3c1b3467560ab39054a71e69f280b703 | /archieve/Luogu5633/test.cpp | e6fc0e60067033cc3e601671bcd8411b3d1b08cb | [] | no_license | ycsgg/oi_code | aed9922a3bd53ef5ee88450d80af9fbb79a48479 | 1f98dca6fb0b69da2f566276cce89817fe828edd | refs/heads/main | 2023-09-03T04:55:49.611275 | 2021-11-19T08:31:31 | 2021-11-19T08:31:31 | 342,456,005 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,074 | cpp | test.cpp | #include <algorithm>
#include <cstdio>
#include <iostream>
#define N 50005
#define E 500005
#define inf 1e9
using namespace std;
int n, m, s, k;
int tot0, tot1;
struct edge {
int u, v, w;
bool isNeed;
} orig[2][E], e[E];
bool cmp_edge(const edge &lhs, const edge &rhs) {
return lhs.w < rhs.w;
}
inli... |
9f553087aca137ca5f7102caa65aa79d8fde1785 | 2b699e722d8aaac83ac2b891d0a6631cabf82fb0 | /Win32Project1DLL/Win32Project1DLL/SampleDll.cpp | d1ac88f7a1176bdac0e363111ed71a530340e6ef | [] | no_license | AlvaroMonserrat/IntelRealSenseCV | 2147d6a4b825be6fd7dc6db9d4a07e7904d7f785 | eceaece0bc504731a391cfefffd962021d29bfee | refs/heads/master | 2020-04-08T23:11:01.420094 | 2018-12-04T14:40:59 | 2018-12-04T14:40:59 | 159,814,717 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 271 | cpp | SampleDll.cpp | //SampleDll.cpp
#include "stdafx.h"
#define EXPORTING_DLL
#include "SampleDll.h"
BOOL APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {
return TRUE;
}
void HelloWorld()
{
MessageBox(NULL, TEXT("Hello World"), TEXT("In a DLL"), MB_OK);
} |
fa5da35c3911b5f08609a0449751315f52810e50 | eae03fb66beeb5cd1a4861ddf9f870fc7a1664cc | /src/gui/MatrixView/GraphView.h | 0cba54d969958be569f8add4d0b58bbd0bef1ef0 | [
"BSD-3-Clause"
] | permissive | TommyHHH/ChowMatrix | 9dd233ab4b6930be5fcb150fe9ae9bc857b9fbeb | 163e13d7473d8e3a28f22b270954fb078b6991c4 | refs/heads/main | 2023-02-02T03:58:48.873906 | 2020-12-17T06:38:28 | 2020-12-17T06:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,914 | h | GraphView.h | #pragma once
#include <pch.h>
#include "../../ChowMatrix.h"
#include "DelayNodeComponent.h"
#include "InputNodeComponent.h"
#include "NodeCompManager.h"
#include "MatrixAurora.h"
class GraphView : public Component,
public SettableTooltipClient,
public DBaseNode::Listener
{
public:
... |
99116a883fe9410232db61116249f28383e181f5 | 285f247c3ee5d352610b927ad24a9f2a23148f58 | /Paint/drawarea.cpp | f8f5fc561377fcb8730a3d491de90a0d4e47c589 | [] | no_license | TMalicki/QT-programs | 2b7f2f4726e9b0891738576941f168f48ab2598e | 5e53ae1a474e0af3e79fb3d0bd19f9094d2ab0da | refs/heads/main | 2023-01-21T19:59:38.141779 | 2020-11-23T19:00:47 | 2020-11-23T19:00:47 | 303,159,147 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,244 | cpp | drawarea.cpp | #include "drawarea.h"
#include <QMouseEvent>
#include <QDebug>
#include <QPainter>
#include <QApplication>
#include <QWidget>
DrawArea::DrawArea(QObject *parent) : QGraphicsScene(parent), drawing(false), mPensil{}, pressedKeys{}
{
mPensil = new pensilSettings();
}
void DrawArea::checkShortcuts()
{
... |
5b59f9f117952f422a3e347d794ae04ebbab605a | 2ec5420c60a122189ae86f14d33466442fbcac02 | /RootTools/LevelEditor/3DViewer/Source/ReadMemory.cpp | 9c919310779e07f46d06840b0ebd0421b2df1299 | [] | no_license | blockspacer/zombieshroom | 14a26a80f54c3efb894f8826f50ea83c2d0f21d5 | b6b1745689c5f418b1a229517f71a295a52af084 | refs/heads/master | 2021-05-28T13:10:02.401463 | 2014-10-05T17:29:43 | 2014-10-05T17:29:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,809 | cpp | ReadMemory.cpp | #include "ReadMemory.h"
ReadMemory::ReadMemory()
{
NumberOfMeshes = nullptr;
NumberOfLights = nullptr;
NumberOfCameras = nullptr;
export = nullptr;
InitalizeSharedMemory();
}
ReadMemory::~ReadMemory()
{
shutdown();
}
int ReadMemory::InitalizeSharedMemory()
{
int total_memory_size = 0;
total_memory_size += s... |
955029bd430f88aa2fe2767415b136cec85d4285 | 5e44e2425f8d0d94bccbb0275af4ed0adf0ee024 | /code_review/week2/dy/Problem 2/main.cpp | a327e5ace94adee2ba5283a1467afc2ebe63207c | [] | no_license | ywwywwyww/Object-Oriented-Programming | ffe8901815031479c41f6aa415206a500f690a40 | 5f4fe0ec682ea5261d29fd4d89e73e1741251ef0 | refs/heads/master | 2023-06-19T12:19:35.095070 | 2021-07-14T03:59:09 | 2021-07-14T03:59:09 | 244,912,200 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 632 | cpp | main.cpp | /**
* @file main.cpp
* @author Yan DAI
* @date Feb 26, 2020
*/
/**
* Personally, I perfer snake_case to camelCase,
* as it's more 'like' a C/C++ code or header.
*
* I also perfer Allman (bracket) style to K&R style,
* as it shows the border of a block more clearly.
*/
#include "assigner.h"
#includ... |
5ec8c207a6f592cbb50fca96daa485e501245bd4 | c28508713570f7541bc0e67b59abc444351e6028 | /DivideEtImpera/CountInversionsnlogn/main.cpp | 240644479846421ed14c5c741f626ff40d2568a4 | [] | no_license | stanmatei/CPPExercises | dfc0747267cae993f39a43f66a8139865680ccf0 | 7b21c5c528c81b233f8d7b60d73f68bcc03203aa | refs/heads/master | 2022-12-09T20:39:22.132865 | 2020-09-10T18:42:58 | 2020-09-10T18:42:58 | 268,449,288 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 747 | cpp | main.cpp | #include <iostream>
using namespace std;
int n, a[100], s = 0;
void doMerge(int p, int m, int q){
int i = p, k = 0, j = m + 1;
int b[100];
while(i <= m && j <= q){
if(a[i] < a[j]){
b[k++] = a[i++];
}
else{
s += (m - i + 1);
b[k++] = a[j++];
... |
5e9b73f8322dd9f1f88997b6d2ef174aaea3bce8 | e3cb68d81879fb56bd6cafa5bb99bf2be642a759 | /LabStudent7/Scene/UnitSquare.h | d646d30d117fcd244e9b83db452a7520ce67fba4 | [] | no_license | zmnatz/2010-Fall-Computer-Graphics-Class | 316bba1ba6595402b1ff2b2a9f96c96a0c0a23e3 | c33b436893424a6948b3bab1f33616d8af46340f | refs/heads/master | 2021-01-19T22:33:53.504327 | 2012-08-15T23:43:47 | 2012-08-15T23:43:47 | 5,432,471 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,661 | h | UnitSquare.h | //============================================================================
// Johns Hopkins University Engineering Programs for Professionals
// 605.467 Computer Graphics and 605.767 Applied Computer Graphics
// Instructor: David W. Nesbitt
//
// Author: David W. Nesbitt
// File: UnitSquare.h
// Purpose: ... |
103d7cbbe9fa5aae7906a9aecac1e05bf85e26b1 | c38bc5308a91f265c4dbefefe7e251932c031c6f | /test/payload/self_describing_json_test.cpp | eab8116fff88af19d53e33f2a5b20a4177c662ff | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | snowplow/snowplow-cpp-tracker | a9c7bb3658d744c7bc850adb2aefb0c2c9680e1a | 6b2fbe517f0445acf63584a2aa116e1ad44f9d52 | refs/heads/master | 2023-05-30T02:57:19.808067 | 2023-05-26T13:02:08 | 2023-05-26T13:02:08 | 34,868,074 | 10 | 7 | Apache-2.0 | 2023-05-26T07:37:48 | 2015-04-30T17:45:58 | C++ | UTF-8 | C++ | false | false | 1,280 | cpp | self_describing_json_test.cpp | /*
Copyright (c) 2023 Snowplow Analytics Ltd. All rights reserved.
This program is licensed to you under the Apache License Version 2.0,
and you may not use this file except in compliance with the Apache License Version 2.0.
You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICE... |
dd15eccbd057cc44e4dfdd06c8aeb2870c22e0a7 | 5cf2531128ce09c1e6c5ae7ed646ec999609b8a7 | /Esp8266SDLib/qiaqiaSingleDevESP8266.cpp | 64ac6f1b834b34d51232bd5a7eeac5df9e6109bd | [] | no_license | qiaqiacloudbeijing/ESP8266_Arduino | a58cce20c00aba04b61f6bcbe40e63e1daa26079 | dbe1a5fde658742e08b6088be934432d9ee09a82 | refs/heads/master | 2021-01-20T02:38:18.612487 | 2017-04-26T04:04:26 | 2017-04-26T04:04:26 | 89,436,645 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 39,823 | cpp | qiaqiaSingleDevESP8266.cpp | #include "qiaqiaSingleDevESP8266.h"
qiaqiaSingDevESP8266::qiaqiaSingDevESP8266(){
apConfigStart = 0;
apFirstTimeState = 1;
RemoteFirstTimeState = 1;
RemoteConfigStart = 0;
}
void qiaqiaSingDevESP8266::sdDataMemoryInit(){
memset(&m_topicParseInfo, 0, sizeof(topicParseInfo));
memset(&m_sdReadCallbackParamet... |
52e39a6d72f8f4aaf4c0994940d1f8d734478c88 | d033b2f3c8ec476e8cbf1fa9ddc335a9d846cc00 | /code/projects/riftwarrior/Classes/StageOpeningAnimation.h | 8f57dca0a4bb6cb7108c2e902a0c238a8cadcbc8 | [
"MIT"
] | permissive | likexx/riftwarrior | dd99f482af4a2d300c7b4ab90b159e3fae2eb545 | cad1fdde5705c4288e8f413547813214d4d0d00c | refs/heads/master | 2021-07-24T13:05:00.959410 | 2017-11-02T16:03:32 | 2017-11-02T16:03:32 | 106,724,844 | 8 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,746 | h | StageOpeningAnimation.h | //
// StageOpeningAnimation.h
// ike-tdgame
//
// Created by Like Zhang on 12/26/12.
//
//
#ifndef __ike_tdgame__StageOpeningAnimation__
#define __ike_tdgame__StageOpeningAnimation__
#include <iostream>
#include "cocos2d.h"
#include "cocos-ext.h"
#include <vector>
using namespace cocos2d;
using namespace cocos2d::... |
909253929127ecd0ed6b598717c912bb65ac01c5 | 515756675f130c5f7cf356fcb187104576bd4abf | /andEngineScriptingExtension/src/main/jni/src/org/andengine/engine/Engine.cpp | 59a634cfeea4256e31e3d6e73062e3da00b5b919 | [] | no_license | stephtelolahy/AndEngineDemo | 0a87e56b19d3113640ebef2abd1677001f56e7f4 | d8a492323479b77c6da80a393e39948bd77376c4 | refs/heads/master | 2020-12-26T03:01:21.121824 | 2014-10-29T18:52:08 | 2014-10-29T19:07:01 | 25,823,289 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,955 | cpp | Engine.cpp | #include <cstdlib>
#include "src/org/andengine/engine/Engine.h"
static jclass sEngineClass;
static jmethodID sConstructor____org_andengine_engine_options_EngineOptions__;
static jmethodID sMethod__GetVertexBufferObjectManager;
static jmethodID sMethod__GetTextureManager;
static jmethodID sMethod__GetFontManager;
JNIE... |
e1d223bf05a8695d3c5407cd13987df30bf98f01 | d1fdf0102b11ea19c06e482b07b093d6c28e01b6 | /orbit/modules/speaker_estimator.cc | 091e824a187c29a97bc1067068723a6d0d8fdee4 | [] | no_license | romange/StreamOperation | ef1af6a12b3ed035476e8c6234af235103e21918 | 7c9baf3f06255708bc20506123efa75edb0f46c0 | refs/heads/master | 2021-05-03T05:55:42.169016 | 2017-07-09T16:01:36 | 2017-07-09T16:01:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,260 | cc | speaker_estimator.cc | /*
* Copyright 2016 (C) Orange Labs Inc. All Rights Reserved.
* Author: cheng@orangelab.cn (Cheng Xu)
*
* speaker_estimator.cc
* ---------------------------------------------------------------------------
*/
#include "speaker_estimator.h"
#include "glog/logging.h"
namespace orbit {
SpeakerEstimator::SpeakerEst... |
01bce02855070d4f9cbf074e062b520d0f456922 | 35a8333ae63902aa9001ca78e668064f16172f5b | /2020年11月23日.cpp | f91e99d3be17958ed3ccbb4812472e90404f0ccf | [] | no_license | danyibo/Cpp | 453db04ab04dc39c63c02ad3ff73d2c6bfa9ceb0 | 7ab9c28b71a0513cd9cbb8561a3c05cb69205b20 | refs/heads/master | 2023-02-04T17:40:03.405375 | 2020-12-25T08:56:57 | 2020-12-25T08:56:57 | 299,194,391 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,882 | cpp | 2020年11月23日.cpp | #include<iostream>
#include<string>
using namespace std;
// 拷贝构造调用的时机
class Person {
public:
Person() {
cout << "无参构造" << endl;
m_age = 0; // 初始化
}
Person(int age) {
cout << "有参构造" << endl;
m_age = age;
}
Person(const Person& p) {
cout << "调用拷贝构造" << endl;
m_age = p.m_age;
}
~Pe... |
78962ff4cdd73355aeb8c171812b33ae9bdc8c36 | 68aa0457b023a1c6b2c0b7fd6974770bfc1d8d0d | /Eve/eve.cpp | d0d22c65818337da90231087d866781af7e061c4 | [] | no_license | surinkim/evelib | 2d0aaa432f814011823029d9286271e88c92c89c | e58d982a413abb3394c0f5acf5e1da9009c61ef6 | refs/heads/master | 2020-03-26T03:02:24.331578 | 2018-08-12T14:42:54 | 2018-08-12T14:42:54 | 144,436,837 | 0 | 0 | null | 2018-08-12T12:06:00 | 2018-08-12T04:10:24 | C++ | UTF-8 | C++ | false | false | 38 | cpp | eve.cpp | #include "stdafx.h"
#include "Eve.h"
|
adae32cb6f95d7feb9bd319a0379fb0338f5f1aa | 091afb7001e86146209397ea362da70ffd63a916 | /inst/include/nt2/combinatorial/include/functions/lcm.hpp | e93384ec91f77fc3c08312780bb264ede98f245c | [] | no_license | RcppCore/RcppNT2 | f156b58c08863243f259d1e609c9a7a8cf669990 | cd7e548daa2d679b6ccebe19744b9a36f1e9139c | refs/heads/master | 2021-01-10T16:15:16.861239 | 2016-02-02T22:18:25 | 2016-02-02T22:18:25 | 50,460,545 | 15 | 1 | null | 2019-11-15T22:08:50 | 2016-01-26T21:29:34 | C++ | UTF-8 | C++ | false | false | 291 | hpp | lcm.hpp | #ifndef NT2_COMBINATORIAL_INCLUDE_FUNCTIONS_LCM_HPP_INCLUDED
#define NT2_COMBINATORIAL_INCLUDE_FUNCTIONS_LCM_HPP_INCLUDED
#include <nt2/combinatorial/functions/lcm.hpp>
#include <nt2/combinatorial/functions/scalar/lcm.hpp>
#include <nt2/combinatorial/functions/simd/common/lcm.hpp>
#endif
|
e33f4526df2963bc0ffd9124fe1112c2a1e0b1eb | 27ce64e19cd4c3f1da8afaf0f9f93dfe0d5880b8 | /Source/Plugins/NeuralUDP/NeuralUDP.h | e190863497a87a3bce0bbe5facc669bdf20408c8 | [] | no_license | jthermiz/plugin-GUI | 893a631dbff99e95d5c19fe9fb57d516d7497de3 | 360f31ec7a9bf9a475cf05af5123f9926d4c492a | refs/heads/master | 2021-09-06T06:04:36.826253 | 2018-02-03T00:51:11 | 2018-02-03T00:51:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,706 | h | NeuralUDP.h | /*
------------------------------------------------------------------
This file is part of the Open Ephys GUI
Copyright (C) 2016 Open Ephys
------------------------------------------------------------------
This program is free software: you can redistribute it and/or modify
it under the term... |
64d1c93fb521f320ae11609bfce22b7616956ab0 | 81c56177e2f42aa3c876f9487a1f5ec3c6755e6b | /learn_open_gl/components/vis_normal_renderer.cpp | 96d4b89c3c32f65ba05ad73131e99a8f4b084dbb | [] | no_license | bpinzone/LearnOpenGL | db4a669bdd894aaa2bd19bfa3819880084c52029 | e87e1445b3c18270ca5de400e41cb8b44cea9cd2 | refs/heads/master | 2023-01-12T07:37:09.069605 | 2020-11-04T05:45:26 | 2020-11-04T05:45:26 | 239,866,449 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 807 | cpp | vis_normal_renderer.cpp | #include "vis_normal_renderer.h"
#include "game_object.h"
#include "transform.h"
using std::shared_ptr;
using std::make_shared;
Vis_normal_renderer::Vis_normal_renderer(shared_ptr<Model> model_in)
: Model_renderer{model_in}, material{model_in->get_material()}{
}
void Vis_normal_renderer::update() {
static... |
3e864e8ad2a4d14df060c3facf3654793a010556 | a799a6350a3a3398cd4d301e0252f32b21ebc0d5 | /Design/wizardDesignVariables.h | 30fe8c410524e314e410609c9af6eb23720b86ab | [] | no_license | winstic/AntennaLDO | e4a50f579b9c98b3d86735c26df87482c90dad0c | 21b9d8f5c0292fa83b5a5977d79d1f57176548b8 | refs/heads/master | 2021-01-24T08:28:39.150166 | 2017-02-21T13:34:17 | 2017-02-21T13:34:17 | 69,466,466 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,431 | h | wizardDesignVariables.h | #ifndef WIZARDDESIGNVARIABLES_H
#define WIZARDDESIGNVARIABLES_H
#include <QtWidgets>
#include <QWizardPage>
#include <QVector>
#include "../Global/global.h"
#include "../Global/macrodefined.h"
#include "../Utility/sqliteManage.h"
#include "../Utility/parsejson.h"
class wizardDesignVariables : public QWizardPage{
... |
9880384eb882e6b52478435521a72b0ea6abb042 | f5e6eff638593cd3e936fc2f66ac0ce386bb163a | /src/Live Archive/6821.cpp | 58a559628142375db8cceb58475a9d4862b38339 | [] | no_license | DunittMonagas/competitive-programming | b08030882976b30b25f538eda48b8038b1f7e65c | 885dacb2e992db90982c599f0d650492bf855117 | refs/heads/master | 2020-12-21T13:06:20.049690 | 2020-08-28T12:20:51 | 2020-08-28T12:20:51 | 236,438,846 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 610 | cpp | 6821.cpp |
/*
*****************************************************************
* PROBLEMA *
*****************************************************************
* Live Archive 6821 - Automated Checking Machine *
****************************************************... |
5937b635cc0813f4e3dc3d24bc1efa9c68df0b89 | 01fb3f611668b3f164cf40acf4478d0780549312 | /src/Process.cpp | fb6da9b09c03f32eeaced131cde4cc0b2332a327 | [
"MIT"
] | permissive | caiomcg/OS-SchedulingSimulation | fa2d4d90869ad13920309542e5e410b444df4402 | e4dcac4db5013492b05741e0aabf9c9a87602418 | refs/heads/master | 2020-12-28T14:45:49.792765 | 2016-10-04T18:43:11 | 2016-10-04T18:43:11 | 68,137,791 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 707 | cpp | Process.cpp | #include "../include/Process.h"
Process::Process(unsigned int arrival, unsigned int span, unsigned int programCounter) : _arrival(arrival), _span(span), _programCounter(programCounter), _run(true) {}
Process::~Process(){}
unsigned int Process::getArrivalTime() const {
return _arrival; // Return the process arrival t... |
d9dbdcbb87ae092c61dcc02b67a98ee207fbfa76 | da943359d986193b616af23015b61f39af842f23 | /dynamic_programming/triple_step.h | 12fc02e3fe53e10d981018ca1c49d6e849ec71b7 | [] | no_license | mkozel92/algos_cpp | 17ea7ee920bcca9502144f3cb354bb7b249b2c1e | 0f844299be43a4ce192cfafb94508d76392be61d | refs/heads/master | 2020-05-26T06:59:36.360708 | 2019-08-05T08:21:38 | 2019-08-05T08:21:38 | 188,142,180 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 685 | h | triple_step.h | #ifndef ALGOS_DYNAMIC_PROGRAMMING_TROPLE_STEP_H_
#define ALGOS_DYNAMIC_PROGRAMMING_TROPLE_STEP_H_
#include<array>
template <int N>
int GetPrevious(const std::array<int, N> &an_array, int i){
if(i < 0)
return 0;
return an_array[i];
}
/**
* @brief get num of ways to climb N steps going 1,2, or 3 steps at tim... |
47cbb97467f64ca4763019c81995696ba7b0a128 | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/dawn/src/tint/ast/for_loop_statement_test.cc | ad9050e5f80ed17f0ba52d081a86db8c2970017d | [
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 3,520 | cc | for_loop_statement_test.cc | // Copyright 2021 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... |
d411282f6efda914de03ac2dae0b956b6a42fbbd | 894bc42721acf8ba6c89f7437fd3ac58af03a643 | /Halite/Voltage.hpp | 2210219d2664593081ff58110fb148cb3060259d | [] | no_license | forked-from-1kasper/halite2 | cfa474b81f1d026161e595f4671f0695b8d7295a | f3012fe531928f63fa670ee7bc88d82971fe9915 | refs/heads/master | 2023-07-12T05:33:22.758169 | 2021-08-17T17:54:41 | 2021-08-17T17:54:41 | 395,923,854 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 168 | hpp | Voltage.hpp | #pragma once
#include "Component.hpp"
struct Voltage : Component<2, 1>
{
double v;
Voltage(double v, int l0, int l1);
void stamp(IMNASystem & m) final;
}; |
14843d0e0275e343d858e5ad2fe9c67988aea2d5 | 859f82e7483e7b7eca7290a01bd6abb37ed08471 | /src/challenge1.cpp | b20cb8d8e6fe06c67c1c5c5d38657611f0adc558 | [] | no_license | ahmadrazavi/insightdata_challenge1 | 9098202e443a8c7def9b4d24197f77f35605be7e | 803877bdc0e6e56adecaeb96c47e5e40f5a665f0 | refs/heads/master | 2016-09-06T08:45:33.974467 | 2015-07-11T04:09:37 | 2015-07-11T04:09:37 | 38,911,149 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,471 | cpp | challenge1.cpp | #include "stdafx.h"
#include <sstream>
#include <fstream>
#include <vector>
using namespace std;
//input and output files
ofstream output1;
ofstream output2;
ifstream inputfile;
//binary search tree for holding the whole words.
typedef struct word1{
string word;
int word_count;
} word1;
//binary search tree for h... |
2466cd65a42a64926fe723ad93ab1817c3f5a7f9 | e53074d668e8eea241e2afa5aa42890bedb78cd9 | /Project1/Project1/Source/Engine/GraphicsSystem/HardwareBuffer/ConstantBuffer.cpp | 2ae4919e9b9082c366e0006aae837373b4fb7a63 | [] | no_license | ReU1107/Project1 | 9f1e2ab128744c321f56219679cdb2a33072dd9f | dfae75c51981c29a5a578b1e754524476d1a6809 | refs/heads/master | 2020-12-26T19:13:20.864694 | 2020-10-29T11:51:13 | 2020-10-29T11:51:13 | 237,610,628 | 1 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,508 | cpp | ConstantBuffer.cpp | #include "ConstantBuffer.h"
#include "../Description/BufferDesc.h"
#include "../D3D12.h"
#include "../D3D12/D3D12Device.h"
#include "../Enumerations/BufferType.h"
#include "../Interface/IResource.h"
#include "ResourceDescriptor.h"
#include "ResourceView.h"
#include "../Enumerations/ResourceViewType.h"
#include "../../... |
3776b4fa22d1948e8e60ddc1d27e24698d0efade | 9b19a7eddb84cefebe3872acdfd9aeacca453e73 | /bk_planner/src/feeder_thread.cpp | 4f5953001867c2e75478cf2dca173d724aa76f8c | [] | no_license | bk8190/bk_nav | 8cdd7002e77bda0c3b346e881b103bc94b47f30b | 867af36054d91d069973115ad2fa38e95c0490fe | refs/heads/master | 2016-09-15T17:26:24.414660 | 2012-07-18T18:52:13 | 2012-07-18T18:52:13 | 4,787,996 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 12,748 | cpp | feeder_thread.cpp | #include <bk_planner/bk_planner.h>
namespace bk_planner {
BKFeederThread::BKFeederThread(BKPlanner* parent):
parent_ (parent),
client_ ("execute_path", true)
{
parent_->priv_nh_.param("planning/segs_to_trail" , segs_to_trail_ , 4);
parent_->priv_nh_.param("planning/feeder_loop_rate", loop_rate_ , 5.0);
ROS... |
1453a584c65330570e4fb800a0e1f1518f3cb0f6 | 752ddbb1f71ebfafd1554ba3bf54a15a870cb74f | /CUI/include/cui/compile_time/value_data.hpp | 19235c07ed2eba48508114826ef86af8b200f7ae | [
"MIT"
] | permissive | mscofield0/cui-sfml | d224d67dab277bbe1189d1bee0b6dd80dbf312a3 | f70dfdf977958eb2b37162d474873c75df4dadc5 | refs/heads/master | 2023-04-23T12:53:08.178623 | 2021-05-08T14:17:22 | 2021-05-08T14:17:22 | 315,945,741 | 0 | 0 | MIT | 2021-05-08T09:55:15 | 2020-11-25T13:20:51 | C++ | UTF-8 | C++ | false | false | 5,046 | hpp | value_data.hpp | #ifndef CUI_CT_VALUE_DATA_HPP
#define CUI_CT_VALUE_DATA_HPP
#include <compile_time/string/string_view.hpp>
#include <data_types/color.hpp>
#include <data_types/data_types.hpp>
#include <data_types/instruction.hpp>
#include <data_types/vec.hpp>
namespace cui::ct {
struct Empty
{};
class ValueData
{
public:
constexp... |
b1c35aa8a0f30d2ca06b2b475ef1d21005236565 | 20f9a139bf9298291abc8a6d307ef1df82692e66 | /hello/world.h | 999cfe338e40c04086abe2fe64f59354d556fe16 | [] | no_license | Spenser309/hello_doxyrest | d3d96fc5f6c5e100755da305c22e1e9896d64355 | b36d2b0b65309bd21254a46642107db4208085b7 | refs/heads/master | 2022-12-04T12:50:51.305366 | 2020-08-17T23:57:36 | 2020-08-17T23:59:27 | 288,304,870 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 162 | h | world.h | #include <iostream>
#include "bar.h"
#pragma once
namespace hello {
class world {
Bar myBar;
public:
void print();
Bar getBar();
};
}
|
5269b69be57e02e17218f54493b8b22f488fe8a6 | 070519a77f13316973ffb384d49f8410fcbb4cff | /lib/VolumeViz/render/2D/Cvr2DTexPage.h | 04150c7c695cbee29c185c4b5236bca18ec80ea6 | [
"BSD-3-Clause"
] | permissive | coin3d/simvoleon | 3e80943e54844fe982cc3ecc70b323149077fc14 | 778ee86c3fa3f2aec0fafd61e4595d8f3123b315 | refs/heads/master | 2023-02-19T05:29:30.133625 | 2023-02-12T21:20:29 | 2023-02-12T21:20:29 | 230,170,555 | 6 | 7 | BSD-3-Clause | 2023-02-12T21:20:30 | 2019-12-26T00:54:50 | C++ | UTF-8 | C++ | false | false | 3,079 | h | Cvr2DTexPage.h | #ifndef SIMVOLEON_CVR2DTEXPAGE_H
#define SIMVOLEON_CVR2DTEXPAGE_H
/**************************************************************************\
* Copyright (c) Kongsberg Oil & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are perm... |
8209b77c3985a2e29f98a55949c3146f96921b44 | 833d41e7fb8dd2a21e20701b6bcf82ae8825f798 | /shortPath/mst1.cpp | 572e5c50f289557eaaa0cfbf8bb9139b9ef98b08 | [] | no_license | RocKIn0X/probSolve2016 | 9f0a938ad8f00fd3b67195f4bb0c6fe8467969c8 | 2b1d0f51bd5bb3a6af8a1dc95de14eaaee3b65fe | refs/heads/master | 2021-01-20T07:56:11.028795 | 2017-08-09T22:14:41 | 2017-08-09T22:14:41 | 80,285,939 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,525 | cpp | mst1.cpp | #include <cstdio>
#include <queue>
using namespace std;
typedef int valueType;
typedef pair<int,int> node_pair;
typedef pair<int,node_pair> w_pair;
struct Node {
valueType val;
Node* parent;
Node(valueType val, Node* parent = 0)
: val(val), parent(parent) {}
};
struct cmplass {
bool operator()(w_pair a... |
abd97742edb456b912c0488e852895b45e03d512 | 8c843228d1be0f636f712dd2b83e1ff25e765bd5 | /Raven.ANPR.Recognizer/recognizer/plate_finder_by_geometry.hpp | 70a6e1c2cfa0aa1b1b2525cce68269d6dbfb7868 | [
"MIT"
] | permissive | myarichuk/Raven.ANPR | cd632904097a91f2405a40e37ef19a76a397a176 | f6c79d7af6f43f69b04ccdc8ef1fc7bd821e9222 | refs/heads/master | 2020-06-15T02:01:13.523018 | 2019-10-23T14:47:35 | 2019-10-23T14:47:35 | 195,180,622 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,172 | hpp | plate_finder_by_geometry.hpp | #ifndef PLATE_FINDER_BY_GEOMETRY_HPP
#define PLATE_FINDER_BY_GEOMETRY_HPP
#include "base_plate_finder_strategy.hpp"
#include <opencv2/imgcodecs.hpp>
#include <map>
#include "if_char.hpp"
#include <corecrt_math_defines.h>
#include "possible_plate.hpp"
#include "plate_finder_by_rectangle.hpp"
//credit: code adapted with... |
443b1ff257642a1eeb2b8f3f32a5c03f783a4db9 | 39c56722d9330a472e4930db3eed20f30670ce8d | /modules/Jupiter/src/JupiterError-win32.cpp | 244c797fb7665219d83550f0ac0f1df4ddba4c28 | [] | no_license | Ingener74/Jupiter | 645941763caad040c895215da90e6678532c0dc8 | 8e437e772bbf330ea2e3e59f2dc322460f9532cb | refs/heads/master | 2021-01-15T15:45:45.072800 | 2016-09-09T12:47:08 | 2016-09-09T12:47:08 | 21,035,866 | 4 | 2 | null | 2014-12-18T19:17:02 | 2014-06-20T11:36:58 | C++ | UTF-8 | C++ | false | false | 263 | cpp | JupiterError-win32.cpp | /*
* JupiterError-win32.cpp
*
* Created on: Apr 30, 2015
* Author: pavel
*/
#include "Jupiter/JupiterError.h"
namespace jupiter {
using namespace std;
string JupiterError::backtrace() {
return {};
}
} // namespace jupiter
|
de5cbb2824676b2565819065df340a7e95e4ad36 | fd88bf8bf77affc30af4fbd9b2e3916bdaa0789b | /Utilities/AAFAnalyzer/EPAnalyzerBase/EPTypedVisitor.h | d693042ed58041c3441451247b99b53dde798ccf | [] | no_license | jhliberty/AAF | 6e6a7d898d42e6e91690c76afbc4cf581cc716fc | af8c9d43461ab556bd6cf8d98b0f001eb7b87cfe | refs/heads/master | 2021-01-08T11:37:10.299319 | 2016-08-16T02:49:39 | 2016-08-16T02:49:39 | 65,782,219 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,493 | h | EPTypedVisitor.h | //=---------------------------------------------------------------------=
//
// $Id$ $Name$
//
// The contents of this file are subject to the AAF SDK Public Source
// License Agreement Version 2.0 (the "License"); You may not use this
// file except in compliance with the License. The License is available
// in AAFSD... |
13fa8d7422874b519c60aa58300812478616fa87 | a6275d696a94fbaa7a403c0c661724d1b0512440 | /src/renderer/camera.h | 20af4aca87d80533e448fc322a642ac1b2876fc2 | [
"MIT"
] | permissive | juha-hovi/Jam3D | 214ed5604a97353719d2061a171eaad1da990852 | 71b7d10c9cfccb7a376ae9d1753277e0ed45f853 | refs/heads/master | 2023-03-26T14:24:01.389278 | 2021-03-29T01:06:30 | 2021-03-29T01:06:30 | 198,353,895 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 741 | h | camera.h | #pragma once
#include "glm/glm.hpp"
#include "glm/gtc/matrix_transform.hpp"
#include "vec2.h"
#include "glwindow.h"
#include <memory>
namespace Jam3D {
class Camera
{
public:
struct CameraBaseProperties {
float pitch;
float yaw;
glm::vec3 position;
glm::vec3 target;
float near;
float far;
Jam3D::Vec... |
cd3507aef0333983135080eab6dcf99829d45086 | 7d38055e882b50e6418895f3f065eccd1d3974d4 | /C++ Primer Plus Exercises/Chapter 08/807.cpp | 64905d9c4e4a55e5683f7ad830139d3ca7e3b6ae | [] | no_license | anthonyalfimov/Cpp-Primer-Plus-Exercises | 1e3ccf536be6fd75ad6b4df30a82b84deeba641b | 3bfa0e0c6c10fc526330df21dec2027b71c131c9 | refs/heads/master | 2021-06-10T17:22:24.369469 | 2021-04-08T18:44:21 | 2021-04-08T18:44:21 | 155,588,264 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,865 | cpp | 807.cpp | //
// 807.cpp
// C++ Primer Plus Exercises
//
// Created by Anthony on 30/10/2018.
// Copyright © 2018 Anthony. All rights reserved.
//
#include <iostream>
namespace
{
// Struct name size
constexpr int stringSize {50};
// Template A: array elements are data
template <typename T>
T sumArray(T arr[], ... |
3401aa005191c0b6b07a64be5fcd4677c6b17022 | aec16b0bf924013d3e1c600e88b9b49b2e502e4d | /ui/platform/linux/ui_window_linux.cpp | 8e2a83af43c801465ed910e176d0416b53d6bb57 | [] | no_license | ilya-fedin/lib_ui-1 | 5562aa53812c9a34f6524f9aecf88ae2d121e46b | 5429c4c53e646e2716a2fb9a6d1ac45d0e12b082 | refs/heads/master | 2023-08-25T21:08:29.114082 | 2020-06-04T09:21:39 | 2020-06-04T09:21:51 | 234,524,280 | 1 | 1 | null | 2020-01-17T10:17:00 | 2020-01-17T10:16:59 | null | UTF-8 | C++ | false | false | 473 | cpp | ui_window_linux.cpp | // This file is part of Desktop App Toolkit,
// a set of libraries for developing nice desktop applications.
//
// For license and copyright information please follow this link:
// https://github.com/desktop-app/legal/blob/master/LEGAL
//
#include "ui/platform/linux/ui_window_linux.h"
namespace Ui {
namespace Platform... |
3b0d270e01edc0c3bffbd8f246415434ba482228 | 43861c7eed575d0f19d4aae572797982aff8e05b | /sketch_progressive_fade_original/sketch_progressive_fade_original.ino | 9f4313a2a762a9edb40fb2183df96e7a60d50941 | [] | no_license | toukea/Arduino-projects | f7ff7403bef2584144925522675532d8f5dc1fc6 | 5954738a910eaf8170659f255a87fc4265a62f29 | refs/heads/master | 2021-01-19T14:01:33.627645 | 2017-10-10T21:40:16 | 2017-10-10T21:40:16 | 100,879,027 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 418 | ino | sketch_progressive_fade_original.ino | int ledPower = 255;
int direct = -1;
void setup() {
// put your setup code here, to run once:
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
analogWrite(LED_BUILTIN, ledPower);
delay(2000);
ledPower = ledPower + (direct * 50);
if (ledPower <= 0) {
ledPowe... |
ceb8f253f4b411fd87dfa099c891dc8a8e45955f | 5121ce4ab6e718399996bdc70f0d3af52f2a26ac | /src/text.h | deae416babc668e85359a7176cdb5ac538fcb8f8 | [] | no_license | jdmichaud/ggrep | d38c2109bd054d86a22d8fed50848dbfa05a1ba6 | 8300a8271a492d27254fa35cf346f183947ffbb2 | refs/heads/master | 2021-01-10T19:23:02.022931 | 2018-04-04T14:38:28 | 2018-04-04T14:38:28 | 41,168,385 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,856 | h | text.h | /*! \brief Define a object able to get character commands
*
*/
#include <cctype>
#include "types.h"
#include "logmacros.h"
/*
* An interface defining an object able to be edited as text by Commands
*/
class IText {
public:
virtual void set(std::string s) = 0;
virtual void insert(char c) = 0;
virtual void in... |
f035dd46a1c2a96e09779b2ac5818a0a9963cb2e | fc7622cb9771c30d79a234612afa77222e80f7ad | /ge/rendering/include/ge/Window.h | 935cce65aa980b424d799b6c0ac028aab93229ee | [] | no_license | akoaysigod/sdlGameEngine | 2c7f99ee12c8e04bb4d586a14375bdc06dae39b8 | 2a1f48cb0201aa17a9b247f4a951d071fbc90aa8 | refs/heads/master | 2020-03-27T07:25:45.293729 | 2019-06-20T19:22:45 | 2019-06-20T19:22:45 | 146,190,590 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 303 | h | Window.h | #pragma once
#include <SDL.h>
#include <memory>
#include <string>
namespace ge {
class Window {
public:
Window(const std::string &name, int positionX, int positionY, int width, int height);
SDL_Window* getCPtr() const;
private:
std::unique_ptr<SDL_Window, void(*)(SDL_Window *)> sdlWindow;
};
}
|
5fc16bcdc14edf9e90275ed2ef4d684a6da93bd9 | aca83c63b85c5f3f76f917a978b87a11b171c16f | /src/EventStream.h | 603805b0f330337771923bb84c2e7552fb4a5d94 | [] | no_license | amecky/color_zone | a877dc2881e6a8ccef1787c20b3c9e95b2cb50b4 | 28141cd5584db35643992b53422a376bf69aa078 | refs/heads/master | 2020-12-24T08:22:23.866985 | 2018-03-11T18:29:11 | 2018-03-11T18:29:11 | 21,516,418 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 724 | h | EventStream.h | #pragma once
#include <stdint.h>
#include <vector>
const int EVENT_HEADER_SIZE = 12;
namespace ds {
class EventStream {
struct EventHeader {
uint32_t id;
uint32_t type;
size_t size;
};
public:
EventStream();
virtual ~EventStream();
void reset();
void add(uint32_t type);
void add(uint32_t t... |
e701d0570bf4a4c4ae91eed84817a1c03706d159 | 30dad5781975908b30fcf7cba4ddaf5d9fc9ba58 | /01.hello-world/HelloWorld/HelloWorld/bin/printf.cpp | d30e5e2cdbe7bc5adad713cdfdf6a37c38443939 | [] | no_license | likhitanuraag/Learning-C-Plus | 08eb94c58f4fe6e2ee74da496b4c86f8bbfcb7c8 | db88f15e506a8c64034011496369534016b0ec81 | refs/heads/main | 2023-04-08T02:08:49.943718 | 2021-04-07T08:07:58 | 2021-04-07T08:07:58 | 340,676,676 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 107 | cpp | printf.cpp | #include <iostream>
void Printf(const char* printstatement) {
std::cout << printstatement << std::endl;
} |
d1751bc0d73e2d0883f723907e8850c34eb52e2d | dd83262926063813e0a7c5d941ea623ec07100eb | /uplay_src/Exports/UplayOverlay.hpp | 078725c5b9f0d4748396a12a197ec717f607cca1 | [] | no_license | ReHamster/UPlayEmulator | b4089cd2a5887a38c7775ac4d765d631303b54ca | d3278e57a9ca90f14a2832dad5db11e11f26131a | refs/heads/master | 2023-06-29T07:16:03.915747 | 2021-08-01T19:42:23 | 2021-08-01T19:42:23 | 391,418,847 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,255 | hpp | UplayOverlay.hpp | #pragma once
#include "pch.h"
#include "Macro.hpp"
#include "Types/UplayOverlapped.hpp"
namespace UplayR1Loader
{
// ReSharper disable CppInconsistentNaming
UPLAY_API inline long UPLAY_FUNC UPLAY_OVERLAY_Show(
const int overlaySection, const UplayOverlapped *overlapped)
{
LOGD << fmt::format("OverlaySection: ... |
9ba5b5c32c0b57f45f4377bbc410a6ef13ba4e35 | c6c0ee46954bc95b796461322c68d640c2b34dcd | /Geometry/Point2D.cpp | f94e6f359848799cceca02fe276a5cf304d5d017 | [] | no_license | unknownspaces/BaseMathLib | d72e9c9adb003586631f2e3ae266add0a719c0cf | 8f68839bd0f6bb7cf6c9160513660f7e48ffb86e | refs/heads/main | 2023-06-17T20:14:11.673440 | 2021-07-14T11:56:05 | 2021-07-14T11:56:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 680 | cpp | Point2D.cpp | #include "Point2D.h"
#include <cmath>
Point2D::Point2D() { x = 0, y = 0; }
Point2D::Point2D(Point2D& p) {
x = p.GetX();
y = p.GetY();
}
Point2D::Point2D(double valX, double valY) { x = valX, y = valY; }
double Point2D::GetX() { return x; }
double Point2D::GetY() { return y; }
void Point2D::SetX(double newX)... |
44ee8d4408c64546fa9affb7365b1d6bf6471997 | cfb85a817af084a526f1b6531e20d5c42f048918 | /tests/geom/Line_tests.cpp | 1b71a41944ec626cbe25ff6d7c923d3d5fa4b2ed | [] | no_license | theck01/gin | ab783f33f6f7491ec3a5097dcabcd5b49a991d86 | 236e0e9fc684bb5b5cf197f022d3ec7a2ad7422d | refs/heads/master | 2021-01-23T20:13:40.824782 | 2013-10-27T15:52:59 | 2013-10-27T15:52:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,956 | cpp | Line_tests.cpp | #include "../../include/geom/Constants.hpp"
#include "../../include/geom/Line.hpp"
int main(){
geom::Line l1, l2, l3, l4;
geom::Point p, result;
// setup test lines
l1.set(-1,-1,1,1);
l2.set(1,0,0,1);
l3.set(-0.25,-1,-0.25,1);
l4.set(-INFINITY, 0, 3, 0);
// test slope
assert(fabs(l1.slope() - 1) ... |
3b57f27e01599c87d101d5378e9b5ee3360ee6d2 | ec890e6479050f160f25978cafe5a7ab95d8269c | /SolidGroup/Viewer/AutomaticThresholdPanel.cpp | 1aff392758c7fd84f6df3e4a524671d99f34d95a | [] | no_license | Andrew90/1630_SolidGroup | 5485fb25fc4e5b0d5de3e1e51fded01f1e7be20d | e838f8acf1591475aa1a69d2c3b2c81022fdee19 | refs/heads/master | 2021-05-04T09:15:22.395898 | 2016-10-11T11:25:50 | 2016-10-11T11:25:50 | 70,449,053 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 3,625 | cpp | AutomaticThresholdPanel.cpp | #include "stdafx.h"
#include "AutomaticThresholdPanel.h"
#include <stdio.h>
#include "EmptyWindow.h"
#include "AppBase.h"
#include "templates.hpp"
#include "MenuApi.h"
#include "Pass.h"
#include "AutomaticThresholdsWindow.h"
#include "..\GlobalHandlers\GlobalHandlers.h"
#include "DebugMess.h"
//----------------------... |
79480b3b6732cfd77f539a1491f9fbf713d33cb0 | 95065f3e76bc106132983c60acda58bd5c698dc4 | /examples/tutorial/step16dv.h | 415ac3184b33b6af7d84cd3ec4200e46ea14f3c2 | [
"Zlib"
] | permissive | pierrebestwork/owl642 | f2f536d40a43767d0e345ee0984ae636882533c7 | 3f4aa9ec0febc52acd3523f0b6ba063d5e388365 | refs/heads/master | 2023-02-09T00:14:03.086683 | 2020-09-09T11:08:07 | 2020-09-09T11:08:07 | 326,663,722 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,355 | h | step16dv.h | //----------------------------------------------------------------------------
// ObjectWindows - (C) Copyright 1994 by Borland International
// Tutorial application -- step16dv.h
// Automation Server example
//----------------------------------------------------------------------------
#if !defined(STEP16DV_H)
#de... |
ab011f01fd0d46b51739eb3bf9e572600a7dbf99 | 393d27643ea0824d6b62c29b4961785d11b0f84f | /Sources/helpScene.cpp | 8374554a18375334b477ee619ab6da193114d3d5 | [] | no_license | ZOELIU2333/hungrysnake | 04cc7ccb9d2fe42ee7c2ca3f3f6435fa1adafee2 | 37359019a8e2eef60f91fa94f6d62425b0bd17f7 | refs/heads/master | 2020-07-14T21:51:19.967314 | 2019-08-30T15:45:39 | 2019-08-30T15:45:39 | 205,371,431 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 979 | cpp | helpScene.cpp | #include"helpScene.h"
#include"MainMenu.h"
Scene* help::createScene()
{
auto scene = Scene::create();
auto layer = help::create();
scene->addChild(layer);
return scene;
}
bool help::init()
{
if (!Layer::init())
{
return false;
}
auto size = Director::getInstance()->getWinSize();
//添加背景
au... |
40dd15b90b7e491540097eddc6011c294d360233 | f9b5cb1f18283d9688ae75299605e13e76a4c49c | /TrimmedFastMCD/Utils.h | 6c5fa7316c44fbaccbdef31d1c466e7a2624d616 | [] | no_license | ivranckx/TrimmedFastMCD | 8c64a2371ae307d9ccd3ad9495b7bc68e82475ac | 98d00117e50a2d59f14071577a12491e34f94862 | refs/heads/master | 2020-03-30T02:37:38.211835 | 2018-09-27T19:48:16 | 2018-09-27T19:48:16 | 150,639,933 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 542 | h | Utils.h | #pragma once
#include <chrono>
#include <ctime>
namespace Utils
{
struct Timer
{
Timer() : m_startTime(std::chrono::high_resolution_clock::now()) {};
void startTimer()
{
m_startTime = std::chrono::high_resolution_clock::now();
}
double stoptimer()
{
auto endTime = std::chrono::high_resolution_... |
c7100d298c399d163333732df63c24bf134f6aa5 | b18ce5ef7f2d7a08ad10ff31b089f81de92e65fb | /src/gamepad_visualizer.cpp | acd6403263da0a112d425bc458f467deca7d20b8 | [] | no_license | syxolk/gamepad_visualizer | 059e9877dbc65efac4ce5455649151f9f8f71665 | f6b94ae05b0cecbee2e87fb2ed966844b78eebfb | refs/heads/master | 2021-01-20T03:47:43.347224 | 2015-12-04T22:42:35 | 2015-12-04T22:42:35 | 34,851,987 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,727 | cpp | gamepad_visualizer.cpp | #include <gamepad_visualizer.h>
#include <lms/imaging/graphics.h>
#include <gamepad/gamepad_types.h>
#include <lms/extra/time.h>
bool GamepadVisualizer::initialize() {
gamepad = readChannel<Gamepad>("GAMEPAD");
imagePtr = writeChannel<lms::imaging::Image>("IMAGE");
return true;
}
bool GamepadVisualizer::... |
08d38952e0fe88084b326152a271626e98027ee1 | b02a49427c8350e3bd8d89ba1a3c0e0f3d5a6c50 | /Other/CRTP/CRTP/Legacy.h | c087b1feabd6ffe68994443818a548ec68838e8a | [] | no_license | pijastrzebski/DesignPatternsBattlefield | fae66196799cbf632711a6d2772024274cdb0f99 | 316823e1f767b8d3eb40f0e864316f55cfce3f01 | refs/heads/master | 2020-04-24T10:43:54.564372 | 2019-02-22T13:24:41 | 2019-02-22T13:24:41 | 171,903,669 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 536 | h | Legacy.h | #pragma once
#include <iostream>
template<typename T>
class Legacy
{
public:
void methodWithCrazyWeirdoLogic()
{
T& testLegacy = static_cast<T&>(*this);
testLegacy.crazyWeirdoLogic();
}
void crazyWeirdoLogic()
{
std::cout << "Crazy weirdo logic\n";
}
... |
96b7fdafad2093458e3a5b04bf795e5e0182a50c | 354d1739267811a15783199d6e14dee173d8d60c | /fastspi_avr.h | af116cabb7e9ab5bab931e75722615e2151b7459 | [
"MIT"
] | permissive | 301shevchukanton/LED-strip-for-LIFX-app | 742b07c15244429ec75a27e4730223b9b70184e6 | 1177965a482fd9b90861ac657b65cc63d71ee67f | refs/heads/master | 2021-01-13T00:37:35.025320 | 2015-11-04T22:06:31 | 2015-11-04T22:06:31 | 45,488,256 | 19 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,978 | h | fastspi_avr.h | #ifndef __INC_FASTSPI_AVR_H
#define __INC_FASTSPI_AVR_H
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Hardware SPI support using USART registers and friends
//
// TODO: Complete/test implementation - right now this doesn't work
... |
ffd4a9a5059ce44e7c009a473faaf65615898a46 | a37050d16766cd7e9c36968e4eb437749466c039 | /router/node_config.cpp | d61f6ce61a709975d379cd6a40ed0821f2171e13 | [] | no_license | GalacticExchange/reliable_broadcast | 64b9875463c21b3c831e1bc145df6072cedca490 | 1603f7a7731ed7778c4fce340d8283aec8d44488 | refs/heads/master | 2021-09-13T05:10:41.953977 | 2018-04-25T10:06:54 | 2018-04-25T10:06:54 | 118,768,820 | 2 | 0 | null | 2018-03-09T13:21:52 | 2018-01-24T13:26:19 | Java | UTF-8 | C++ | false | false | 1,532 | cpp | node_config.cpp | #include "node_config.h"
using namespace std;
NodeConfig::NodeConfig(const std::string &configPath) {
boost::property_tree::ptree json_config;
json_config = parseJson(const_cast<string &>(configPath));
initFields(json_config);
}
boost::property_tree::ptree NodeConfig::parseJson(std::string &confPath) {
... |
2f52f5b8308e9740bdc2ad5d44b808fe471882e3 | 5bd9dc5dd80d74c3a1df6383c6bc6cf67b046136 | /include/osquery/logger.h | f283fbdd0574834f6d518f6155cfaba1a13b22e8 | [
"BSD-3-Clause"
] | permissive | Anubisss/osquery | 09398ab5a02f11127a11284c850d1304b89c2833 | 4425bed23ea40e60df94f9b0d578fd1894bd6bdb | refs/heads/master | 2021-01-22T21:00:23.141071 | 2014-12-16T09:23:05 | 2014-12-16T09:23:05 | 27,306,153 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,311 | h | logger.h | // Copyright 2004-present Facebook. All Rights Reserved.
#pragma once
#include <future>
#include <string>
#include <vector>
#include <glog/logging.h>
#include <osquery/status.h>
#include <osquery/database.h>
namespace osquery {
/**
* @brief A string which represents the default logger receiver
*
* The logger p... |
a45f4f500e235aeb53fd869f7d1c7a459ab3de8d | e2cc28e162f14551f189390c0896b0334b29eaba | /library/source/path_generation.cpp | 695aed55fda721152ed1b272d130d81b62cd9b6e | [
"MIT"
] | permissive | calvin456/intro_derivative_pricing | 3f3cf4f217e93377a7ade9b9a81cd8a8734177a7 | 0841fbc0344bee00044d67977faccfd2098b5887 | refs/heads/master | 2021-01-10T12:59:32.474807 | 2016-12-27T08:53:12 | 2016-12-27T08:53:12 | 46,112,607 | 8 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 527 | cpp | path_generation.cpp | //path_generation.cpp
#include "path_generation.h"
#include <cmath>
#include <algorithm>
using namespace std;
PathGeneration::PathGeneration(shared_ptr<RandomBase> TheGenerator_,
double Spot0_,
double T_,
unsigned long steps_)
:TheGenerator(TheGenerator_), Spot0(Spot0_), T(T_), steps(... |
171ca075dc0c5d1c8dcbb303a0eac7ab10e37643 | 1bd97e35e011a69a0782a401972629ee72ab1f50 | /source/CartesianGrid.hpp | 7bffa5c86ccab50b0439ae1455028202ad0fc957 | [
"BSD-2-Clause"
] | permissive | sgshulman/DGEM | 4c664bc5060ff4c6c0cdfda58c57fb6421d48ee3 | 1b4bddf333c6cbd2250b1574dc42f0955219b4b8 | refs/heads/master | 2022-12-22T04:16:45.589414 | 2022-08-10T12:29:02 | 2022-08-10T12:29:02 | 81,744,767 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,764 | hpp | CartesianGrid.hpp | #ifndef CARTESIAN_GRID_HPP_
#define CARTESIAN_GRID_HPP_
#include "IGrid.hpp"
#include "Predefines.hpp"
#include <cstdint>
#include <memory>
// Cartesian grid
class CartesianGrid : public IGrid
{
public:
CartesianGrid(double xmax, double ymax, double zmax, double kappa,
std::uint32_t ... |
a0dc237810a16ec3d6cf0384d7c57b7a7fc9fcc9 | 2a07d56f2f4f9be082279bf4ef4c327e2de4855b | /plugin/nfc_auth/nfc_auth.cc | 36a90275081bd014b548c7087a60edd5973f115f | [] | no_license | hghwng/naive | 7eb405228efd3de7d51b9b1948c83d9515814898 | ecb9dc5469ab8f4888da446ca09f0fa3cefae861 | refs/heads/master | 2021-01-10T10:03:33.524540 | 2015-11-19T12:28:24 | 2015-11-19T12:28:24 | 46,114,423 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,464 | cc | nfc_auth.cc | #include <err.h>
#include <inttypes.h>
#include <signal.h>
#include <cstdio>
#include <cstddef>
#include <cstdlib>
#include <cstring>
#include <nfc/nfc.h>
#include <nfc/nfc-types.h>
#include <string>
#include <plg_api.h>
using namespace std;
static nfc_device *pnd = NULL;
static nfc_context *context;
static void s... |
e1a8eb8a6e4e1c8a02fab314978a2e01a33cf046 | 00c6489e0aadbde32b3f6b73641e3688c89cce2a | /Training Group/Tam giac Pascal/pascal_tri.cpp | b74fc902d7a32cf6bc20c828b6746a45a0570448 | [] | no_license | SangMinhTruong/Homework | c58bd96eeefdbba3c3cfb964720af226fad6951f | 73c6fa8f91df11c0cb6fde03ff69c69f99716d39 | refs/heads/master | 2021-07-04T03:35:50.173582 | 2017-09-23T13:23:41 | 2017-09-23T13:23:41 | 104,560,209 | 0 | 0 | null | 2017-09-23T13:23:42 | 2017-09-23T10:39:48 | C++ | UTF-8 | C++ | false | false | 516 | cpp | pascal_tri.cpp | #include <iostream>
#include <conio.h>
using namespace std;
int fact(int n){
if (n == 0)
return 1;
else
return n*fact(n - 1);
}
int tohop(int k, int n){
return fact(n)/(fact(k)*fact(n - k));
}
int main(){
int n;
cout << "Nhap so mu nguyen: ";
cin >> n;
for (int i = 0; i ... |
1f3cdaedf20350c00f47bb8b3867b97efc8b373e | 38f039fdf967d409810bdaccb9d6991bf406c9be | /MouseCraft/UI/ImageComponent.cpp | 1183256bcdcedcb4a1e59f00744b10e9f9e3487e | [] | no_license | BCITTeamOmega/MouseCraft | 5e7bc6b05a1557752f1a841ee10bdf9ea64fca42 | 98fb552ac7bbdf2380d4dbcc0773c1b889c62936 | refs/heads/develop | 2020-04-16T06:24:52.075518 | 2019-05-06T02:33:27 | 2019-05-06T02:33:27 | 165,345,742 | 1 | 4 | null | 2019-05-06T02:33:28 | 2019-01-12T04:23:24 | C | UTF-8 | C++ | false | false | 603 | cpp | ImageComponent.cpp | #include "ImageComponent.h"
ImageComponent::ImageComponent(std::string imagePath, float width, float height, float x, float y) :
UIComponent(width, height, x, y), _imagePath(imagePath) {
//aspectRatio = float(texture.width) / texture.height;
color = Color(1, 1, 1);
}
bool ImageComponent::IsTransparent() ... |
ee408ecc1570b4bfede4897bc1ae00dc9ff4b70a | 3d654642c8ed5a9d3db0936a0df3911ae33c31f5 | /module_06/ex02/main.cpp | 4bc07b9f690fd36bf50eb6ea36698642dade9640 | [] | no_license | cclaude42/piscine_cpp | 1cf7da5f00a4dd24359b441d36cdb6c53f96a42b | 0872cc4d50d378d274c2401b4ebce0be6ca1a73c | refs/heads/master | 2023-05-29T15:37:39.701179 | 2021-06-16T15:35:32 | 2021-06-16T15:35:32 | 254,871,796 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,356 | cpp | main.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: ... |
dfb5291aef9306c82f578a7241d808e2b03d5cf1 | a7053519b6f4b1b6e998dc821b644dd57abc6320 | /ZeroJudge/zoj_e287.cpp | cdce354f84412dc80b84be6bc6d5f5c131da45a2 | [] | no_license | Koios1143/Algorithm-Code-Saved | 97c7360e1928bbea12307524a8562b3f1c72d89d | 38706e0c08750ebdd0384534baa3226f850fb8b7 | refs/heads/master | 2023-02-08T00:33:56.881228 | 2020-12-12T05:09:16 | 2020-12-12T05:09:16 | 297,377,067 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,038 | cpp | zoj_e287.cpp | //By Koios1143
#include<bits/stdc++.h>
#define LL long long
#define IOS ios::sync_with_stdio(false),cin.tie(0),cout.tie(0);
#define pii pair<int,int>
using namespace std;
int n,m,ans=0,arr[105][105],dir[4][2]={{1,0},{0,1},{-1,0},{0,-1}};
bool vis[105][105];
pii start={-1,-1};
bool cango(int x,int y){
if(x<0 ... |
6869827eabd56a2bc8ff7aa2738073eefb8f0065 | 8617517576d969d9977b18fd782c62ce30b89f7a | /SampleProjectQt/Sources/Views/ViewOne.cpp | 8f7bfea0b86274369079c2597c12034836d08165 | [] | no_license | alanomarov/SampleProjectCPP_Qt | b95a5d6796d4bbf2dec60d2d479d6942e54987a7 | a6ebd43fc7dd821f1c3ad74b6f05ecd2a6bb2ec7 | refs/heads/master | 2020-11-29T21:41:09.690618 | 2019-12-30T16:45:03 | 2019-12-30T16:45:03 | 230,221,450 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 44 | cpp | ViewOne.cpp | #include "ViewOne.h"
ViewOne::ViewOne()
{
} |
61c4488b110c02cac87551a9f3747b8a32a8ad20 | c90921a1c631d61daef029b9b28a0752b4fbdfbb | /main/HBridge.h | 52be49f88df6c18023a9beef45bc99cf8b9c554b | [] | no_license | theideasmith/TANC | 75ac2559d6763d9f1c40dd4bdbb74212f530ccbd | 5bf4e17f51211f34d25dcbd7c23ebf565136b8cf | refs/heads/master | 2021-01-18T12:33:54.672440 | 2015-05-28T17:32:03 | 2015-05-28T17:32:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 772 | h | HBridge.h | #ifndef __HBridge__
#define __HBridge__
#ifndef true
#define true 1
#endif
#ifndef false
#define false 0
#endif
//-----------------------|
#define PIN_OFF 0 //|
#define PIN_ON 1 //|
//-----------------------|
#define PIN_FORWARD 0 //|
#define PIN_BACKWARD 1 //|
//-----------------------|
#define PIN_B 1
... |
f351af13e558e15b275be15e4ee3cbf45e7987c7 | 315cce33ea53c7df18e2d6b7bb49f7c1c18dc0e0 | /src/net/TCPClient.cpp | 00699c68ee3e5d9b7524d55f14a22b4634d24252 | [] | no_license | 7182514362/GenericServer | a18c3add5e9ada3c2f4c4e0fba9c100c37066cea | 514350fe51e6a16243a69a72e1b3ff6b3427a3dd | refs/heads/main | 2023-04-03T16:37:24.927103 | 2021-04-05T12:24:36 | 2021-04-05T12:24:36 | 350,666,952 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 49 | cpp | TCPClient.cpp | #include "TCPClient.h"
using namespace generic;
|
aa57c3d878f1841d8c789be78a94d32284e9b0b9 | 2c0f61355f904eee863110e32051428e275b2331 | /workspace/excercise2/src/main.cpp | af948e9f27585638d24f3beff86f90520cfd11b3 | [] | no_license | shumetzerihun/gitTest | 897c78f1a116a28c6ab641d549ca6ce57352b2ef | c2b420d192817698469e5ce1247f53bcd314ce9a | refs/heads/master | 2021-01-19T20:34:04.231632 | 2018-02-28T07:33:50 | 2018-02-28T07:33:50 | 101,227,515 | 0 | 0 | null | 2017-11-03T21:53:30 | 2017-08-23T21:44:18 | C | UTF-8 | C++ | false | false | 395 | cpp | main.cpp | /*
* main.cpp
*
* Created on: Jan 31, 2018
* Author: shumet
* composition
*/
#include <iostream>
#include <string>
#include "people.h"
#include "birthday.h"
using namespace std;
int main(){
Birthday bd1(20, 12, 1984);
Birthday bd2(2, 2, 1954);
People people1("SHUMET", bd1);
People people2("Mr ... |
cde857ce4ab2955f222e7f74d13ba169c3277700 | fda803f467ecec42d764aae0af6407d7eb0d0376 | /AoC22/cpp/day11.cpp | 45d6ab642e1fcb5103efd6243d7a0e1d1d44938c | [
"MIT"
] | permissive | yury-fedorov/AoC | e3ce3b46c7be6d0a059d26f760c66cc87947cc3f | 3d817039e94c7669a22b0cbdd5a42c561bf94d80 | refs/heads/master | 2023-02-23T10:22:50.393290 | 2023-01-17T23:32:04 | 2023-01-17T23:32:04 | 160,248,940 | 4 | 6 | MIT | 2023-07-14T05:51:59 | 2018-12-03T20:21:37 | C# | UTF-8 | C++ | false | false | 6,287 | cpp | day11.cpp | #include "absl/status/statusor.h"
#include "absl/strings/numbers.h"
#include "common.h"
#include "re2/re2.h"
namespace day11 {
using Longest = int64_t;
using Long = int64_t;
using BigInt = std::pair<Longest, Long>; // x, y in formula modulo * x + y
using Operation = std::function<BigInt(BigInt)>;
constexpr bool IS_T... |
530d35814d847f31a960111f778d8c2cf43743ce | 4c3e823a597504c2d85dd22e97af72bdd11e96f2 | /include/Enum.hpp | 887bcaf4888b46ea1c640c5707dbf6d25ae4059a | [] | no_license | loicnico96/modding-ffxiii-dbtool | f79dfacd10287effa3ae3dfe8e580d80d7390dc1 | 295e0999ff6db0a37a07470f6694b366c29bc978 | refs/heads/master | 2020-03-20T02:46:42.797073 | 2018-06-12T20:38:26 | 2018-06-12T20:38:26 | 137,124,030 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,044 | hpp | Enum.hpp |
#ifndef DBTOOL_HEADER_ENUM
#define DBTOOL_HEADER_ENUM
#include <unordered_map>
#include "AttributeValue.hpp"
#include "Tools.hpp"
namespace dbtool {
class Enum;
typedef std::unordered_map<std::string, AttributeValue> AttributeValueMap;
typedef std::unordered_map<std::string, Enum> EnumMap;
class Enum {
... |
8a356f69bb5b444aa72a99cf75241f0e4f06a233 | 0af69ff0e741a3c474a04e4a092629c5a0b19b41 | /includes/blackbody.h | 1ed41473423e14890f31fb4c9862c3086ff6a81b | [] | no_license | raunakab/RayTracer | 5399a2ea47ea5c337586d1daa3afa4393932f2cb | cd07f79bb73efb1fcf3a96fd1e321a750f6fb4f4 | refs/heads/master | 2023-01-30T09:21:07.835036 | 2020-12-08T08:01:24 | 2020-12-08T08:01:24 | 315,542,989 | 0 | 0 | null | 2020-11-24T21:05:31 | 2020-11-24T06:46:40 | C++ | UTF-8 | C++ | false | false | 567 | h | blackbody.h | #ifndef BLACKBODY_H
#define BLACKBODY_H
#include <material.h>
#include <vec3.h>
#include <light.h>
class BlackBody : public Material {
private:
BlackBody() = delete;
BlackBody(BlackBody const &) = delete;
BlackBody(BlackBody const &&) = delete;
void operator=(BlackBody const &) = delete;
void oper... |
67a2faa2959b52495df3f36b218816ebeb7361d0 | 684b73892ca4ab8298032c168bd32eb0fce3e253 | /Ordem.cpp | 86085a582be1bce9716e13efacf618e82ff417f2 | [] | no_license | alicia-tairini/Trab_Algo.Est.Dados | c3273627c8b9faf893b1fb71e1018b222cb3f58e | 1ec5431c1e55267c480c40810d21b67b8682d685 | refs/heads/master | 2020-03-06T19:36:24.100574 | 2018-06-02T17:42:40 | 2018-06-02T17:42:40 | 127,032,530 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,107 | cpp | Ordem.cpp | #include <stdio.h>
#include <stdlib.h>
#include <conio.h>
int quantidadeNos = 0;
typedef struct _no{
int chave;
int cont;
struct _no *esq, *dir, *pai;
}no;
no* auxPai = NULL;
void vaziaArvore(no *raiz){
if (raiz == NULL){
printf(" A arvore esta vazia\n\n")... |
99440c995656b19973f8d88a6c551481a945f183 | 7cb252c7456ad10b00c92f97ab7cfc852b8808e0 | /YAHMS_Sampler.cpp | 4cf2412d20e9308bb71505497cc750b2773c1e48 | [
"Artistic-2.0"
] | permissive | johnmckerrell/YAHMS | b0f14a0aa4f5575ae61dc3443526d888dda12551 | 77408e9e0a106d092de27241a0f9a72a667c0a6c | refs/heads/master | 2020-04-06T04:56:30.287434 | 2013-09-30T07:57:38 | 2013-09-30T07:57:38 | 1,629,468 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,095 | cpp | YAHMS_Sampler.cpp | /**
* YAHMS - Yet Another Home Management System
*
* (C) John McKerrell 2011
* Probably some open source license when I get around to choosing one
*/
/**
Do we have the current time or is it a while since we updated?
Update the time - similar choice of sync vs async as below
Do we have any config, or is the c... |
04e566b5d02a4eed3de61fee307dc56ad27123e3 | 0f0f66c0fe9da029e6d3ae9047b23b192abd157e | /CSGOSimple/valve_sdk/misc/vfunc.hpp | 4ae8feda4a242f3920d504134747ce034c655c8e | [
"MIT"
] | permissive | danielkrupinski/CSGOSimple | 15be85a11c1cb8426c39c0879d8d03a25e4fd70b | f8b6fa86c8b1646977587f09044e655dd360d321 | refs/heads/master | 2020-04-14T05:27:59.470538 | 2018-12-31T07:37:39 | 2018-12-31T07:37:39 | 163,661,413 | 6 | 2 | MIT | 2018-12-31T10:51:37 | 2018-12-31T10:51:37 | null | UTF-8 | C++ | false | false | 222 | hpp | vfunc.hpp | #pragma once
template<typename FuncType>
__forceinline static FuncType CallVFunction(void* ppClass, int index)
{
int* pVTable = *(int**)ppClass;
int dwAddress = pVTable[index];
return (FuncType)(dwAddress);
}
|
4a3300e01e9667ca977d7b32170850140b3b29f2 | 9bd2b92b924d65f19bc534b543f90ae63ea23637 | /contest/2017SY/hdu6222.cpp | e0ed194cee07ec93f5e05b2954315ab8a56dac00 | [] | no_license | mooleetzi/ICPC | d5196b07e860721c8a4fe41a5ccf5b58b6362678 | cd35ce7dbd340df1e652fdf2f75b35e70e70b472 | refs/heads/master | 2020-06-09T12:13:48.571843 | 2019-12-01T11:39:20 | 2019-12-01T11:39:20 | 193,435,046 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 685 | cpp | hdu6222.cpp | #include<iostream>
#include<cstring>
#include<cstdio>
#include<vector>
using namespace std;
vector<__int128_t> a;
__int128 pow(__int128 x,int n){
__int128_t ans=1;
while(n){
if (n&1)
ans*=x;
x*=x;
n>>=1;
}
return ans;
}
int main(){
int t;
__int128 x=2,y=4,z=10... |
a86ef75f4846341ccf7d673863ed4fb4c274208c | b715ec24c6bbf40935b8d09f30ab49af7e601f5a | /src/Object.cpp | 6e0a02289cea89049d6bf1f5501341ccfefa7cac | [] | no_license | alban-s/raytracing | 0fa9b8d9df6b7eaef020078225a565daa4252132 | 38ccffa6ac1be97750c6f6d5ec04bc487a08eb57 | refs/heads/master | 2023-03-25T05:01:59.316959 | 2021-01-14T22:25:03 | 2021-01-14T22:25:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 270 | cpp | Object.cpp | //
// Created by constantin on 11/09/2020.
//
#include "Object.h"
#include "Material.h"
Object::Object() {
color=Vector3f(255);
mat= Material();
}
Object::~Object() {
}
[[maybe_unused]] void Object::debug() const {
position.print();
color.print();
}
|
06e587e26982956d52fd29a64999155676fc04d9 | d92a86fd033582cefbe6dad987e4cbe6183c8197 | /include/ast/ast_struct.hpp | a4303e2ae02a085e30bcc7b7249d769bbcef8cdf | [] | no_license | aryanghbd/C-to-MIPS-Compiler | 0762321c745941a92b83ca15b60ca7f76577636d | 6cc53d85dfa6ea7e521328e492c25437e1cd0a80 | refs/heads/master | 2023-04-05T12:12:45.727184 | 2021-04-03T14:48:40 | 2021-04-03T14:48:40 | 354,315,770 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,871 | hpp | ast_struct.hpp | #ifndef ast_struct_hpp
#define ast_struct_hpp
#include <string>
#include <iostream>
class Struct_Definition : public Node {
protected:
std::string id;
NodePtr struct_vars;
public:
Struct_Definition(const std::string &_id, NodePtr _struct_vars) {
id = _id;
struc... |
d6cebcdda8068e374d00fd5198a107ce77ecfbcc | c003ef0e2d358869f3dc8f2efd9ef81c3c69a8f1 | /src/version.h | 449cb1ea2fde226a66988704c558c245f6f58941 | [
"MIT"
] | permissive | leangjia/wificoin | 723d81acde103adc88e893966206f7cad9ec7619 | c7ae2086726792b3c6b59a59abb5e5a1ce941ecc | refs/heads/master | 2020-03-16T17:27:30.573595 | 2018-08-19T07:34:43 | 2018-08-19T07:34:43 | 132,833,180 | 0 | 0 | MIT | 2018-05-10T01:42:51 | 2018-05-10T01:42:51 | null | UTF-8 | C++ | false | false | 3,152 | h | version.h | <<<<<<< HEAD
// Copyright (c) 2012-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef WIFICOIN_VERSION_H
#define WIFICOIN_VERSION_H
/**
* network protocol versioning
*/
static const int ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.