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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
35d8200fd16b6bef7e855de843eca8270202bd4b | 56acf1e1c32f41fcda5f11f4322ffa9fbdae2024 | /Kattis/-listgame2.cpp | 11e1d993209ac2827ce9e7b65e4a5b7096d0f974 | [] | no_license | Kelym/ACM_Training_Archive | cfea3606c0e713a88c73690d4fb4f2ce7eda9ecd | 8d6b6f32954e1742b1ed15f982e332a03051042d | refs/heads/master | 2021-01-10T16:44:53.426817 | 2015-11-28T21:20:33 | 2015-11-28T21:20:33 | 43,664,922 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 768 | cpp | -listgame2.cpp | /*
TODO: https://open.kattis.com/problems/listgame2
Given an integer, make it the product of K different positive numbers.
Output the max K.
*/
#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main(){
long long n;
vector<int> p;
cin>... |
dec4c6716c131a83aae8cfbc168fc7518ec026b7 | 26cc5abd76eab50e0a260200b56247cf3f10e8ee | /app/jni/ik_thread.cpp | c972206b86a350a7be2506a97fa44f86ae02116a | [] | no_license | ihjklj/ikc | 8bfd9ee881fb59452c4851967554b9bf419676a4 | 1a4269f14c98786ce87d9e150b05a7077c706bbc | refs/heads/master | 2020-03-08T08:13:31.171749 | 2018-04-04T09:56:31 | 2018-04-04T09:56:31 | 128,016,737 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 803 | cpp | ik_thread.cpp |
#include "ik_thread.h"
extern JavaVM* gJvm;
CThread::CThread(PTHREAD_ROUTINE func, void *lParm) {
mThreadId = 0L;
mThreadFunc = func;
mParm = lParm;
mExit = false;
if (pthread_create(&mThreadId, NULL, runThreadFunc, this) == 0){
pthread_detach(mThreadId);
//LOGD("run thread:%ld.", mThread... |
b26750bfb1d81175034fa60b7fba6d8dd23f0cde | bb9b83b2526d3ff8a932a1992885a3fac7ee064d | /src/modules/osgVolume/generated_code/PropertyAdjustmentCallback.pypp.cpp | e6208e9868d34c4a9ee90d86b8d871cb59bf215c | [] | no_license | JaneliaSciComp/osgpyplusplus | 4ceb65237772fe6686ddc0805b8c77d7b4b61b40 | a5ae3f69c7e9101a32d8cc95fe680dab292f75ac | refs/heads/master | 2021-01-10T19:12:31.756663 | 2015-09-09T19:10:16 | 2015-09-09T19:10:16 | 23,578,052 | 20 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 12,688 | cpp | PropertyAdjustmentCallback.pypp.cpp | // This file has been generated by Py++.
#include "boost/python.hpp"
#include "__call_policies.pypp.hpp"
#include "__convenience.pypp.hpp"
#include "wrap_osgvolume.h"
#include "wrap_referenced.h"
#include "propertyadjustmentcallback.pypp.hpp"
namespace bp = boost::python;
struct PropertyAdjustmentCallback_wrapper : ... |
bd3c0aac94cb063c996a1761e66bbd37dbe7477e | 568d1d0ec9d42a8a68f03418385fb5ac0ab42e10 | /1.9.0简单调整后的最终版本/test-widgt/debug/moc_loginmainwindow.cpp | aafd7018b101b5514a99fab15237c40cff06bbec | [] | no_license | OneForNothing/NIC | 953126588cb492b60049c0f3ab03e57f76cfcb5b | 1cb5d68ebdb7ab40700a78cfb13a8680e00f1a85 | refs/heads/master | 2020-04-27T16:16:08.614522 | 2019-03-13T06:38:19 | 2019-03-13T06:38:19 | 174,479,131 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,226 | cpp | moc_loginmainwindow.cpp | /****************************************************************************
** Meta object code from reading C++ file 'loginmainwindow.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.2.1)
**
** WARNING! All changes made in this file will be lost!
*****************************************************... |
141318c08864bba801aa5861b699aa0d32c15e95 | 123712e7a0db5383a5e736a3d1435e33fa30080d | /inc/component/com_network.h | e2b852b598d970316f54c5729e82ed45695b54ac | [
"MIT"
] | permissive | lemontreehuang/dios | f66aed3648f80adab8ccc54e6d4935bdb6593fe2 | ce947382bcc8692ea70533d6def112a2838a9d0e | refs/heads/master | 2021-05-30T17:02:23.630692 | 2015-11-17T12:39:09 | 2015-11-17T12:39:09 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,110 | h | com_network.h | #ifndef _____NET_SERVICE_H_________
#define _____NET_SERVICE_H_________
#include "dios/platform.h"
#include "dios_com/dios_com.h"
namespace dios{
namespace com{
class IConnectorSink;
/*
* 由INetworkContext创建产生
*/
class IConnector : public std::enable_shared_from_this<IConnector>
{
public:
typedef ... |
f3cf5fd09db6d4b8800039e648bd1d51bbcf8302 | 964743cc9072f09d3d60a88ddd90971e48e8a956 | /NewGeneUI/NewGene/Infrastructure/ModelAction/uimodelactionmanager.cpp | 27d9750624781d6366d7554c1e19c27f78afdb5b | [] | no_license | daniel347x/newgene | f6a7abae718bc4b3813c6adf2c2f991dca535954 | dc0b5ddaeea441d905d627a4145d7a3e2eda78b5 | refs/heads/master | 2022-06-27T17:19:42.205690 | 2022-06-21T21:52:07 | 2022-06-21T21:52:07 | 9,526,888 | 0 | 2 | null | 2022-06-21T21:52:08 | 2013-04-18T16:55:22 | C | UTF-8 | C++ | false | false | 462 | cpp | uimodelactionmanager.cpp | #include "uimodelactionmanager.h"
#include "../../NewGeneBackEnd/Utilities/NewGeneException.h"
UIModelActionManager::UIModelActionManager(QObject * parent, UIMessager & messager)
: QObject(parent)
, UIManager(messager)
{
// *************************************************************************
// All Managers ... |
803e3c989005cef757e9be2f75e8f05657286a4e | bcf2018acb5848d8beb4863e1247eb96709800ee | /Ladder/Less1300/141A.cpp | 0733c022d22f8df56d92984311520d8b981fe33e | [] | no_license | filipeherculano/codeforces_deception | 71ac34a59599f3db8b927d0c5084896ee61867c0 | 6b331368a918d9cee379664e2b3c00ababa48e7a | refs/heads/master | 2021-01-11T03:35:35.231606 | 2017-02-04T01:55:03 | 2017-02-04T01:55:03 | 68,941,746 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 576 | cpp | 141A.cpp | #include <bits/stdc++.h>
#define FOR(i, a, n) for(int i = (int)(a); i < (int)(n); ++i)
#define REP(i, n) FOR(i, 0, n)
#define all(a) a.begin(),a.end()
#define pb push_back
typedef unsigned long long llu;
typedef long long ll;
typedef long double ld;
using namespace std;
int main(){
int v[27] = {0};
string f, s, p... |
2c6d1a069bfcb7dfef2850d1980e5c984e21b624 | 63c21d8f615b43889cb7b247a6f4e108bc8c714c | /infra/include/l0-infra/base/HashMap.h | b1b89b680c162fb975332bddedb386929ac3a5c3 | [] | no_license | liulei2015/perfect-cpp | cba79a82c6bc6e6e56d023057fc7ec589b7a0c1f | 5287e4a5d4aa3a4c87668f5f4be1feb610b4acbe | refs/heads/master | 2021-01-01T16:28:10.131718 | 2017-08-06T13:33:16 | 2017-08-06T13:33:16 | 97,839,632 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,104 | h | HashMap.h | #ifndef INCL_USI_H569AC47A_98D9_42AD_B1C8_4EF1EA3DFAD7
#define INCL_USI_H569AC47A_98D9_42AD_B1C8_4EF1EA3DFAD7
#include "l0-infra/base/SequenceAllocator.h"
#include "l0-infra/base/NullPtr.h"
#include "l0-infra/base/Status.h"
#include "l0-infra/base/Assertions.h"
#include "l0-infra/base/AbstractMap.h"
#include <string.h... |
85a787a7c60fbcd691955801e21d39a427a0ef59 | 9c942fe75218d6018f8390c926f0b693e36ceaad | /cpp/0820_ShortEncodingofWords.cpp | 733bc6d5159befb7aeebafcf6815f1372378fa3c | [] | no_license | joy-yjl/leetcode_yjl | 5878113ae6cb81d1f735fa812b13e7f7b31883f6 | 1def24ac4ef723ecfd1e4dc50ced677809bc942c | refs/heads/master | 2022-07-31T04:42:45.845904 | 2022-07-20T03:35:20 | 2022-07-20T03:35:20 | 206,940,495 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 718 | cpp | 0820_ShortEncodingofWords.cpp | class Solution {
public:
static bool compare (string& first, string& second) {
return first.size() > second.size();
}
int minimumLengthEncoding(vector<string>& words) {
unordered_map<string, int> mp;
int ans = 0;
sort(words.begin(), words.end(), compare);
for(int i=0;... |
48b7ec230d9a9cbb3f61ecb960b36891dde4079a | 9ea575abc4b9641d0deb5285d4e6cb2396e3ac27 | /CodeForces/0732B_Cormen.cpp | c9251767d8ee1c614933d5e25f907ab99234b7c2 | [] | no_license | Ming-J/LeetCode | 65e11cdeb1530ae163fa1fc9851acbcee7f05744 | a69f56a1e92a4cb32a1a16bc3201027910f1a877 | refs/heads/master | 2022-05-08T00:37:01.830067 | 2022-03-06T15:40:43 | 2022-03-06T15:40:43 | 26,152,966 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 700 | cpp | 0732B_Cormen.cpp | #include <iostream>
#include <vector>
using namespace std;
vector<int> calWalk(vector<int> &aff, int walkNeed, int &newWalks){
vector<int> walks(aff.size(),0);
walks[0] = aff[0];
for( int i = 1; i < aff.size(); i++){
int affSum = aff[i] + walks[i-1];
int additional = ( walkNeed - affSum > 0 )? walkNeed -... |
fc8c04f65b2323b2bba517fb00c2291bc6a1e04b | 1a525bf9ed3313c8a19c645cfa6cd52ff6d75960 | /get_owners_name.cpp | 254d42829d965607c37c0a2fc665a6eb3d9e1f58 | [] | no_license | chowdhuryRakibul/randomFlatAllotment | acd221e80ce5fdf7be358ec39cec3ff241562946 | a46010563878e8ccd8195210e54457fe3c811283 | refs/heads/main | 2023-04-06T18:46:51.648130 | 2021-04-06T03:20:40 | 2021-04-06T03:20:40 | 358,781,176 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,416 | cpp | get_owners_name.cpp | #include "get_owners_name.h"
#include "ui_get_owners_name.h"
#include "mainwindow.h"
#include "QFileDialog"
#include "QDebug"
#include "QFile"
#include "QMessageBox"
#include "QTextStream"
#include "main.h"
#include "QRandomGenerator"
#include "QStringList"
extern allInfo myAllInfo;
GET_OWNERS_NAME::GET_OWNERS_NAME(... |
3c0a3f3a8201bda52efbde355ee98afa0dcc0a9b | e018d8a71360d3a05cba3742b0f21ada405de898 | /VS_UI/src/VS_UI_widget.cpp | 6fb3d3dff590eb975e28cef93eda189da2b2a668 | [] | no_license | opendarkeden/client | 33f2c7e74628a793087a08307e50161ade6f4a51 | 321b680fad81d52baf65ea7eb3beeb91176c15f4 | refs/heads/master | 2022-11-28T08:41:15.782324 | 2022-11-26T13:21:22 | 2022-11-26T13:21:22 | 42,562,963 | 24 | 18 | null | 2022-11-26T13:21:23 | 2015-09-16T03:43:01 | C++ | UHC | C++ | false | false | 4,101 | cpp | VS_UI_widget.cpp | #include "client_PCH.h"
#include <assert.h>
#include "VS_UI_widget.h"
#include "VS_UI_filepath.h"
#ifndef _LIB
Button * gpC_press_button;
#endif
//bool ButtonGroup::press;
//----------------------------------------------------------------------------
// Operations
//-------------------------------------... |
06f073302c2b9dd31efdfc942b22ebec1915b801 | 2ef6a773dd5288e6526b70e484fb0ec0104529f4 | /poj.org/2499/2444004_RE.cc | eb608d21218df77bf8699cca8747fc9e98352272 | [] | no_license | thebeet/online_judge_solution | f09426be6b28f157b1e5fd796c2eef99fb9978d8 | 7e8c25ff2e1f42cc9835e9cc7e25869a9dbbc0a1 | refs/heads/master | 2023-08-31T15:19:26.619898 | 2023-08-28T10:51:24 | 2023-08-28T10:51:24 | 60,448,261 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 468 | cc | 2444004_RE.cc | #include <stdio.h>
void calc(int a, int b, int &l, int &r)
{
if (a == 1)
{
r = b - 1;
return;
}
if (b == 1)
{
l = a - 1;
return;
}
if (a > b)
{
calc(a - b, b, l, r);
++l;
}
else
{
calc(a, b - a, l, r);
++r;
}
}
int main()
{
int ti, tn;
scanf("%d", &tn);
for (ti = 1; ti <= tn; ++ti)
{
... |
c927a12321216e7d5370ee3f8c1e1d1cefbbd274 | f79e5d1d3f86469d8b981126c393cd4a4ec87f71 | /src/images/utils/Pixel.cpp | 7390c25bc091a890ad211f9d73d7e899c6533fde | [] | no_license | pitekantropus/images | f3341e0289f8f06ded1cc0465d5c027425dd6ecb | d974ff96288003d091ac5e4f0cea237c89f48146 | refs/heads/master | 2020-06-27T05:04:29.073451 | 2019-08-18T16:10:11 | 2019-08-18T16:10:11 | 199,851,580 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 969 | cpp | Pixel.cpp | #include "Pixel.hpp"
#include <sstream>
#include <iomanip>
#include <iostream>
std::string Pixel::toString() const
{
std::stringstream stream;
stream << std::setw(3) << (unsigned)red << " "
<< std::setw(3) << (unsigned)green << " "
<< std::setw(3) << (unsigned)blue;
return stream.str... |
a721ddb7e7a4e2b90e8165e8883b973736753f54 | 3a7671cac5e58e6eba34c41367870466c162f815 | /sketches/Lab_5_9_atividade_1/Lab_5_9_atividade_1.ino | fac733e7087c18c11bc6888a7c29aa19a74535e8 | [] | no_license | oturing/arduinando | df2fe77ada142086dd13a1aed74d3e6477a8ddc0 | ca7768c6a304c528ea9063ffef23037a0077226d | refs/heads/master | 2020-05-18T05:30:23.593719 | 2013-09-14T11:22:54 | 2013-09-14T11:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 247 | ino | Lab_5_9_atividade_1.ino |
const int led = 13;
const int botao = 2;
int estadoBotao;
void setup() {
pinMode(led, OUTPUT);
pinMode(botao, INPUT);
}
void loop() {
luz = analogRead(LDR);
Serial.print("Luz: ");
Serial.println(luz);
delay(500);
}
|
c536a1a3e768e45277212103f67fc1da90b78918 | a56252fda5c9e42eff04792c6e16e413ad51ba1a | /resources/home/dnanexus/root/include/TPavesText.h | 9639164c7d822d425e7d1cb2942bc1afe637a9a6 | [
"LGPL-2.1-or-later",
"LGPL-2.1-only",
"Apache-2.0"
] | permissive | edawson/parliament2 | 4231e692565dbecf99d09148e75c00750e6797c4 | 2632aa3484ef64c9539c4885026b705b737f6d1e | refs/heads/master | 2021-06-21T23:13:29.482239 | 2020-12-07T21:10:08 | 2020-12-07T21:10:08 | 150,246,745 | 0 | 0 | Apache-2.0 | 2019-09-11T03:22:55 | 2018-09-25T10:21:03 | Python | UTF-8 | C++ | false | false | 1,322 | h | TPavesText.h | // @(#)root/graf:$Id$
// Author: Rene Brun 19/11/95
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
031f02b73286104f841cc17770dddd203ddf6bc0 | 76ef8ea5f82410db62b2a0336a4727e11e8d0a84 | /PTIME.cpp | b82f2bdbce57a62aac18cf37d6b999ecd22ab313 | [] | no_license | akulagrawal/Competitive-Coding | 3ece603cb4baeccf3215674d20ff6775ca3e960c | 74885d6dbae3b21fd673d4fdb0497c233bf0c179 | refs/heads/master | 2022-11-11T14:12:06.942130 | 2020-07-07T18:59:20 | 2020-07-07T18:59:20 | 277,892,664 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 648 | cpp | PTIME.cpp | #include<bits/stdc++.h>
using namespace std;
int a[10004];
vector<int> prime;
int main()
{
int n,p,t,sum,i,j;
scanf("%d",&n);
for(i=2;i*i<=n;i++)
{
if(!a[i])
{
for(j=2*i;j<=n;j+=i)
a[j]=1;
}
}
for(i=2;i<=n;i++)
{
... |
a7e12c3ca004339a1108c9092fcae7473d3fdc22 | d6853d7ae8361e4d7b5b3127044d4d4e2755e8a6 | /img-to-pdf/mainwindow.cpp | f8cc8396cd4707f47cfec3bc6a94a31c6ddb469d | [] | no_license | Mopsik62/img-to-pdf | 7841b13b3d4fd3098bbaba9d9acbeddb547b7227 | 053feac70e25686bcfe945ab549d0cf01500c383 | refs/heads/main | 2023-01-23T16:14:44.160550 | 2020-11-24T16:29:59 | 2020-11-24T16:29:59 | 315,700,833 | 2 | 0 | null | 2020-11-24T17:09:42 | 2020-11-24T17:09:42 | null | UTF-8 | C++ | false | false | 2,255 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
ui->dateEdit->setDate(QDate::currentDate());
QFile f("dir.txt");
if(f.open(QIODevice::ReadOnly))
str = f.readAll();
QFile f1... |
b72ebc2cb23700d75b4c678af301d6a69cfa3013 | 51247d7a36526e81d720727d0328ceab2fc4e077 | /RedFogMagic/RedFogMagic/FunctionManager.hpp | c3175a5e5041e9f240d4e9fbb97ddcd50a89fd86 | [] | no_license | RedFog/RedFogMagic | c6b9ca0380c3a5de0389c7c8c74035a1e07ee568 | 7ce40bb4c8ffda7a1345eb52e8b6897ae4628fdf | refs/heads/master | 2021-03-12T20:38:29.546056 | 2014-10-22T13:09:40 | 2014-10-22T13:09:40 | 25,562,253 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 9,021 | hpp | FunctionManager.hpp | #pragma once
#include "Type.hpp"
#include <tuple>
#ifndef normax
#define normax(a,b) (((a)>(b)) ? (a) : (b))
#define normin(a,b) (((a)<(b)) ? (a) : (b))
#endif
namespace Types{
//wrapper
template<typename T>class ObjectWrapper{
T item;
public:
ObjectWrapper(T item) :item(item){};
ObjectWrapper& operator=(T i... |
d89e28465d97b20f6ee01f9a443866f75dbd50ae | 7dc9aa54cc9b5b9cb63ebb6b26d7e1ad380ed7cd | /SlatebackAppCLI/src/Command.h | 0c8e8eabcca96ec1a2c909fb6701459dbb9952fb | [
"MIT"
] | permissive | filmbrood/Slateback | 7703131cf515e4d93becdc792adbb5469d17b879 | b512df3b3f13ba152bcf0801c2ad36676d57d2e2 | refs/heads/master | 2023-09-02T06:53:46.206035 | 2021-09-18T02:56:18 | 2021-09-18T02:56:18 | 296,993,356 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 673 | h | Command.h | #pragma once
#include <string>
// Abstract class to be inherited by commands for CommandList. Must define OnInit() and OnUpdate() in children.
class Command
{
public:
virtual void OnInit() = 0;
virtual void OnUpdate() = 0;
virtual void SetInput(std::string input); // Sets m_Input string.
virtual void SetDesc(std:... |
6074d3626da8162a0e05185a4d77ab5f7d202636 | 89abf316efbaab7a06d5dd3560dae5751c281a1a | /Week_04/322. 零钱兑换.cpp | 3f8279d592523922104105a4b4ed04692c5675c8 | [] | no_license | runningRun/algorithm012 | 4ed8889b8a157d947a36e4ea92bb73893dc2bc0f | c1f44d599db2bf38bda78bf8c132abfecd119081 | refs/heads/master | 2022-12-17T02:58:11.370961 | 2020-09-20T14:25:11 | 2020-09-20T14:25:11 | 279,012,468 | 0 | 0 | null | 2020-07-12T07:15:07 | 2020-07-12T07:15:06 | null | UTF-8 | C++ | false | false | 5,466 | cpp | 322. 零钱兑换.cpp | class Solution {
public:
int coinChange(vector<int>& coins, int amount) {
// [] 1 返回 -1
// [] 0 返回 0
// [1] 0 返回 0
if (0 == amount )
return 0;
if (coins.empty())
return -1;
sort(coins.begin(), coins.end(), greater<int>()); // 降序
... |
dbfae460bbc3b50797bf0d9749f9e68ed2f8e0b6 | 692af5a07aa3f7dde83c9c4793a7297a6ea8780b | /Classes/GolfXIMager.cpp | 48928afeb424e9dd32c05b1b4dd663c4469deba8 | [] | no_license | w13315071023/DigitGolf_300 | 5c7886521a83874602a51e9639607df4e2fd98a5 | 1ed5158bb593044eddb312d43497afe45b87ee6f | refs/heads/master | 2020-09-14T11:49:44.549011 | 2016-11-03T06:34:30 | 2016-11-03T06:34:30 | 66,529,287 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,129 | cpp | GolfXIMager.cpp | #include "GolfXIMager.h"
GolfXIMager::GolfXIMager()
{
}
GolfXIMager::~GolfXIMager()
{
}
GolfXIMager* GolfXIMager::m_pInstence = NULL;
bool GolfXIMager::m_IsHitBall = false;
GolfXIMager* GolfXIMager::getInstence()
{
if (m_pInstence == NULL)
{
m_pInstence = new GolfXIMager();
if (!m_pInstence->init())
{
dele... |
3114583f3ecf86c791a68a97c32f7ecc065b973a | 9efaee6c826cd48473cd6c187b2542b7f8c02e8a | /06-cpp11feature/cpp11feature/functionbind.cpp | 89ac16638b5eeb0043fcedf7f8f3803e94bd4278 | [] | no_license | secondtonone1/cpp-learn | 71fa2a3cfd53a64075421f474ff0a92d6e1e223e | 34dae5bb0fc6cd9b2dc7e567a406ac939a5865f9 | refs/heads/master | 2020-12-14T18:05:04.567665 | 2020-03-11T23:18:04 | 2020-03-11T23:18:04 | 234,833,832 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,853 | cpp | functionbind.cpp | #include "functionbind.h"
#include <utility>
#include <vector>
#include <algorithm>
void fun(int x, int y, int z)
{
cout << x << " " << y << " " << z << endl;
}
void fun_2(int &a, int &b)
{
a++;
b++;
cout << a << " " << b << endl;
}
void use_funcmem() {
//f1的类型为 function<void(int, int, int)>
auto f1 = std::... |
6fe9e7fa7087b810e34ade4c519a173d21c83649 | 938caa07956634eb9663d775fa5fc55860a1aacf | /src/sdl/sound.h | c69586bbc8571c3129c666a447990d491c3f02d1 | [
"BSD-3-Clause"
] | permissive | lasty/ld30_connectedworlds | 5f657124b4243f5d3e82aa6693b4b3ba0084bf22 | 807b4c5e05d74f4385c2f71590deb6a69e5e5553 | refs/heads/master | 2021-06-02T04:52:40.612406 | 2020-08-10T12:03:32 | 2020-08-10T12:03:32 | 23,244,574 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 493 | h | sound.h | #ifndef SDL_SOUND_H
#define SDL_SOUND_H
#include <string>
struct Mix_Chunk;
namespace sdl
{
class Sound
{
public:
Sound(const std::string &sound_filename);
~Sound();
//Block copy, implement move
Sound(const Sound ©) = delete;
Sound(Sound &&move);
Sound& operator=(const Sound ©) = delete;
Sound& ... |
03ed08954fdded5738af88fe5fbab93411ee3a8d | 4e45f4dce1e4a4faf576de9c1bdb0338d44e4d81 | /src/tools.cpp | 64e05fda64839f46991364b49c0d41d3831d5adc | [] | no_license | kswaroop1/CarND-Unscented-Kalman-Filter-Project | da0acbad4d39839cf84177a1a51c55f1df8b35b8 | 0f8db03f0dc128e78601d8d0cbc59351886aa037 | refs/heads/master | 2021-01-20T01:33:46.435219 | 2017-04-30T20:37:46 | 2017-04-30T20:37:46 | 89,296,266 | 0 | 0 | null | 2017-04-29T06:15:17 | 2017-04-24T23:33:21 | C++ | UTF-8 | C++ | false | false | 1,883 | cpp | tools.cpp | #include <sstream>
#include <iostream>
#include <iomanip>
#include <numeric>
#include "tools.h"
using Eigen::Vector2d;
using Eigen::VectorXd;
using Eigen::MatrixXd;
using std::vector;
using std::string;
using std::stringstream;
Tools::Tools() {}
Tools::~Tools() {}
/*static*/ VectorXd Tools::CalculateRMSE(const vecto... |
3edb6bed4632cd4f4b9a5da6a7d760552c1ccd73 | c432cf3a7db8cd558c7d8b66f9a7be62064ae5a8 | /C++/02_leetCode_GfG_Hacker/l025_no_of_connected_components/main.cpp | 21bb01f9fd12e90a5569c95054e138efcdf3bea6 | [] | no_license | babakpst/Learning | 19867acf37145fed8acfd1321ec49b7eba217042 | 945ffb6136b4cb7944810834db1366d8ee5128ad | refs/heads/master | 2023-08-09T06:57:49.476966 | 2023-08-04T13:48:02 | 2023-08-04T13:48:02 | 158,579,987 | 4 | 0 | null | 2020-08-28T21:07:05 | 2018-11-21T16:53:53 | C++ | UTF-8 | C++ | false | false | 1,239 | cpp | main.cpp |
// babak poursartip
// Aug 8, 2022
#include <iostream>
#include <vector>
#include <numeric>
#include <algorithm>
#include <set>
using namespace std;
class Solution {
public:
int countComponents(int n, vector<vector<int>>& edges) {
std::vector<int> root(n);
std::iota(root.begin(), root.end(), 0);
... |
957a1d4947d57127d17f32ea45de409b67a6f700 | da1500e0d3040497614d5327d2461a22e934b4d8 | /starboard/android/shared/jni_utils.h | 515280154ad72217bb4d12bb44947417f631cf87 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | youtube/cobalt | 34085fc93972ebe05b988b15410e99845efd1968 | acefdaaadd3ef46f10f63d1acae2259e4024d383 | refs/heads/main | 2023-09-01T13:09:47.225174 | 2023-09-01T08:54:54 | 2023-09-01T08:54:54 | 50,049,789 | 169 | 80 | BSD-3-Clause | 2023-09-14T21:50:50 | 2016-01-20T18:11:34 | null | UTF-8 | C++ | false | false | 2,821 | h | jni_utils.h | // Copyright 2017 The Cobalt Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... |
344f32d58fa199213a7a8c7e7143ad7983c8791b | bab2a50dec758a565b84f6569b3c377a0273741a | /Leetcode_双周赛23_5361_圆和矩形是否有重叠/Leetcode_双周赛23_5361_圆和矩形是否有重叠/main.cpp | 499e5692bf2a842d28efb52cc931d81c002ed0c8 | [] | no_license | chx2502/LeetCode | 734ed70cc7a9c732ca7795c9f1920a6763548fb6 | 9c292b22ba4a3163691f3dfdf11037adbc644c1b | refs/heads/master | 2021-11-27T18:04:25.168830 | 2021-06-25T02:45:15 | 2021-06-25T02:45:15 | 180,375,645 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 475 | cpp | main.cpp | //
// main.cpp
// Leetcode_双周赛23_5361_圆和矩形是否有重叠
//
// Created by chx on 2020/4/4.
// Copyright © 2020 __Ninja__. All rights reserved.
//
#include <iostream>
using namespace std;
class Solution {
public:
bool checkOverlap(int radius, int x_center, int y_center, int x1, int y1, int x2, int y2) {
... |
ab8a5b632e753288bc943b6d7d4475504a2a8ded | 026a49bd77f1f9b50d851292ca49d256e322b217 | /lab/00 - Tipos Abstratos de Dados/binary-search-trees/main.cpp | 4570003036ccb3c49d321c4ff67bd89ffd959215 | [] | no_license | gnuns/pds2 | 1994dc5dee1ff628d1b52a7db835b2acd78f3b94 | b8b2a304326f8674ac7f5852cb53b9c7c7553d8d | refs/heads/master | 2020-03-26T16:13:46.482143 | 2018-08-28T21:10:12 | 2018-08-28T21:10:12 | 145,088,875 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 468 | cpp | main.cpp | #include "BST.hpp"
int main (int argc, char const *argv[]) {
BST tree;
tree.insertNode(480);
tree.insertNode(920);
tree.insertNode(55);
tree.insertNode(99);
tree.insertNode(9);
tree.insertNode(17);
tree.insertNode(18);
tree.insertNode(3);
tree.display();
cout << tree.contains(8) << endl;
cou... |
44ccd32c0316a7044a2aef1d372f5a03bbc56ec0 | 10fce5ba5a40413ab63a0301c2d5bd7a816477d0 | /src/shared/Output.h | 98f730e6e816f1efa3edac60c8335790ff882bf3 | [
"MIT"
] | permissive | RainerBlessing/TheRayTracerChallenge-C- | 425b7ba20e3d34c91ddfd146f4e39863f577d7ec | 22c990201507f46d5bb1604bc1f6ee88e59cef95 | refs/heads/master | 2020-11-29T13:24:08.981512 | 2020-01-11T15:47:12 | 2020-01-11T15:47:12 | 230,123,066 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 987 | h | Output.h | #ifndef RAY_TRACER_CHALLENGE_OUTPUT_H
#define RAY_TRACER_CHALLENGE_OUTPUT_H
#include <ostream>
#include "Translation.h"
#include "Point.h"
#include "Color.h"
#include "Object.h"
#include "Sphere.h"
#include "Intersection.h"
#include "Position.h"
extern std::ostream& operator << (std::ostream& os, const Translation t)... |
c4cae48218f3bc0a1941d77c847bdf239b84ab15 | 5b94b7d1adef2eb65b5d250eb0cb5b381f9d2397 | /main.cpp | 73cd38d15d5eddbd427b65e7dc6cda41b2dcc248 | [
"Apache-2.0"
] | permissive | MoyKarasik/HzChe | 8ec7c6815263cd95bf89a82c460d90f04883dfbe | 830653ee5b8becc0fa3100cfbbb80f7c8b98d693 | refs/heads/master | 2022-12-09T00:21:25.879343 | 2020-06-28T10:50:51 | 2020-06-28T10:50:51 | 275,561,496 | 0 | 2 | Apache-2.0 | 2020-09-08T22:31:03 | 2020-06-28T10:31:38 | C++ | UTF-8 | C++ | false | false | 27 | cpp | main.cpp | gsaocipo[fkgm ;fwe'k[AJEBL
|
2de30afac1da322978f30f18bdad71149cdd99c0 | 69f0ec8835c84208834cca424702881c19c0a3eb | /main.cpp | 84576ee5d2ea52bf4990d9007c4c867df788d4a8 | [] | no_license | slsktnkv/GoogleCity | 6891189f93a6f03aa192fe52867502591b365353 | 2d4d2d5456402b8904ca24307ff70d2c1730efce | refs/heads/master | 2023-03-21T03:13:25.734183 | 2021-03-06T10:58:48 | 2021-03-06T10:58:48 | 342,952,396 | 0 | 0 | null | 2021-03-06T10:58:49 | 2021-02-27T20:31:46 | C++ | UTF-8 | C++ | false | false | 3,091 | cpp | main.cpp | #include <iostream>
#include <fstream>
#include <omp.h>
#include "City.h"
#include "Simulation.h"
#include "Genetics.h"
#include "DummyOptimization.h"
int main(int argc, char** argv)
{
std::string data, solution;
int times;
size_t size;
if (argc == 5) {
data = argv[1];
solution = argv... |
6784cfad0c760a61b5ec91650d7a875dd281e167 | caff4200d2933a2bd5bd7f7fda3e4e75641d1740 | /libluaav/av_windows.cpp | 2459fdd27997b8c590b39f491f05d045d65cd662 | [
"MIT"
] | permissive | sidec/libluaav | 6a77c7f6a4e7bf4d68db5659bcd2549ab550375d | 0b53342dfc5778db24c0090d01765c6bef552493 | refs/heads/master | 2021-01-18T06:49:26.461112 | 2014-01-24T23:53:43 | 2014-01-24T23:53:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,427 | cpp | av_windows.cpp |
#include <windows.h>
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <gl\gl.h> // Header File For The OpenGL32 Library
#include <gl\glu.h> // Header File For The GLu32 Library
#include "av.hpp"
#if defined(_MSC_VER) |... |
51249a2f367b7c33f65f822b0c517025b1fd4768 | 94edd6be1b8f4a90266a88b90d3dac38e24ab62b | /Parser/Animation.h | 2a99da0456b4d65a250d2b1bf9db64aa7593c7b3 | [] | no_license | Sidnioulz/soda-cd | b06aa2e0339e799024e77e9dabeb18840168c97d | 2aa011ef311ea01bafc6453b657554e20e2d356f | refs/heads/master | 2020-05-17T14:45:08.887722 | 2012-08-27T09:09:00 | 2012-08-27T09:09:00 | 183,770,857 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,651 | h | Animation.h | #ifndef ACTION_ELEMENT_H
#define ACTION_ELEMENT_H
#include <QtCore>
#include "Action.h"
// ------------------------------------------------- //
/** \brief Classe de gestion d'une animation
* \author Q. Avril, IRISA-INSA de Rennes */
// ------------------------------------------------- //
class Animation : publi... |
486a1f794d43e0ea01d39efa7c8c684cb3e554e9 | 963dc5ce2ff5c1e9f3dbc6b674c06f76c2f78b86 | /C++/EVA1_13_OPERACIONES_EN_FRACCIONES_18550725.cpp | 2441f291002db3e872aa058fa41a0e0340f4e5fe | [] | no_license | CarlosRivera07/EVA1 | 312a5dc141053818da63ea097ef46049a183d276 | d331bd2d3b05f43f634f1df39d0c1608c3eeed1c | refs/heads/master | 2020-03-29T17:53:28.094370 | 2018-09-25T00:14:44 | 2018-09-25T00:14:44 | 149,787,828 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,215 | cpp | EVA1_13_OPERACIONES_EN_FRACCIONES_18550725.cpp | #include <iostream>
#include <sstream>
#include <string>
#include <cstdlib>
#include <cmath>
using namespace std;
// Headers
string toString (double);
int toInt (string);
double toDouble (string);
int main() {
cout << "Introduce el valor del numerador de la fracción 1:" << endl;
int iFN1;
cin >> iF... |
0207f756c45701d3624891a0ffa1ecd7182d33f4 | f136fe7c0ee4afcb441de3f963a2f53b4c28bbdd | /UBrotEngineX/header/graphics/model.h | 5bb33e8be3e021109c243123dc17d44300fb7c45 | [] | no_license | rwarnking/UBrotEngineX | 0066ed00f63f3901430256122e2081e360aba04d | 0fa5bb85d973f599a010a4542c875f88e4426bd9 | refs/heads/master | 2020-03-25T09:08:30.930453 | 2018-08-12T14:01:28 | 2018-08-12T14:01:28 | 143,649,680 | 1 | 0 | null | 2018-08-12T14:01:29 | 2018-08-05T21:41:54 | C++ | UTF-8 | C++ | false | false | 1,359 | h | model.h | ///////////////////////////////////////////////////////////////////////////////////////////////////
// Filename: model.h
///////////////////////////////////////////////////////////////////////////////////////////////////
#ifndef _MODEL_H_
#define _MODEL_H_
//////////////
// INCLUDES //
//////////////
#include <fstrea... |
7b8f6ba27304ec180c2da3d050ffbcb8f6aa4194 | 37a372c78efcdb4f90f143aa67e6d436f8f240e5 | /MobileServer/include/Serial/AtCommand.h | 812ca42201a08d2487b1c9e53e7979d1acc40c28 | [] | no_license | hfz-Halley/hfz-4 | dbd01c7b12f7459a709a9da8576c38c74a4449eb | 11bf0dc7fe941df926e77517da88526b9ef7934c | refs/heads/master | 2021-06-02T10:30:54.747498 | 2020-04-09T09:14:58 | 2020-04-09T09:14:58 | 254,324,131 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,393 | h | AtCommand.h | #ifndef _ATcommand_H
#define _ATcommand_H
#include "SerialPort.h"
#include <iconv.h>
using Poco::Timespan;
#define rssisize 128
namespace Poco
{
namespace Serial
{
class ATcommand
{
public:
enum signaLevel
{
UNKNOWN = 0, //无信号
POOR,
MODERATE,
GOOD,
GREAT //满格
};
ATcommand();... |
5d1ef19992a9859001a3ef11e6a30937eed214d7 | 49775280c31c8dc97907cf1762cb28db107c2887 | /editor/widgets/FileBrowser.h | 691284bf1b9c8a6bf1c80bde454d20e013531937 | [
"MIT"
] | permissive | gan74/Yave | 7e8fe3f9fd530f892a4185fc67109f0426955c2b | acb75c47b8a8e317ef38232173553a4dcb334b3b | refs/heads/master | 2023-08-31T15:27:12.871118 | 2023-08-29T23:03:31 | 2023-08-29T23:03:31 | 59,200,808 | 464 | 27 | MIT | 2021-02-28T13:10:06 | 2016-05-19T11:39:10 | C++ | UTF-8 | C++ | false | false | 3,302 | h | FileBrowser.h | /*******************************
Copyright (c) 2016-2023 Grégoire Angerand
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use... |
5644a7f12bb8257b586d2fcefcce7ad05a56e763 | 02e07149af0dff9796c2cc8af56a0730d5f4861f | /src/PluginsInspector/PluginsInspectorModel.cpp | 2a09b41bc9c1015cd60ce1419fa83234e51c93f2 | [
"BSD-3-Clause"
] | permissive | loganek/gstcreator | b5817acc271b00d52aaed491f96ab1b03a03ea92 | 619f1a6f1ee39c7c5b883c0a676cd490f59ac81b | refs/heads/master | 2021-01-10T22:14:08.257537 | 2014-07-31T18:14:40 | 2014-07-31T18:14:45 | 15,843,428 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,678 | cpp | PluginsInspectorModel.cpp | /*
* gstcreator
* PluginsInspectorModel.cpp
*
* Created on: 12 sty 2014
* Author: Marcin Kolny <marcin.kolny@gmail.com>
*/
#include "PluginsInspectorModel.h"
#include "Utils/StringUtils.h"
using Glib::RefPtr;
using namespace Gst;
using namespace std;
PluginsInspectorModel::PluginsInspectorModel(FillIn... |
680aa9d5bcbc58079970fdb0ab28e8e4ae7ccf2a | 7575692fd3800ec48e7c941cdd40210d02ca96d0 | /advanced-cpp-pa3/advanced-cpp-pa3/memPool_t.cpp | 2dc82286c148a12ca3fe9065ce8dbcbdf2371f13 | [] | no_license | husamMaruf/advanced-programming-2011 | bf577a8cc51d53599ed032c22ae31fc15db217fb | db285ae560495bd051400f0e372a2eec2434afe1 | refs/heads/master | 2021-01-10T10:12:46.760433 | 2011-05-21T17:00:12 | 2011-05-21T17:00:12 | 36,380,809 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,433 | cpp | memPool_t.cpp | #include "memPool_t.h"
memPool_t::~memPool_t() {
list<memPage_t*>::iterator it = pages.begin();
while(it != pages.end()) {
delete *it;
it++;
}
pages.clear();
}
int memPool_t::defaultPageSize = 32;
const memPage_t* memPool_t::getLastPage() const {
list<memPage_t*>::const_iterator result = page... |
d40eeb14a8f959e61ce909f1a1686c6ecd551dba | 57d1d62e1a10282e8d4faa42e937c486102ebf04 | /judges/codeforces/done/486d.cpp | 3bf777d646d066475ffe5bcc0b6861f5433162c7 | [] | no_license | diegoximenes/icpc | 91a32a599824241247a8cc57a2618563f433d6ea | 8c7ee69cc4a1f3514dddc0e7ae37e9fba0be8401 | refs/heads/master | 2022-10-12T11:47:10.706794 | 2022-09-24T04:03:31 | 2022-09-24T04:03:31 | 178,573,955 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 771 | cpp | 486d.cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb push_back
#define MAX 2005
#define MOD 1000000007
ll cnt[MAX];
int a[MAX], d, n;
vector<int> g[MAX];
int dfs(int u, int dadu, int root)
{
ll cnt = 1;
for(int i=0; i<(int)g[u].size(); ++i)
{
int v = g[u][i];
if(v == dadu) continue;
... |
73131b386cb74f4b01fd3a13ddcef800736ebeeb | c1c90b8747fec449dd625f59d2ab2912153157b8 | /code/win32_game.cpp | 4da86a645171b926c94baa23ce96fb2f1ab7f251 | [] | no_license | nowrie141/game | e070137f902d3748ce308de9b8482f9a594be382 | f135068335ada9066fc7a26a49195f255c1e775b | refs/heads/master | 2022-06-27T08:00:28.396508 | 2020-05-13T17:33:34 | 2020-05-13T17:33:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 275 | cpp | win32_game.cpp | #include <windows.h> //WinMain, MessageBox, ...
//Main
int CALLBACK WinMain(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nShowCmd
){
MessageBox(0, "This is the start game", "Start Game", MB_OK|MB_ICONINFORMATION);
return 0;
} |
5a085d41c4a3f9abe2414e233d197e3887951b17 | 669789a63bd5c01df2e68efa7931e74eb52c1742 | /DDZ_AI/Farmer2PlayerStrategy.h | 9678111831e582cf18f8b4733c8367bfdb11309a | [] | no_license | qq717337/ddzai | d47d4ab3c280a3832abbfd31cf26f8766b812c22 | 9e59e23a6e967ae3a91fb5d234d2bc782ea24eec | refs/heads/master | 2020-03-21T02:26:56.805637 | 2018-03-26T13:39:47 | 2018-03-26T13:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,035 | h | Farmer2PlayerStrategy.h | #ifndef _FARMER2PLAYERSTRATEGY_H_
#define _FARMER2PLAYERSTRATEGY_H_
#include "PlayStrategyBase.h"
class Farmer2PlayerStrategy :
public PlayStrategyBase
{
private:
CardStyle takeLord(const CardStyle & lastStyle);
CardStyle takeFarmer(const CardStyle & lastStyle);
public:
~Farmer2PlayerStrategy();
Farmer2PlayerStra... |
fcfc1a5d7a63b44749a41f90876d59dd245e0ccd | 69cb5b4448c999899a4fed2dc62fc36c304ed1ba | /Задание 2(стек, множество)/ClassSteck/ClassSteck/main.cpp | 7fdc278ef76d675e57dde3a5fea4d8ed3d78bfee | [] | no_license | Segrey1989/C_STEP_tasks | f49b4074ee0bd9cef68d2b5e5c588c55aa64b755 | 29522e836731c6aae4c3dc275988cb273c3717a5 | refs/heads/master | 2020-03-31T03:55:20.833671 | 2018-10-07T08:22:15 | 2018-10-07T08:22:15 | 151,884,311 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 901 | cpp | main.cpp | #include "Header.h"
int main() {
Steck a(2);
Steck c;
// a.push(10);
// a.push(4);
// std::cout << a.pop() << "\n";
c = a; // присвоили c размер и содержимое a
// дополнили c
c.push(5);
c.push(6);
c.push(7);
//дополнили a
a.push(5);
// инициализировали стек b ... |
c245a0e6e1012f2bf0e27e085ee43277ab839eb2 | 75634c83b641f2b3c99a7cdf5d96f12232f4ffee | /NetTeam4/NetTeam4/src/Math/Math.h | c5cc4574bb2562d59376fbf9309957575c73d3d7 | [] | no_license | molvin/NetworkTeam4 | ee60d56a6081b918ab40df832176a53bb72bace8 | 5c6b0a888ed5c78ae0df60622b01b51e581c2318 | refs/heads/master | 2022-03-30T22:47:34.992606 | 2020-02-05T13:22:15 | 2020-02-05T13:22:15 | 233,609,654 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,850 | h | Math.h | #pragma once
#include <cmath>
struct Vector2
{
float X;
float Y;
Vector2() : X(0.0f), Y(0.0f) { }
Vector2(float x, float y) : X(x), Y(y) { }
Vector2(float value) : X(value), Y(value) { }
Vector2 operator+(Vector2 otherVec) const
{
return Vector2(X + otherVec.X, Y + otherVec.Y);
}
Vector2 operator-(Vector2... |
3369b188678256e75e796d0d8d436a442b17deb1 | 872a54da02329a4286f5ad13a6ee5489d46d2ea8 | /SnowFall/Include/Math/Rectangle.h | 0feb12cb1d6b3ee8c50b2d85910d19bd7fc1dcc9 | [] | no_license | James-Emmett/DirectVolumeRenderer | 3e729dabecf9261e725e7b1976b39ab105923e7f | ebe91035644191bfc3c8e39ea7092d77a3d64459 | refs/heads/master | 2023-01-02T05:00:01.210496 | 2020-10-29T16:44:04 | 2020-10-29T16:44:04 | 291,761,828 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 758 | h | Rectangle.h | #pragma once
#include "Vector2.h"
template<typename T>
class Rect
{
public:
T X, Y, Width, Height;
public:
Rect(T x, T y, T width, T height)
{
X = x; Y = y;
Width = width; Height = height;
}
T Top()const
{
return Y + Height;
}
T Bottom()const
{
return Y;
}
T Left()const
{
return X;
}
T Rig... |
a4e699f11a042c0ef926496382a30adc31bd47bc | 120a14ffaff6544f2144f2de1895ac4a114a4107 | /src/framework/blockinggridrule.hpp | f036104bf13608b70adae2e9373170c699fb20ad | [] | no_license | xill/engine | fd40152fd4370c84d46e7e2dc299c929d714e4b3 | 0e0e4cab1ed92c313cc7b9f0934409668699543a | refs/heads/master | 2016-09-05T17:49:37.628602 | 2012-04-22T20:02:36 | 2012-04-22T20:02:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 864 | hpp | blockinggridrule.hpp | #ifndef BLOCK_GRID_RULE_H
#define BLOCK_GRID_RULE_H
#include "gridrule.h"
class BlockingGridRule : public GridRule
{
private:
public:
/**
* Returns true if all grid access should be denied.
*/
bool ignoreAll();
/**
* Returns true projectiles are allowed access.
*
* This rule is superceded by ignoreAl... |
0c74003bcd2d43dc7392f39fb3a63283d507f6e7 | ecc7a6e4f1f0847d74aa719480ec5402c65f5109 | /MiAPR_SelfLearning/ChooseVectorsCountDialog.h | 300f3a1f41ce2625fe1fe0594c73ed52b0cf94fc | [] | no_license | VladimirZhdan/MiAPR_SelfLearning | 2060730b7ec40d8f46c25a9a07a417664bf892c1 | fd41e4433f7f9bcf7968000b6a45623bd7c479b6 | refs/heads/master | 2021-01-11T14:24:26.066707 | 2017-02-08T22:11:05 | 2017-02-08T22:11:05 | 81,381,345 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 327 | h | ChooseVectorsCountDialog.h | #pragma once
#include "Dialog.h"
#include "resource.h"
#include <CommCtrl.h>
class ChooseVectorsCountDialog : public Dialog
{
public:
ChooseVectorsCountDialog(HWND hWndParent);
~ChooseVectorsCountDialog();
private:
static INT_PTR CALLBACK ChooseVectorsCountProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam... |
c3281a731c83376b60dea5d9bca973e5f68c0dd9 | 8467ccd8da6f120d2cd9ad00e8352b359b10fb7d | /UThread.h | fc26173ac4e4ea2437520269f440513e62ad18a7 | [] | no_license | matan188/OS_ex2 | 6420475df06d2d30fd463ca1a158bb6910d8cb8e | 810e55c837addd81f1c5c57a709866ccdcd1006f | refs/heads/master | 2021-04-28T23:04:52.117364 | 2017-01-03T14:22:05 | 2017-01-03T14:22:05 | 77,740,994 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 983 | h | UThread.h |
#ifndef UThread_h
#define UThread_h
#include <setjmp.h>
#include <stdio.h>
#include "uthreads.h"
#include <signal.h>
/* States for defining a thread's state */
enum state {ready, sleeping, running, blocked};
/**
* Class for threads objects
*/
class UThread {
public:
UThread();
UThread(int tid, void (*f)(v... |
acf8ddb255280813074a82fbf72f6a0916eb5e75 | e7846c059bda90df06ea217aa48c56934ff4550a | /componentmanager.hpp | d27a64ba58f24206e4067d7182d627e21a3399d8 | [] | no_license | LeVirus/Entity-Component-System-LV | 35485a15d9a014dc401fec92acd9194716973126 | c28ea48e251e4235140e352e1d02d10bd1d87ea4 | refs/heads/master | 2020-06-04T05:00:22.495115 | 2019-07-19T16:46:46 | 2019-07-19T16:46:46 | 27,675,207 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,585 | hpp | componentmanager.hpp | #ifndef COMPONENTMANAGER_H
#define COMPONENTMANAGER_H
#include "component.hpp"
#include <vector>
#include <memory>
namespace ecs
{
class Engine;
/**
* @brief La classe ComponentManager gère tous les composants.
* Les composants de toutes les entités sont stockés dans un tableau.
* Leurs emplacements sont déterm... |
69de7e60dba0398e92c5b893bc5e180157ef215b | 9f6de4fbcac0548ccc8a72af54c08a2d0012b067 | /cpp/openFrameworks/openFrameworksExamples/windows/ofxMaximExampleVS2010-OF0072/src/testApp.cpp | d1d2e833cc58d5ac9da01719fc78a8cf905da3d7 | [
"MIT"
] | permissive | micknoise/Maximilian | a1aa5aafe9f3ab307b7c133f1051baf800bb6a4c | 6bad5f5945497f07946af6d4b31f3fbc7bfc694c | refs/heads/master | 2023-08-26T20:01:25.604464 | 2023-05-24T09:57:09 | 2023-05-24T09:57:09 | 2,254,934 | 1,412 | 287 | MIT | 2023-05-24T09:57:10 | 2011-08-23T12:22:17 | C++ | UTF-8 | C++ | false | false | 1,884 | cpp | testApp.cpp | #include "testApp.h"
//--------------------------------------------------------------
void testApp::setup(){
maxiSettings::setup(44100, 2, 512);
ofSoundStreamSetup(maxiSettings::channels,0,this,maxiSettings::sampleRate, maxiSettings::bufferSize, 4);
ofSoundStreamStart();
}
//---------------------------------------... |
5a6e512cf94cc702c29ff4a6c901ab0ffb358dce | 6d0a2194bfb230c3333329be0779382a358934f1 | /Programmers/level1/level1_1(완주하지_못한_선수).cpp | 0983e7486afc6a349819c5b71dc224e60d81208b | [] | no_license | hsh07260/Algoritm_study | e275463437f4d627c62ab1c231472ba9add3f3ba | f9d31d4036c314af8cca4ddc5663203c91077c09 | refs/heads/master | 2020-08-06T22:04:02.320857 | 2020-04-04T11:11:46 | 2020-04-04T11:11:46 | 213,173,127 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,827 | cpp | level1_1(완주하지_못한_선수).cpp | //Programers 완주하지 못한 선수 문항.
//해시 관련 문제
#include <string>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
string solution_2(vector<string> participant, vector<string> completion) {
//3개의 테스트케이스 모두 통과후 정확성,효율성 통과
int participant_sz = participant.size();
int completion_sz = completion.... |
480731c5a1af989894c78dd3bac0b948607a9fad | 6d389e502e9448de5eb6f8ae590a3d98886ddb4c | /V1.0_water_saver/V1.0_water_saver.ino | 4e45884b39cf1a8d1db0fef48be9988f6624e3ad | [] | no_license | Raaghav932/arduino_projects | b1cccb0e09e41728a84f844e5154447bfcf02cac | 254f116597293022c954fdbaa193d7ff38ec54dd | refs/heads/master | 2022-04-24T16:00:43.594133 | 2020-04-12T02:56:36 | 2020-04-12T02:56:36 | 254,986,618 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,900 | ino | V1.0_water_saver.ino | const int RED_PIN = 6;
const int GREEN_PIN = 5;
const int BLUE_PIN = 3;
int BUTTON_ONE = 13;
int BUTTON_TWO = 12;
int SPEAKER = 9;
int TEMP = A0;
int TURNTABLE = A4;
int delay2 = 30;
int brightness = 0;
int fadeAmount = 5;
float turnValue = 0;
float turnValue2 = 0;
int BUTTON_TWO_STATE = 1;
float voltage, degreesC, deg... |
1f0090db7c48274a313734ab23b842833e653d13 | 6f224b734744e38062a100c42d737b433292fb47 | /libc/src/string/memory_utils/inline_memmove.h | c520b6f4de0cdff4295026b4b6221ee900315f08 | [
"NCSA",
"Apache-2.0",
"LLVM-exception"
] | permissive | smeenai/llvm-project | 1af036024dcc175c29c9bd2901358ad9b0e6610e | 764287f1ad69469cc264bb094e8fcdcfdd0fcdfb | refs/heads/main | 2023-09-01T04:26:38.516584 | 2023-08-29T21:11:41 | 2023-08-31T22:16:12 | 216,062,316 | 0 | 0 | Apache-2.0 | 2019-10-18T16:12:03 | 2019-10-18T16:12:03 | null | UTF-8 | C++ | false | false | 1,626 | h | inline_memmove.h | //===-- Memmove implementation ----------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
fcf8356e4c0b37e09f9399da4089018b0fd48b06 | 75471b94fc26505298c2a862c8ab68db020f2c7b | /atoi.cpp | 50eab6221bb631c8e423269c096cb0c4a0ee771a | [] | no_license | meichy/xd | 8f1190f8c36ae001a0690c34e4ebcbca60e9245e | a301194bec3adfb6e7f498a3af632d61c37d3a24 | refs/heads/main | 2023-08-30T05:34:14.204500 | 2021-10-30T07:15:53 | 2021-10-30T07:15:53 | 422,811,040 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 331 | cpp | atoi.cpp | #include <ctype.h>
#include <stdio.h>
int atoi(char s[])
{
int i,n,sign;
for(i=0;isspace(s[i]);i++)
;
sign=(s[i]=='-')?-1:1;
if(s[i]=='+'||s[i]=='-')
i++;
for(n=0;isdigit(s[i]);i++)
n=10*n+(s[i]-'0');
return sign*n;
}
int main()
{
char a[999];
scanf("%s",&a);
printf("integer=%d",a... |
8ce260d65246d35b250c0e142ddf614ed8b6c35e | 6325638953353358c7243c6f292bbc55f6427d8d | /CodeChef/Beginner/JAG.cpp | 97511c510689bbcc7e1ce42db1cd4d66b9eab86a | [] | no_license | bashu22tiwari/BashuTiwari-CP | 60fc93488569c4e0cbc217f53aecd1bf38cc486f | 99c1d9ea4ce7cb6114508683635d62f04dbd64b8 | refs/heads/main | 2023-08-13T04:43:24.578329 | 2021-09-27T20:37:53 | 2021-09-27T20:37:53 | 340,102,191 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 712 | cpp | JAG.cpp | #include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
long long int tt;
cin >> tt;
while(tt--){
long long int n;
cin >> n;
long long int i=0;
unordered_map<long long int,long long int> mp;
for(long long in... |
72e5b2a3795f7277f0cce5a9cee0f7d9ff5cedf9 | c89fc569241ea9598d6fd009db484074fc466ee4 | /src/apps/qutils/canvas.cpp | 2815c75cca5bca527d0b78aa770b0e2ec8254462 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | namica/vizzu-lib | abcfc05eecd9bf95d0e90bab832a3371eecf0cc0 | 4d9473147ff0082e811234ad4c17c95e2eb0bdd7 | refs/heads/main | 2023-08-28T12:07:30.170977 | 2021-10-24T11:59:03 | 2021-10-24T11:59:03 | 418,309,880 | 0 | 0 | Apache-2.0 | 2021-10-18T02:00:55 | 2021-10-18T02:00:55 | null | UTF-8 | C++ | false | false | 8,395 | cpp | canvas.cpp | #include "canvas.h"
#include <QDebug>
#include <QFontMetrics>
#include <QGuiApplication>
#include <QLinearGradient>
#include <QScreen>
using namespace Vizzu;
class PixmapCanvas : public Canvas {
public:
PixmapCanvas(int width, int height)
: pixmap(width, height)
{
pixmap.fill(Qt::transparent);
init(&pixmap);... |
3b403c09e602d41000dc4a56816f2476047f7dcc | 423d69af20dc5ef3bda2fbee54141c7218be9537 | /Homework/HW5/WordSearch.cpp | 72df2b91522ebab9fd41af1e45a1387654a90c52 | [] | no_license | dyl10s/DataStructuresAndAlgorithms | e76dbbfcd74a0a923fb3ed0e025aa29ef96dc1aa | e43ec7ac1aca0b687c5be777ea450c75e1290e35 | refs/heads/master | 2020-03-27T15:59:31.826913 | 2018-11-01T00:34:43 | 2018-11-01T00:34:43 | 146,752,749 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,049 | cpp | WordSearch.cpp | //
// WordSearch.cpp
// CS263-HW4
//
#include <iostream>
#include <fstream>
#include <sstream>
#include <algorithm> // needed for transform()
#include <exception>
#include <regex>
#include "WordSearch.h"
WordSearch::WordSearch() {
/* default constructor requires no additional code */
}
WordSearch::WordSearch(... |
08600511f087ed30a2c071b4fdaffdb739053cee | 8bb81fa2f1785f4bec5bfe1c5e2f4f72fd57f51b | /Team11/Code11/src/spa/src/ProcedureAnalyser.h | c70dc95173d66a8054d4a2ab5d80a37ac1efa971 | [] | no_license | LZYAndy/nus-cs3203 | 3e33721f8a76127b44c74c0535d84a036e0bb4b0 | 4c5d5b4116ea562f19caf530c840d661c29a9422 | refs/heads/master | 2020-12-30T06:41:18.378094 | 2019-11-09T12:25:35 | 2019-11-09T12:25:35 | 238,891,825 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,136 | h | ProcedureAnalyser.h | #ifndef AUTOTESTER_PROCEDUREANALYSER_H
#define AUTOTESTER_PROCEDUREANALYSER_H
#include <string>
#include <regex>
#include "Procedure.h"
#include "StringUtil.h"
#include "StatementListParser.h"
#include "ErrorMessages.h"
class ProcedureAnalyser
{
private:
std::string raw_data;
public:
/**
* The construct... |
3c84895e3c6c38ced141f54c864489fe8d647fab | fb4bc3b6e2dd10b0cca4c9d89ae2875160256ee3 | /reactor/s13/test12.cc | 928cb742706edc09acee8e4a68a2fa2f77b5184b | [] | no_license | sunqk13022/simple_reactor | 165fa42e0e6dc0d942b924b352aac84bbea993e7 | b338f788de0ae9b75d95ed7d0a4f63d526ec9c33 | refs/heads/master | 2021-01-10T03:06:12.273219 | 2016-04-07T02:04:27 | 2016-04-07T02:04:27 | 52,213,673 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 860 | cc | test12.cc | #include <stdio.h>
#include <iostream>
#include <sys/timerfd.h>
#include <boost/bind.hpp>
#include <thread/thread.h>
#include <logging/logging.h>
#include "event_loop.h"
#include "event_loop_thread.h"
#include "channel.h"
#include "acceptor.h"
#include "socket_fun.h"
#include "inet_address.h"
#include "tcp_server.h... |
e10dd63af3ca54fcee2b4189cc55351c95db5cc6 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /extensions/browser/sandboxed_unpacker_unittest.cc | 04b97810d8a5e7cba57d10376faa24ab6bdbfc6c | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 22,899 | cc | sandboxed_unpacker_unittest.cc | // Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "extensions/browser/sandboxed_unpacker.h"
#include "build/build_config.h"
#include <memory>
#include <tuple>
#include "base/base64.h"
#include "base/command_line.h"
... |
a2237756c1bc2541e24687aee9c0eb0610f75aa2 | 0576db21df4cdd32ca448055d7fd7c07912f8fff | /天数差.cpp | 8482811d7d2fb993763b9491a559fef2d466d8ef | [] | no_license | lov1ballad/now-coder | 29b97f05635dcb472b82c2ea2cdb2c67b9af83bc | 1bacfbe1c8ae6fb0d7b1a9498b283962b7dd8085 | refs/heads/main | 2023-07-17T17:07:18.336925 | 2021-08-22T15:47:35 | 2021-08-22T15:47:35 | 348,896,513 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 740 | cpp | 天数差.cpp | #define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
using namespace std;
int Month[12] = { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334 };
int day(int year, int month, int day)
{
int year_day = year * 365 + year / 4 - year / 100 + year / 400;
int month_day = Month[month - 1];
if ((month % 4 == 0 && month... |
e6cbefed4bfdb16c80e89c7dfa2b681284bfe273 | ae8c95c0cdedc695ba4f5b1bd09a18878fa02019 | /EAPI_Test/UnitTestingTestCase/UnitTesting_TestCase_EApiBoardGetStringA.cpp | a2af5a294283991303dd19b58861ad9f102d1e7c | [] | no_license | locke12456/EAPI_Test | 7bbfc5b5e6cb3adbbf5d1978d74c191a50b1de68 | 307469decc2c84c616ca1984e607beeeb00309a1 | refs/heads/master | 2019-01-19T10:04:18.079883 | 2013-11-06T03:31:22 | 2013-11-06T03:31:22 | 13,027,428 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,414 | cpp | UnitTesting_TestCase_EApiBoardGetStringA.cpp |
#include "UnitTesting_EApiBoardGetStringA.h"
using namespace testing;
TEST_F(UnitTesting_EApiBoardGetStringA , EApiBoardGetStringA_ID_BoardManufacturer)
{
EXPECT_PRED_FORMAT1(AssertEApiBoardGetStringA,EAPI_ID_BOARD_MANUFACTURER_STR);
}
TEST_F(UnitTesting_EApiBoardGetStringA , EApiBoardGetStringA_ID_Board... |
fa8788bd8956c45155afe4182939545eb490e0f0 | b0c66358ae5c0386db5887e2609929e753c38d18 | /arch/cf/463/TaskD.cpp | e3e0269e3715775238750e30a077b39c18bfd8af | [] | no_license | michalsvagerka/competitive | e7683133ee5f108429135a3a19b3bbaa6732ea9f | 07f084dff6c1ba6f151c93bf78405574456100e4 | refs/heads/master | 2021-06-07T14:54:35.516490 | 2020-07-07T08:17:56 | 2020-07-07T08:19:09 | 113,440,107 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,634 | cpp | TaskD.cpp | #include "../../../l/lib.h"
// #include "../l/mod.h"
class TaskD {
public:
void solve(istream& cin, ostream& cout) {
int Q, t, last = 0;
ll p,q;
cin >> Q;
vector<vector<pair<int,ll>>> E{{}};
vector<int> W{0};
while (Q--) {
cin >> t >> p >> q;
... |
266f15f6d84c2cecda66ac8baebd80f73f88d82a | c19c56317ffc4e90d43b7020813eff339c0afef9 | /functions/tests/test_addition.cpp | af051033de537cc2031518f4ef0b8ae21389adc3 | [
"MIT"
] | permissive | GuylainGreer/manifolds | 8bb33ad11a3cb2700a0c71645f69cfcff75ee754 | 96f996f67fc523c726f2edbc9705125c212bedae | refs/heads/master | 2021-01-21T02:27:11.854036 | 2015-04-02T12:02:37 | 2015-04-02T12:02:37 | 20,369,230 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 881 | cpp | test_addition.cpp | #include <boost/test/unit_test.hpp>
#include "functions/addition.hh"
#include "functions/variables.hh"
#include "functions/full_function_defs.hh"
#include "functions/std_functions.hh"
#include "functions/polynomial.hh"
#include "functions/operators.hh"
#include <iostream>
#include "functions/streaming.hh"
BOOST_AUTO_T... |
cf34b6c4e6fc9ded909d2fe12165c171f5ae8a51 | ab18394336a408a95fec282cb4ff756733ee9d7c | /util/persist_test.cc | f9333088f6163425006cc674dfed0aa98b2fbb47 | [
"BSD-3-Clause"
] | permissive | wzharies/SLM-DB | defa22643bd07f087898e1c7167e25c977933342 | 6c54d4beeceea8fb0bb34f0213c30d183ac47fc7 | refs/heads/master | 2023-08-08T00:14:10.710414 | 2023-08-06T12:46:28 | 2023-08-06T12:46:28 | 675,229,507 | 0 | 0 | BSD-3-Clause | 2023-08-06T08:09:41 | 2023-08-06T08:09:39 | null | UTF-8 | C++ | false | false | 1,114 | cc | persist_test.cc | #include <libvmem.h>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <vector>
#include <cstring>
#include <cstdint>
constexpr uint64_t POOL_SIZE = 2<<30;
constexpr uint64_t OBJ_SIZE = 1<<27;
void random_str(char* str, uint length) {
for (uint i = 0; i < length; i++) {
char ascii_code = rand() % ... |
bea17864ab27a92283a9d8116301efa5733c3d33 | 75f94687e9df7bde68f4b41b0b0143c1a59d420e | /src/angle/DPN.cc | 437380e32f39b4f8ce28e62ad7735d6282f5d570 | [
"MIT"
] | permissive | Relzohery/libdetran | d2a7a5604b97303d27c06cfd4e811a57f277fc55 | 77637c788823e0a14aae7e40e476a291f6f3184b | refs/heads/master | 2023-02-06T10:32:34.242165 | 2013-11-11T15:56:52 | 2013-11-11T15:56:52 | 242,563,346 | 0 | 0 | MIT | 2020-10-13T23:18:47 | 2020-02-23T17:50:00 | null | UTF-8 | C++ | false | false | 1,151 | cc | DPN.cc | //----------------------------------*-C++-*----------------------------------//
/**
* @file DPN.cc
* @author robertsj
* @date Oct 10, 2012
* @brief DPN class definition.
*/
//---------------------------------------------------------------------------//
#include "DPN.hh"
#include "GenerateGaussLegendre.hh... |
943d0f211ec976ad0fee07f4bae5e8bcb1edbad8 | c6ef31569a31e0da96008865eccbbb7be67313f2 | /cocosProject/Game/Managers/SoundsManager.cpp | eafcc3ddff6092861ce2f16a9499623ea178ec10 | [] | no_license | jonyrock/FoxyBird | ee3fb1732be9a2349d03c86c0893a2c956037387 | e4221134f8e0f6540e8ae6817dd68761f6ec4d14 | refs/heads/master | 2021-01-10T09:59:00.616567 | 2016-02-09T16:15:55 | 2016-02-09T16:15:55 | 51,378,657 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,890 | cpp | SoundsManager.cpp | #include "Managers/SoundsManager.h"
#include "Managers/DataManager.h"
#include "Managers/SettingsManager.h"
#include "Managers/LocalizationManager.h"
#include <SimpleAudioEngine.h>
#include <cocos2d.h>
#include <string>
using namespace std;
using namespace cocos2d;
SoundsManager* SoundsManager::getInstance() {
... |
7821dda9e2ca58a15849d24668c864ef0faa1035 | 9331ef4baa70500771f7e54fa4edbb24fe4ce099 | /ast/Astnode.cpp | 90db2308b48aa495bb2731fb0b2b7d399bd12a50 | [] | no_license | alexbprr/CsmallCompiler | 9ee8c34056fc4ffcd7fef60762cd357c46a8a0de | c41026cf0c161c664e09268fb67cef6a999fd863 | refs/heads/master | 2022-03-14T04:28:56.923746 | 2019-11-08T00:31:16 | 2019-11-08T00:31:16 | 179,382,230 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,001 | cpp | Astnode.cpp | using namespace std;
#include "Astnode.h"
ofstream *Astnode::ast_file;
ofstream *Astnode::tac_file;
ofstream *Astnode::pythonfile;
ofstream *Astnode::dotfile;
Astnode:: Astnode(){ }
Astnode:: Astnode(string name)
{
this->name = name;
}
vector<Astnode*>* Astnode::getChildren()
{
return &(this->children);
}
... |
134217b2b11591060c2faa4108ca0ca53ec73416 | fcfb8ef8f325eca5df9c750cd5d14417c7505486 | /100/102.cpp | 135619a5dc2f504edaa78a858908313cb58b72ac | [] | no_license | ijliao/uva | c83547d042521a488380f03144cf2ce5bdd46bb8 | c7b6b34dee4c5399dd68932920adb8fc2f1d84c9 | refs/heads/master | 2016-09-06T05:53:03.002135 | 2013-06-05T03:22:47 | 2013-06-05T03:22:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 691 | cpp | 102.cpp | #include <iostream>
using namespace std;
int bin[3][3];
void pack(void)
{
char res[] = " ";
int max = 0;
for (int B = 0; B < 3; B++) {
for (int C = 0; C < 3; C++) {
if (B == C)
continue;
int G = 3 - B - C;
int tmp = bin[B][0] + bin[G][1] + bin[C][2];
if (tmp > max) {
max = tmp;
res[... |
1118a01ed28b53a06b9c15d2b1969d32c4cad02a | ee6a981f31d86e32cb5459d435fd8ebc14361461 | /src/compiler/lib/Grid.hpp | c418faf0aba8e3a68bd05296310f122ceeee2f98 | [
"MIT"
] | permissive | silvercreekpk/yask | 40e21dd79f2fa94e197de961f902c9556114a18a | 7a5ffd73b98dbb945f3e70e7cec2ea50e15a56c9 | refs/heads/master | 2020-03-28T09:01:05.297700 | 2018-08-28T15:27:52 | 2018-08-28T15:27:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,030 | hpp | Grid.hpp | /*****************************************************************************
YASK: Yet Another Stencil Kernel
Copyright (c) 2014-2018, Intel Corporation
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the S... |
3f1156507f2599c9155ff2156af912137dad2c55 | e74690d56751ee3bba016c7f4447ccbd4aa6301d | /build/classes/URI/CPP/I am Toorg.cpp | 52c9a5a9c3bff00bded574a4cb1f1cf587739e50 | [] | no_license | RedwanSharafatKabir/Online_judge_problem_solve | e9ce789cea79fdf4b6a52cf3e2a3c16a3cbfa1ed | 4eeed84b9e816e2d95b69b10ca9577ca7a430b8a | refs/heads/master | 2021-08-16T20:00:45.876217 | 2020-06-20T19:12:35 | 2020-06-20T19:12:35 | 195,096,415 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 224 | cpp | I am Toorg.cpp | #include <iostream>
using namespace std;
int main()
{
string s;
int n,i;
cin>>n;
for(i=0;i<=n;i++)
{
getline(cin,s);
if(i!=0)
cout<<"I am Toorg!"<<endl;
}
return 0;
}
|
80a1d605886b5af760d12a0066d72f65dd62b096 | 79656f11fe06b2bc6f791d21bbdd449c218efdf0 | /Leetcode/53. Maximum Subarray.cpp | 8fbd72e73fb3bc6a353b2ddbcde20594a5817f4a | [] | no_license | yuzhengang/algorithm | e3696e8e0ac4fbc994bc7db6a1bdedaa8ec3b6b7 | 525e48ec4cfe3447b6d557553805c4e3e1808bf2 | refs/heads/master | 2022-03-25T04:53:44.766099 | 2019-12-31T02:26:44 | 2019-12-31T02:26:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 507 | cpp | 53. Maximum Subarray.cpp | /*Maximum Subarray:Find the contiguous subarray within an array (containing at least one number) which has the largest sum.*/
class Solution {
public:
int maxSubArray(vector<int>& nums) {
if(nums.size() == 0) return 0;
int sum = nums[0];
int result = sum;
for(int i = 1; i < nums.size... |
3505de89b5a5ad922c114674a6b1dc25b1acec76 | d170a79fb89f635849389afedbba87baa39baad1 | /Data Structures and Libraries/Non-Linear Data Structures with Built-in Libraries/C++ STL set/11849.cpp | 7f4cc6fc580c74c5073809e8fdefed9f3f6af65d | [] | no_license | hvk3/UVa-submissions | 699283ac3fe315059a0f3e1390777a809e7c6ef6 | b0ca87a08b12f22cd29ec2d80a82d3c78592a0f7 | refs/heads/master | 2020-06-12T14:31:00.747385 | 2019-06-28T20:30:23 | 2019-06-28T20:30:23 | 194,330,390 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 443 | cpp | 11849.cpp | #include <bits/stdc++.h>
#define ll long long
#define ld long double
#define mod 1000000007
using namespace std;
int main()
{
ios::sync_with_stdio(0);
int i, m, n, x;
while (true)
{
cin >> n >> m;
if (!n && !m)
break;
set<int> s;
int cnt = 0;
for (i = 0; i < n; i++)
{
cin >> x;
s.insert(x);
... |
46339aa206d14cfc09aa11cfeddff9d6515c3757 | 2c5957a2c68bad3085ce511e1ea73e9d7ff9449c | /others/zad10.cpp | 158d676c725e1fe45c175d31ef41edee0640742f | [] | no_license | AlexMaz99/WDI | 2f3d36501bf1691a35e4de0697c3b974145a0e72 | 1234ddd568bd2961c6f7650c64de8377273886ec | refs/heads/master | 2022-11-26T20:38:43.650632 | 2020-08-05T10:36:53 | 2020-08-05T10:36:53 | 281,486,251 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 970 | cpp | zad10.cpp | #include <iostream>
using namespace std;
const int N = 1000;
int odd_palindrome(int tab[], int n) {
int i = 0, j;
int max_length = 0;
int a, b;
bool is_palindrome;
while (i < n) {
if (tab[i] % 2 == 1 && max_length < 1) max_length = 1;
j = i + 1;
while (tab[i] % 2 == 1 &... |
e42bb391dea2a5421a65e6d2ee6906b8282cf556 | d64737d31ae9caba2820ea1048be3f9bce708b42 | /cpp/combination-sum-ii.cpp | f4f8db322ed828ed1991946a612b9706cca5dd17 | [] | no_license | ldcduc/leetcode-training | 2453ec13e69160bc29e8e516e19544c2b25bf945 | 40db37375372f14dd45d0a069c8b86fe36221f09 | refs/heads/master | 2023-08-05T01:46:52.993542 | 2021-09-18T16:47:54 | 2021-09-18T16:47:54 | 271,736,046 | 9 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,114 | cpp | combination-sum-ii.cpp | /* Problem url: https://leetcode.com/problems/combination-sum-ii
* Code by: ldcduc
* */
/* Begin of Solution */
class Solution {
public:
set<vector<int>> setResult;
void recursion(int index, vector<int>& candidates, vector<int> &tmp, int remain) {
if (remain <= 0) {
if (remain == 0) {
... |
01a5c9789f818ad0fc3d4c0283290676498acd44 | 31de33c8ef4722fdea966ea9fc8ab938df1ed16e | /Day26.cpp | 2b7012467f9696f34f0bd7fa4252eca069859465 | [] | no_license | arunmsharma/October-Leetcoding-Challenge | 4b8203fa54eb0ace8c417f671357f9b5a14b49e2 | e22e7ceebeb7ac0c8efa9ba88332b423da9a8332 | refs/heads/main | 2023-01-03T13:52:52.434811 | 2020-11-01T01:34:03 | 2020-11-01T01:34:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 768 | cpp | Day26.cpp | //Day 26
class Solution {
public:
double champagneTower(int poured, int query_row, int query_glass) {
double mat[101][101];
for(int i=0;i<101;i++){
for(int j=0;j<101;j++){
mat[i][j]=0.0;
}
}
mat[0][0]=poured;
for(int row=0;row<... |
6ffd5d3eb2a8835f1db06c29b2abe932f95be476 | f9109a07bc6ec0a6c6849a187676ec43d31e44de | /source/hdk2/hdk2/bin/unittest/tests-gen/complex/expected_client_inline.cpp | 74e167f2eece5432fd585103ca8c3e643a14ca08 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | rdkcmf/rdkb-Utopia | 1f65d785e5c5f9aaad92185d619482621ee5eac9 | 5765878d1990b050af80ea109ae556fc7b0c27ae | refs/heads/rdk-next | 2023-01-27T11:07:08.540498 | 2022-09-27T11:58:42 | 2023-01-25T09:49:12 | 57,202,219 | 6 | 8 | NOASSERTION | 2023-01-25T17:15:47 | 2016-04-27T09:42:30 | C | UTF-8 | C++ | false | false | 58,878 | cpp | expected_client_inline.cpp | /*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2015 RDK Management
*
* 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 ... |
0093a28a846eb1c1c1d7898d3601f771d4322a38 | e3b67db8b0ea9af2ba890dc4e119ff22876a2232 | /extensions/jni/jvm/JniLogger.cpp | ae3985d9d4f8f8c9bef7aa22d7ccb2304ac9993e | [
"MPL-2.0",
"Apache-2.0",
"BSD-3-Clause",
"curl",
"OpenSSL",
"libtiff",
"bzip2-1.0.6",
"MIT",
"LicenseRef-scancode-public-domain-disclaimer",
"MIT-0",
"Beerware",
"Zlib",
"NCSA",
"ISC",
"CC0-1.0",
"LicenseRef-scancode-object-form-exception-to-mit",
"BSL-1.0",
"LicenseRef-scancode-pu... | permissive | apache/nifi-minifi-cpp | 90919e880bf7ac1ce51b8ad0f173cc4e3aded7fe | 9b55dc0c0f17a190f3e9ade87070a28faf542c25 | refs/heads/main | 2023-08-29T22:29:02.420503 | 2023-08-25T17:21:53 | 2023-08-25T17:21:53 | 56,750,161 | 131 | 114 | Apache-2.0 | 2023-09-14T05:53:30 | 2016-04-21T07:00:06 | C++ | UTF-8 | C++ | false | false | 4,547 | cpp | JniLogger.cpp | /**
*
* 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 ... |
295bf6b6001c97eaee75ea120fda8ae8d14ef7aa | 5a25b69e4424e13ab170cd3166e88b1f47465cf6 | /Calculate/calculate.cpp | ba370c84db29bda12fe1be7930feb76bb22fd132 | [] | no_license | PinkLilLi/FirstResponsitory | d63d698785f744f2c44535a6b848a9e4fe729226 | e787d65bb4c393f803ad219dd2bc2a8ebb29b5ec | refs/heads/master | 2021-01-21T07:07:15.675546 | 2017-02-27T14:20:01 | 2017-02-27T14:20:01 | 83,317,866 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 206 | cpp | calculate.cpp | #include<iostream>
#include"Add.h"
#include"Subtraction.h"
using namespace std;
void main() {
int a = 1;
int b = 2;
int c, d;
c = Add(a, b);
d = Subtraction(a, b);
cout << c << endl << d << endl;
}
|
0bcc0eada37fb52903f860180e3b51da59ba2367 | c80c197274f25f1008aef127eca7c7824461baec | /src/simulation/ecosystem/iteration/Iteration.h | 130ede33e3ff1c188d9834d579a673b3c004ac67 | [] | no_license | LiamEverton/CS-3210-Project-Assignment | b8fde18b7c85ca47a5d23f927a8e4f0da371c5d0 | c07274d2b765c31ff2996e1bcec93fba8d932a7d | refs/heads/master | 2020-05-07T15:18:37.699587 | 2019-05-04T19:26:39 | 2019-05-04T19:26:39 | 180,631,270 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 665 | h | Iteration.h | #ifndef CS_3210_PROJECT_ASSIGNMENT_ITERATION_H
#define CS_3210_PROJECT_ASSIGNMENT_ITERATION_H
class EcoSystem;
/**
* Iteration, representing the single 'iteration' simulation of a EcoSystem.
*/
class Iteration {
//The owning EcoSystem.
EcoSystem *ecosystem;
public:
/**
* Constructs a new Iterati... |
82337e53659e9e207f965cc9e219366209972793 | 94c68d17a0559e9ad1ed9bc85d9f22fd857b70f8 | /Mail Delivery.cpp | a310667cde3d55247f1370b6984fe375e224e6aa | [] | no_license | ShreyanshMehta/CSES-Problemset---Graph-Algorithms | 7d8c96eb586e3f3301e3050ea13420784b60976b | 70750bdc7bfaf9728be74ad48f0c1cfd738908bf | refs/heads/main | 2023-01-20T04:06:28.318919 | 2020-12-03T19:05:34 | 2020-12-03T19:05:34 | 306,842,901 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,517 | cpp | Mail Delivery.cpp | #include<bits/stdc++.h>
using namespace std;
#define fi(a,b) for(int i=a;i<b;i++)
#define fj(a,b) for(int j=a;j<b;j++)
#define ff first
#define ss second
#define ll long long
#define ld long double
#define ull unsigned long long
#define bp(x) __builtin_popcount(x)
#define pr(x) for(auto it: x) cout<<... |
61046b59e3b14fbb1f3e0848314f042ab239b261 | 16bfa77ab105896cf044b8f6c8e15f75e3a8c8e8 | /Latest/MorphingClock/Digit.h | ede50576b9373f0e72d108f6df1c3b0c4a4b0a89 | [] | no_license | PeterTeunissen/HariFun_166_Morphing_Clock | e59d2fb717851f6864cb0a6fda21af546bdd4402 | 087128207d3dd86aa604c7be60310980117619b4 | refs/heads/master | 2020-04-18T04:15:24.798464 | 2019-02-01T14:25:05 | 2019-02-01T14:25:05 | 167,231,805 | 1 | 0 | null | 2019-01-23T18:20:37 | 2019-01-23T18:20:37 | null | UTF-8 | C++ | false | false | 1,216 | h | Digit.h | #ifndef DIGIT_H
#define DIGIT_H
#include <Arduino.h>
#include <PxMatrix.h> // https://github.com/2dom/PxMatrix
class Digit {
public:
Digit(PxMATRIX* d, byte value, uint16_t xo, uint16_t yo, uint16_t color);
void Draw(byte value);
void Morph(byte newValue);
byte Value();
void DrawColon(uint16... |
e7a1975866d254449f03b91577f6c9f1b6e7c077 | 2e2eb7e00899bd75ce9a6f6bf81267dde31e0e69 | /조재휘/07-07-2020/12790.cpp | d5f0131e098502b11d0f40bb7563b1aa70069510 | [] | no_license | wogus3602/study | 3f8e47bbcf7a45aa1ba0781f50140a6f9be89764 | cba81bec9a7044567627d197ae9c8620d4fb8729 | refs/heads/master | 2022-11-18T23:32:50.632074 | 2020-07-10T04:02:42 | 2020-07-10T04:02:42 | 273,912,878 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 526 | cpp | 12790.cpp | #include <iostream>
using namespace std;
int main() {
int n;
int HP, MP, ATK, DEF;
int HP_item, MP_item, ATK_item, DEF_item;
int CP;
cin >> n;
for (int i = 0; i < n; ++i) {
cin >> HP >> MP >> ATK >> DEF;
cin >> HP_item >> MP_item >> ATK_item >> DEF_item;
HP += HP_item;
MP += MP_item;
... |
4f99a971d81bda771f4f9d8b84701d3838b577f6 | 020fa5a092920d757fd9a301ead15b3591c07be9 | /src/nn/NeuronFunction.cpp | c5e5478a24980ee88cd412233b9f1cbcf49bbec5 | [] | no_license | DolotovEvgeniy/Artifical-life | ad554030386fde2ef7849319f9ce6cf802dd722d | b188ad3b1dc1c700ebbd46ae61caacaf37dbbf75 | refs/heads/master | 2021-01-20T07:15:24.982465 | 2014-06-09T19:53:02 | 2014-06-09T19:53:02 | 20,656,749 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 600 | cpp | NeuronFunction.cpp | #include <vector>
#include <math.h>
#include <iostream>
using namespace std;
double linear(double value, std::vector<double> params)
{
double a = params[0];
double b = params[1];
return (a * value) + b;
}
double sign(double value, std::vector<double> params)
{
double a = params[0];
if (... |
24176939ef29f9e4ab2bfb018df4060e31d6b336 | c3c3b97e824370642f20a0cb408bb054c7b6049c | /BOJ/스택/스택/main.cpp | 54ec58ef6c90223cd70de8e5ef99bab8ff150a99 | [] | no_license | chrisais9/algorithm | 00333c0f731ffd5971bf20871e622b48d22617c2 | 2a4fdf8e3f5d3da0b88cd2832d74e8e1dcbe09e9 | refs/heads/master | 2022-06-13T04:57:32.181733 | 2022-06-03T08:35:36 | 2022-06-03T08:35:36 | 136,615,290 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 575 | cpp | main.cpp | #include <iostream>
#include <vector>
#include <string>
using namespace std;
int tb[100010],n;
vector<int> v;
vector<string> way;
int main()
{
ios::sync_with_stdio(false);
int i,an=0;
cin>>n;
for(i=0;i<n;i++)cin>>tb[i];
for(i=1;i<=n;i++)
{
v.push_back(i);
way.push_back("+");
... |
b39f2cef4cbfb3482817961e92931123706abd02 | 6aeccfb60568a360d2d143e0271f0def40747d73 | /sandbox/libs/extension/examples/multiple_inheritance/computer.cpp | af79271d0aebd7909d0447e13fda76696696c9e0 | [] | no_license | ttyang/sandbox | 1066b324a13813cb1113beca75cdaf518e952276 | e1d6fde18ced644bb63e231829b2fe0664e51fac | refs/heads/trunk | 2021-01-19T17:17:47.452557 | 2013-06-07T14:19:55 | 2013-06-07T14:19:55 | 13,488,698 | 1 | 3 | null | 2023-03-20T11:52:19 | 2013-10-11T03:08:51 | C++ | UTF-8 | C++ | false | false | 1,107 | cpp | computer.cpp | /*
* Boost.Extension / multiple inheritance example (computer)
*
* (C) Copyright Jeremy Pack 2007
* 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)
*
* See http://www.boost.org/ for latest version... |
821b010f0b6074a32c9dd26f93a0f3d843388fb0 | 4043f78994d68efc7d0fe9805cd91ec46a4d16f4 | /src/Eigen/src/Core/arch/AltiVec/MatrixProductCommon.h | 33d543494b26769c51a7783f67f9cbab9c4e1bef | [
"Apache-2.0"
] | permissive | fanvanzh/3dtiles | d08d30956e790e451beab79c82acddc42a051e02 | a7c3000c794f5fbcf0defe72cabd0465dbf9df6e | refs/heads/master | 2023-09-03T14:08:09.905715 | 2023-08-30T02:30:02 | 2023-08-30T02:30:02 | 120,919,743 | 1,713 | 555 | Apache-2.0 | 2023-08-30T02:30:03 | 2018-02-09T15:07:43 | C++ | UTF-8 | C++ | false | false | 9,490 | h | MatrixProductCommon.h | //#define EIGEN_POWER_USE_PREFETCH // Use prefetching in gemm routines
#ifdef EIGEN_POWER_USE_PREFETCH
#define EIGEN_POWER_PREFETCH(p) prefetch(p)
#else
#define EIGEN_POWER_PREFETCH(p)
#endif
namespace Eigen {
namespace internal {
template<typename Scalar, typename Packet, typename DataMapper, typename Index, cons... |
c39a70bdbfd1e98073a227c57c05a30fa38813b9 | dfb0952ea11066b76aa8e808f9e2a15be426ecf8 | /prj/gml/Algorithms/KMeans/dllmain.cpp | 20291fd31ddeaf57f144b3bc98b7700e4aaa7ab5 | [] | no_license | berendeanicolae/gml | 10070aefc778245304401bf58cd68b1e7b9b17b1 | 556cf8008d12e58077c346c72d70932ca58b316c | refs/heads/master | 2021-01-10T14:07:05.168676 | 2017-08-09T10:40:08 | 2017-08-09T10:40:08 | 36,880,125 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 72 | cpp | dllmain.cpp | #include "KMeans.h"
LIB_INTERFACE(KMeans,"GDT",1,"KMeans algorithm"); |
78300c7c3f297272a70baf66fd65bff1cc8dee5d | ac445eca22bffadae4bb46f926cfabd97e540319 | /examples/HK/HonFlx11UpMu.cc | 918ff75482354a7353c5938c75a9356a874659f5 | [] | no_license | hyperk/NGen | d7bf63d856441cff187dbee470ad93c3b938c793 | 5dc15ba196b03884da0bcb4ee8b3ca0ae3faf578 | refs/heads/master | 2020-03-30T16:43:09.530285 | 2015-04-24T07:14:47 | 2015-04-24T07:14:47 | 30,894,834 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 498 | cc | HonFlx11UpMu.cc | #include "HonFlx11UpMu.h"
double HonFlx11UpMu::GetFlux(float E,NEUTRINO::FLAVOR nuFlav, Time_Struct t)
{
if(nuFlav!=NEUTRINO::MU and nuFlav!=NEUTRINO::MU_BAR)
{
return 0;
}
return HonFlx11::GetFlux(E,nuFlav,t);
}
double HonFlx11UpMu::GetFlux(float phi,float cosZ, float E,NEUTRINO::FLAVOR nuFlav,... |
5ab3d84769de524abd695470dd2fe719dc144571 | 0ac7388d092db127a5f34952a985ee3cfb3ca028 | /deps/libgdal/gdal/ogr/ogrsf_frmts/flatgeobuf/ogrflatgeobuflayer.cpp | 654f1d5616215a4ea766bf8bec17335a5db0ca10 | [
"LicenseRef-scancode-warranty-disclaimer",
"SunPro",
"LicenseRef-scancode-info-zip-2005-02",
"BSD-3-Clause",
"MIT",
"ISC",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | mmomtchev/node-gdal-async | 49161ab6864341b1f0dd8b656c74290c63061c77 | 5c75d3d98989c4c246e54bb7ccff3a00d5cc3417 | refs/heads/main | 2023-08-07T11:44:44.011002 | 2023-07-30T17:41:18 | 2023-07-30T17:41:18 | 300,949,372 | 96 | 18 | Apache-2.0 | 2023-09-13T17:43:40 | 2020-10-03T18:28:43 | C++ | UTF-8 | C++ | false | false | 90,349 | cpp | ogrflatgeobuflayer.cpp | /******************************************************************************
*
* Project: FlatGeobuf driver
* Purpose: Implements OGRFlatGeobufLayer class.
* Author: Björn Harrtell <bjorn at wololo dot org>
*
******************************************************************************
* Copyright (c) 20... |
fb5817cb838c7bb7dbf8911d47ee0886b10d2a32 | 6685563f47afd43c49a7bcf1edc054b100f72695 | /potyczki algorytmiczne/2020/kol.cpp | ff26cdfb614c4e5eb6a9786c993c5bc806778fd1 | [] | no_license | Noxitu/contests | e6c7841897f981e43429043390b9fb14603939d2 | c8b1502a21e150fd60b8450d15598d49b89f45f6 | refs/heads/master | 2021-06-23T16:00:39.576815 | 2020-12-10T21:16:17 | 2020-12-10T21:16:17 | 29,066,178 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,343 | cpp | kol.cpp | #include <bits/stdc++.h>
// #define MULTIPLE_TESTS
// #define ENDLESS_TESTS
#define TIME_LIMIT 1
#define MEMORY_LIMIT 128
using namespace std;
void test()
{
int n, m;
cin >> n >> m;
vector<pair<int, int>> changes;
changes.reserve(2*m);
while (m --> 0)
{
int l, r, k;
cin >> l ... |
822e0d1bc0d70cc69cc78563376f70b2f49a9959 | 0dd13f79b99a6689fd3dde921d259273d0e9cc6e | /tabview.cpp | 371888cc74d29862cfde31fe35edb42334580936 | [] | no_license | ThomasWzorek/MaxNet | 221054820c21fd2d063f583fa93887149c3f7d9b | 2af1ce457d219cc8ab3f085924aff2cb59d8e322 | refs/heads/master | 2020-04-07T18:57:40.615132 | 2012-05-09T13:01:05 | 2012-05-09T13:01:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,161 | cpp | tabview.cpp | #include "tabview.h"
#include "ui_tabview.h"
#include <QtWebKit/QWebView>
#include <cstdio>
TabView::TabView(QWidget *parent) :
QWidget(parent),
ui(new Ui::TabView)
{
ui->setupUi(this);
Title = "This is my title";
ui->TabMainView->load(QUrl(HOMEPAGE));
ui->TabMainView->show();
Title = ui->Ta... |
11f81f6a3f783770f7e5c8bb987069bf30108806 | 9eb9796d34f587b02672d98a9e9dbda1cd7af3e6 | /CS/2/DataStructure/04stack/02linkStack/linkStack_test.h | 7248ee10ce443046312828a3bfbd68d49d7d9b06 | [] | no_license | eternity6666/university | ef0b902158917d7c70287eaa1207ee28d9d98c20 | 953188832fd174270c43c584fc8c4beda297d95d | refs/heads/master | 2021-07-15T04:16:50.128943 | 2020-05-15T02:34:17 | 2020-05-15T02:34:17 | 141,017,995 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 972 | h | linkStack_test.h | #ifndef LINKSTACK_TEST_H
#define LINKSTACK_TEST_H
#include "linkStack.h"
template <typename elemtype>
void display(linkStack<elemtype> a)
{
int n = a.getLength();
if(n)
{
// cout << 1 << endl;
for(int i = 0; i < n; i++)
{
elemtype e;
a.pop(e);
... |
edc0a98cb3732691a33aeae32dd29743fd52c22b | e25d29a4230d298dff22f76412fa30b34fad98bd | /Language programm/labFour/codeFour.cpp | ee9d66d553acb0af3cc7bed308afcfc206a4c10f | [] | no_license | Zerp2808/program-language | 4becab08c4a2bbd746b4ad10515eaada652ab721 | 5b73f486e73b237f4abd76a8547f7615dbf4e06f | refs/heads/master | 2020-06-15T20:12:41.166728 | 2019-07-12T06:52:49 | 2019-07-12T06:52:49 | 195,382,965 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,660 | cpp | codeFour.cpp | #include <iostream>
#include <string>
using namespace std;
class String
{
char * value;
int len;
public:
String():value(new char[1] {}),len(0) {}; // конструктор по умолчанию
String(const String& s);
// конструктор копирования
String(const char * s);
// конструктор инициализации Си-строкой
~Stri... |
dbc29bba9858ccb792a0d156c040063fa16f43e8 | e59127606facf962d559e869ccb65be488cb93e8 | /ProjectData/GameSources/Player.cpp | 47b03c595562e778879384a35a4261a24ca27361 | [] | no_license | OkabeTatsuya/TGS_TeamJ_WaveProject | 084f8c1a3bb713dc7421af7f47300d9c2e9462a9 | 8e7b51403255fff4d854e917542657bc6a140cf0 | refs/heads/master | 2021-01-26T10:48:27.596231 | 2020-06-24T23:02:26 | 2020-06-24T23:02:26 | 243,408,631 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 36,697 | cpp | Player.cpp | /*!
@file Player.cpp
@brief プレイヤーなど実体
*/
#include "stdafx.h"
#include "Project.h"
namespace basecross {
Player::Player(const shared_ptr<Stage>& stage,
Vec3& rotation,
Vec3& scale,
Vec3& position,
int& layer) :
ObjectBase(stage,
rotation, scale, position, layer
... |
4f972806bc6c46dbbaca56dff9f9620cf4332200 | 997b0ac548c08f8ea3c57be423c946f946ecff40 | /Nutcracker/src/Nutcracker/Core/Input.h | 5c388484d2c51cd5af33fc1fe374403f832d4ac6 | [
"Apache-2.0"
] | permissive | DevShag/Nutcracker | 883e4158bcba847c8ef88f486e127d92dd1825ee | a5d90233b4b308db58872288a7d1637bf22e3050 | refs/heads/main | 2023-07-15T05:48:37.533974 | 2021-08-23T06:40:50 | 2021-08-23T06:40:50 | 318,091,266 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 882 | h | Input.h | #pragma once
#include "Nutcracker/Core/Core.h"
namespace Nutcracker {
class NUTCRACKER_API Input {
public:
inline static bool IsKeyPressed(int keycode) { return s_Instance->IsKeyPressedImpl(keycode); }
inline static bool IsMouseButtonPressed(int button) { return s_Instance->IsMouseButtonPressedImp(button); }... |
d59021254292ce14136d8b78cff9950ca284685d | 78d02c8034b83bdfbe0cdb747bef318bab744e1e | /proyFinal/alarm.cpp | be794190084d2de8c2ebf519b1ea854efc3ac8bc | [] | no_license | cesaravila22/embebidosTEC | 3cdf50aafd4719cbbe05029e051caeeb463174f9 | 06b67e81f8c54aeeec4b741ddfd4c646b7cf7d23 | refs/heads/master | 2020-04-08T22:07:12.316968 | 2013-11-18T21:19:46 | 2013-11-18T21:19:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,948 | cpp | alarm.cpp | #include <cv.h>
#include <highgui.h>
#include <iostream>
#include <time.h>
using namespace std;
using namespace cv;
int main (int argc, char * const argv[]){
const int DELAY = 100; // mseconds
// create all necessary instances
CvCapture * camera = cvCaptureFromCAM(0);
Mat next_frame_color = cvQ... |
2b0abb4696e00521faf0910fa3ba10048b4ad1ac | 9261b7f586f6c7386ba77a2bd63518facf93fd3b | /setting.cpp | 822db4cc9274d62a4e3fea46e0c0796bcf39f8da | [] | no_license | Hans0706/Forum-for-Learning-C- | aa22b4ba9d8093c95ebcb0144199b3c29a6ad7fc | 819fee6a8701930a7f86b3dfee59cb07ef957abd | refs/heads/master | 2020-06-08T13:41:56.981292 | 2020-01-07T16:07:21 | 2020-01-07T16:07:21 | 193,237,387 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 52 | cpp | setting.cpp | #include "setting.h"
setting::setting()
{
}
|
08cffb91127f6aa9d79c88d7eb41cfce14f88bf2 | 4b65ffcb1df3db08e0d7cf6073d74d6bd4fac39f | /cf/1208/E.cpp~ | cd6eb64445c801e1458951d037301606e1477dd0 | [] | no_license | xLLLxLLLx/Averyta | 0b8540ba39da8bd7067504e85b3bd6533e84e281 | 487c58f4d4e55aa4291e1ccd7765bdbce2aaf6e7 | refs/heads/master | 2020-07-17T12:04:05.269971 | 2019-09-20T13:03:23 | 2019-09-20T13:03:23 | 206,016,559 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 654 | E.cpp~ | #include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 10;
struct data {
int w, id;
} a[N];
int b[N];
bool cmp(data A, data B) {
return A.w > B.w;
}
int main() {
int n;
scanf("%d", &n);
for(int i = 1; i <= n; ++i) {
scanf("%d", &a[i].w);
a[i].id = i;
}
sort(a + 1, a + 1 + n, cmp);
f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.