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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
541597d224477c69cb5eac8687a36733fbc53f2f | a184fb8252cb4f20d730babdbf8374ba2a1fdeff | /c_module_source/sim/src/drivers/bPhysics/objects/compound.h | 254479b13a27680ef866d8a1a4d8b89f3d789ad0 | [] | no_license | AtheeshThanaseelan/py-simpleSim | 4f0674ea3704d3167fa673f319a58ed92f7badb2 | 540fe226cbc84f2e0152f509a6e9e4f03f640f7e | refs/heads/master | 2023-07-18T04:00:13.861909 | 2021-08-27T22:59:05 | 2021-08-27T22:59:05 | 287,454,817 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 730 | h | compound.h | #pragma once
#include <array>
#include <vector>
#include <string>
#include "../bPhysics.h"
#include "../../../interfaces/object_interface.h"
//class worldComposite;
//enum direction { up, down, front, back, l_left, l_right, y_left, y_right, neutral };
class bPhys_compound: public object_interface
{
... |
47032e505c2f85ed9ac82a7e59a9438d87dafb78 | 3333dd52c91331597c0a785c1ae8e663ae12dfdd | /CNT/Semester 4/CNT453/ICA6/ICA6/Int.cpp | 6de7b2e4592f7048bb08ce78f517f94f1ab56e7c | [] | no_license | mtikoian/School | 2e20f2fc1d6992d0047bc8686c8ac34be4369c3c | 901d5ea0fd384c1713f6a7415401f15cbc75e274 | refs/heads/master | 2020-12-03T08:44:16.261018 | 2018-01-31T16:22:19 | 2018-01-31T16:22:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 41 | cpp | Int.cpp | #include "StdAfx.h"
#include "Int.h"
|
54e98e8d17e5b0d670e4d0417b6722305137c5da | db4ec38e3078df1b908dd2ffebea2a3f5ad400b3 | /lab1/example1/main.cpp | f2229f5accad95cbc5fc6ad8244c088d5821422e | [] | no_license | JohnVonNeumann/swe20004 | 9fa2ebbc1f9c16319b26469ec5268fe489842705 | 82fda502724c06e16df21521d3750760f2436734 | refs/heads/master | 2023-04-22T02:54:58.925932 | 2021-05-05T08:45:05 | 2021-05-05T08:45:05 | 347,026,370 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 150 | cpp | main.cpp | #include <iostream>
using namespace std;
int main() {
cout << "Subject\t\tMarks\nMathematics\t90\nComputer\t77\nChemistry\t69";
return 0;
}
|
20f3fc5c25ef2e4f66beb6f0ab0af64552f23198 | 250101ffb5bd6c4bcfe328854284338772e9aab5 | /map_server/map_moudle/ai_moudle/AIBTCName.cpp | 1f6729bf34972bd0e7221840c7f2af98c53d9547 | [] | no_license | MENGJIANGTAO/GameServer-2 | aa1299e9442e221a1a2d26457c18396d5e4c54bd | be261b565a1f823d8d17235a21dd1f2431c0a30d | refs/heads/master | 2021-09-17T22:45:10.621608 | 2018-07-06T05:15:47 | 2018-07-06T05:15:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,758 | cpp | AIBTCName.cpp | /*
* AIBTCName.cpp
*
* Created on: Jun 24, 2013
* Author: peizhibi
*/
#include "AIBTCName.h"
/*
* ai precondition
* */
std::string AIBTCName::AutoPre = "auto_pre";
std::string AIBTCName::DiePre = "die_pre";
std::string AIBTCName::SleepPre = "sleep_pre";
std::string AIBTCName::PatrolPre = "patrol_pre";
st... |
4987cdaba221304a199da75a55a772d0e96ebd38 | 75a7f186809e5129b219469aba2406358980b149 | /SUPER-PING-PONG/Classes/ObjectTags.h | 89c4d483471036f5f5735e3c08479fcbc8b40b67 | [] | no_license | tsu-trpo/ping-pong | 09cd74b82274afe74a763bc631ce081148eb02aa | dd58f583736b56131955159fe729df0fb95f290a | refs/heads/master | 2021-10-16T04:29:29.550910 | 2017-12-28T03:00:18 | 2017-12-28T03:00:18 | 103,905,267 | 11 | 1 | null | 2019-02-07T19:08:43 | 2017-09-18T07:11:46 | C++ | UTF-8 | C++ | false | false | 341 | h | ObjectTags.h | #pragma once
#include "cocos2d.h"
using namespace cocos2d;
const std::string ballTag = "ball";
const std::string paddleTag = "paddle";
const std::string brickTag = "brick";
const std::string bonusTag = "bonus";
inline bool isTagEqualTo(const PhysicsShape *shape, const std::string &tag)
{
return shape->getBody()-... |
32552e61e02cd1679059275c41ffbb16251fe447 | e5d703474d37bead76fb749f260d10011b0aeba4 | /_Archiv/ToDoList/ToDoList/RecurringTaskEdit.h | e2e4d84164b280cd7664bb1caa5e761ba8c03a5e | [] | no_license | jithuin/infogeezer | d87e68366c155d0da35f3ec8b845c1fc517287cf | 4b83e7e04429dd305954039ce0dae3ee0c1f4924 | refs/heads/master | 2021-01-10T09:10:06.215280 | 2014-11-16T23:13:22 | 2014-11-16T23:13:22 | 51,506,142 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,232 | h | RecurringTaskEdit.h | // RecurrenceEdit.h: interface for the CRecurringTaskEdit class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_RECURRENCEEDIT_H__4EE655E3_F4B1_44EA_8AAA_39DD459AD8A8__INCLUDED_)
#define AFX_RECURRENCEEDIT_H__4EE655E3_F4B1_44EA_8AAA_39DD459AD8A8__INCLUDED_
#if _MSC_V... |
65c8343040c8bbb5ccf6201f8937b8d3bbac0d8e | 456f377593db81bd32990009e3c8f8b0c0babc5e | /CA/CA Project/ca project.cpp | 06840f53a2de10901d349dbb8ce973910d338be4 | [] | no_license | EishaMazhar/Semester5-Resources | 34f577265f01854c36d6d5969bdfe00cb49a61e6 | ab5af4e9ff77d3b7e831cca831f635a111b57d6c | refs/heads/master | 2022-12-07T14:26:45.476753 | 2020-08-27T22:27:12 | 2020-08-27T22:27:12 | 290,894,452 | 10 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,229 | cpp | ca project.cpp | #include<iostream>
#include<math.h>
#include<fstream>
using namespace std;
double nhit=0,nmiss=0,missrate,hitrate;
ofstream out;
static int s=0;
void print_2d(int **array,int rows,int cols)
{
if(s>0)
{
out.open("Output.txt",ios::app);
}
else
out.open("Output.txt");
s++;
for(int i=0; i<rows; ... |
0d70ff1b0d1403f5e5d9c256428e450402663519 | 9c1971ad1e4ba01d7177a8e63fbb67203a0a03df | /problems/1779/solution.cpp | ce57a4fc8ae93f1ba27475cfd9bb94c318ed4b09 | [] | no_license | virtyaluk/leetcode | cb5a7d0957be353125861b1b9d41606f4729248a | 2a1496e5deaf45b28647e713a82b1f5b456888fa | refs/heads/master | 2023-07-07T16:52:23.152194 | 2023-06-24T00:50:09 | 2023-06-24T00:50:09 | 166,505,868 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 517 | cpp | solution.cpp | class Solution {
public:
int nearestValidPoint(int x, int y, vector<vector<int>>& points) {
int ans = -1;
auto md = [&](const vector<int>& p) {
return abs(x - p[0]) + abs(y - p[1]);
};
for (int i = 0; i < size(points); i++) {
if (points[i][0] == x or ... |
cce7f3aad5327f3ac51bfad84e00a0d81eae4525 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/24/131a43a94df7d6/main.cpp | 94d3c1bb5f8069db8795e08600305fdaf40589e1 | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 299 | cpp | main.cpp | #include <iostream>
using namespace std;
using A = struct {
auto _x() {
auto p = this;
struct B {
using this_type = decltype(p);
};
return B{};
}
using this_type = decltype(A{}._x())::this_type;
};
int main() {
// your code goes here
return 0;
} |
7b74469ddfdd305a1076199e116fe83f983bb099 | 2bfddaf9c0ceb7bf46931f80ce84a829672b0343 | /examples/xtd.forms.examples/applications/application/src/application.cpp | 1f10722ffae50918c4f55ba237de05ef1878ac75 | [
"MIT"
] | permissive | gammasoft71/xtd | c6790170d770e3f581b0f1b628c4a09fea913730 | ecd52f0519996b96025b196060280b602b41acac | refs/heads/master | 2023-08-19T09:48:09.581246 | 2023-08-16T20:52:11 | 2023-08-16T20:52:11 | 170,525,609 | 609 | 53 | MIT | 2023-05-06T03:49:33 | 2019-02-13T14:54:22 | C++ | UTF-8 | C++ | false | false | 134 | cpp | application.cpp | #include <xtd/forms/application>
#include <xtd/forms/form>
auto main()->int {
xtd::forms::application::run(xtd::forms::form {});
}
|
9f34a1fad0e862ce138910af62e376708ed63176 | badf5496f1025a66cc44bc37890baf545d058ae2 | /testBuzzer/testBuzzer.ino | 26aff225e3cf8e74b3bc9e664e1c6568d7fd0a48 | [] | no_license | 1164513233/catMini | b683f7bbc12e992819939e929b24352b97412c9a | 125c3c8455c7418e31feee8858116d045b468fa9 | refs/heads/master | 2021-10-16T08:56:14.510669 | 2019-02-09T14:57:11 | 2019-02-09T14:57:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,331 | ino | testBuzzer.ino | // Customized music player
// Rongzhong Li
// August 2017
#define BUZZER 4
void beep(int note, float duration = 10, int pause = 0, byte repeat = 1 ) {
if (note == 0) {
analogWrite(BUZZER, 0);
delay(duration);
return;
}
int freq = 220 * pow(1.059463, note);
float period = 1000000.0 / freq / 2.0;
... |
a36038e3d0125a731ea98db713f280d4d8c8ff12 | ffa7ed2f4fc1cd1dd36f1022d9760831e7d07491 | /codes/Greedy/LightOJ 1219 - Mafia.cpp | 71b4d17aebd509b7bf9320b66a8106ea3c727dc5 | [] | no_license | Zylophone/lightoj-solutions | 7113b144b9b2918f1ce37fe4811ff197c42e994c | cf49bcf17980290d0d2e58b57ad5643beff640d6 | refs/heads/master | 2021-07-15T09:55:41.261731 | 2017-10-13T06:09:54 | 2017-10-13T06:09:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,331 | cpp | LightOJ 1219 - Mafia.cpp | /**
* Author : sjsakib.bd
* Lang : C++
* Date : 2016-02-29 16:48:08
* Problem : 1219 - Mafia
* CPU : 0.008
* Memory : 2012
**/
/*
* sjsakib
*/
#include <bits/stdc++.h>
#define stream istringstream
#define rep(i,n) for(int i=0; i<(int)n; i++)
#define repv(i,n) for(int i=n-1; i>=0; i--)... |
11680e92d842a30de4018f7dba2fb0f9673a66fb | 590c1d80050092bc1e11afe1fd099adeb0b3476a | /src/GEV_UDM/light_control.ino | 75fdcec5ddb6393f04666884d98e2f1c450d45a3 | [] | no_license | GanzYouthWorkshop/GEV-UDM | d2f81c276a526a0d29f9d2c79068f49a8df14639 | f094667ef45b1259b1dcaa86127476f41c456a8d | refs/heads/master | 2021-04-01T11:18:25.553148 | 2020-03-18T10:09:32 | 2020-03-18T10:09:32 | 248,185,285 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,503 | ino | light_control.ino | #ifdef USE_LIGHT_CONTROLLER
//***************************************************************************************
//Configurations
//***************************************************************************************
//Configuring the Light controller channels
#define MAX_LIGHT_CHANNELS 6
//*****************... |
e9443c9299e86580ad74d3acd21efb86f6549600 | c3b979ea12f7ee64162af0eb67f35417fca15603 | /geometria/include/piramide.h | 1265c3791c66a43dd435637c550527e6e080f93f | [] | no_license | toiinnn/lab02 | 84aad7d3b82f543971bd6de108104dbd5392cd27 | 71120b73e936c3e21ad6a66b13eae7b4f2051513 | refs/heads/master | 2020-03-12T08:18:25.097356 | 2018-04-22T20:51:11 | 2018-04-22T20:51:11 | 130,524,832 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 844 | h | piramide.h | /*
*@file piramide.h
*@brief arquivo de cabecalho do objeto piramide
*@author Antonio Marcos de Oliveira
*@since 18/04/1997
*@date 21/04/1997
*/
#ifndef PIRAMIDE_H
#define PIRAMIDE_H
#include <iostream>
using std::cout;
using std::endl;
class Piramide
{
private:
float m_area_base;
float m_area_lateral;
floa... |
05e3e5d98a477c2903ccde52b637c5d05dc3e4e0 | 2a6ed0f4ac4d83f66f14a286f57e279d2dc2cff7 | /src/Blocks/BlockSnow.h | 299ec9f6292aab5dbe2eba8e8f8f5addd4444dbd | [
"Apache-2.0"
] | permissive | npresley0506/cuberite | ea9d09da2ca17246db623d6ab4f6c06261e6d13f | 4cb9ef8c578aaa769110c74466f3e3b61d0117c0 | refs/heads/master | 2023-04-14T15:21:52.665595 | 2021-04-22T22:04:09 | 2021-04-22T22:04:09 | 357,432,195 | 0 | 0 | NOASSERTION | 2021-04-22T14:48:58 | 2021-04-13T05:17:05 | C++ | UTF-8 | C++ | false | false | 3,435 | h | BlockSnow.h |
#pragma once
#include "BlockHandler.h"
class cBlockSnowHandler final :
public cBlockHandler
{
using Super = cBlockHandler;
public:
using Super::Super;
private:
enum
{
FullBlockMeta = 7 // Meta value of a full-height snow block
};
virtual bool GetPlacementBlockTypeMeta(
cChunkInterface & a_ChunkI... |
6a5937c36533c5a9f98de06c83c45ce52837691e | 46f596af05f000408fd6932e5b96dbf124af49f8 | /homework/Fedotova/01/sum_by_cols.cpp | 38b3a245d21f5d0fb7f0e8ae2602fff000eeb798 | [
"MIT"
] | permissive | fsatka/msu_cpp_spring_2018 | 157d5e56587e53b441126fd5e793f93db6bc211b | b5d84447f9b8c7f3615b421c51cf4192f1b90342 | refs/heads/master | 2020-03-29T12:47:11.411708 | 2018-06-25T22:06:53 | 2018-06-25T22:06:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,050 | cpp | sum_by_cols.cpp | #include <chrono>
#include <iostream>
#include <cstdlib>
#include <ctime>
#define SIZE_r 10000
#define SIZE_c 10000
using namespace std;
class Timer {
public:
Timer()
: start_(std::chrono::high_resolution_clock::now()) {
}
~Timer() {
const auto finish = std::chrono::high_resolution_c... |
fc82c87554e3b9164ff66163204773c4051aca40 | ad57c463b06a650f61777221c55def11b6575427 | /contrib/jmcddn/ssac_tornado/NewRefCountSimpleCO.H | 69fe65d6b84a5131c77b89cf7c6bc01587b41033 | [
"MIT"
] | permissive | dschatzberg/EBBlib | 1fc6ceff17065b0ed2eeb380843aa739ad5a14b7 | 63ebaf134dfc59a8133111b589f351b5073c01c9 | refs/heads/master | 2021-01-20T23:40:42.307695 | 2012-04-27T01:41:09 | 2012-04-27T01:41:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,438 | h | NewRefCountSimpleCO.H | #ifndef NEWREFCOUNTSIMPLECO_DEFH
#define NEWREFCOUNTSIMPLECO_DEFH
/******************************************************************************
*
* Tornado:[COMPONENT]
*
* University of Toronto
* Copyright 1994,1995
*
* This software i... |
d2af0de961cdbb13996dcd9c5b090b9bc1e5c383 | b7d4fc29e02e1379b0d44a756b4697dc19f8a792 | /deps/boost/libs/qvm/test/row_test.cpp | 972e0762c8dcde3118dcf905e72e721291294dbc | [
"GPL-1.0-or-later",
"MIT",
"BSL-1.0"
] | permissive | vslavik/poedit | 45140ca86a853db58ddcbe65ab588da3873c4431 | 1b0940b026b429a10f310d98eeeaadfab271d556 | refs/heads/master | 2023-08-29T06:24:16.088676 | 2023-08-14T15:48:18 | 2023-08-14T15:48:18 | 477,156 | 1,424 | 275 | MIT | 2023-09-01T16:57:47 | 2010-01-18T08:23:13 | C++ | UTF-8 | C++ | false | false | 2,505 | cpp | row_test.cpp | //Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc.
//Distributed under the Boost Software License, Version 1.0. (See accompanying
//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/qvm/map_mat_vec.hpp>
#include <boost/qvm/vec_traits_array.hpp>
#include <boost/qvm/... |
82b84f73ffadbb40192e036cd2dc18eb32e2130b | 07970b2985deb90ea75c7d449b7f08c7870e93f0 | /DroneStatsServer/mainwindow.h | 1ef645e75b1b942af796e8bc1f186a586a82c595 | [] | no_license | kola1197/DroneApp | 28c2a80e34fc3a26a2418baaecd1a7c42116e536 | 4f10666575c79988120897eef565892098f29bc7 | refs/heads/master | 2023-06-18T07:55:17.127116 | 2021-07-01T18:21:40 | 2021-07-01T18:21:40 | 268,465,774 | 0 | 0 | null | 2020-06-14T05:44:15 | 2020-06-01T08:27:11 | C++ | UTF-8 | C++ | false | false | 1,931 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "statsclient.h"
#include <QMainWindow>
#include <mutex>
#include "../Utils/MutexBool.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
... |
e67074a2d28f18217e78ef2a368856fb71d9f1c0 | e1353001aa6323eabbd13a95869b4141e85173bc | /1.ino | 71009b9abaf5dbcb1e0742248fb18d14e29fdd54 | [] | no_license | DustinMathia/Arduino-Lessons | 45acfc968ab9e297a3a91f1b97c0a79107589706 | d22715e6a06b3506c272d9b107bcc3eb525122d0 | refs/heads/master | 2020-03-18T05:46:25.058072 | 2018-05-22T04:31:01 | 2018-05-22T04:31:01 | 134,360,613 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 313 | ino | 1.ino | void setup() {
// put your setup code here, to run once:
Serial.begin(9600); //Sets the data rate in bits per second (baud) for serial data transmission
Serial.println("Hello World!"); //Prints data to the serial port
}
void loop() {
// put your main code here, to run repeatedly:
}
|
04c1403521b5e1dd5c0251049972ed4601ea25bf | 8bb7f6bb1c4b2134e734159083b1a42982c0671c | /gatewaySeu.ino | df9efb9e4bc71bc2d4c93319ff3ca82ae747d5f2 | [] | no_license | charlesochoa/gatewaySeu | e92586272850edc59b8df8426e3b97bdb1fc2d05 | 3e18fa86678d294edab9b29b7840c80922c5046d | refs/heads/main | 2023-05-29T16:56:49.042756 | 2021-06-09T23:59:53 | 2021-06-09T23:59:53 | 373,569,751 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,101 | ino | gatewaySeu.ino | /**
@file EnigmaIOTGatewayDummy.ino
@version 0.9.7
@date 04/02/2021
@author German Martin
@brief Gateway based on EnigmaIoT over ESP-NOW with dummy output module to serve as start for new gateways
*/
#include <Arduino.h>
#include <GwOutput_generic.h>
#include "GwOutput_dummy.h"
#ifdef ESP32
#inc... |
6d0574c8033b0dfeade13232583b10bf10ffe756 | c24ec8c8d0ed754174ceb001c63e26e966490254 | /WifiBluetoothService.h | 412ce446f01c9e243cde4203848cbd5c7db3d0a5 | [] | no_license | ErcanSencanoglu/MicroHome-Esp32-02.2021 | 7c5b1a4c4ac1a0d66e82c007ca51c8a0b43e058e | 755c891534f4ed883f9e62220539891f595e5a49 | refs/heads/main | 2023-03-14T11:08:26.039400 | 2021-02-28T10:19:55 | 2021-02-28T10:19:55 | 343,073,365 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 491 | h | WifiBluetoothService.h | class WifiBluetoothService{
public:
static void connectWifi(){
/*IPAddress ip =WiFi.localIP();//WiFi.localIP();// WiFi.softAPIP();
IPAddress gateway(192,168,1,1);
IPAddress subnet(255,255,255,0); */
//IPAddress dns(8,8,8,8);
WiFi.begin(Config::ssid,Config::password);
//WiFi.config(ip,gat... |
f56e393aa70405f882f262ef42aef412a2ab86d7 | 746bbef0f5ab866864ce47f57fb31220816a91d7 | /RX65x/RTK5_LOGGER/root_menu.hpp | b6a297b7e087853dd9463e715538b2db683f6d7f | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | hirakuni45/RX | baf64286b70132eb41db7ed52c6a2f9b70cf0f45 | 679878b98d0c03597e16431e87e75a9a24f5c8d1 | refs/heads/master | 2023-05-04T13:27:26.894545 | 2023-04-18T13:54:06 | 2023-04-18T13:54:06 | 14,785,870 | 65 | 19 | BSD-3-Clause | 2023-09-14T01:41:49 | 2013-11-28T20:27:58 | C++ | UTF-8 | C++ | false | false | 3,580 | hpp | root_menu.hpp | #pragma once
//=====================================================================//
/*! @file
@brief ルート・メニュー
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2018 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/master/LICENSE
*/
//=======... |
2697c8f1fd3c0f82da70ab55bfc0990ece4ce619 | 60e8af170f4693c5e7dc6071f70d31364fef48f2 | /massiveProject/updateitemdialogue.cpp | cad495d5815fe286a3b4316074a83844cca0ca35 | [] | no_license | AzrealWenttoMarket/CS106 | 414c8f8a6f76c968491e99d7b8621de6d6cd898f | 64a1f4dbcbac757dcb69279d1d0d019ccd336e1b | refs/heads/main | 2023-08-19T06:28:04.635987 | 2021-10-05T06:13:00 | 2021-10-05T06:13:00 | 410,766,853 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 285 | cpp | updateitemdialogue.cpp | #include "updateitemdialogue.h"
#include "ui_updateitemdialogue.h"
UpdateItemDialogue::UpdateItemDialogue(QWidget *parent) :
QDialog(parent),
ui(new Ui::UpdateItemDialogue)
{
ui->setupUi(this);
}
UpdateItemDialogue::~UpdateItemDialogue()
{
delete ui;
}
|
98394e098f5d00f4c5c8c9b531b11ea78c778658 | 292e5e486d217173c20d9639089ddb84a42b3c4e | /DataStructureAndAlgorithm/LinearList/chain.hpp | 5f378389fe037c6e8edcb07794ad2471607b600b | [] | no_license | AKL-FIRE/DataStructureAndAlgorithm | 86ade6893195ff3e702a11af739364ec20936090 | 08c0d13fb4c8849275cbe56e2d9ca3bb2814efc7 | refs/heads/master | 2021-05-10T16:39:36.273591 | 2020-02-12T05:20:41 | 2020-02-12T05:20:41 | 118,583,094 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,582 | hpp | chain.hpp | //
// chain.hpp
// DataStructureAndAlgorithm
//
// Created by Apple on 23/01/2018.
// Copyright © 2018 lcy. All rights reserved.
//
#ifndef chain_hpp
#define chain_hpp
#include "linearList.hpp"
template <typename T>
struct chainNode
{
T element;
chainNode<T>* next;
chainNode() {}
chainNode(... |
7bdf352d3f1d8b9d0ee9bd8d1826b9de6852b9ca | 24004e1c3b8005af26d5890091d3c207427a799e | /Win32/NXOPEN/NXOpen/CAM_InspectionLinearMoveToPointBuilder.hxx | d0fc75965fb432e64cdb02b9517e7b8895a51c96 | [] | no_license | 15831944/PHStart | 068ca6f86b736a9cc857d7db391b2f20d2f52ba9 | f79280bca2ec7e5f344067ead05f98b7d592ae39 | refs/heads/master | 2022-02-20T04:07:46.994182 | 2019-09-29T06:15:37 | 2019-09-29T06:15:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,550 | hxx | CAM_InspectionLinearMoveToPointBuilder.hxx | #ifndef NXOpen_CAM_INSPECTIONLINEARMOVETOPOINTBUILDER_HXX_INCLUDED
#define NXOpen_CAM_INSPECTIONLINEARMOVETOPOINTBUILDER_HXX_INCLUDED
//--------------------------------------------------------------------------
// Header for C++ interface to JA API
//--------------------------------------------------------------------... |
656aeb611a816880b0b77b4f75e8a77aec64fb92 | 8888fb4af4000f02903299bda0ecc954c402452a | /BOJ/1697.cpp | 5e000cf47a9dc75ad2264462b6d84d968ce7b248 | [
"MIT"
] | permissive | ReinforceIII/Algorithm | 48122e826c60a433cdfb5bb1283db3b3d1be64d1 | 355f6e19f8deb6a76f82f5283d7c1987acd699a6 | refs/heads/master | 2020-07-26T03:57:36.567702 | 2019-09-16T11:46:02 | 2019-09-16T11:46:02 | 208,526,939 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 910 | cpp | 1697.cpp | /* 1697 숨바꼭질 */
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <queue>
#include <cstring>
#define MAX_SIZE 100001
using namespace std;
int resolve[MAX_SIZE];
int main() {
int n,k;
cin>>n>>k;
queue<int> q;
memset(resolve,-1,sizeof(resolve));
q.push(n);
resolve[n] = 0;... |
5cc2742e78148a90c4262dbd9e1bfd0704769180 | b6bbf84f88a876809777c0a84ea1ec6ffbc9133b | /fixed report/src/a11/main.h | 5a30c27f02865678076e9c279234ef0dd0a08c70 | [] | no_license | franksnightmare/c-3week2 | 11fd22df1111b5d5f3b4030164bf0e5633b87448 | d04cc4e1e3db727e7282c037c538ba64edf5f1c3 | refs/heads/master | 2021-01-23T07:51:18.358991 | 2017-02-08T14:48:20 | 2017-02-08T14:48:20 | 80,518,072 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 424 | h | main.h | #ifndef MAIN_H
#define MAIN_H
template <size_t constant, size_t mask, size_t power>
struct PrintBin
{
enum { value = power * ((constant & mask) == mask) +
PrintBin<constant, mask << 1,
power * 10>::value };
};
template <size_t constant, size_t power>
struct PrintBin<constant, 0, power>
{
enum { value = 0 };
};... |
03108189c3bfa95fde91dc0ab0cc7914f09dcb10 | 78e2fb22adb4f2139a84d4798cd35b614cbe0b62 | /MusicChallenge/candidate_libs/MIDITrail (2)/MIDITrail/MTAboutDlg.cpp | 3d7b21575f6bb0fe21b112c3b6eb99c456091dd8 | [
"BSD-3-Clause"
] | permissive | leomrocha/musicapps | c0a9277a65d4fdba2d02b245a83afc3a25d8d053 | ea59fef71f266603911a445e5dcca23391b76a4f | refs/heads/master | 2020-03-13T16:51:09.134309 | 2018-10-13T20:41:25 | 2018-10-13T20:41:25 | 131,207,250 | 0 | 1 | null | null | null | null | SHIFT_JIS | C++ | false | false | 4,401 | cpp | MTAboutDlg.cpp | //******************************************************************************
//
// MIDITrail / MTAboutDlg
//
// バージョン情報ダイアログクラス
//
// Copyright (C) 2010-2014 WADA Masashi. All Rights Reserved.
//
//******************************************************************************
#include "StdAfx.h"
#includ... |
a927a7c06a8f4cacc187e65509594fc487b92312 | 74ff6c167963a0d78b43a63d2da73cfcc8a1ff7a | /AnalyseurXSLT/documentxsl.cpp | 7a5f0af4015b623d1e10632ef2897b50ec327386 | [] | no_license | Hexaflou/ProcesseurXML | 09b918f971ac986d67d7bd6ef07c192f4a1c28d3 | e4c07cb83c673979ff42e8eb010e5bf4a9d147f9 | refs/heads/master | 2021-01-10T21:16:52.273146 | 2012-11-14T08:35:49 | 2012-11-14T08:35:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 66 | cpp | documentxsl.cpp | #include <string>
#include <iostream>
#include "documentxsl.h"
|
29f7ff147371f10dcee7b1ed82ed19e6726f1a50 | 8cf9be3830ffecfad9102f5f293e5d340a761d4c | /span.h | e31d92e68fffbbc38385e77aa6af7ce3352acafc | [] | no_license | larrynow/NCMalloc | 81a8325d72d877d51269192c1ce07aacb18e5f36 | 6ae73748e8d25086ebe1e04ac103673c0079e519 | refs/heads/master | 2022-12-24T08:29:07.685705 | 2020-09-24T13:03:28 | 2020-09-24T13:03:28 | 298,279,162 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,224 | h | span.h | #ifndef _NC_MALLOC_SPAN_H_
#define _NC_MALLOC_SPAN_H_
#include "nc_malloc.h"
#include<set>
namespace NCMalloc
{
// struct Span for a string of pages.
// Span may exisits in span list(in centralFreeList) or page heap.
struct Span {
PageID start;// start page number.
PageNum length;// pages num in span.
Span* ... |
5f17d8944700fde6ed4a1d6c7affec63a6a9158c | 26f7d65fab41986228344ed9be221b870d8b1efa | /Models/include/class.h | 243aa49a03748eed006eef4af79d93755cd39cc4 | [
"MIT"
] | permissive | jeremydumais/TeacherHelper | a01d1c8bd5f864fd0bc95238fd013fc1223e0503 | f90db9c18a74ca3020c26d79eb2160a0c4e53efb | refs/heads/master | 2023-03-27T07:43:30.418046 | 2021-03-28T17:04:24 | 2021-03-28T17:04:24 | 260,787,000 | 0 | 0 | MIT | 2021-03-28T15:14:47 | 2020-05-02T22:33:02 | C++ | UTF-8 | C++ | false | false | 953 | h | class.h | #pragma once
#include "school.h"
#include "student.h"
#include <list>
#include <string>
#ifdef _WIN32
#ifdef MODELS_EXPORTS
#define CLASS_API __declspec(dllexport)
#else
#define CLASS_API __declspec(dllimport)
#endif
#else
#define CLASS_API
#endif
class CLASS_API Class
{... |
0a5e515b0a8ac9fdc3eb16c29867c1e592d7ebb0 | 851d12adffa6dcdc85816c2ee6f6af129c5542b6 | /TDEngine2/source/ecs/CEntityManager.cpp | 5c12a3d72c8350d7b59e1da669c52d241d9d907d | [
"Apache-2.0"
] | permissive | bnoazx005/TDEngine2 | 775c018e1aebfe4a42f727e132780e52a80f6a96 | ecc1683aac5df5b1581a56b6d240893f5c79161b | refs/heads/master | 2023-08-31T08:07:19.288783 | 2022-05-12T16:41:06 | 2022-05-12T16:45:02 | 149,013,665 | 6 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 6,384 | cpp | CEntityManager.cpp | #include "../../include/ecs/CEntityManager.h"
#include "../../include/ecs/CEntity.h"
#include "../../include/ecs/CTransform.h"
#include "../../include/core/IEventManager.h"
#include "../../include/editor/CPerfProfiler.h"
namespace TDEngine2
{
CEntityManager::CEntityManager() :
CBaseObject(), mpEventManager(nullptr... |
bb768f87d28cd50405c1161616fb701ab291a827 | 3d85474e3ca2c9de7941477d0e06d7bdb867e6af | /115-distinct-subsequences.cpp | 88193e5920c518e7497f32fd00dc933077dfe366 | [
"MIT"
] | permissive | nave7693/leetcode | 9dd7c14d27e8f3abc974a50028709c236bdc03ef | 8ff388cb17e87aa9053eaed3b84e7dc2be3e2e49 | refs/heads/master | 2020-05-22T08:02:27.292507 | 2017-08-28T18:20:46 | 2017-08-28T18:20:46 | 51,724,795 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,181 | cpp | 115-distinct-subsequences.cpp | // https://leetcode.com/problems/distinct-subsequences
class Solution {
public:
int numDistinct(string s, string t) {
int lens = s.length();
int lent = t.length();
vector<vector<int>> dp(lent+1, vector<int>(lens+1, 0));
// For an empty t, any s would need to delete... |
3c8e9514b21cee4aeed3d9b724d77960a02f2a48 | 1cf3c0bda1eeec186c21363ee514957d4215c9cb | /backgrounds/complete_search/subset_sum_backtracking_r1.cpp | ea7df1f9211a33e855c9cc93e4ba35f9085f2189 | [] | no_license | jaguarcode/algorithms | 5aeb6d6a46e6658a9fbc04186313f46d4135ac86 | 222b65dcfb245292ad10663039a8406871cb2a43 | refs/heads/master | 2023-05-04T08:09:24.246394 | 2021-05-27T23:32:40 | 2021-05-27T23:32:40 | 307,350,248 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,110 | cpp | subset_sum_backtracking_r1.cpp | #include <bits/stdc++.h>
using namespace std;
static int total_nodes;
void printSubset(int a[], int size) {
for(int i = 0; i < size; i++)
cout << a[i] << " ";
cout << "\n";
}
void subsetSum(int s[], int t[], size_t s_size, size_t t_size,
int sum, int ite, const int target_sum) {
total_nodes++... |
9c4848be70d5f45dd9d6937bb6cebc178d9d23d6 | f8284997c161c6eba896da4d479577608d83e74a | /src/hamming/compute.cpp | 3de67799f42c327d80234de86fbbabce75d507ba | [] | no_license | vsai121/Privacy-preserving-biometrics | bb35fe6f3bca4b7496d9030cd2ea622e4ee82c5d | 17647df37e97af8011d86ef3ca32ed1dda03f17c | refs/heads/master | 2020-04-26T03:38:12.645415 | 2019-04-05T18:59:14 | 2019-04-05T18:59:14 | 173,273,575 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,127 | cpp | compute.cpp | #include <cstring>
#include <helib/EncryptedArray.h>
#include <helib/FHE.h>
#include <fstream>
#include <NTL/ZZX.h>
#include <iostream>
#include <vector>
using namespace std;
//script to read ciphertexts and compute
Ctxt hamming_dist(Ctxt enc1, Ctxt enc2, int numbits) {
Ctxt enc11 = enc1;
Ctxt enc22 = enc2;
NT... |
05369c0c0774baef2d73e9bf750f4fc0e1a7a624 | c6d109a9bf019e29aa07c5cd5159eb5f3b407fe3 | /sheaves/support/rc_any.h | 6a2c3b04a50d3260858facc4c29ee35be8a050b4 | [
"Apache-2.0"
] | permissive | LimitPointSystems/SheafSystem | 883effa60ec9533a085e2d1442c83df721e8d264 | 617faf00175b1422be648b85146e43d2fc54f662 | refs/heads/master | 2020-09-12T20:01:59.763743 | 2017-05-02T20:48:52 | 2017-05-02T20:48:52 | 16,596,740 | 2 | 3 | null | 2017-05-02T20:48:52 | 2014-02-06T22:44:58 | C++ | UTF-8 | C++ | false | false | 2,201 | h | rc_any.h |
//
// Copyright (c) 2014 Limit Point Systems, Inc.
//
// 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 ... |
30eed9db4c5a105f15f393b1cbc5f106581e71fa | 4048dc505f87f5dc27fd8a8c920e51cd72e44aa2 | /applications/MapReduce/branches/MapReduce.terasort/external/factory/type_list.hpp | 9d502046a4816d09a76e6abd73d8c8fca53bc05d | [] | no_license | saga-project/saga-cpp-legacy-projects | 007af3860994a3f10c7163b4b271cccd7eb10eb8 | 2874ff6714776ee721a46f5b68f317e0d1dbfbf9 | refs/heads/master | 2023-04-05T00:47:38.636238 | 2023-03-31T14:47:42 | 2023-03-31T14:47:42 | 5,780,249 | 0 | 3 | null | 2023-03-31T14:47:43 | 2012-09-12T13:38:02 | TeX | UTF-8 | C++ | false | false | 3,166 | hpp | type_list.hpp | /*=============================================================================
Copyright (c) 2007-2008 Marco Costalba
Use, modification and distribution is subject to the Boost Software
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
======... |
014977dc5322812351706ca7ec0040ae6ea3d459 | c3b96fe11153527a27a4dd20adaa3f93c8dad2de | /5sem/MADM/lab7/models/figure.h | 555c8549216225f50208e869ea6d154a1c45ca3e | [] | no_license | azhi/BSUIR_labs | 0905682c9b8194dcce35c5fabe82c72009f4f798 | 928506a416db656fc3c03181c053207a9aec963b | refs/heads/master | 2021-01-13T01:36:19.772612 | 2014-11-30T17:44:59 | 2014-11-30T17:45:11 | 5,731,963 | 1 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 2,763 | h | figure.h | #ifndef FIGURE_H
#define FIGURE_H
#include <SDL/SDL.h>
#define min(x,y) ((x) < (y) ? (x) : (y))
#define max(x,y) ((x) > (y) ? (x) : (y))
struct Point
{
int x,y;
Point() : x(0), y(0) {}
Point(int x, int y) : x(x), y(y) {}
};
struct Range
{
int p1, p2;
Range() : p1(0), p2(0) {};
Range(int p1, int p2) : p1... |
4688062516a1f95929218f55cb78ee18a4a7bf20 | fb4ebb51b46ce0912458fc4e6891a288c1ad20c1 | /c,c++/schholconstructor.cpp | 4f13d74fd5815207117c57a7bf12e3132af9bc5d | [] | no_license | pratyush220498/Data_Structure-CPP | 982cfd3d0f689670a2b88d8913cce459d9f6b67d | 92638b99527f3a5e47cdb54d6e03595c89c868c6 | refs/heads/master | 2022-11-04T00:14:27.336093 | 2020-06-17T12:21:09 | 2020-06-17T12:21:09 | 272,966,059 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 547 | cpp | schholconstructor.cpp | #include<iostream>
#include<string.h>
using namespace std;
class school
{
char name[20],city[20];
int num;
public:
school()
{
strcpy(name,"pratyush");
strcpy(city,"indore");
}
school(char name1[20],char city1[20])
{
strcpy(name,name1);
strcpy(city,city1);
}
school(school&s)
{
strcpy(na... |
94be95f3510051df3ff311212c35927346991d46 | 71b85ad0abf67300993244462a5a9d1abae33091 | /Drill 10/Drill 10.cpp | a77b013b8aded0651127383c8bfaff2477a04221 | [] | no_license | wangweiao/HLPL1_Lab | fa320e3bb68d3d82167d5ec11b1e0621598dfc97 | e81a0f6e222a21e563f10838dc94a9a5358136ad | refs/heads/main | 2023-04-21T19:06:55.773947 | 2021-05-06T20:14:17 | 2021-05-06T20:14:17 | 338,542,403 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,967 | cpp | Drill 10.cpp | #include "std_lib_facilities.h"
//10.1. Define the data type Point that has two coordinate members x and y.
class Point {
public:
int x;
int y;
};
ostream& operator<<(ostream& os, Point& p)
{
return os << '(' << p.x << ',' << p.y << ')';
}
int main()
try {
//10.2. Prompt the user to i... |
831dc2ac2d4463cf942b0f307e2c9d9c4fdbcbff | e4d3401272488fb9009a490ace609649e9b9fa12 | /Classes/MenuScene.cpp | b92eede9f965f425300b86793839afdbc16c5534 | [] | no_license | amrzagloul/BBB | 30807ef8892c07fd8dae49e52efcf26380994ebd | 31f5e44426e502b63ecfec56dc125845e5e1f19c | refs/heads/master | 2021-01-15T19:40:37.759945 | 2012-05-27T04:33:23 | 2012-05-27T04:33:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,755 | cpp | MenuScene.cpp | #include "MenuScene.h"
#include "GameScene.h"
USING_NS_CC;
CCScene* Menu::scene()
{
CCScene *scene = CCScene::node();
Menu *layer = Menu::node();
scene->addChild(layer);
return scene;
}
bool Menu::init()
{
if ( !CCLayer::init() )
{
return false;
}
CCMenuItemImage *pClo... |
e21ff2b1d1b45cd8256d922e116faa0ca93cdf8f | aa844675da09cccaf9d63f94301b212080f9cef3 | /pascal_triangle.cpp | 65da14ebe80890db9ae5d32f168847612ba1005e | [] | no_license | aniketbiswas21/codechef | 1e57432c231a1ac6e846f76f6e7399bab9db842b | 72e7be1e43af1c258931675854d72d196eb41cbd | refs/heads/master | 2020-12-20T16:11:33.557139 | 2020-03-13T13:36:58 | 2020-03-13T13:36:58 | 236,133,141 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 402 | cpp | pascal_triangle.cpp | #include<iostream>
using namespace std;
int fact(int t){
int ans=1;
for(int i=1;i<=t;i++){
ans=ans*i;
}
return ans;
}
int facto(int o,int p){
int g=fact(o)/(fact(o-p)*fact(p));
return g;
}
int main(){
int n;
cin>>n;
for(int i=1;i<=n;i++){
for(int s=1;s<=n-i;s++){
cout<<" ";
}
for(int j=1;j<=i;j++){
... |
1e8bb17dae9ea05afba40db391f6595635649416 | b5317b08ddec6620382bdd85b791000752766760 | /application/tools/bufferinglog.h | dc4dfbc8ebad4725e2f2ad1a64617fecb4160c0c | [
"Apache-2.0"
] | permissive | hmsgit/campvis | 49379dedfb0143e086183c7b89de6efaa6f0dfed | d97de6a86323866d6a8f81d2a641e3e0443a6b39 | refs/heads/master | 2021-04-26T13:16:05.224811 | 2016-02-10T13:56:18 | 2016-02-10T13:56:18 | 121,310,766 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,177 | h | bufferinglog.h | // ================================================================================================
//
// This file is part of the CAMPVis Software Framework.
//
// If not explicitly stated otherwise: Copyright (C) 2012-2015, all rights reserved,
// Christian Schulte zu Berge <christian.szb@in.tum.de>
// Ch... |
a74b5829669ddbf438431b080bf7de3bcef4de31 | 3872538fc515f9bb806ea0d433d549951c7b4472 | /sql_res.hpp | 5fa08681ad00a5bed531ebc1d3c80dd637fafd67 | [] | no_license | kspine/mysqlcp | b97e1a6906dbb90b34a50fc9d9f25c3b8ef25498 | f261edf75f757d56cd0716010b11b0f77b4f0401 | refs/heads/master | 2021-01-21T17:29:23.864955 | 2015-06-04T08:11:53 | 2015-06-04T08:11:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,860 | hpp | sql_res.hpp | /// sql_res.hpp -- sql results decls
/// Author: Zhang Yichao <echaozh@gmail.com>
/// Created: 2011-08-03
///
#ifndef INCLUDED_SQL_RES_HPP
#define INCLUDED_SQL_RES_HPP
#include "exception.hpp"
#include "sql_stmt.hpp"
#include <cppzmq.hpp>
#include <string>
struct sql_res
{
sql_res () : empty (true), id (0), e... |
8ee251ffb7b96967e621d6e76da9c3875a0d1763 | 80a96581255056a03f126e19b081276d5a66dd2e | /RulerCornerView.h | 7161c7279d3504ae269c007b3f4f367936881235 | [] | no_license | patchell/FrontCad | 6c1c9e4e7642eafe8a8a556c17e098f32077c548 | b2567d6d0b57b22a29efa64aa42d583cd1a457b8 | refs/heads/master | 2023-07-07T04:24:40.368564 | 2023-06-29T03:42:46 | 2023-06-29T03:42:46 | 75,502,957 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 765 | h | RulerCornerView.h | #pragma once
/////////////////////////////////////////////////////////////////////////////
// CRulerCornerView view
class CRulerCornerView : public CView
{
CRulerInfo *m_pRulerInfo;;
protected:
CRulerCornerView(); // protected constructor used by dynamic creation
virtual ~CRulerCornerView();
virtual BOOL PreCre... |
16001b68a11dda132c4b8613cbd5c3f61fa6aba0 | 400ade5b6d9cd0559c5b3ef4004ef458878c4083 | /simply plot/plot/instruction.hpp | 90ebcf96df78a72d25b3a44b3efae816547a04d8 | [] | no_license | blackfm/simply-plot | a1ee31841bcd56452d47d83f38c4b29ec249cc92 | cc4af9a77bf0353d6eefa5f510969987a4c1a8f5 | refs/heads/master | 2021-01-01T03:45:35.157749 | 2016-05-15T08:39:49 | 2016-05-15T08:39:49 | 55,958,918 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,978 | hpp | instruction.hpp | //
// instruction.hpp
// simply plot
//
// Created by Andrey Denisov on 05/05/16.
// Copyright © 2016 Andrey Denisov. All rights reserved.
//
// Instructions are basic commands (text, path, etc.) that are passed
// to the plotter to be converted to the format-specific instruction
// written into the final figure... |
5b5c536f3cd34a58bc798933213719c296a5364d | 17bf8eca8ece516e65118a91d60134092a8f68e4 | /C++/300. Longest Increasing Subsequence/solWithOutput.cpp | e8475352ac2cf6516e04dd918b98e0688d4dcf31 | [] | no_license | HaelC/LeetCode | a433bb49e62a3b331982cb6fa337a72726c45a11 | 549c0217e771726611287f7bcd43c704190a60f1 | refs/heads/master | 2022-12-29T16:53:56.159942 | 2020-10-11T05:50:25 | 2020-10-11T05:50:25 | 177,907,987 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,312 | cpp | solWithOutput.cpp | class Solution {
private:
void output(vector<int>& nums, vector<int>& position, int index) {
vector<int> seq{nums[index]};
while (position[index] != index) {
index = position[index];
seq.insert(seq.begin(), nums[index]);
}
for (auto i : seq) {
cout... |
98bae5fc1acc9b57ced1ce09fc099140127e36d8 | 208c9c4fc8d8ad06f1ca56a0a68470927534c190 | /Cpp_Primer_Plus/Chapter2/carrots.cpp | 7a29774b4480d8592acb7bc51758fe25d4484674 | [] | no_license | Tenderest/CPP-Learning | e367adf5c0abb497992c0d4f5c8ce2289db0faf9 | 7fc92c96b00f9ecf8c27f68039a6fea4bb1fbb8d | refs/heads/main | 2022-10-15T19:36:29.384763 | 2022-05-27T08:55:27 | 2022-05-27T08:55:27 | 233,337,137 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 620 | cpp | carrots.cpp | // 程序清单2.2 carrots.cpp
// carrots.cpp -- food processing program
// uses and displays a variable
#include <iostream>
int main(void)
{
using std::cout;
using std::cin;
using std::endl;
// using namespace std;
int carrots; // 声明一个整数变量
carrots = 25; // 为变量赋值
... |
fa8c52e297a9a117f562a7495f78cc6dbbb884ae | 12d9e3ed40f1d5706932a3e44e8a08ca185b52cf | /UVa Online Judge/UVA 469 - Wetlands of Florida.cc | d9fcaa6fb0a3f7431d2640b6b0c852aa757ff0ea | [] | no_license | SebastianJM/Competitive-Programming | 25f83ceb607fcc3d95fa35c5f06cb7894413b857 | 5cd9de9485ae3f882a7c85292a77e5d662fce08f | refs/heads/master | 2020-03-23T21:25:42.970408 | 2018-11-20T05:06:46 | 2018-11-20T05:06:46 | 142,105,914 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 840 | cc | UVA 469 - Wetlands of Florida.cc | #include <bits/stdc++.h>
using namespace std;
int n,c,res;
int x[8]={0,0,1,1,1,-1,-1,-1};
int y[8]={1,-1,-1,0,1,-1,0,1};
vector<string> m,mm;
void filll(int i,int j)
{
res++;
mm[i][j]='L';
for(int e=0;e<8;e++)
if(i+x[e]>=0 && i+x[e]<n && j+y[e]>=0 && j+y[e]<c && mm[i+x[e]][j+y[e]]=='W')
{
mm[i+x[e]][j+y[e]... |
85090b06be1ff0aa3dea430164e49d563013fab2 | c6bb08d0587b240f0afb1da7d797a3f6704837c4 | /v2/src/core/training/training_executor.h | 0c2aa1f4dab3cd867002e83c7181514b7199f236 | [] | no_license | Flatta/jumanpp | e5304914874d7b294beecbe429064e9ce208fd8f | 531867b8d371680629c50e3c5e345954f1d257a6 | refs/heads/v2 | 2020-07-18T20:07:06.481051 | 2017-06-14T12:55:08 | 2017-06-14T13:00:29 | 94,327,860 | 0 | 0 | null | 2017-06-14T12:19:47 | 2017-06-14T12:19:47 | null | UTF-8 | C++ | false | false | 1,784 | h | training_executor.h | //
// Created by Arseny Tolmachev on 2017/04/06.
//
#ifndef JUMANPP_TRAINING_EXECUTOR_H
#define JUMANPP_TRAINING_EXECUTOR_H
#include "scw.h"
#include "trainer.h"
#include <atomic>
#include <condition_variable>
#include <mutex>
#include <thread>
namespace jumanpp {
namespace core {
namespace training {
struct Train... |
2f4cf545e6af31cba1749b2e3bdaa9f42201adb5 | f8bf15d4181b45999722896f60523b2f8780f0b3 | /Day06/ex01/include/serialize.h | 1568b3a8f5516716638d90bc94b8963b4dc39124 | [] | no_license | Etheram68/Piscine_cpp | 6551e33e50d3aef2f7c8a8ad8a75b38a1a1fa7b5 | d711a488e1ff5f1727d067297782960714d655d7 | refs/heads/master | 2022-11-30T02:05:56.585138 | 2020-08-13T15:38:37 | 2020-08-13T15:38:37 | 275,828,542 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,169 | h | serialize.h | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* serialize.h :+: :+: :+... |
736f2ec43684d1f0c8656d7ba18b69b42750a28a | 593dc85e82e69e74493e8190d655ceeed63f763e | /libtomo3d/src/projection1d.cpp | 6fa6f9bae8987c4ccbb3c8cf1f5cd3be1188965f | [
"MIT"
] | permissive | olegabr/tomo3d | 2b7d24842898fcc5f87835ba40db58d8da7443a2 | 36ffca69aba8556170ec7330271eb58ebaf7459b | refs/heads/master | 2021-01-22T01:33:33.749009 | 2018-02-12T16:31:11 | 2018-02-12T16:31:11 | 23,263,172 | 8 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,242 | cpp | projection1d.cpp | //projection1d.cpp
/*
* the projection1d class impl
* (C) 2004 olegabr. All rights reserved.
*/
#include "projection1d.h"
#include "ro_filtrate.h"
#include <iostream>
using std::cout; using std::endl;
#include <algorithm>
#include <numeric>
#include <cmath>
#include <cassert>
#include <boost/lambda/lambda.hpp>
proj... |
8c89f9039ba99c2be2f5d94f00a31f4907ce5014 | 8aa9a970895b0b2cf639f75738e33b0a4487208e | /ArrayAndString/pascal_triangle.cpp | 1501b4abee6c4854fc44a3e401f581ef96aa4737 | [] | no_license | VladAdGad/leetcode-solutions | 09d24c3cdd1f95ea45746a67a71ebfb944933152 | 0431f983ab86a53b5a22dc9deca62746c877e7e7 | refs/heads/master | 2023-01-30T16:14:37.235018 | 2020-12-11T19:24:45 | 2020-12-11T19:24:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 659 | cpp | pascal_triangle.cpp | #include "iostream"
#include "vector"
#include "../Utils/print.h"
using namespace std;
vector<vector<int>> generate(int numRows) {
vector<vector<int>> result(numRows);
for (int i = 0; i < numRows; ++i) {
result.at(i).resize(i + 1);
result.at(i).at(0) = 1;
result.at(i).at(i) = 1;
}... |
de3cc0da27aa3335817bb7be87fbe2f5e344e5e9 | c51febc209233a9160f41913d895415704d2391f | /YorozuyaGSLib/source/CMapDataDetail.cpp | 1d2dac911b4e035e810b9a3331686162ffc66510 | [
"MIT"
] | permissive | roussukke/Yorozuya | 81f81e5e759ecae02c793e65d6c3acc504091bc3 | d9a44592b0714da1aebf492b64fdcb3fa072afe5 | refs/heads/master | 2023-07-08T03:23:00.584855 | 2023-06-29T08:20:25 | 2023-06-29T08:20:25 | 463,330,454 | 0 | 0 | MIT | 2022-02-24T23:15:01 | 2022-02-24T23:15:00 | null | UTF-8 | C++ | false | false | 34,565 | cpp | CMapDataDetail.cpp | #include <CMapDataDetail.hpp>
#include <common/ATFCore.hpp>
START_ATF_NAMESPACE
namespace Detail
{
Info::CMapDatactor_CMapData2_ptr CMapDatactor_CMapData2_next(nullptr);
Info::CMapDatactor_CMapData2_clbk CMapDatactor_CMapData2_user(nullptr);
Info::CMapDataCheckCenterP... |
f0f6a32c64622f02593633241dff16e73d7cfcc1 | 56d2fdabaee1425b5c553afeef802750792a2ae6 | /Utility.cpp | 8a3db14e4c10375b1784676ba6fb75c9b592ccfd | [] | no_license | Wimacs/ElecSim | b808f1f8d8ba68ece34bfead01da127b02585cca | 16c55a4e1b46aaf5636862d790d02c9dfdc9fc84 | refs/heads/master | 2021-04-08T04:49:53.737174 | 2020-03-20T11:48:02 | 2020-03-20T11:48:02 | 248,741,807 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,471 | cpp | Utility.cpp | #include "Utility.h"
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/OpenGL.hpp>
#include <cmath>
#include <iostream>
using namespace sf ;
using namespace std ;
void interpolation(float &x, float const& y, float const& time, float const& deltaTime)
{
x += (2.f*(y-x)*deltaTime)/time ;
}
float ... |
3c69d82ad0c9e93908f878df9859814a26fb81a3 | e48491a9186c5f4cef38fc0f5670dfa1d9c959cc | /wall_generation/extract_contours.cc | 3eb40160b9fb6383da6c34d3ff5e28eb1a11ec84 | [
"MIT"
] | permissive | GKrafft2/Inflatables | 2431555ebd6b1b953dcf12dd425d79d4fec10847 | 6941fb1bf4a2f61a847605aea37adef97bf05d76 | refs/heads/master | 2023-08-12T12:49:41.283283 | 2021-10-07T23:05:46 | 2021-10-07T23:05:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,034 | cc | extract_contours.cc | #include "extract_contours.hh"
#include <MeshFEM/TriMesh.hh>
#include <MeshFEM/MSHFieldWriter.hh>
#include <list>
#include <map>
void extract_contours(const std::vector<MeshIO::IOVertex > &vertices,
const std::vector<MeshIO::IOElement> &triangles,
const std::vector<double>... |
1d210b4d1f41877f3cf418400b874d5e67fa3a00 | 5824ebd4d6deca39646beff01989fec5998b24d3 | /string_conversion.cpp | 811aebe5b677d84a6995f4c74f73df9b2ac2ed24 | [] | no_license | the-dagger/DS_progs | f4963388a8131ec5fb6b5945f26e65587c402bd5 | 2e51ab4fd7227a2376e3945e6a0aa090fc0f8bdf | refs/heads/master | 2020-04-27T15:34:43.080806 | 2015-02-20T11:39:25 | 2015-02-20T11:39:25 | 30,927,833 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 374 | cpp | string_conversion.cpp | #include<iostream>
#include<stdio.h>
#include<string.h>
using namespace std;
char convert(char*);
main()
{char str[50];
cout<<"Enter the string in lowercarse\n";
gets(str);
convert(str);
}
char convert(char s[])
{
int i=0;
for(i=0;i<strlen(s);i++)
{
if(s[i]=='e')
s[i]='i';
s[i]=toupp... |
3fbbb11e973ed961257af0a7f09f0e09ac1ca806 | 2d9937d9cbffc63ac12a136b7121e1a05798d2c7 | /WordTree.cpp | a60ab45767ff662b3578f7654593eec94c290f73 | [] | no_license | jsanchez2388/CSIT832-Final-Word-List | a8b99857d5048e8916e91d9e60a87fc2818d194a | 66505976cc7a6f4552467a98da2e7d492e7157e5 | refs/heads/master | 2020-04-11T20:31:53.164375 | 2018-12-17T04:34:37 | 2018-12-17T04:34:37 | 162,074,327 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,081 | cpp | WordTree.cpp | #include "wordtree.h"
WordTree::WordTree(const WordTree & rhs)
{
copyTree(root, rhs.root); //Call helper function to copy the tree
}
void WordTree::copyTree(WordNode*& copy, const WordNode* og)
{
if (og == nullptr) //if root of original tree is null
{
copy = nullptr; //set root of new tree to null
}
else
{
... |
02d93a40cc57104d724a5a94baf999f4a061e27d | de390163287fda86b73df015d6b6a3dc5e1bf736 | /Codechef/Jan 2020/Long Challenge/brute.cpp | 867e53f337569fee457a969fdb6a09ac3c9c3795 | [] | no_license | iamarshsingh/Competative_programming | fb71a7b62d4ba2846deae25203f9087f31a0b675 | 09418842d029b20d2df0f5b5a5e87619f44a18b3 | refs/heads/master | 2020-06-26T14:39:59.199295 | 2020-03-28T14:05:26 | 2020-03-28T14:05:26 | 97,026,462 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,324 | cpp | brute.cpp | #include <bits/stdc++.h>
#define ld long double
#define MOD 1000000007
#define N 1000006
#define F first
#define S second
#define all(x) x.begin(),x.end()
#define INF 1000000000000000000
#define fastio ios_base::sync_with_stdio(false); cin.tie(NULL);
#define randright srand(chrono::steady_clock::now().time_since_epoch(... |
4b4d20a8f8030dd2e90609b12af4c400063b68eb | 838a7cfeb7e4a9f79710f636a038b8e5b82e1ec2 | /practica1/Euclides (1).cpp | 8efadb03041173afd7f06cb18d810af467941280 | [] | no_license | dianapao/Analisis-Algoritmos | 6fc8cd834a28664d2ac067bcddbad0f5b60c5087 | f8b1559b82a62a84903f783972401a2145cae2c4 | refs/heads/main | 2023-02-11T22:39:40.144182 | 2021-01-10T04:21:44 | 2021-01-10T04:21:44 | 328,301,579 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 788 | cpp | Euclides (1).cpp | /*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
INSTITUTO POLITÉCNICO NACIONAL
ESCUELA SUPERIOR DE CÓMPUTO
Análisis de Algoritmos
GRUPO: 3CV1
ALUMNOS:
- De la Cruz Sierra Diana Paola
- Raya Chávez Samuel Antonio
TITULO: Algoritmo de Euclides para M.c.d.
PROFESOR: Benjamín Luna Benoso
FECH... |
e26e96fe032e70bb6af1c8aa4636b4918d172be7 | b848d4f79256c7738b0923420d8548a0121ceb81 | /src/attributes/MetaDataAttributes.cc | 64705725df776d04b2d4997eccb5ae018dcdf86b | [
"Zlib",
"LGPL-2.0-or-later",
"MIT",
"LicenseRef-scancode-other-permissive",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"xlock",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ecmwf/magics | 57f5be3f4dcf339203688e7ce2bee92d9bc11318 | ba612c99a681547d111e4088ddc722cfb77b0666 | refs/heads/develop | 2023-08-19T02:56:24.734190 | 2023-08-04T07:37:52 | 2023-08-04T07:37:52 | 160,882,537 | 50 | 14 | Apache-2.0 | 2023-06-22T10:35:22 | 2018-12-07T22:39:04 | Jupyter Notebook | UTF-8 | C++ | false | false | 3,906 | cc | MetaDataAttributes.cc |
/****************************** LICENSE *******************************
* (C) Copyright 1996-2017 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the pr... |
33f886b479b0326ff49d2bddade82bafbdbf9865 | 27d834e71940822e8bf08a2c63164524adcd6512 | /structural/excercise.cpp | cd0f23f9388ca82f28605bc6ef824961bcebdb57 | [] | no_license | sinigr54/DesignPatterns | 8cf1edd878af118ea0f025ad7aa667526b30ef04 | e427ec0a7d7627b314809b2092bccef2aa9c6ee0 | refs/heads/master | 2020-03-13T19:14:21.117012 | 2018-09-07T11:20:02 | 2018-09-07T11:20:02 | 131,249,648 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,389 | cpp | excercise.cpp | //
// Created by Alexander Chekh on 05.05.2018.
//
#include <string>
#include <sstream>
#include <iostream>
#include <typeinfo>
using namespace std;
struct Flower
{
virtual string str() = 0;
};
struct Rose : Flower
{
string str() override {
// todo
return "A rose";
}
};
struct RedFlower : Flower
{
... |
28dfe396aa873dbf185567e7806332c9e08f6247 | 54df463fd68c1925401c4fcdb6612040b09d4749 | /LearnCPP/BookLibrary.h | ddf9e27a0d4d3281292646a90e47c3730311fe66 | [] | no_license | Arbint/LearnCPP | 61de5c6152f81f9a32334b0a1716ef29d1fdd36d | 644ea9476a6ef29b9101ab3f026fe1be3ae2fc1d | refs/heads/master | 2021-01-13T03:38:09.473507 | 2018-11-16T03:05:00 | 2018-11-16T03:05:00 | 77,300,976 | 0 | 0 | null | 2016-12-25T00:55:12 | 2016-12-24T21:38:39 | C++ | UTF-8 | C++ | false | false | 703 | h | BookLibrary.h | #pragma once
#include "UniversialInclude.h"
//Forward declarations
class Book;
class Patron;
class Date;
struct Transaction;
class BookLibrary
{
public:
BookLibrary();
~BookLibrary();
//API
void AddBook(Book bookToAdd);
void AddPatron(Patron patronToAdd);
void checkOutBook(Book& bookToCheckOut, Patron& PatronCh... |
5f87400f15f38702b8e0c8fe55ef1ea92a84c3e8 | 8ac232d9d039fc53f2d090852c2b28e0d9809ce5 | /Websites/Codeforces/706B.cpp | bb49912fabfd03287e8b4b43dcced69b17a8869e | [
"MIT"
] | permissive | rem1niscence/Algorithms | 43a6319dfc1fe438a7c81d59cbde41d0d3db3f91 | 4c9ec4119b0d92d5889f85b89fcb24f885a82373 | refs/heads/master | 2021-09-06T06:14:40.326863 | 2018-02-03T03:19:34 | 2018-02-03T03:19:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 821 | cpp | 706B.cpp | #include <iostream>
#include <algorithm>
#include <vector>
#include <climits>
#include <cmath>
#include <map>
#include <set>
using namespace std;
int binary_search_simple(int lo, int hi);
bool check(int);
vector<int> shops;
int money;
int main()
{
int numShops;
cin >> numShops;
for (int i = 0; i < numSho... |
9afe8b9b13f04ccb1fce7d73be61766e3248198f | 80cb092b8bdc1753a5d10740a0a940ca834d747e | /src/notification_manager.h | 66c1151da0a171cf5b2f2406a8cca172e01ce893 | [
"MIT"
] | permissive | macosunity/MagicalGirlMica | 64cc39353d74729b2dd202cd7ed4267534a23562 | 45aedb4e21ae8f6fae0cdbfd1882c59551a44326 | refs/heads/master | 2021-01-21T23:33:56.962217 | 2015-04-01T20:36:17 | 2015-04-07T14:14:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,032 | h | notification_manager.h | /*
* notification_manager.h
*
* Copyright (C) 2014-2015 Ming Tsang, Nathan Ng
* Refer to LICENSE for details
*/
#pragma once
#include <deque>
#include <memory>
#include "event_stage_scene.h"
namespace cocos2d
{
class Node;
}
namespace mica
{
class Notification;
}
namespace mica
{
/**
* Manage and show... |
118282ce9d3e848523c3bcac538e0e9405cda2e2 | d4d321b6a8949627c537b904d8ece588009929bc | /cpp-version/Cube.h | 751a44a1f5261e7dec86c7059c289b705456a97b | [] | no_license | benjaminhuanghuang/opgl-solar-sys | 929efe923415ce1efd7d12d0efae50f57e04b990 | 5feae9f4d9a589974eef0a512f23342b2ece8d90 | refs/heads/master | 2023-03-27T02:36:11.046939 | 2021-03-30T02:25:07 | 2021-03-30T02:25:07 | 351,169,197 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 138 | h | Cube.h |
#pragma once
#include "Entity.h"
#include <string>
class Cube : public Entity
{
public:
Cube(class SolarSystem *solar);
~Cube();
};
|
f6ee8c75b13c253d56fedb89b2e2ea6933c6420a | 39cdb6ff35231538ef25c565181981ccf237cc30 | /BOJ/4963.cpp | 3e44ec6c090c0d2ff277c175e795068289f30ef2 | [] | no_license | dittoo8/algorithm_cpp | 51b35321f6cf16c8c1c259af746a9f35d5ba8b76 | d9cdda322d3658ffc07744e4080c71faeee6370c | refs/heads/master | 2023-08-03T14:49:08.808253 | 2021-02-16T04:13:53 | 2021-02-16T04:13:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,119 | cpp | 4963.cpp | #include <iostream>
#include <string>
using namespace std;
int w, h;
int map[52][52];
bool check[52][52];
int dx[] = {-1,-1,-1,0,0,0,1,1,1}, dy[] = {-1,0,1,-1,0,1,-1,0,1};
void dfs(int x, int y){
check[x][y] = 1;
for(int i=0;i<9;i++){
int nx = x+ dx[i], ny = y + dy[i];
if(nx <0 || nx >= h|| ny <... |
a21ec70c15e5c9cb9516d66bd67520797a8bdb20 | 1dc301c61445e9ae3fb6c9ee7b54f0b30ebc711e | /RMQ_one_dimesion.cpp | a2845a77086982ff011f2ce4ae6acd841463b679 | [] | no_license | royss7/cplusplus_algs | 811d1317f3e12b74a9b03025c050de6b6877a767 | a63871b72e114fa7a96fbf739d1c8faf63b5f3ad | refs/heads/main | 2021-01-01T06:50:24.519627 | 2014-10-13T07:15:03 | 2014-10-13T07:15:03 | 25,119,700 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,642 | cpp | RMQ_one_dimesion.cpp | /* RMQ 是ST(sparse table 稀疏表)算法,可以再预处理时间复杂度
O(nlogn),查找时间O(1)的复杂度情况下完成数组中的范围最值查找。
比如n长度的数组A,查找A[i, j](A中i到j范围内的最大值).
方法1. 顺序遍历一次,O(n),缺点在于多次查找时时间代价太大
方法2. DP,用O(n*n)的空间存储所有范围内最值,缺点在于空间复杂度过大
方法3. RMQ,时间复杂度O(1),预处理O(nlogn)只要一次,空间复杂度O(nlogn)
方法4. 线段树
算法说明网站 http://comzyh.com/blog/archives/273/ 有动画演示,非常... |
136cc09b5a3bc4639cfca1d2b519a5c5d765f241 | 480e33f95eec2e471c563d4c0661784c92396368 | /DQMOffline/CalibCalo/interface/DQMSourceEleCalib.h | c6584b99bb980f45e16990b0be6d89d2038d4444 | [
"Apache-2.0"
] | permissive | cms-nanoAOD/cmssw | 4d836e5b76ae5075c232de5e062d286e2026e8bd | 4eccb8a758b605875003124dd55ea58552b86af1 | refs/heads/master-cmsswmaster | 2021-01-23T21:19:52.295420 | 2020-08-27T08:01:20 | 2020-08-27T08:01:20 | 102,867,729 | 7 | 14 | Apache-2.0 | 2022-05-23T07:58:09 | 2017-09-08T14:03:57 | C++ | ISO-8859-1 | C++ | false | false | 2,346 | h | DQMSourceEleCalib.h | #ifndef DQMSourceEleCalib_H
#define DQMSourceEleCalib_H
/** \class DQMSourceEleCalib
* *
* DQM Source for phi symmetry stream
*
* \author Stefano Argiro'
* Andrea Gozzelino - Universita e INFN Torino
*
*/
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/EcalRecHit/interface/Ecal... |
5d8a0f9c0a001d64b4c3f909aeca2bb7d6a45eb8 | f6a31b5e7487f79531d9e797357559496a7049ec | /src/stopcondition.cc | 78f76172596b1feb3941f35a6aa64b080bd2ea56 | [
"MIT"
] | permissive | RSkinderowicz/GPUBasedACS | 290bfde4f55cc34e416ef8bc4e10a1c3e0a7a059 | f2c85cd5bf10321b1e1a19ca8d1ecb3bd0054fb1 | refs/heads/master | 2021-01-20T12:27:56.160096 | 2017-05-05T10:32:42 | 2017-05-05T10:32:42 | 90,363,516 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 606 | cc | stopcondition.cc | #include <algorithm>
#include "stopcondition.h"
TimeoutStopCondition::TimeoutStopCondition(double max_seconds) :
max_seconds_(std::max(0.0, max_seconds)),
iteration_(0) {
}
void TimeoutStopCondition::init() {
start_time_ = std::chrono::steady_clock::now();
iteration_ = 0;
}
void TimeoutStopConditi... |
fa87b3dc0f2a4c8cae9fce96c4e4e8b6a4f5bb2f | b4f7073600455d0938d153a902e4e1a9d0b990ff | /practical_exercises/10_day_practice/day2/递归1.cpp | d03c2abfa0dc6a3002e6979f078e8f3c6d1140d6 | [] | no_license | Neflibatata/CPPThings | 34784cb0d13b79484874e53e6f791a6448d283c2 | 52c5794f529396d438e447f5800836f56413cef5 | refs/heads/master | 2023-03-29T12:07:21.258987 | 2021-04-02T05:48:14 | 2021-04-02T05:48:14 | 353,918,825 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 309 | cpp | 递归1.cpp | #include<iostream>
using namespace std;
int f(int n);
int main(int argc, char const *argv[])
{
cout<<"input x:";
int x;
cin>>x;
cout<<f(x)<<endl;
system("pause");
return 0;
}
int f(int n)
{
if(n==0)
{
return 1;
}
else
{
return n*f(n-1);
}
} |
233467d736bf09d0cceac07ef11826b690d44009 | 85a07135265b8b10afb8a9c33124b83ab6b96aae | /trajectory_planner/include/trajectory_planner/circle_trajectory.h | 8582e2e22cb5970dedacd72f9b2c7f17640721b2 | [] | no_license | sven-cremer/robot_utilities-dev | f183a99a4da7bbe8f9a7e50a32f76a1d07a92359 | 5d020257c22e449316f0534d10a0faae5bf81ed5 | refs/heads/master | 2021-07-13T04:08:57.957948 | 2016-03-14T06:36:06 | 2016-03-14T06:36:06 | 107,212,508 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,299 | h | circle_trajectory.h | /*!
* \name CircleTrajectory
* \brief Generates a circular trajectory
* \details Generates a set of position and velocity vectors that represent a circular trajectory
* \author Rommel Alonzo
* \version 1.0
* \date January 22, 2016
* \pre First initialize the system.
* \warning ... |
595ea550ab57343e618fcaf0fc887b60989a0bf4 | 3373dda63def755baebbebc5780ab8f421cf8836 | /src/Texture2D.cpp | 4db4fab7118506c0ba2bd28705600f5d0b5bd8f9 | [] | no_license | TNielsen92pro/openGL | 9a5bfb0ca24ed15addf4f68c29b18c4afb4b8637 | c5df8827f6bfb4f19978af328cc19e56635b1223 | refs/heads/master | 2020-12-03T08:47:13.931518 | 2020-01-06T11:19:03 | 2020-01-06T11:19:03 | 231,259,021 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,357 | cpp | Texture2D.cpp | #include "Texture2D.h"
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <GL/gl.h>
#include <iostream>
Texture2D::Texture2D(int width, int height, GLuint gl_internal_format, GLuint gl_format,
GLuint gl_type, void* data) {
width_ = width;
height_ = height;
glGenTextures(1, &gl_location_);
... |
82500cfe9ab733285f293713c3c95847c83ff006 | 0f08276e557de8437759659970efc829a9cbc669 | /problems/p78.h | d3a86ca400cbdbd8a95c159618b2c27e989a460d | [] | no_license | petru-d/leetcode-solutions-reboot | 4fb35a58435f18934b9fe7931e01dabcc9d05186 | 680dc63d24df4c0cc58fcad429135e90f7dfe8bd | refs/heads/master | 2023-06-14T21:58:53.553870 | 2021-07-11T20:41:57 | 2021-07-11T20:41:57 | 250,795,996 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 713 | h | p78.h | #pragma once
#include <bitset>
#include <vector>
#include <cmath>
namespace p78
{
class Solution
{
public:
std::vector<std::vector<int>> subsets(std::vector<int>& nums)
{
std::vector<std::vector<int>> pset;
size_t p = static_cast<size_t>(pow(2, nums.size()));
... |
299e3dbe677bb8ab5f67f8791a4cb60a7f1c8605 | 11e772891abd7f7ff023b9d242234fee54958528 | /include/Arithmetic.h | 08b0d76fe9b3de84ee753fe46559b07d7785317d | [
"MIT"
] | permissive | atskajita/Halide-elements | e9daf6841350c5f493d1643db52e03549109ac0f | e3daf255a88996b290796b5f0f010e1e30f928e3 | refs/heads/master | 2021-08-23T12:33:53.596118 | 2017-11-12T20:14:45 | 2017-11-12T20:14:45 | 110,607,825 | 0 | 0 | null | 2017-11-13T22:04:19 | 2017-11-13T22:04:19 | null | UTF-8 | C++ | false | false | 894 | h | Arithmetic.h | #ifndef HALIDE_ELEMENT_ARITHMETIC_H
#define HALIDE_ELEMENT_ARITHMETIC_H
#include "Halide.h"
namespace Halide {
namespace Element {
template<typename T>
Halide::Func add(Halide::Func src0, Halide::Func src1)
{
using namespace Halide;
Var x, y;
Func dst("dst");
Expr srcval0 = cast<uint64_t>(src0(x, y... |
5cc933b00309640b8f970b24fd2ce861ce7cfb01 | 5cbb7a94f5470f5107ed5dfb386c4bd59050200c | /code/unitTest/UT_LiangZhu/src/test/file_system_ut.cpp | 6bf8adad9a35f6e8d7ac1ab687394a2c97746d95 | [] | no_license | hill9932/OpenTaker | d339e03029b28e907eb3351e82071d09cc31715a | 3b497a4fbf86248cf8bb717c6a4e495172e5e287 | refs/heads/master | 2021-01-25T07:18:45.690675 | 2015-06-15T14:51:12 | 2015-06-15T14:51:12 | 27,569,793 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,618 | cpp | file_system_ut.cpp | #include "file_system.h"
#include "gtest/gtest.h"
using namespace LiangZhu;
/**
* @Function: Test function of IsFileExist()
**/
TEST(FileSystem_TestCase, IsFileExist_Test)
{
CStdString fileName = "./noexist/FileSystemTest.txt";
DeletePath(fileName);
ASSERT_FALSE(IsFileExist(fileName));
CreateFile... |
5adfcb4da5f7bfd70ca5b68cd8284ab0b8373007 | 3ffd3e1de13455159c3e2c2706650e1662cecf10 | /arm/o.le-v7-g/.moc/moc_SendVcard.cpp | 6e970db0cbc23b2ac6fb871dfc53bfb0b3e34b03 | [] | no_license | jtokuah/NFCPaymentApp | 247ce7fdae6aa6b2b3f445d5ad8e8fa6f2005ce1 | 9de2fe344ce11d68cdc9fca24809121dcb5d80bb | refs/heads/master | 2020-05-18T06:08:24.742988 | 2013-11-07T00:37:13 | 2013-11-07T00:37:13 | 12,140,990 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,337 | cpp | moc_SendVcard.cpp | /****************************************************************************
** Meta object code from reading C++ file 'SendVcard.hpp'
**
** Created by: The Qt Meta Object Compiler version 63 (Qt 4.8.5)
**
** WARNING! All changes made in this file will be lost!
***************************************************... |
f84d2bf24fb4c19abfdac5118d0b56a59e55ad73 | e9e89d9b19b2ba900b5ac890cbd5c63116d0d461 | /src/common.h | 9eeaa8ff130b1b444d94ceba2eb0c2ae88a9d826 | [
"MIT"
] | permissive | waty2246/SimpleEngine | f10b4902e457c081e3571cf06835cc5851f44bb3 | 64bce381b14ee087ec96b9d86491640d5277753f | refs/heads/master | 2023-07-22T17:58:00.694097 | 2021-09-09T10:31:47 | 2021-09-09T10:46:37 | 404,663,753 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 315 | h | common.h | #pragma once
#include <functional>
#include <typeindex>
#include <algorithm>
#include <type_traits>
#include <iterator>
#include <exception>
#include <chrono>
#include <typeinfo>
#include <sstream>
#include <string>
#include <memory>
#include <vector>
#include <map>
#include <Windows.h>
#include <windowsx.h> |
ea8f34b4829ca62493fe5c4166ce7454fd782385 | 23ae9e82e348ec74482e43ca451e92d0e25e5218 | /HeapOfStudents/HeapAddress.cpp | 089d38aeab13d5c367e2aa12abf6e13f173b0a5d | [] | no_license | JoshEwart/portfolio | c2e4c7a59ede317f84628df5b37e0aab92e9454b | 1135ff81410b6eedaa9fa9b052c4c936919c94b4 | refs/heads/master | 2020-03-27T04:16:38.760939 | 2018-06-28T18:23:50 | 2018-06-28T18:23:50 | 145,916,611 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,220 | cpp | HeapAddress.cpp | //HeapAddress.cpp
#include <iostream>
#include <string>
#include "HeapAddress.h"
using namespace std;
//HeapAddress constructor
HeapAddress::HeapAddress(){
HeapAddress:line1 = "Line1";
HeapAddress::line2 = "Line2";
HeapAddress::city = "city";
HeapAddress::state = "state";
HeapAddress::zip = "zipcode";
};
//get/s... |
ae1396c2e9379b690727e5bd9ac2dd82a25e4f19 | 69a956af96416defc4ed9b0a684638bd9b027e36 | /database/databaselab/form.h | db370dcb0095dfc3d84f3be443be4fdb81d5866d | [] | no_license | SJ110/some_course_of_three_second | f7664eb8c37435f15732d42d68d00ca32eadeb75 | 1970cf50999f72163c429b7e9b27507ac668f53e | refs/heads/master | 2020-04-28T11:14:14.833315 | 2019-08-17T15:42:39 | 2019-08-17T15:42:39 | 175,229,818 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 836 | h | form.h | #ifndef FORM_H
#define FORM_H
/*
* 参考自https://blog.csdn.net/qiufenpeng/article/details/81259344
* */
#include <QWidget>
#include<QDateTime>
#include<QMessageBox>
#include"dbconnector.h"
#include"showdingd.h"
#include"mycombobox.h"
#pragma execution_character_set("utf-8")
namespace Ui {
class Form;
}
class Form : ... |
9f4768684b90e9e98fafda2203677e8ff69a1314 | 210706db16a8e9572b3beb410a5b6c3c85603a2a | /Factory/AbstractFactory.hpp | 4d9b437976a6e2911865554d6341014ce50be8c9 | [] | no_license | Rezerol/designpatterns | 53ff458a2dfc92fc09a9ebc6b8f541a37a6ce197 | 8ded661a2ffccdd84cd7cfed0c7b9ec1dc57b644 | refs/heads/main | 2023-04-05T00:50:38.740919 | 2021-04-15T16:16:21 | 2021-04-15T16:16:21 | 353,878,853 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 465 | hpp | AbstractFactory.hpp | //AbstractProduct_t is abstract product
template<class AbstractProduct_t>
class AbstractFactory
{
public:
virtual AbstractProduct_t *create_product() = 0;
virtual ~AbstractFactory(){}
};
//ConcreteProduct_t is concrete product
template<class AbstractProduct_t, class ConcreteProduct_t>
class ConcreteFactory : p... |
4f9a12b07eb49da8f597ecbbad339bc8f3f5777a | a0bdedcc814dfcbf6f1742c398b64a31619af4df | /ideccmbd/CrdIdecScf/PnlIdecScfQcd.cpp | 3b5a84a6471c6c2c21fb9ccc9881dbad82c3ea31 | [
"BSD-2-Clause"
] | permissive | mpsitech/idec_public | ec7231939b8987fd66482d99276609e16d4ad3f7 | a74cf1c7095e08ee61b237fddc1642f83dbb852d | refs/heads/master | 2021-05-13T20:43:55.046131 | 2018-06-09T16:11:30 | 2018-06-09T16:11:30 | 116,916,593 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,946 | cpp | PnlIdecScfQcd.cpp | /**
* \file PnlIdecScfQcd.cpp
* job handler for job PnlIdecScfQcd (implementation)
* \author Alexander Wirthmueller
* \date created: 30 Dec 2017
* \date modified: 30 Dec 2017
*/
#ifdef IDECCMBD
#include <Ideccmbd.h>
#else
#include <Idecd.h>
#endif
#include "PnlIdecScfQcd.h"
#include "PnlIdecScfQcd_blks... |
9c933a7bc660d289a2940f049bb16346645f6e4a | 2a6dfb243bc2d8a6cbb1374605046afcfde1b545 | /xtcurve.cc | 05fdd5817f893e2981b61162651dc865d9c395c9 | [] | no_license | sakah/hs_cosmic | 8cd03e9e96dcf2a4c68305d15bfdc6d79a377c9f | 7b594379e9ade35f4ffd3a91819c6304c63a3efd | refs/heads/master | 2021-01-21T13:21:42.794860 | 2016-03-16T12:29:04 | 2016-03-16T12:29:04 | 52,138,073 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,932 | cc | xtcurve.cc | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "TCanvas.h"
#include "TLine.h"
#include "TH2F.h"
#include "TGraph.h"
#include "config.h"
#include "xtcurve.h"
//__________________________________________________
XTcurve::XTcurve()
{
}
int XTcurve::GetXTcurveType(const char* xt_curve_name)
{
in... |
d2b855f54130184fb63665240d06e954c65aefd0 | 96cb8fc3f97c7f1db554fa7184ca1ec4c107a22c | /daemon/actors/PlayerActor.h | 323dade9acd0fea0d038120e548ea8725d4d3722 | [
"BSD-2-Clause"
] | permissive | Zackmon/SeventhUmbral | f8493a4ae62f6fe10e656d49b999dd3fb63582be | 25580111b361d2fdc2c15fd2cd150e4c763ca774 | refs/heads/master | 2022-01-11T12:43:26.081530 | 2021-12-23T17:01:28 | 2021-12-23T17:01:28 | 439,861,352 | 0 | 0 | NOASSERTION | 2021-12-19T12:46:13 | 2021-12-19T12:46:12 | null | UTF-8 | C++ | false | false | 1,795 | h | PlayerActor.h | #pragma once
#include "Actor.h"
#include "mysql/Client.h"
#include "../Character.h"
struct INVENTORY_ITEM
{
INVENTORY_ITEM(uint32 itemId, uint32 itemDefId)
: itemId(itemId), itemDefId(itemDefId)
{
}
uint32 itemId = 0;
uint32 itemDefId = 0;
};
typedef std::vector<INVENTORY_ITEM> Inventory;
... |
df9b262c62e8ca0661f8bd5ec19d76e7765de832 | 2692e11c292fea05510830af9712b91a03428ac9 | /toonz/sources/toonzqt/gutil.cpp | 6e63e35ed16397e89a3fa17060ed45436b9cc8ac | [
"BSD-3-Clause"
] | permissive | manongjohn/OTX | 92b72589fbcf26867f18997862e8cdb8ef5a1af6 | a80fe827b7a6316480974d712f9175d970729f04 | refs/heads/master | 2021-06-15T09:33:57.878785 | 2021-05-13T16:01:59 | 2021-05-13T16:01:59 | 188,602,761 | 20 | 9 | NOASSERTION | 2019-08-05T01:06:23 | 2019-05-25T19:02:45 | C++ | UTF-8 | C++ | false | false | 25,133 | cpp | gutil.cpp |
#include "toonzqt/gutil.h"
#include "toonz/preferences.h"
// TnzQt includes
#include "toonzqt/dvdialog.h"
// TnzCore includes
#include "traster.h"
#include "tpixelutils.h"
#include "tfilepath.h"
#include "tfiletype.h"
#include "tstroke.h"
#include "tcurves.h"
#include "trop.h"
#include "tmsgcore.h"
// Qt includes
... |
a1f4c63552e954dbe7506832f721bc07f0fcc51a | d4b46e5856a720f2a91f2765956432ee399977fb | /Candy/src/Candy/Engine/PtnVisual.cpp | 5d954aa452104da3cd7bd755e23fad3f111536b0 | [] | no_license | Danvil/Darwin | 6c647f90dd714c6da756fdb386c74fc66f91b542 | 32b23e8fed350138de4f3b0312792265cbac3176 | refs/heads/master | 2021-01-19T18:14:02.672004 | 2014-07-24T21:36:56 | 2014-07-24T21:36:56 | 4,684,809 | 9 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 416 | cpp | PtnVisual.cpp | #include "PtnVisual.h"
#include "Resources.h"
using namespace std;
namespace Candy
{
PtnVisual::PtnVisual(Ptr(PTN::Mesh) mesh, const std::string& frag, const std::string& vert, const std::string& tex_name)
{
mesh_ = mesh;
shader_ = Candy::CreatePtnShader(frag, vert, tex_name);
}
PtnVisual::~PtnVis... |
ba34f30a039abe342731502260a4adbf99986fac | ebd585fdafb22d31fcd6d04b209f81e88d1a2083 | /modem_proc/modem/datamodem/interface/dss/src/DSS_NetworkStateHandler.h | 7a1a4770732ff1802cb4c67672f83f4c99b83dcd | [
"Apache-2.0"
] | permissive | xusl/android-wilhelm | fd28144253cd9d7de0646f96ff27a1f4a9bec6e3 | 13c59cb5b0913252fe0b5c672d8dc2bf938bb720 | refs/heads/master | 2018-04-03T21:46:10.195170 | 2017-04-20T10:17:49 | 2017-04-20T10:17:49 | 88,847,837 | 11 | 10 | null | null | null | null | UTF-8 | C++ | false | false | 1,314 | h | DSS_NetworkStateHandler.h | #ifndef __DSS_NETWORKSTATEHANDLER_H__
#define __DSS_NETWORKSTATEHANDLER_H__
/*====================================================
FILE: DSS_NetworkStateHandler.h
SERVICES:
Handle network down event.
=====================================================
Copyright (c) 2008 - 2012 QUALCOMM Technologies Incorpora... |
e1a1d917f91e0be0452361441ef3bfed27fb4e5e | 31936db8f4e4d38075e2b6690b124f623261d623 | /day3A/K.cpp | dfca72684cecbf10a2ccc296c0e74c406082b340 | [] | no_license | vladvlad00/MIPT-2020 | dc8b51c0bed835ad8fde82195ce54c775ac2f0ae | a11c58c3167fad9d44d612ec9f74eaa0d6d34289 | refs/heads/master | 2023-01-30T12:46:57.969288 | 2020-12-11T18:33:24 | 2020-12-11T18:33:24 | 320,651,607 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,199 | cpp | K.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <vector>
#include <utility>
#include <iostream>
#include <queue>
#include <cstring>
#include <algorithm>
#include <unordered_map>
#include <cmath>
#define NMAX 5005
#define SOURCE -1
#define NOT_VISITED -2
#define NOT_FOUND -3
using namespace std;
struct Muchie
{
int x, y, i... |
1275774833983ea66905f93a990b7e577a8992e1 | c8cb66c031a47bb06e8c7b0bc9bbef1cad8da356 | /src/OptimisationTrajectoire/OptimisationTrajectoire/QLearning.h | e4764ca1aa859b027d029d8d2dd7e49cb4064ecf | [] | no_license | ChevalierP/PIP | 2a3b190979ffbc28371beef22a429f2a9791f460 | 6dda4e8088879d328dfe23bf6f30b54b749658b7 | refs/heads/master | 2020-05-31T18:15:53.458080 | 2015-06-28T13:17:38 | 2015-06-28T13:17:38 | 29,702,814 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,990 | h | QLearning.h | #ifndef _PIP_QLEARNING_H_
#define _PIP_QLEARNING_H_
#include <map>
#include "State.h"
#include "Vehicule.h"
#include "Track.h"
#include "Config.h"
// Politique de récompense
class SpeedAxisReward
{
public:
SpeedAxisReward(Config& config);
float GetReward(const Observation& obs, const Command& command, const Command... |
e78cdfe72aec1a5ffb82da4a0ad52477dc871e55 | a9e96f0081d2ee2c5934ff93a35dfa4727b35219 | /src/engine/hitablelist.h | 47f03325ff119e192d4ab5add50161bd1257af6c | [] | no_license | jsberbel/SawassRayTracer | 713d1b6bf2960c354810a2d7b4eacec49a6ef7ac | b4132394bcb98f6be6c02c73a865fd6f1fcfa28c | refs/heads/master | 2021-07-02T21:08:10.862865 | 2018-12-07T01:37:26 | 2018-12-07T01:37:26 | 133,870,192 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 3,547 | h | hitablelist.h | // ======================================================================
// File: world.h
// Revision: 1.0
// Creation: 05/22/2018 - jsberbel
// Notice: Copyright © 2018 by Jordi Serrano Berbel. All Rights Reserved.
// ======================================================================
#pragma once
#include "core... |
8feae4433d3aa3dca6eb54fa2c06ef10ffa7189c | 76d97141373d29e94f068a66342445ad7fe57063 | /core/addrmng.h | 1de48a7bb5127fcf9ea244ee816effc208d92724 | [] | no_license | likelibhub/likelib | 7e76dea7ee4cb9e3d5d829f9ce34b9d9c9fedb2c | c69d27a853dc66cf907178f9301adc9314e9bf22 | refs/heads/master | 2020-08-16T09:24:01.666316 | 2019-10-17T02:44:57 | 2019-10-17T02:44:57 | 215,485,190 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 773 | h | addrmng.h | /*****************************************************************************
*
* FileName: addrmng.h
*
* Author: Tom Hui, tomhui1009@yahoo.com, 8613760232170
*
* Create Date: Wed Oct 03 21:18 2018
*
* Brief:
*
*
*****************************************************************************/
#ifndef __ADDR... |
77a87006ce34085f1df768bff6dce6947db1c136 | 5d439adace85071d68aeee6ba6d50ecd8216a74f | /Server/LogicServer/LogicFrame/Logicserver_FrameBase.cpp | 078accdfdb139ea8cc959c3dd23495545aec08fc | [] | no_license | gong782008371/IceBurning | 4de69395e69c1d4b8e09dc4f6a325b685f9903e2 | e9ea9e85d67679957c68535392b24c23f4f1b29d | refs/heads/master | 2021-01-22T07:48:28.371128 | 2016-05-01T13:07:18 | 2016-05-01T13:07:18 | 54,826,000 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 680 | cpp | Logicserver_FrameBase.cpp | #include "Logicserver_FrameBase.h"
NS_LS_BEGIN
CFrameRegister* CFrameRegister::instance = NULL;
CFrameRegister* CFrameRegister::Instance()
{
if (instance == NULL)
{
instance = new CFrameRegister();
}
return instance;
}
int32_t CFrameRegister::RegistFrame(int32_t msgID, CFrameB... |
4ffb749d45bdcd7d988aae3c737ba424a1469141 | 34541ea972c7e8fae951d3ba053be9af35a572cc | /unit 4/BinaryTreeM.h | 58a475c15ca6545fb5c0b2707601eba13ebf7683 | [
"MIT"
] | permissive | dakshayh/Data-Structures | 0d48da88cea9a4f2a72ca05b4773c14c1c025baf | 042e0e66578efdba3369a140537ed1567c89d216 | refs/heads/master | 2021-04-15T13:11:35.110967 | 2018-01-29T08:35:55 | 2018-01-29T08:35:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,974 | h | BinaryTreeM.h | #include<iostream>
#include "stackLinkedList.h"
using namespace std;
template<class T>
class BTree;
template<class T>
class BTnode
{
T data;
BTnode<T> *lc,*rc;
public:
BTnode(T d,BTnode<T> *l,BTnode<T> *r)
{
data=d;
rc=r;lc=l;
}
friend class BTree<T>;
};
template<class T>
class BTree
{
BTnode<T> *root... |
0dd0259171d0fe4deec3216eb869119d73a0862f | 53afd84307ad7e2c69a3c4fdece590c31e865281 | /keyboard.cpp | ae9b2a7bf3c7b8616ece85c1f012a367f8cf76dc | [
"MIT"
] | permissive | asmorgan24/login_marketplace | 2151229c21a486d9acdfca71cc115e38b2c5c908 | 828e742e69ca2fb73318f273851be93fcc5f6ddf | refs/heads/master | 2021-01-19T13:15:56.853079 | 2018-11-05T23:47:46 | 2018-11-05T23:47:46 | 82,372,537 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,424 | cpp | keyboard.cpp | #include "keyboard.h"
#include <iostream>
#include <QGridLayout>
#include <QSignalMapper>
#include <QPushButton>
#include "QDesktopWidget"
#define NEXT_ROW_MARKER 0
struct KeyboardLayoutEntry{
int key;
const char *label;
};
KeyboardLayoutEntry keyboardLayout[] = {
{ Qt::Key_1, "1" },
{ Qt::Key_2, "2... |
342c5f906851ed4cdb5d7b67cf999d65de849413 | b88db70bf12d97fa2ddb1c79e46fc4dd2727ca54 | /source/plugins/ass/Ass.cpp | a09cf3f523543a402db13e76f53ea1bc7be3ad52 | [] | no_license | RenolY2/RiiStudio | 12ed41e0fb2b4f6f1e4c6158a00e5cee49c6f7aa | 480fd8bd530b33423f80ff830ae7eaaa732e7839 | refs/heads/master | 2022-04-23T14:28:50.171276 | 2020-04-21T11:24:20 | 2020-04-21T11:24:20 | 257,517,879 | 0 | 0 | null | 2020-04-21T07:42:46 | 2020-04-21T07:42:45 | null | UTF-8 | C++ | false | false | 26,192 | cpp | Ass.cpp | // Assimp importer.
#include <glm/glm.hpp>
#include <glm/gtx/matrix_decompose.hpp>
#include <core/3d/i3dmodel.hpp>
#include <core/kpi/Node.hpp>
#include <vendor/assimp/Importer.hpp>
#include <vendor/assimp/cimport.h>
#include <vendor/assimp/postprocess.h>
#include <vendor/assimp/scene.h>
#include <plugins/gc/Export... |
a558ae86a68113516f62e757e94012287165c44f | 6f53c35cd526a8b72190bb9d84dc1b0f9954db33 | /Random_Codes/nbinstrings.cpp | 0ea09da5b8eace837444954bda8f0c59df8021bb | [] | no_license | k-raghav/Coding | 8158196a2f671652dde61e72a73130482388c537 | b00aff9537f1f24b6186dc54eb3a1ddbc935230a | refs/heads/master | 2021-01-10T09:34:26.621649 | 2019-03-19T14:38:32 | 2019-03-19T14:38:32 | 46,981,755 | 0 | 0 | null | 2019-03-21T13:13:37 | 2015-11-27T13:30:14 | C++ | UTF-8 | C++ | false | false | 367 | cpp | nbinstrings.cpp | #include<bits/stdc++.h>
using namespace std;
void helper(int n, int k , string &curr) {
if(n == 0) {
cout << curr << endl;
return;
}
for(int i = 0 ; i < k ; i++ ) {
char c = i + '0';
curr.push_back(c);
helper(n-1,k,curr);
curr.pop_back();
}
}
void nbinstrings(int n,int k) {
string curr="";
helper(n... |
d458c879dd0c31145fb381a0133a4c248d93b966 | f016cafc82547942fcb40fa16bf8b2b3cdd4ece4 | /cpp/packet/edns.cpp | d8910bbd50e9d7222f5aa6f65ef3fb054e94a942 | [] | no_license | FlyingWithJerome/DNS-measurement-cpp | fb91337e20785fde6083e31b1e5fda0037556c4b | 5509eb29cc74f493d844a593bb3e4bad81ab3c3e | refs/heads/master | 2020-04-22T06:20:05.252994 | 2019-09-21T14:32:25 | 2019-09-21T14:32:25 | 170,186,905 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,399 | cpp | edns.cpp | #include "edns.hpp"
EDNS::EDNS(const Tins::DNS& incoming_packet)
{
if (incoming_packet.additional_count() > 0)
{
Tins::DNS::resource EDNS_record = incoming_packet.additional()[incoming_packet.additional_count()-1];
if (EDNS_record.type() != 41)
{
goto No_EDNS_Support;
... |
d8c654af83a4d364973f7337b1ba43dea86482dd | ccb6a24f65af2848b271dcd8707271d54be2efbf | /src/Chapter11/vect.cpp | 53566ea60ac1486a2469251dadda457fc86ad90d | [] | no_license | linxiaoyi0724/CppProcessTestUbuntu | 94856b95fb7671af6c0b8d42d85fede638a521a8 | ee68857928abc18880c1cda7156990290e05a62f | refs/heads/master | 2021-07-12T04:40:08.415250 | 2020-08-24T16:06:06 | 2020-08-24T16:06:06 | 194,497,783 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,822 | cpp | vect.cpp | #include "vect.h"
#include <cmath>
namespace VECTOR
{
const double Rad_To_deg = 57.2957795130823;
// void Vector::set_mag()
// {
// mag = std::sqrt(x * x + y*y);
// }
// void Vector::set_ang()
// {
// if(x == 0.0 && y == 0.0)
// {
// ang = 0.0;
// }
... |
9064fe81c7e16b612a6d3e4b1e55b9a11a081624 | 5fb73487b78a786821c00c93222a06812d3652cf | /installer_py/additional_files/Inc/NN.h | b0074965bd0f5a7147180d4878a7d8b54d97f1d0 | [] | no_license | GiorgioCozza/AOS_AI_Movement_Recognition | 69536d380903a847d100e0229d683479628f9aff | d08ec8435e61fd36bb875147ab0c21a49a998572 | refs/heads/master | 2022-04-19T22:21:42.038908 | 2020-04-19T18:46:42 | 2020-04-19T18:46:42 | 229,559,581 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,161 | h | NN.h |
/**
*******************************************************************************
* @file NN.h
* @author Cozza Giorgio, Liu Jiaqi
* @date 08/04/19
* @version 1.0
* @brief Class in charge of managing a neural network instance.
*********************************************************************... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.