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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
224c34876d01159df0e9677d81a1d5e019d18048 | b052937681803bd58d410d6e84abfabf9c6c598e | /sw_x/gvm_core/internal/vcs/src/.svn/text-base/vcs_file_url_access_basic_impl.cpp.svn-base | 6ab1fec98263e3d43cc8e9169e01bef0760b2570 | [] | no_license | muyl1/acer_cloud_wifi_copy | a8eff32e7dc02769bd2302914a7d5bd984227365 | f7459f5d28056fa3884720cbd891d77e0b00698b | refs/heads/master | 2021-05-27T08:52:21.443483 | 2014-06-17T09:17:17 | 2014-06-17T09:17:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,293 | vcs_file_url_access_basic_impl.cpp.svn-base | //
// Copyright 2014 Acer Cloud Technology Inc.
// All Rights Reserved.
//
// THIS SOFTWARE CONTAINS CONFIDENTIAL INFORMATION AND
// TRADE SECRETS OF ACER CLOUD TECHNOLOGY INC.
// USE, DISCLOSURE OR REPRODUCTION IS PROHIBITED WITHOUT
// THE PRIOR EXPRESS WRITTEN PERMISSION OF ACER CLOUD
// TECHNOLOGY INC.
//
#in... | |
ba0db492f4fbf9d7bb278dc604e0456373905094 | 9c5ed15b94f72a1c8d61cdc4d817ef41ea0e4edd | /2016/July-December/trie/main.cpp | 4acc74a01294277aa284d5357d18e98fa23f9b83 | [] | no_license | caprariuap/infoarena | 6a2e74aa61472b4f9d429ad03710726d60856324 | a3a740d2c179f21b7177e5422072dfa61033437e | refs/heads/master | 2020-04-04T21:28:32.588930 | 2018-11-05T22:14:52 | 2018-11-05T22:14:52 | 156,287,370 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,703 | cpp | main.cpp | #include <cstdio>
#include <fstream>
using namespace std;
ifstream fin("trie.in");
ofstream fout("trie.out");
struct nod
{
nod *next[30];
int sf,nrfii;
nod()
{
sf=0;
for(int i=0; i<27; i++)
next[i]=0;
}
};
nod *rad= new nod;
void ins(char *w)
{
int ind=0;
nod... |
200a87ba259509af9450fabf6680adcd697f5c58 | 56ebbe3cd3e3d40fe549a44ee308c3564fd45ed0 | /2017CS372DesignPatterns/Command.cpp | b47a7d2fcf123bfb6597475d2a3675c43e980298 | [] | no_license | AKQuaternion/Spring2017CS372DesignPatterns | 2551b0f820683f1bdd5d9ac0d9493f9a490e54a4 | 80cbca1779adb440095603bd155b606ae16ea5d8 | refs/heads/master | 2021-01-20T05:02:12.793744 | 2017-04-26T23:45:48 | 2017-04-26T23:45:48 | 83,851,018 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 175 | cpp | Command.cpp | //
// Command.cpp
// 2017CS372DesignPatterns
//
// Created by Chris Hartman on 4/5/17.
// Copyright © 2017 Chris Hartman. All rights reserved.
//
#include "Command.hpp"
|
564a097cf046682236c1fc47c6fb021bd6523895 | 5e5a017e48fa8d16f32e0db4920b0df30c40dd9b | /whuacm/8.7/A.cpp | 8a74f2e3f49ee2a101988103b9ed1688f3ba4d21 | [] | no_license | hazeone/ACM | dfa8bc53539df35318d986922f55e7d1119ff0b4 | 8768ac00aecad51eddab7fba2858c1c5b7b86af3 | refs/heads/master | 2020-06-16T11:09:12.895221 | 2019-07-06T15:17:13 | 2019-07-06T15:17:13 | 195,550,823 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,602 | cpp | A.cpp | #include<cstdio>
#include<cstdlib>
#include<iostream>
#include<algorithm>
#include<cmath>
using namespace std;
int n,top;
struct data{
double x,y;
}p[200003],s[200003];
double dis(data a,data b)
{return sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y));}
double mul(data p1,data p2,data p0)
{return (p1.x-p0.x)*(p2.y-p0.y... |
012c29310868d17d05a9d02afdbdb90f9bad8b14 | a2f76f70d7ac8f2369ed8213cde2e23e083cdbb0 | /AtCoder/ABC110/A/a.cpp | 844dee78b126c72bedb80f092d99d1a0f0747ac6 | [] | no_license | Yunato/my-competitive-programming | 5a886469faa9a2f9c9a79729689cc4e19d25dd23 | 2b7996a4187e718de7d74b8783ea7c9490780dbf | refs/heads/master | 2020-04-17T17:17:33.994279 | 2019-05-25T14:15:44 | 2019-05-25T14:15:44 | 150,971,850 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 401 | cpp | a.cpp | #include <iostream>
using namespace std;
int main(void){
int input[3];
cin >> input[0] >> input[1] >> input[2];
for(int index = 0; index < 3; index++){
for(int cnt = index + 1; cnt < 3; cnt++){
if(input[cnt - 1] > input[cnt]){
int temp = input[cnt- 1];
input[cnt- 1] = input[cnt];
input[cnt] = temp;... |
f146c5d744a4de61fddc6f229268916d875bba70 | 8f85c7c57a8b89cb9c13840bda20af43db001181 | /ConsoleBlocks/src/Widgets/BlockBase/CBStartBlock.cpp | e1c8772e67832360fc2047f021335e67963e436b | [
"Apache-2.0"
] | permissive | HolmErik/ConsoleBlocks | 12ed91e0f050105ad5acae6076233c9f29a63808 | f9312d209b8c92534bab41751b67287aa7472b7b | refs/heads/master | 2020-04-07T08:54:39.697523 | 2019-01-08T22:32:29 | 2019-01-08T22:32:29 | 158,233,018 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 154 | cpp | CBStartBlock.cpp | #include "CBStartBlock.h"
CBStartBlock::CBStartBlock(QWidget *parent)
: CBBaseBlock(parent)
{
ui.setupUi(this);
}
CBStartBlock::~CBStartBlock()
{
}
|
0ab950aa85a7e0462e1a6a0019e5a8ae16481ef8 | 3d117018ca755ae2a5baacc67e331f43ee865d33 | /src/main.cpp | cde09a7a72b8241293a73e69944da89701575cc0 | [] | no_license | snorristurluson/exsim-physics | a762595c12050067562f1ba8ec8a28d74be64bc6 | a23ef7cdcdb8d6fe7c42228db08b96900afc0ab1 | refs/heads/master | 2021-08-23T22:09:32.731248 | 2017-12-06T19:55:18 | 2017-12-06T19:55:18 | 108,661,658 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 228 | cpp | main.cpp | #include "btBulletDynamicsCommon.h"
#include "Solarsystem.h"
#include "Ship.h"
#include "CommandHandler.h"
int main(int argc, char** argv)
{
int port = atoi(argv[1]);
CommandHandler handler;
handler.start(port);
}
|
0ffd667f0c2153a2914987b6fdaaf6362fccd56a | b65af77686e4779759e0afb1af4bed33d37f714f | /cMusicMoodDialog.cpp | 0f083428f07eba5b22f938c7f1f0979e33af2e6a | [] | no_license | kearyo/DM-Helper | 0afa7069a7e6668f011201465d8a724ec469d401 | a90a6bc6d9c3f8f9fe7062a61f1b2888a67e9a50 | refs/heads/master | 2023-05-06T11:49:01.848611 | 2021-05-24T00:38:59 | 2021-05-24T00:38:59 | 80,240,954 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,052 | cpp | cMusicMoodDialog.cpp | // cMusicMoodDialog.cpp : implementation file
//
#include "stdafx.h"
#include "DM Helper.h"
#include "cMusicMoodDialog.h"
#include "afxdialogex.h"
// cMusicMoodDialog dialog
IMPLEMENT_DYNAMIC(cMusicMoodDialog, CDialog)
cMusicMoodDialog::cMusicMoodDialog(CWnd* pParent /*=NULL*/)
: CDialog(cMusicMoodDialog::IDD, pP... |
fbae981d67eae4c058a502950fb69325f0e15348 | 936f55058b46b334b39d97f385e0a95ab361b012 | /source/ScenarioModel.h | 75dc7025172599bb7c7e92d57baed26adcfe8086 | [] | no_license | utia-econometrics/sddp | 9ec87e85c873e2a6d154c9158910678ba517a486 | ee4405aa1c9be7ec539d0bf48ce4fe5e6f84e891 | refs/heads/master | 2021-01-19T11:10:28.010179 | 2019-08-21T17:55:08 | 2019-08-21T17:55:08 | 63,052,364 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,634 | h | ScenarioModel.h | #pragma once
#include "Distribution.h"
#include "ScenarioTree.h"
#include "CoinModelWrapper.h"
#include <ilcplex/ilocplex.h>
using namespace std;
//runtime exception
class ScenarioModelException : Exception
{
public:
ScenarioModelException(string text) : Exception(text){
}
};
class ScenarioModel... |
39a2b70bb0fbe196751cb6b8aa502cd6e96bfe12 | eff84cfc2a079c5af03618d6ee71a024b2fc90c4 | /src/xenia/kernel/fs/entry.cc | da8e5ed2984eff395bb56aff18d2fc299d9d00c3 | [] | no_license | espes/xenia | db046c377b6fe5cf1bffcef34092ac65204c01f7 | 388c622ecd68947cd718309f62f8bde017fa1ab0 | refs/heads/master | 2021-01-16T23:14:16.161070 | 2013-06-02T07:11:54 | 2013-06-02T07:11:54 | 10,433,255 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,606 | cc | entry.cc | /**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. ... |
267ad4fd03b3308acbef4b93b091768b01bd1949 | 3347d16ca419ff2192fcc55906a88b29f70887d3 | /ALL CODES/L2 T2 practice/dasha and friends.cpp | e83d495864991513ba79cb765baee57806ffe3df | [] | no_license | Ayesha049/all_contest_codes | 47533b388514704595a32367ede97bfdca10a4b0 | d7cfd3bfa63668b19eb1c5a64dc0a527908534a0 | refs/heads/master | 2021-07-12T07:10:57.548063 | 2017-10-16T22:56:35 | 2017-10-16T22:56:35 | 107,188,843 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,871 | cpp | dasha and friends.cpp | #include<bits/stdc++.h>
using namespace std;
int arr1[50];
int arr2[50];
int main()
{
int flag=0;
int n,l;
cin>>n>>l;
int a;
cin>>a;
int sm=0;
for(int i=0; i<n-1; i++)
{
int b;
cin>>b;
arr1[i]=b-a;
sm+=arr1[i];
a=b;
}
... |
dc0135fe8c4907c8f35ed7de9d95ab63aae6eb5b | 31a3119974447b54352c0e6175d665d49b28f580 | /mashTheNewsKinect/src/OSCTunnel.cpp | f1150f3a143b333fd07ce35220295fe8f492b13a | [] | no_license | luopio/mashthenews | 2fba5232deac0108289c52ceefa903d253c4de40 | f251ee5bcca99c16f08030f9d0e65a84df36efbb | refs/heads/master | 2021-01-01T17:17:20.773589 | 2011-04-27T10:27:39 | 2011-04-27T10:27:39 | 1,536,099 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,499 | cpp | OSCTunnel.cpp | #include "OSCTunnel.h"
OSCTunnel::OSCTunnel()
{
sender.setup( HOST, PORT );
sendStartMessage();
}
OSCTunnel::OSCTunnel(char * ip) {
sender.setup(ip, PORT);
sendStartMessage();
}
OSCTunnel::~OSCTunnel()
{
sendStopMessage();
}
void OSCTunnel::sendTestMessage() {
ofxOscMessage m;
m.setAddre... |
1a13e147e63c55817a7ba2d528bf7b7632ee6490 | 28bbc168051237c97e810697c589b51c3d4b6836 | /DiegoCaripan/Semestre1-2017/Timus/1787.cpp | f48f5f3f8afa6c594aa1da0079265e13cad271c7 | [] | no_license | fernandezeric/acmudec | 1ac14d916445a8c31d5914f2a99c33c7bb8af9b0 | 1042c759b1636b47fcf3c20fd8daeaa39338bbd1 | refs/heads/master | 2020-07-31T05:09:51.501552 | 2018-09-13T01:55:49 | 2018-09-13T01:55:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 329 | cpp | 1787.cpp | #include <iostream>
using namespace std;
int main(){
int carsin1min, mins;
cin >> carsin1min >> mins;
int total = 0, minute[mins];
for(int i = 0;i<mins;i++)
cin >> minute[i];
for(int i = 0;i<mins;i++){
total = total + minute[i];
total = total - carsin1min;
if (total<0)
total = 0;
}
cout << total <<... |
e16fc1597a5363a82ea7ab7050ba1eef3957af07 | 396e837cad5186dd8929dc3c5ea6ffa8c6976251 | /log.h | fdd77f372e5eca51e1e4df46e4ecc03f32152c2d | [] | no_license | yuxiageyue/LIMS_FILE_CLIENT | 5737367d10456866b960d63477bcbd157a0f650c | 5b7c67c09f020d748db257b21bc61bbcdddd6480 | refs/heads/master | 2021-06-17T23:47:12.585846 | 2017-06-05T03:28:30 | 2017-06-05T03:28:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,032 | h | log.h | #ifndef LOG_H
#define LOG_H
#include <QObject>
#include <QString>
#include <QVariant>
#include <QFile>
#include <QTextStream>
class Log : public QObject
{
Q_OBJECT
public:
static Log* getInstance();
static const quint8 FILE_SIZE_RECV = 1;
static const quint8 FILE_NAME_RECV = 2;
static const quint8... |
cb5ab0900ea6360999f26e7ec9543941d5f2eb1a | 5bf990821bd1759e397835af79ab420e0e701574 | /Strategy/code/DES.h | 13fed58926b529e64974961d9dd345f71b7f2951 | [] | no_license | miguelAmadorN/DesignPatterns | 6c8650e2167dee94f6863bf3960df1a687fa76a0 | 39517ef3e67c58dc2553bf160b33071c3b5f7a34 | refs/heads/master | 2020-06-29T05:02:31.387357 | 2020-02-23T23:26:24 | 2020-02-23T23:26:24 | 200,448,838 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 151 | h | DES.h | #ifndef DES_H
#define DES_H
#include "EncodeAlgorithm.h"
class DES : public EncodeAlgorithm
{
public:
DES();
private:
void encode();
};
#endif
|
96ede49abe12b5bd43c62c3b30c53ea532920dbc | 3a8cda49eb1542e07a797bad97a927153008fda7 | /05C++提高编程/05STL常用算法/05常用算术生成算法/02fill.cpp | f00a5f404051d448835f6da07a8727dc5e986f70 | [] | no_license | lucky5656/C-Code | 33bb7190b33a9f3b82844c1edf8ee96f8e19703e | 2db3a5a973c24d99d07ba1fa33681eee7872a5d7 | refs/heads/main | 2023-04-10T21:49:33.762245 | 2021-04-22T11:31:35 | 2021-04-22T11:31:35 | 351,770,982 | 1 | 2 | null | null | null | null | GB18030 | C++ | false | false | 635 | cpp | 02fill.cpp | #include<iostream>
using namespace std;
#include<vector>
#include<numeric>
#include<algorithm>
//常用算术生成算法:fill
void myPrint(int val)
{
cout << val << " ";
}
void test01()
{
vector<int>v;
v.resize(10); //系统会默认填充0
cout << "利用fill填充前:" << endl;
for_each(v.begin(), v.end(), myPrint);
cout << en... |
b607ee94214296cfc757688b2ae1d65af7119872 | 4e569ae2f9dded8b20615a7a85c703d51af6e459 | /srlib/net/IoManager.cpp | 7508dd063d3969a69189078b1d78748ff929e1d0 | [] | no_license | xihu1364/srlib | 2afbb374ed9ae9d8b7327393b1ef5312fe9a6693 | 7daab88c633c76951a6369c9c025b55ec0707740 | refs/heads/master | 2020-06-02T07:48:31.518737 | 2015-05-07T01:05:52 | 2015-05-07T01:05:52 | 35,140,766 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 7,279 | cpp | IoManager.cpp | /************************************************************************
* FileName : IoManager.cpp
* Author : xihu
* Version : 1.0
* Info : 2015/01/20
************************************************************************/
#include "stdafx.h"
#include <WINSOCK2.H>
#pragma comment(lib, "ws2_32.lib")
#include... |
870149fd98f859fb6be2eec78b2e60081c494dae | 9e4e78f44e57c3685cd33ea16188b3658ac0558d | /atcoder/abc099/c.cpp | f30fb33180a70aa57b4ba8349f60862ab0c1413c | [] | no_license | divanshArora/CP | 1d7ae72a036b8526fad4e16486cb958cce810f07 | 370b967f944305c7ae6bce076fecc3db8ab7e638 | refs/heads/master | 2020-06-13T16:49:29.932577 | 2020-02-13T17:02:45 | 2020-02-13T17:02:45 | 75,524,901 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,849 | cpp | c.cpp |
#include <bits/stdc++.h>
#define pb push_back
#define ll long long
#define ull unsigned long long
#define FF first
#define SS second
#define MOD 1000000007
using namespace std;
int gcd(int a, int b) {
while (a > 0 && b > 0)
if (a > b) a %= b;
else b %= a;
return a + b;
}
ll modpower(ll x, ll y, ll p) /... |
8ad127e511255f0945014c9876d79c9580b18213 | 3435446327127f8dff815c1af5223f3d58c5243a | /Source/Voxel/BlockStone.cpp | 274990e1f844ebb2a78fb4c1497907e2ce8b1cf0 | [] | no_license | azy2/UEVoxel | 83b5d2b45fde3db26d89e3d27873a0b950e6d570 | 01869ede5d0d1e18cf448539f1e16a54248bef6b | refs/heads/master | 2021-05-08T00:44:41.692418 | 2017-10-23T14:26:54 | 2017-10-23T14:26:54 | 107,699,590 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 167 | cpp | BlockStone.cpp | #include "BlockStone.h"
FVector2D FBlockStone::texturePosition(Direction dir) {
return FVector2D(1, 0);
}
bool FBlockStone::isSolid(Direction dir) {
return true;
} |
ae7fad7c47d9722cc9df66fcd5a3af99c19beb94 | 39bcafc5f6b1672f31f0f6ea9c8d6047ee432950 | /src/include/duckdb/parser/parsed_data/alter_table_info.hpp | 45c66ee494f7bc16ff0a92b7ce054a8d1c6ea00c | [
"MIT"
] | permissive | duckdb/duckdb | 315270af6b198d26eb41a20fc7a0eda04aeef294 | f89ccfe0ec01eb613af9c8ac7c264a5ef86d7c3a | refs/heads/main | 2023-09-05T08:14:21.278345 | 2023-09-05T07:28:59 | 2023-09-05T07:28:59 | 138,754,790 | 8,964 | 986 | MIT | 2023-09-14T18:42:49 | 2018-06-26T15:04:45 | C++ | UTF-8 | C++ | false | false | 12,205 | hpp | alter_table_info.hpp | //===----------------------------------------------------------------------===//
// DuckDB
//
// duckdb/parser/parsed_data/alter_table_info.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "duckdb/parser/parsed_data/alter_info.hpp... |
e53ea226fc1dc5b61facec3270f27a20fdc000a4 | 64e869de205db581fe190189834270b383756547 | /include/ground_control_system.h | 6a5639f44a31f69e249afcd00a4f9b68103c2379 | [] | no_license | ChanghyeonKim93/improved_topic_logger | e38267bfb2e7b3185c16e2e1bc8545620630b83c | 06da358ae460db2d3f1073a4c3367f507d1e784e | refs/heads/master | 2023-08-03T07:34:41.150449 | 2021-09-14T04:17:20 | 2021-09-14T04:17:20 | 278,518,406 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,700 | h | ground_control_system.h | #ifndef _HHI_GROUND_CONTROL_SYSTEM_H_
#define _HHI_GROUND_CONTROL_SYSTEM_H_
#include <stdlib.h>
#include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include <fstream> // for lidar pcd files
#include <ros/ros.h>
#include <Eigen/Dense>
#include <cv_bridge/cv_bridge.h>
#include <opencv2/core.hpp>... |
887a4b806a0225cd27cf393f7fdb757aee7018a1 | 649c08fc17986d7574a64c3db441b2534944cae4 | /src/whopgenome/whopgen_vcf.cpp | c6bc4a6b820129ebe1f5c26aeabc02cd738c194b | [] | no_license | pievos101/PopGenome | e9c1ddf831904bde7ec6f28cc4c93ec11ba0d6fb | 3e08c91398b639ed2fbbde9fcc27ce3b85c00d58 | refs/heads/master | 2023-03-03T08:20:38.143268 | 2023-02-21T09:11:22 | 2023-02-21T09:11:22 | 121,419,333 | 18 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 7,982 | cpp | whopgen_vcf.cpp | /*
**
** WhopGen
**
** WHOle genome population genetics with PopGENome
**
**
** VCF module
**
**
**
TODO:
- parse header for ##fileformat=VCFv4.1 or ##fileformat=VCFv4.0
- extract sample names
- match a SEXP-STRSXP-vector of sample names with existing sample names
- print errors if names are not found or double
... |
e7a66aeecd4106b69be19bdd4c8e227be8dfb9be | 1a7456c5790cb0a1c905c3ce1545e43c1c79e094 | /src/connection.cpp | 7eb37002211a1d9181b60095c6dbcbf1a2c40e26 | [] | no_license | chyufish/lite | e3a93609d5be6d218db2fdf2624bd669bbf63a30 | 010420fd04bcdac91d9d58915d42fd57caa72c58 | refs/heads/master | 2020-07-15T12:54:23.035609 | 2019-09-04T09:41:53 | 2019-09-04T09:41:53 | 205,566,516 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,979 | cpp | connection.cpp | #include "connection.h"
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <string.h>
#include <sys/sendfile.h>
#include <iostream>
#include "connection_manager.h"
#include "log.h"
namespace lite{
Connection::Connection(int fd,RequestHandler& request_handler,LiteEvent& lite_event,
Conn... |
8ba53dda45fd371530e3ef8dffd31f1b1a2e60c5 | bc997f47b4cffef395f0ce85d72f113ceb1466e6 | /ICPC/NEERC/neerc08_a.cpp | 19492f803f02962ab206a7c1f71c4f69fc035967 | [
"LicenseRef-scancode-public-domain"
] | permissive | koosaga/olympiad | 1f069dd480004c9df033b73d87004b765d77d622 | fcb87b58dc8b5715b3ae2fac788bd1b7cac9bffe | refs/heads/master | 2023-09-01T07:37:45.168803 | 2023-08-31T14:18:03 | 2023-08-31T14:18:03 | 45,691,895 | 246 | 49 | null | 2020-10-20T16:52:45 | 2015-11-06T16:01:57 | C++ | UTF-8 | C++ | false | false | 2,442 | cpp | neerc08_a.cpp |
#include <bits/stdc++.h>
using namespace std;
typedef long long lint;
using real_t = long double;
using ll = long long;
const real_t eps = 1e-7;
typedef pair<real_t, real_t> pi;
#define sz(v) int((v).size())
struct vec3{
ll x, y, z;
vec3(): x(0), y(0), z(0) {}
vec3(ll a, ll b, ll c): x(a), y(b), z(c) {}
vec3 oper... |
631299a8b83d5af7dce181b62b2bc2f9266b0c86 | 64828b91b865c1056c8f753590d38b2ba33d4c53 | /JUNE20B XYSTR.cpp | 5d41f5800a44315980b0bd0775e6594e50347be7 | [] | no_license | MahtabTanim/CodeChef | 5707d56e2a3be273d05924550ad3f60a4ab1107a | ad83e082723a252bdd0f5bf4d1d138ad9d5cfaf7 | refs/heads/master | 2023-02-13T23:46:11.262534 | 2021-01-01T15:43:39 | 2021-01-01T15:43:39 | 270,552,799 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 633 | cpp | JUNE20B XYSTR.cpp | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define MP ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define mod 1000000007
fstream ff;
string s;
long long extra,x,sum=0,t,a,b,c,d,e,f,tcase=0,n,m,k,i,j,max_count=0;
int main()
{
//ff.open("output.txt");
c... |
db15f079066d15e45a6514d8f665c9bc19913b71 | 4c9f082d1181821a777009b11625ddf3943ac84c | /icmpstegano-core/IcmpStegano.cpp | dc64abe4e3d0ceb31ed0befc02262c481268a372 | [] | no_license | pshanoop/ICMPStegano | dbfa946218a86cd7b793f6250c543b8f3309a337 | 8021873fb8893ec9ea1f90b92864e637c05b7dea | refs/heads/master | 2020-12-24T18:12:43.532069 | 2014-02-08T07:26:05 | 2014-02-08T07:27:40 | 9,696,441 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 15,617 | cpp | IcmpStegano.cpp | /*
* File: IcmpStegano.cpp
* Author: Sanoop Pattanath
*
* Created on February 13, 2013, 5:19 PM
*/
#include <stdlib.h>
#include <sstream>
#include "IcmpStegano.h"
unsigned short IcmpStegano::stop_flag = 0;
msgqueue* IcmpStegano::msg_in = NULL;
msgqueue* IcmpStegano::msg_out = NULL;
int IcmpStegano::current_... |
7aa240b16e5153dca56452f3d7749ad4cc929b09 | 1a5dfa4d5561ecbff0591dfb90905718906b0fae | /effect.cc | 76fa25dcb65954d0d981e43c7b8017058f39e9c6 | [] | no_license | whoo/rpi-rgb-led-matrix | b0f726b36b2073fa14b5fc1f9964aa934aa2b201 | 8a400dd34ec6af5dd30a6540dced3d9f40511b03 | refs/heads/master | 2021-05-22T12:35:44.479844 | 2020-12-19T21:58:57 | 2020-12-19T21:58:57 | 21,351,977 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,833 | cc | effect.cc | #include "effect.h"
void StarField::Run() {
const int width = matrix_->width();
const int height = matrix_->height();
uint32_t count = 0;
int x=0;
int y=0;
int a=0;
char star[MAXSTAR*2];
for (a=0;a<MAXSTAR;a++)
{
star[a]=rand()%16;
star[a+MAXSTAR]=rand()%360;
}
while (running_... |
62fd4301ab4baffe393b3940d777d36ca349dd59 | 5adbe94b29bfe5015ab9c5e38784ae12ef68e1b5 | /leetcode/problems/100-same-tree/same-tree-unittest.cc | c977c0bd57ae5d95cf0804edeafbbc363df416b4 | [] | no_license | kaivenhu/coding-problem | 26c3c77799b286de6bd0c66be276aceec0e4586b | 3966a320ae8a865646c4fd9f3dc6faae609e0ab7 | refs/heads/master | 2022-06-26T19:16:02.341237 | 2022-06-17T10:48:09 | 2022-06-17T10:49:08 | 225,041,119 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,024 | cc | same-tree-unittest.cc | #include <gtest/gtest.h>
#include "same-tree.h"
using namespace same_tree;
using namespace coding::tree;
TEST(same_tree, basic)
{
Solution s;
TreeNode *p = nullptr;
TreeNode *q = nullptr;
EXPECT_TRUE(s.isSameTree(
(p = DeserializedBinaryTree("")),
(q = DeserializedBinaryTree("... |
02c2db1ba570e09f000b8564c3fb8d085df04cb5 | a2a2bcbb701d0c327a1f360655fc5394492562f6 | /main.cpp | 91b2819740857b957d1b40e41babb1c4a7a4453e | [
"MIT"
] | permissive | MatthewDBTodd/2048-AI | d7683459fb838b73e04cd7c158546fa82f9198c5 | f3b7a44057627fc8fa15fabe277dec394250e36a | refs/heads/master | 2021-07-09T23:57:12.889486 | 2021-07-01T12:55:44 | 2021-07-01T12:55:44 | 195,412,208 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 427 | cpp | main.cpp | #include "Game.h"
#include "AIinput.h"
#include "mainMenu.h"
int main(int argc, char *argv[]) {
initMenu();
int ch {getChoice()};
switch (ch) {
case 0: {
int strength {getAIStrength()};
Game g(new AIinput(strength));
g.start();
break;
}
... |
ee459a0be7ae2668cc2a490484084c3d2483e1d6 | 7c6d308aea046e19a414a537b2d8b7cbd96c7d26 | /Physics/CollisionCounter.cpp | 5c0c152fc6050450a6a22c856ba613f0af15b5ef | [] | no_license | MAGANER/BrutalASCII | 7863a7ab0b5de9b9e595c5111e30d80a815288e8 | 64d701e7783fdb8d74bdfd93bfdbefb84355656c | refs/heads/master | 2022-01-23T11:33:25.065583 | 2019-07-19T17:02:56 | 2019-07-19T17:02:56 | 197,807,548 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 848 | cpp | CollisionCounter.cpp | #include "CollisionCounter.h"
CollisionCounter::CollisionCounter()
{
top_side_collisions = 0;
bottom_side_collisions = 0;
left_side_collisions = 0;
right_side_collisions = 0;
}
int CollisionCounter::get_collisions_summ()
{
return top_side_collisions +
bottom_side_collisions +
... |
7da3b0d21db087e03391faaf7ee2332751aabcdd | 8a1c4ce54774a97d4f86544892c25e4b3043ee0d | /Keengine/Sources/System/String.hpp | 0a7464c960596b876c38480505aa6dab4486ca6a | [] | no_license | Caerind/Keengine | 5c96169145b1476fc6fabf5acbcd22abd9985ec5 | e5e69fe0903c5778759b1690f9dcaf7a8ece5d43 | refs/heads/master | 2021-06-09T00:43:13.164530 | 2016-12-20T21:50:57 | 2016-12-20T21:50:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,920 | hpp | String.hpp | #ifndef KE_STRING_HPP
#define KE_STRING_HPP
#include <iostream>
#include <algorithm>
#include <string>
#include <typeinfo>
#include <vector>
#include <sstream>
#include <SFML/Graphics/Rect.hpp>
#include <SFML/Graphics/Color.hpp>
#include <SFML/System/Time.hpp>
#include <SFML/System/Vector2.hpp>
#include <SFML/System/... |
b85f5c4e6c94885d47ef7129f51ba304088aa50d | 8592fc9065d633a513620e9305126d69d0680dfb | /src/DT.cpp | 522ab3a93afc5b5eec7d6115a7839c6fa8f74927 | [] | no_license | MGCoding/ml-final-project | f68c376d767885f28ccba6c4b5d7720e984778bf | bd2702488efe1ead949ca70332b42cedf7c92881 | refs/heads/master | 2020-06-04T17:25:13.646068 | 2013-12-13T18:52:18 | 2013-12-13T18:52:18 | 32,116,477 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,036 | cpp | DT.cpp | #include "DT.h"
inline string doubleToString(double value)
{
ostringstream oss;
oss << value;
return oss.str();
}
DT::DT(int k)
{
this->k = k;
for(int i = 0; i < 9; i++)
{
mins[i] = DBL_MAX;
maxs[i] = -DBL_MAX;
}
}
void DT::convertData(vector<person> & res)
{
int p_size = res.size(), s_size;
for(int i... |
a80ca47c86427c9126eea179267f4aecc7c154a9 | 8666e0a1928dd5ed82bfcc3a8d0cfd053039be37 | /src/Lattice.cpp | 0c235d1ccb5e7fd64c70fa556639d1efecf5d88a | [] | no_license | schenke/ipglasma | 2a6cb62f2154079bead66867d83707ba3a58ed60 | 2bd1371ca2eb53b649d53d3e7753dcc91dec9327 | refs/heads/master | 2022-12-03T11:30:57.392615 | 2022-12-01T14:51:42 | 2022-12-01T14:51:42 | 147,559,686 | 4 | 6 | null | 2022-09-14T13:36:55 | 2018-09-05T18:06:58 | C++ | UTF-8 | C++ | false | false | 1,743 | cpp | Lattice.cpp | #include "Lattice.h"
// constructor
Lattice::Lattice(Parameters *param, int N, int length) {
Nc = N;
size = length * length;
double a = param->getL() / static_cast<double>(length);
cout << "Allocating square lattice of size " << length << "x" << length
<< " with a=" << a << " fm ...";
// initialize ... |
f3a9083eecc3c2a7c4fd1267ccdaf4adcda94d16 | 6c1293b16eb6d3d34877c4b43a2049c4e1f18d9d | /testing/T01-trigger/T01-trigger.ino | 1c4319aee2bdbad4ad5007409c0518a0451ed1bc | [
"MIT"
] | permissive | AdamRayBraun/FinalMajorProject | d991edd8174ea53d85f3c20fdcc1b4ce3cbb7228 | a983faf5d06e15046d41906a09021c35e30b3d4f | refs/heads/master | 2021-09-15T04:51:19.463040 | 2018-05-26T17:24:32 | 2018-05-26T17:24:32 | 109,852,647 | 0 | 1 | MIT | 2018-05-25T18:09:33 | 2017-11-07T15:18:47 | C++ | UTF-8 | C++ | false | false | 157 | ino | T01-trigger.ino | int SB_BONE[] = {29,31,33,35,37,39,41,43,45,47,49};
int SB_BONE_RST = 27;
void setup() {
pinMode(29, OUTPUT);
}
void loop() {
digitalWrite(29, LOW);
}
|
b4614349d6609e28efe7c6259c9ad4672050b584 | 960f860d6f697523a9509e702f499246a704bb97 | /examples/Blink/Blink.ino | f667f230a6927ce7c4e80f090451f9998a5506f1 | [
"MIT"
] | permissive | stilren/RGBLamp | 915bbd8cba99042c9fda84b551fb87bd50cf0e5d | dd4629aafda25d5e961c5475d243e7046c057dfe | refs/heads/master | 2020-12-18T08:15:44.141443 | 2016-07-19T10:24:57 | 2016-07-19T10:24:57 | 63,676,834 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 342 | ino | Blink.ino | #include "RGBLamp.h"
RGBLamp myLamp;
int redPin = 3;
int greenPin = 5;
int bluePin = 6;
int mode = COMMON_ANODE;
void setup() {
myLamp.begin(mode, redPin, greenPin, bluePin); //Make sure pins are PWM-pins if you want to use fadeTo or blink fucntions.
myLamp.blink(Color::Cyan);
}
void loop() {
myLamp.update(); ... |
cda038eabc695802fc5a4892c15fde47476cffbe | 510cfe880a475f0c572cc34c1b544e41911c3e6c | /1328A.cpp | 3124e3bc08a22985e33a73a46e5752d74c911067 | [] | no_license | ptkhai1203/cf-problems | aa40a1233b490c0daa977f978bed5b517bc47190 | 421c8e43401aa409363d6653540d8d6238b0e1d3 | refs/heads/main | 2023-04-14T14:03:45.795965 | 2021-04-12T13:35:05 | 2021-04-12T13:35:05 | 340,100,309 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 493 | cpp | 1328A.cpp | #include <bits/stdc++.h>
#define nl '\n'
using namespace std;
int main(){
#ifdef PTK
freopen("input.txt", "r", stdin);
//freopen("output.txt", "w", stdout);
#endif
ios_base::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
int t;
cin >> t;
while(t--){
int x, y;
cin >> x >> y;
... |
b54c071a8f323f2a22f064a7b6342884ab58ef67 | de085e675524e5177af82aaad683b1adff6dc599 | /net/wifi/service/jni/com_android_server_wifi_WifiNative.cpp | 56d7613add498dd51ef9b3bef06e982865218135 | [] | no_license | joshi3/framework_opt | 67560220798e195ca11d1f2d3bc7c1664015997f | 6cb716d56815a2bf3e9255df9dd255af649b8de4 | refs/heads/master | 2021-09-01T00:16:24.314305 | 2017-12-23T18:30:19 | 2017-12-23T18:30:19 | 115,213,934 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 65,477 | cpp | com_android_server_wifi_WifiNative.cpp | /*
* Copyright (C) 2014 MediaTek Inc.
* Modification based on code covered by the mentioned copyright
* and/or permission notice(s).
*/
/*
* Copyright 2008, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... |
ad39421848fd624cffb946e2a54631d4212e86c5 | 51407cfb371a65a9ccc8d78fd95b4966d5db6acd | /169-Majority Element.cpp | 34c7d30c96ecf9e3dcf154237eb0d6bde3c4431f | [] | no_license | yangmingzi/MyLeetcode | 80d79849573ea67820bc0bd20701c5c602226829 | 1c0c1121cb0ebbc1a9300b37ce609e682deba650 | refs/heads/master | 2020-05-18T06:16:49.438125 | 2015-12-18T09:43:58 | 2015-12-18T09:43:58 | 31,898,329 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,340 | cpp | 169-Majority Element.cpp | /*
Given an array of size n, find the majority element.
The majority element is the element that appears more than ⌊ n/2 ⌋ times.
You may assume that the array is non-empty and the majority element always exist in the array.
*/
/*
摩尔投票法 16ms
Boyer–Moore majority vote algorithm
The algorithm is carried out in two st... |
c206b67ff86acd4f446585939f81a9fbb36a362a | 2a6219fcd8dc01bd5c15efff4f87b9dfa92432bf | /team/第一阶段2/h.cpp | 2dc9bbd61cff5bb0b4b2c53cfa18043d6f533143 | [
"MIT"
] | permissive | starry-xin/Decathletes | 909c5687ac6e68b0e39b798e906a400e25eaecee | 81b37ebadcc1b60083bb28a1161f2b995ea23656 | refs/heads/master | 2020-03-27T01:19:56.773553 | 2018-02-27T10:13:51 | 2018-02-27T10:13:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,117 | cpp | h.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int mod=1e9+7;
struct mat{
ll a[3][3];
};
mat mul(mat a,mat b){
mat ans;
for(int i=0;i<3;i++){
for(int j=0;j<3;j++){
ans.a[i][j]=0;
for(int k=0;k<3;k++){
ans.a[i][j]=(ans.a[i][j]+a.a[i]... |
3bc27e9ea315e52bcac0b7e8f62544acd59f1797 | e2119ddc29757a786c983499629c4f92510658ef | /src/Alignment/Multiple/ParallelProbabilisticModel.cpp | 98a903f814c12900dac65f5e08f274d9d4f8ad22 | [] | no_license | refresh-bio/QuickProbs | 623ee08c4143d1d2d5d1260375b401f6ec750378 | 3ec12212ed7268c9b1f54cb0f2fa087e1f54dba1 | refs/heads/master | 2022-06-07T23:05:13.967075 | 2022-05-19T19:17:11 | 2022-05-19T19:17:11 | 48,433,949 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 13,527 | cpp | ParallelProbabilisticModel.cpp | #include "Common/mathex.h"
#include "Common/Timer.h"
#include "DataStructures/Sequence.h"
#include "DataStructures/MultiSequence.h"
#include "ScoreType.h"
#include "ParallelProbabilisticModel.h"
#include "Configuration.h"
#include <omp.h>
#include <algorithm>
#include <memory>
#undef min
using namespace std;
using... |
bd55594b5bf8d07099568337f7e379b7f91f5aa2 | c46a83d784917382ceb8c673b73b328afcfae0a3 | /Training/GameObject.cpp | abe19b5b9e1c7b1f11feb452151ba59f4739984d | [] | no_license | Zeldarck/TrainingDx12 | ca717f8bc6e3225e39f142f3a28dd35e9f447204 | 509051e449dc8f56c07c3f9730e88f4ba64b78e8 | refs/heads/master | 2021-09-03T17:15:15.092513 | 2018-01-10T16:59:43 | 2018-01-10T16:59:43 | 116,127,388 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,789 | cpp | GameObject.cpp | #include <d3d12.h>
#include <dxgi1_4.h>
#include <D3Dcompiler.h>
#include "GameObject.h"
#include "Camera.h"
#include "Util.h"
void GameObject::Rotate(float a_x, float a_y, float a_z, float a_value)
{
DirectX::XMStoreFloat4x4(&m_transformationMatrix, DirectX::XMLoadFloat4x4(&m_transformationMatrix) *= DirectX::XMM... |
d5c64f93099eceb6020fa9675071952b95a66249 | caa1a25caa55a7188f0326178b1a35305d6b3a74 | /netcx/adapter/nxconfiguration.hpp | 40e875f2340e373675d7aab00e58b30143560b24 | [
"MIT"
] | permissive | hauzlin/Network-Adapter-Class-Extension | 8188db7b121dec68cde4d73e476731f4974b2af1 | e54583a6773e293327057b9d5ec08eabfd4e7406 | refs/heads/master | 2021-01-25T22:37:36.292383 | 2020-03-03T21:21:49 | 2020-03-03T21:21:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,332 | hpp | nxconfiguration.hpp | // Copyright (C) Microsoft Corporation. All rights reserved.
/*++
Abstract:
This is the definition of the NxAdapter Configuration object.
--*/
#pragma once
#include <FxObjectBase.hpp>
//
// The NxConfiguration is an object that represents a Net Configuration
//
struct NX_PRIVATE_GLOBALS;
... |
64143d83601d836d44a4a52913ca93546424b731 | 9a34a22e3c8121ba5d57f3c981640221f0cf4050 | /Yocto/Trig_out.ino | 9dd76acbf40c930f1400e20744ccba5470321859 | [] | no_license | HomoElectromagneticus/Yocto_808 | 53d858d9672625839739b4c1a9c8a5121c3c9b8d | e4cc0ba945dd6ff6b9236c745bc00b862862c523 | refs/heads/master | 2021-06-27T18:56:05.695924 | 2020-02-02T02:48:20 | 2020-02-02T02:48:20 | 101,703,098 | 13 | 5 | null | 2020-02-02T02:48:22 | 2017-08-29T01:09:57 | C++ | UTF-8 | C++ | false | false | 891 | ino | Trig_out.ino | /////////////////////////////////
//Fonction des sorties Trig
/////////////////////////////////
void Reset_Trig_Out()
{
digitalWrite(TRIG1_PIN, HIGH);
digitalWrite(TRIG2_PIN, HIGH);
digitalWrite(TRIG3_PIN, HIGH);
}
void Send_Trig_Out(int trig_outs)
{
if (bitRead(trig_outs, TRIG1)) {
digitalWri... |
c1c7e53139f79cc5308ced83bada7a682a45c30f | 64744a7d04e63bfd51da635adb69c8ca2da80b20 | /arduino/MAIN/main_ESP-12/MyTFT.h | 20339cb29528655274d56e172eda1258247e8974 | [] | no_license | MichalZima/GPS-tachometer | 9b085cdf78180bada53b09c06a91da98bd56d35e | a69c94489d3b98504abce43769353ebea3a76bf9 | refs/heads/master | 2023-04-21T07:04:43.800641 | 2021-05-10T19:10:49 | 2021-05-10T19:10:49 | 268,513,254 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,132 | h | MyTFT.h | #include <SPI.h>
#include <Adafruit_ST7735.h> // Hardware-specific library for ST7735
#define TFT_CS D1
#define TFT_RST D0 // Or set to -1 and connect to Arduino RESET pin
#define TFT_DC D2
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST);
class MyTFT {
private:
char convert... |
db39cfc44d627467a8ffc5c07ecb6895ef6a68bd | 032adffae2ce4b2731bda28b0e386f5cf1710418 | /TreasureRoom.hpp | 7bebd9f287fb44c93393847fe522612a87da212c | [] | no_license | jblake09/CS-162-Final-Project | 9f1fd61a3b9bc32466e97d409b6218eb57ad559d | 8c7b9d4a8857793140c890a592f44450604e7290 | refs/heads/master | 2021-01-25T07:50:26.061472 | 2017-08-30T04:03:24 | 2017-08-30T04:03:24 | 93,677,895 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 226 | hpp | TreasureRoom.hpp | #pragma once
#include "Room.hpp"
class TreasureRoom :
public Room
{
public:
TreasureRoom(Hero*);
void populateLevel();
void playerHealthDrain();
void playerInteract();
bool newRoom();
~TreasureRoom();
};
|
7b4229c29ccd316f1c13334fce65ed98081fb8b4 | 1119fdac2610d934dd690b44c48a967ac782a1e2 | /common/clienttcp.cpp | 0543ca02338b8f4eccd8e1265676c0d3623f2207 | [] | no_license | eugene-pa/armdncqt | 6e744f6b35e0fd87ed8f06af35e4d7df6e28d4bd | 3dcb31a33a0e9cca7b623006bfda360e068a8e17 | refs/heads/master | 2021-01-24T17:14:32.900853 | 2017-10-19T13:53:27 | 2017-10-19T13:53:27 | 63,157,609 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,774 | cpp | clienttcp.cpp | #include <QTextCodec>
#include "clienttcp.h"
// конструктор, используемый сервером для создания экземпляра, обслуживающего подключение к серверу
ClientTcp::ClientTcp(ServerTcp *server, QTcpSocket *sock, Logger * logger)
{
this->server = server;
this->sock = sock;
this->logger = logger;
// прописывае... |
2d0f743d5406b12a5f5f2010d339f6d1a9ff660c | 06bd829a0b316ff1a8b54b4fc1bb88c73a4fc68f | /枚举法/3.统计数字.cpp | 3e0466a42c975a1a6bad48ecde300759af938ca1 | [] | no_license | LiuYu0521/lintcode | 148e763294f478f50858f8053cacf5478b5c60b4 | 97c90a2065c6bf6df76c43211af0db2da528b965 | refs/heads/master | 2021-01-22T21:53:32.924735 | 2017-08-13T02:51:25 | 2017-08-13T02:51:25 | 92,742,383 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 552 | cpp | 3.统计数字.cpp | class Solution {
public:
/*
* param k : As description.
* param n : As description.
* return: How many k's between 0 and n.
*/
int digitCounts(int k, int n) {
// write your code here
int count = 0;
if(k == 0)
count = 1;
for(int i = 1; i <= n; i++)
... |
90b1632d5df65eef57a2cd9d0732cd69afa38cae | 9cdc39ad35f182a9f972f7eb66a4694e34a22651 | /RTSProject/RTSProject/VertexArray.h | 82ad31384d044273a673fa59846ce266cd1afce9 | [
"Zlib",
"FTL",
"LicenseRef-scancode-warranty-disclaimer",
"Unlicense"
] | permissive | rlatkddn212/rts-project | c7658b91221eb77bda9e458e618d0fe697f9d140 | 268ec1f5f97e899b70d6e7a50d6e9e7956c12646 | refs/heads/master | 2020-09-23T13:19:30.069007 | 2020-03-14T03:29:19 | 2020-03-14T03:29:19 | 225,509,419 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 637 | h | VertexArray.h | /**
* VertexArray
*/
#pragma once
class VertexArray
{
public:
VertexArray(const float* verts, unsigned int numVerts,
const unsigned int* indices, unsigned int numIndices);
~VertexArray();
void SetActive();
unsigned int GetNumIndices() const { return mNumIndices; }
... |
b0bb16dd867a4b1bc0a33043eb837d5bb2dcf74f | c88bd951e5ad26cc34e7730b8e1ca93ade988cee | /Homework/Assignment_5/Savitch_9thEd_Ch5_ProgProj1/main.cpp | c592b80d07881986598e8f304ddd2f84d4125bee | [] | no_license | jerlingo527/Lingo_Jericho_CSC5-42829 | 30deb4f3c695771af1feaffdcfe90002ee2b995b | 67b97c3b64889e68e6207954d95ede783cfc7f71 | refs/heads/master | 2021-01-21T04:47:37.150153 | 2016-06-06T11:12:39 | 2016-06-06T11:12:39 | 52,454,828 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,001 | cpp | main.cpp | /*
* File: main.cpp
* Author: Jericho Lingo
* CSC 5 42829
* Created on April 26, 2016, 12:00 PM
*/
//System Libraries
#include <iostream>
#include <cmath>
using namespace std;
//User Libraries
//Global Constants
//Function Prototypes
void input(int&, int&, char&);
void convert(int&, int&, char&);
void outp... |
59a4f52d8e51e770f8bfc5db856757d164b753a1 | 50582d297264a5a924bfaf8dfdc06cb925c850ab | /baekjoonPractice/10808.cpp | 6ce69b2f56d063b49c9e2a3cad05b1be6a3041ca | [] | no_license | rltn2121/Baekjoon | 81ff3a1f6c2c5437079d19b82871fde273305a19 | d4848e7f984f60faf4fa4ec3e050dd3ae58f9ada | refs/heads/master | 2021-10-26T16:55:31.198992 | 2021-10-08T08:35:44 | 2021-10-08T08:35:44 | 243,722,687 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 259 | cpp | 10808.cpp | #include <iostream>
#include <string>
using namespace std;
int main() {
string str;
int alphaCount[26] = { 0 };
cin >> str;
for (int i = 0; str[i]; i++) {
alphaCount[str[i] - 'a']++;
}
for (int i = 0; i<26; i++) {
cout << alphaCount[i] << ' ';
}
} |
de45c27a977e2e24c108309ecf51a4aad0c3e9d1 | e80c5acc15635c366ff7ea218c67a7dcfed46d4c | /src/Wall.cpp | 25f56f4c179ab449242ec1eb7aacd0eaa0d4f04b | [] | no_license | nan0S/bubbles | 45ed29a4ccb8b777735a71b212c4fce104c857d6 | 42899d8617c552f48a857fa015a4bb2f9e13a39e | refs/heads/master | 2022-12-21T20:42:45.574320 | 2020-09-24T21:23:21 | 2020-09-24T21:23:21 | 298,394,933 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,875 | cpp | Wall.cpp | #include "Wall.hpp"
void Wall::init(GLfloat min_x, GLfloat max_x, GLfloat min_y, GLfloat max_y, GLfloat min_z, GLfloat max_z)
{
glGenVertexArrays(1, &vao);
glBindVertexArray(vao);
shader = LoadShaders("../shader/wallVertex.glsl", "../shader/wallFragment.glsl");
static const GLfloat vertices[] = {
... |
71ee0e8f1649b564f8c13e1787bdaccea85ab4cc | 7bc2016215e1a327cbf46a55bcbcd74abef8407c | /customscene.h | e60a6a6a4b1655dece5020c91ec26271ec6f2d5e | [] | no_license | SurKM9/PolygonTest | 1e600b72c75d04d0a59f5dc7b9633a91db155c3b | b7ad55a71b8a4e7cf7036ee0ec873eaeb339b7dc | refs/heads/master | 2022-11-19T05:44:01.030642 | 2020-07-10T11:23:12 | 2020-07-10T11:23:14 | 262,420,046 | 0 | 0 | null | 2020-06-02T13:19:39 | 2020-05-08T20:17:14 | C++ | UTF-8 | C++ | false | false | 827 | h | customscene.h | #ifndef CUSTOMSCENE_H
#define CUSTOMSCENE_H
// qt
#include <QGraphicsScene>
#include <QGraphicsSceneMouseEvent>
#include <QPainterPath>
#include <QPointF>
// forward declaration
class PolygonItem;
class RectangleItem;
class CustomScene : public QGraphicsScene
{
public:
explicit CustomScene(QObject* pare... |
1d819e64dee1d0c519248ebcaa104ed0ea07a0ab | 799516a742541b63a43db4f94a89e1e50bc629b0 | /oj.ahstu.cc/1015.cpp | 009b7f270680bf4a0a9d2f4c7a2dd2d0b19c1b40 | [] | no_license | webturing/ACM | 2e940a72d90c0f3f45d1758d8d46c765ac47f689 | aab803107af653e18ea4f049ac642fefa420acc7 | refs/heads/master | 2021-01-23T04:19:09.859541 | 2017-06-12T14:27:13 | 2017-06-12T14:27:13 | 92,923,789 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 221 | cpp | 1015.cpp |
#include <iostream>
#include <string>
#include <cctype>
using namespace std;
int main() {
string s;
cin >> s;
for (auto p : s) {
cout << (char) (tolower(p));
}
cout << endl;
return 0;
}
|
c8757d536e87f9cab8bcc5d1aca58e224a654a9b | ccaffe91298cafeb23d84bf00e3fc1341a8a3509 | /source/RTRS_EnvironmentMappingShader.cpp | 740b0e5b30392a864e7e61f1f6c0b905ef8ecaa8 | [] | no_license | fasterisk/Stratos | 8d25138c1b93b01953850197627acc6e21ed3699 | b8d7468f36099d1c5c52826308bdde696ac8c3ca | refs/heads/master | 2020-04-10T14:15:15.585466 | 2013-03-16T10:47:35 | 2013-03-16T10:47:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,901 | cpp | RTRS_EnvironmentMappingShader.cpp | #include "RTRS_EnvironmentMappingShader.h"
#include "RTRS_TexturedModel.h"
RTRS::EnvironmentMappingShader* RTRS::EnvironmentMappingShader::m_pInstance = 0;
/**************************************************************************************************
*************************************************************... |
acc7c85956592cd7b5f2b84f412091bfda4c5f51 | bb9aef66f743ab73ae601d7bb0759e1da47f4461 | /en/GeneratedFiles/qrc_window.cpp | 870dc85921a3ac416709087801a329ed1f4b5273 | [] | no_license | 10gakki/en | 66aca0ca9d561bdc09b220933b0c9b6543209991 | 62d29e7b801ec6061b575e7752b133577d93e5fd | refs/heads/master | 2021-08-29T15:47:41.434493 | 2017-10-12T07:34:52 | 2017-10-12T07:34:52 | 106,660,585 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 90,910 | cpp | qrc_window.cpp | /****************************************************************************
** Resource object code
**
** Created by: The Resource Compiler for Qt version 5.6.1
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
static const unsig... |
130632f024f4c64cc1a51ad98e4e8cc0fd9b4fdc | 258026cd4d0555838516e3d0dde804f56cbbc0d5 | /bakjun/15903.cpp | 7d5d9a3cf662372122f5760764cbc4b67944950e | [] | no_license | tksuns12/problem_solving_history | 024a6484e8ead6d36f90a0befc6913e8d77fad74 | 4a083647a3f22aba6ff51b21ac9923da1ebeb7d9 | refs/heads/master | 2022-12-21T05:29:20.330387 | 2020-09-25T08:39:23 | 2020-09-25T08:39:23 | 267,203,134 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,016 | cpp | 15903.cpp | /*석환이는 아기다. 아기 석환이는 자연수가 쓰여져있는 카드를 갖고 다양한 놀이를 하며 노는 것을 좋아한다. 오늘 아기 석환이는 무슨 놀이를 하고 있을까? 바로 카드 합체 놀이이다!
아기 석환이는 자연수가 쓰여진 카드를 n장 갖고 있다. 처음에 i번 카드엔 ai가 쓰여있다. 카드 합체 놀이는 이 카드들을 합체하며 노는 놀이이다. 카드 합체는 다음과 같은 과정으로 이루어진다.
x번 카드와 y번 카드를 골라 그 두 장에 쓰여진 수를 더한 값을 계산한다. (x ≠ y)
계산한 값을 x번 카드와 y번 카드 두 장 모두에 덮어 쓴다.
이 카드 합체를 총 m번 하면 놀이가 ... |
ede303af2be365514c57f3b144bd888e7c4dcaf1 | 26f9fdff3c246e3a68ff9b0bb4f8f0a9a67bce1c | /dynamic_OWSC (copy)/1.1/p | 5ede8965f61b78f3bf96d4f98f0b9717310da8e0 | [] | no_license | JBrakefield/My_olaFlow | 6c0aaa0dda8d8e69c127281fc9484f3cded258ea | a812362928f2466f4e2632d2636dce97a0a3b9f6 | refs/heads/master | 2020-04-08T14:00:49.750205 | 2019-01-10T19:48:55 | 2019-01-10T19:48:55 | 159,418,163 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 123,200 | p | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5.x |
... | |
f6b62c18f3554a35984ac17ff4d3d590030d954d | 381b77b5e2f2cb4e80e4c07560f0d976d7bec906 | /client/cocos2d-x-2.2.6/projects/YLHDKaPaiSanGuo/Classes/network/NetStream.cpp | 359e5f2a05807168325d0cd99902122c2b89def6 | [
"MIT"
] | permissive | lure9999/CardAndMonsterSanGuo | b9e2230b241fe68740247ab8b15c41e8a01da9ce | 7c99622488129ab03488e7daf0cd82e025af32b7 | refs/heads/master | 2021-11-03T14:11:48.721200 | 2019-04-06T14:35:26 | 2019-04-06T14:35:26 | 192,335,643 | 1 | 0 | null | 2019-06-17T11:41:50 | 2019-06-17T11:41:49 | null | GB18030 | C++ | false | false | 26,717 | cpp | NetStream.cpp | ///////////////////////////////////////////////////////////////////////////////
// 网络输出消息
// 利用C++流方式,方便用户填充
// 本来流式输入和流式输出应该分开
// 但是由于其功能相似并功能较少,我把他放入同一个结构中
//
// 在这个结构中,最前面的两个字节是网络包的大小,
// 这个大小对于用户是透明的,他不会被任何函数解析到
// 不过这个流不应该放置到ServerLib中
// 因为客户端也会使用
//
// Aug 24th, 2006 EL.AHong.F Modify.
// Sep 01st, 2006 EL.AHong... |
4e9f7e62e23bb40ac1b4c5dc6f670193777d12f7 | c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64 | /Engine/Source/ThirdParty/nvTextureTools/nvTextureTools-2.0.6/src/src/nvtt/OutputOptions.cpp | f3597b09d7fa1cd5b3dd293f95009a19623c9366 | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"GPL-1.0-or-later"
] | permissive | windystrife/UnrealEngine_NVIDIAGameWorks | c3c7863083653caf1bc67d3ef104fb4b9f302e2a | b50e6338a7c5b26374d66306ebc7807541ff815e | refs/heads/4.18-GameWorks | 2023-03-11T02:50:08.471040 | 2022-01-13T20:50:29 | 2022-01-13T20:50:29 | 124,100,479 | 262 | 179 | MIT | 2022-12-16T05:36:38 | 2018-03-06T15:44:09 | C++ | UTF-8 | C++ | false | false | 2,452 | cpp | OutputOptions.cpp | // Copyright NVIDIA Corporation 2007 -- Ignacio Castano <icastano@nvidia.com>
//
// 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 r... |
6779df8f84664d7aed558f0e681e67fac0cc2ee8 | 9f90c85615b6d99c9f8da1dafc7cd7a036ad5aca | /client/include/client.h | fcfa19155c734589fe40b772bc7835781ed73de3 | [] | no_license | ABScripts/SocketMessenger | d4185ac94ae44a74907f1c24188e59588561a239 | a7116f8845f388ee85c38fc9faa5f2862ba3ec40 | refs/heads/main | 2023-03-15T07:07:09.836886 | 2021-03-13T17:53:11 | 2021-03-13T17:53:11 | 347,068,885 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 467 | h | client.h | #include <string>
class Connection;
class Client {
Client();
public:
explicit Client(const std::string &ip, int port);
~Client();
bool sendMessage(const std::string &message);
bool connectToServer(const std::string &ip, int port);
bool isConnectedToServer() const;
... |
ac842c01017026b75800117ed03d1f0f3d3f1919 | e32d2211f3c1e00c020a87f434a5c29cef57c25e | /code/latin-2012/digits.cpp | 8c5f26e73e6a5e05a35c83086788cb9f57e10b0f | [
"CC0-1.0"
] | permissive | luizreis/programming-contest-notebook | bc277b41f8c7e08dea45a73c8868701bfc2742ce | 6969e3a91a8606b08b3c8a4838970b1fe0a967df | refs/heads/master | 2021-01-20T15:44:46.096033 | 2017-04-03T13:11:14 | 2017-04-03T13:11:14 | 61,964,169 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,093 | cpp | digits.cpp | #include <bits/stdc++.h>
using namespace std;
int VS[5010];
int main(){
int n;
memset(VS,0,sizeof(VS));
for(int i=0; i<5; i++){
for(int j=0; j<10; j++){
for(int k=0; k<10; k++){
for(int l=0; l<10; l++){
if(i==0 && j==0 && k==0 && l!=0){
... |
54664fe3783a6503e54fe49f09242ae1c6542f46 | 4aa3ff56e35d2d4cdeba40f45795f62f276859b3 | /Engine/Effect/CEffectManager.h | 6ec3efbd18823b8b500c6badeb09afd1f003e6d2 | [
"Apache-2.0"
] | permissive | SixShoot/lastchaos-source-client | fde6a750afc4d7c5df3e9e0c542b056573c1b42d | 3d88594dba7347b1bb45378136605e31f73a8555 | refs/heads/master | 2023-06-28T17:20:35.951648 | 2021-07-31T21:51:49 | 2021-07-31T21:51:49 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,389 | h | CEffectManager.h | //안태훈 수정 시작 //(Add & Modify SSSE Effect)(0.1)
#ifndef __CEFFECTMANAGER_H__
#define __CEFFECTMANAGER_H__
#include <Engine/Base/Memory.h>
#pragma warning(disable : 4786)
#include <list>
#pragma warning(disable : 4786)
#include <map>
#pragma warning(disable : 4786)
#include <string>
#pragma warning(disable : 4786)
#inclu... |
6b3010d4ef79c518be830068f0371c6939a5a4c7 | adeb2c3b7506c5f96d3a65267e8d463bf5039a77 | /SpatialGDK/Source/SpatialGDK/Public/Utils/Interest/NetCullDistanceInterest.h | 3934ea979be10356efaeef0c9c54476ca2250ec6 | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | spatialos/UnrealGDK | e09debdf2588cefa6f9c6d4e8216cb629d3f294d | 884b06543c9216e9ac57b62d4d7bbc1eaf83ce27 | refs/heads/0.11.0 | 2023-09-02T13:54:10.491925 | 2020-09-03T11:19:49 | 2020-09-03T11:19:49 | 109,980,189 | 421 | 173 | MIT | 2022-01-24T18:53:24 | 2017-11-08T13:35:16 | C++ | UTF-8 | C++ | false | false | 3,227 | h | NetCullDistanceInterest.h | // Copyright (c) Improbable Worlds Ltd, All Rights Reserved
#pragma once
#include "Interop/SpatialClassInfoManager.h"
#include "Schema/Interest.h"
/**
* This class gives static functionality which returns spatial interest constraints mirroring the net cull distance
* functionality of Unreal given the spatial class... |
2e94b68fc8dbe4ffee3de5a627327cf7feab9c1f | 33b21c1367eef2f73c3a69c62186986e80602939 | /062_unique-paths.cpp | 1fe516272797e55a53868a7ca6ba2fa15e55a3ec | [] | no_license | xmyqsh/leetcode2016 | 820357560c632188b116fb254183c21f0a956d60 | abd8e36a79cdd7f7e0c5d6c362b0f106933c7c40 | refs/heads/master | 2021-07-06T07:48:36.474328 | 2020-09-18T03:07:40 | 2020-09-18T03:07:40 | 65,090,012 | 5 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 288 | cpp | 062_unique-paths.cpp | class Solution {
public:
int uniquePaths(int m, int n) {
if (m < n) swap(m, n);
vector<int> dp(n + 1, 0);
dp[1] = 1;
for (int i = 0; i < m; ++i)
for (int j = 0; j < n; ++j)
dp[j + 1] += dp[j];
return dp[n];
}
};
|
733cc83d1fb1b54b0c56c7495723733e2b660212 | 5d4f3ccfbea9e92f4cb0907f50e618d728059941 | /hackerearth_feb_easy.cpp | 6df72af273229ae4531938ec9e553e78f86d4afb | [
"MIT"
] | permissive | govind1996/COMPETITIVE-PROGRAMMING | b563a369bc76b498e6ab8d0d9a350d8d4216ea57 | 338d5a7026a444a509f65bccfce5eab9c91c5a03 | refs/heads/master | 2018-12-22T13:32:17.328655 | 2018-10-03T15:00:45 | 2018-10-03T15:00:45 | 108,137,687 | 2 | 2 | MIT | 2018-10-03T15:00:47 | 2017-10-24T14:21:36 | C++ | UTF-8 | C++ | false | false | 1,513 | cpp | hackerearth_feb_easy.cpp | #include<bits/stdc++.h>
using namespace std;
vector<vector <long int> > mark(100005,vector<long int>(105,0));
int main()
{
long int n,m,q;
cin>>n>>m>>q;
vector<int> color(100005);
vector<long int> cnt(100005,0);
for(long int i=0;i<n;i++)
cin>>color[i];
vector< pair<long int,long int> >ed... |
a3c6fb24f1ec8da0de6997d8cec2a0a821109317 | be4824fcef2ea089f6bc137d8951ce733baa1a2d | /cpp_module05/ex03/main.cpp | 66062e210f97d5b69b6c60d0674131109da5070f | [
"MIT"
] | permissive | lesorres/CPP_Modules | 7d88df461ae79e5da5f76f98c4e1b514ec1533de | 9e7bba58320c92b39c0c81b630e9899f5b4d838a | refs/heads/main | 2023-09-04T21:09:48.725361 | 2021-11-14T21:51:45 | 2021-11-14T21:51:45 | 393,173,909 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,660 | cpp | main.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: ... |
928b6a6b723ca6e210bc00f64326c492c18693b8 | 57edd51222731186482a8ac64966fcd142578a08 | /src/ECS/component.cpp | be10cce740d5b78bcfb618d140448229d673319a | [] | no_license | docwild/ECS | 1e49810cdc2660c76497420f62783b67516778aa | dc0488ff7fb1141d024a8ff75a935be3d53447ee | refs/heads/master | 2021-03-12T21:19:10.336374 | 2014-03-01T20:27:48 | 2014-03-01T20:27:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 285 | cpp | component.cpp | #include "component.h"
using namespace ECS;
Component::Component(ECS::ecsint eid, ecsint cid):m_componentId(cid)
{
}
std::string Component::name() const
{
return m_name;
}
void Component::setName(const std::string &name)
{
m_name = name;
}
//void Component::poly()
//{
//}
|
410b4aba0e20a7524e4fdd4425768df23b73cb38 | b45bebbcb2cf88f4c235ec23277064ab0f488674 | /SimLib/BV.h | aed66d5c9a29487fc3e8f61c9e94221febd4e115 | [] | no_license | hjwdzh/level-set | e3ada370d52e5a98ea28283cb4828d868f48cdc0 | 53b20614c994a675cd76613553e36d2ac9a6d406 | refs/heads/master | 2021-03-12T22:54:52.378712 | 2015-05-11T12:18:01 | 2015-05-11T12:18:01 | 24,545,795 | 7 | 1 | null | 2014-12-15T10:12:26 | 2014-09-28T00:07:56 | C++ | UTF-8 | C++ | false | false | 536 | h | BV.h | #ifndef BV_H_
#define BV_H_
#include <vector>
#include "VECTOR.h"
#include "vmath.h"
class Rigid_Geometry;
namespace SimLib {
typedef VECTOR<float,3> TV;
template<class T>
class BV {
public:
BV()
: rgd(0)
{}
virtual bool intersect(const BV*) = 0;
virtual void update(std::vector<TV>& points, Mat... |
053231cf24bfbd6eb24356fefba24bd01be22939 | a63d60c270433e84398f6be4642feb7643c0c8b0 | /POI/POI 2004/east-west.cpp | 3075f0b1f5830e53f6464ac676555b5e362f306e | [] | no_license | luciocf/Problems | 70a97784c17a106cb9e0f0ec28ac57cf58fea8c7 | 19f6000e9e6a5fe483ad4bb17e9ba50644ac954a | refs/heads/master | 2023-08-21T10:54:18.574403 | 2021-10-29T03:45:16 | 2021-10-29T03:45:16 | 169,012,579 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,474 | cpp | east-west.cpp | // POI 2004 - East-West
// Lúcio Cardoso
// NOTE: Due to the tight ML in this problem, my code only gets 84 points. However, the idea is correct.
// Solution idea is the same as: https://github.com/thecodingwizard/competitive-programming/blob/master/POI/POI04-East_West.cpp
// The only difference is how I find the e... |
a540433247767aebfe6a3092053c0df0cac57dbe | 460f981dfe1a05f14d2a4cdc6cc71e9ad798b785 | /3/amd64/envs/navigator/include/kml/dom/kml_funcs.h | d0fd0008f44eb880318fe29649db63bfbadb27f1 | [
"LicenseRef-scancode-proprietary-license",
"BSD-3-Clause",
"Intel",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"Zlib",
"BSD-2-Clause",
"GPL-2.0-only",
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"LicenseRef-scancode-mit-old-style",
"dtoa",
"LicenseRef-scancode-public-domain-disclai... | permissive | DFO-Ocean-Navigator/navigator-toolchain | d8c7351b477e66d674b50da54ec6ddc0f3a325ee | 930d26886fdf8591b51da9d53e2aca743bf128ba | refs/heads/master | 2022-11-05T18:57:30.938372 | 2021-04-22T02:02:45 | 2021-04-22T02:02:45 | 234,445,230 | 0 | 1 | BSD-3-Clause | 2022-10-25T06:46:23 | 2020-01-17T01:26:49 | C++ | UTF-8 | C++ | false | false | 3,770 | h | kml_funcs.h | // Copyright 2008, Google Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and ... |
3d7c372ce0680824a4c09b43448ad298795c9db6 | 31f6de70943b645a06184f41763cf3b2630d9c33 | /.svn/pristine/3d/3d7c372ce0680824a4c09b43448ad298795c9db6.svn-base | 8bcd4c25e3696d70c32e6f10cbf89154c51e1070 | [] | no_license | SamH7798/cs23001 | 7ec2d76902300e45c90f10d7263547a1a85faaba | 40a7c6149cbfbd8586063441ba4ad319146f7271 | refs/heads/main | 2023-04-27T01:40:33.213116 | 2021-05-22T01:03:52 | 2021-05-22T01:03:52 | 369,686,602 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,343 | 3d7c372ce0680824a4c09b43448ad298795c9db6.svn-base | // bigint Test Program
//
// Tests: times_10, uses ==
//
// NEED TO IMPLEMENT
//
#include <iostream>
#include <cassert>
#include "bigint.hpp"
//===========================================================================
int main () {
{
//------------------------------------------------------
// Se... | |
6605086c4b63c56d0ad9a7cf514225fbe36e74e9 | cc207c3d434b30c0cb63b3720839af590cc4cdf0 | /암네시아/2017-09-01_Amnesia/Dx3D/cUI.h | 68d88934774dbe3a57b3802c414fbcab54674e6a | [] | no_license | SDW101411/SGA | dba730af1c2472c013d25a4e32b743d54531172a | 0a46b3e9241752a828ce083fca8ef157e3cb2c02 | refs/heads/master | 2021-07-11T09:58:13.436851 | 2017-10-14T18:48:47 | 2017-10-14T18:48:47 | 102,058,641 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 346 | h | cUI.h | #pragma once
#include "cUIButton.h"
class cUI : public iButtonDelegate
{
private:
public:
cUI();
virtual ~cUI();
public:
virtual void Update();
virtual void Render();
virtual void MsgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
virtual void OnMouse(cUIButton* pSender);
virtual void OnClick... |
054ae9cedefb73bf647ec712ee0ac27e47c86ed7 | 125ae0adb562478b184bbb35d40f2c43b335415c | /UserData/UDBNetDB.h | cc2c9f7356c58502d5a3ed6e73bede151c9e19c2 | [] | no_license | dulton/53_hero | ff49ce6096c379931d7649b654c5fa76de4630de | 48057fe05e75f57b500a395e6ff8ff9c06da6895 | refs/heads/master | 2020-02-25T04:19:18.632727 | 2016-05-20T03:44:44 | 2016-05-20T03:44:44 | 62,197,327 | 3 | 2 | null | 2016-06-29T05:11:41 | 2016-06-29T05:11:38 | null | WINDOWS-1252 | C++ | false | false | 27,171 | h | UDBNetDB.h | /*****************************************************/
// Copyright © 2007-2012 Navico
// Confidential and proprietary. All rights reserved.
/*****************************************************/
#ifndef UDBNETDB_H
#define UDBNETDB_H
#include "UDBBasicDB.h"
#include "UDBServer.h"
#include "UDBClient.h"
#include... |
efaac0bc7cc96166f14f51b15c0769a49103e233 | 82f144c9d095217772f8bac0722c4012652fa14f | /inst/include/Rfast/matrix.hpp | af57700e020b3d189a4f247a369d1adca163c5c3 | [] | no_license | RfastOfficial/Rfast | 41cb1a922c3fc77b8045e5e00a031e012374c261 | 11cc9fc68b679eccfd6d0453c7f267e7f163cf41 | refs/heads/master | 2023-09-01T08:32:01.112957 | 2023-07-03T13:44:28 | 2023-07-03T13:44:28 | 213,182,742 | 107 | 15 | null | 2023-07-03T13:44:30 | 2019-10-06T14:25:53 | C++ | UTF-8 | C++ | false | false | 42,320 | hpp | matrix.hpp |
#ifndef MATRIX_HPP
#define MATRIX_HPP
#include <RcppArmadillo.h>
#include <algorithm>
#include <vector>
#include <thread>
#include <chrono>
#ifdef _OPENMP
#include <omp.h>
#endif
#include "templates.h"
#include "types.hpp"
#include "helpers.hpp"
#include "vector.hpp"
namespace Rfast
{
using namespace Rcpp;
using ... |
19c9fa4cf6389297e5836bda74b5f4c0a1248361 | 3038d3d95390ebc6fe2a0e9f7e129746e9af919e | /cpp/1/ProcessTools.cpp | 231339fe9a99886a0de10df5fd32445bf55ad932 | [] | no_license | code-dreamer/CodeSnippets | 9954a1f0b036792afa4e33acf5b8574bfb6e98ed | e5017f03a2df7b4504b1c2ebc447fc991578429a | refs/heads/main | 2023-01-21T23:51:34.854137 | 2020-12-04T15:06:43 | 2020-12-04T15:06:43 | 303,447,396 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,740 | cpp | ProcessTools.cpp | #include "stdafx.h"
#include "ProcessTools.h"
namespace ProcessTools {
;
boost::optional<PROCESSENTRY32> FindProcess(std::function<bool(const PROCESSENTRY32& processEntry)> pred)
{
PROCESSENTRY32 processEntry;
HANDLE hSnap = ::CreateToolhelp32Snapshot(TH32CS_SNAPALL, 0);
if (hSnap == INVALID_HANDLE_VAL... |
391bddc82fe1ca1891d0ad5c276fbe02cb1f8d21 | 859edb9239ea337ed4797837a0df87c74ce9c956 | /dronedoc/src/gazebo/request_publisher.cpp | b27384cc7f796a0950c4f7a1c7d9f0438e551313 | [
"CC-BY-4.0"
] | permissive | uenota/dronedoc | 91bcd1f1d24c47e2f87d278eecf104ccab4d7ca2 | c307d3e9669ebd64d2062fb0c089fae03391c5a3 | refs/heads/master | 2021-06-04T15:15:56.746464 | 2021-01-05T17:31:43 | 2021-01-05T17:31:43 | 151,891,731 | 16 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 3,693 | cpp | request_publisher.cpp | #include <iostream>
#include <math.h>
#include <deque>
#include <sdf/sdf.hh>
#include "gazebo/gazebo.hh"
#include "gazebo/common/common.hh"
#include "gazebo/math/Vector3.hh"
#include "gazebo/transport/transport.hh"
#include "gazebo/physics/physics.hh"
#include "gazebo/msgs/msgs.hh"
#include "map_request.pb.h"
#includ... |
b8a5b3141804b893346674f6bb26eeb335aaf579 | 8e251e452449d2aa219d72ed9871bb6030f6eea8 | /test_inlet/3500/U | a00514a7c7fad83c4b5c0263a1f8e7721788ee0c | [] | no_license | glaciercoder/sky_cooling | e1a1482ecd900fe7df9bc8f71fb59fbf9c39428f | 0af1390bb7aaca9e828d980ed4aa92299071b37d | refs/heads/master | 2023-03-29T20:02:11.619786 | 2021-04-09T01:15:33 | 2021-04-09T01:15:33 | 349,085,961 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,562,264 | U | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ M anipulation |
\*-------... | |
4b5bdb26ec46a581047418e007c955f117bc736f | 2f171779ce9f15c0425a145aac26b03546a7a4cc | /aprspass_small.cpp | 8a94536a480a3870053ac19a5df9fdba9594d6b8 | [] | no_license | jafo2128/aprspass | 0656601b35962852cfc87c6e7eaa6ba00c3fa0b1 | 0e0cc2e5a987b6daf25b6e42354ee6c42d1e7217 | refs/heads/master | 2023-03-17T11:59:54.105453 | 2017-05-06T23:52:24 | 2017-05-06T23:52:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 449 | cpp | aprspass_small.cpp | /*
Matthew Miller
May 6, 2017
Same as aprspass but to see how few lines I could make it for fun
*/
#include <iostream>
#include <string>
#include <stdint.h>
using namespace std;
uint16_t aprspass(string callsign)
{
uint16_t hash=0x73e2;
for(int x=0; x < callsign.length(); x++)
hash ^= toupper(callsign[x])<<... |
1aaa17cddac8e034e4ad09c10190bea74a4373fc | ef9056bc5ffb3e61fa78521ed87343a8df8840e5 | /interfejs.cpp | 95952fa6c0b87044b4eeedfcd4c6c702cc2d3dc0 | [] | no_license | Dszymczk/More-complicated-calculator | 07d4bfbb05dc4b2aea3bd8ed2cb2f642b3155180 | 712c09a117dadd774b2a10481d5e95422db81c9a | refs/heads/master | 2020-08-24T15:17:22.967823 | 2019-10-22T16:00:59 | 2019-10-22T16:00:59 | 216,853,477 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,569 | cpp | interfejs.cpp | #include "interfejs.h"
using namespace std;
bool menu(oper *dzialania, zmienna *&zmienne, wyrazenie *&historia){
cout <<"Wybierz opcje: " <<endl;
cout <<"1) Licz "<<endl;
cout <<"2) Zdefiniuj zmienna "<<endl;
cout <<"3) Wczytaj historie "<<endl;
cout <<"4) Zapisz historie do pliku "<<endl;
co... |
e6fe328b40b8cb1dcf462613d49894121bea6ae8 | 81d61a0e4081c85076663622b14d7d71d7665d87 | /src/network/ServerSocket.cpp | 3c10f0b8f49d9cbbbba0b05486457d3dc70199f9 | [
"Apache-2.0"
] | permissive | cakapilrana/pushfyi | 22dabcfbad579deef7a5847ee28b789971d93940 | 7ec8461b73e19b72c8eda38b337737c010b79885 | refs/heads/master | 2020-03-14T02:04:49.988696 | 2018-05-31T11:46:03 | 2018-05-31T11:46:03 | 131,391,720 | 8 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,895 | cpp | ServerSocket.cpp | /*
*********************************************************
This code is a proprietary of Kapil Rana
Following may not be used in part on in whole without the
prior permission of Kapil Rana
Author: Kapil Rana
Date: 20/06/2015
Purpose: PUBNET TCP Server Socket Wrapper
****************************************... |
94df53eeaf50f7f191f8f2eb32b46c0455298da0 | bdd51924b6c609ed995b85a919dc2536c75b9595 | /External/stocc/ex-evol1.cpp | f001c0d9d1d72ee29a1b81bf77d833959fc8ff9d | [
"MIT",
"GPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft"
] | permissive | LBNL-UCB-STI/routing-framework | e8b2ab5e3d157636d12bc5ad8b482bf7b6af09d2 | f600accb66652a7a9d3b7cc430a5f0df3ba7f2b1 | refs/heads/master | 2022-02-02T10:35:45.461877 | 2022-01-18T14:36:00 | 2022-01-18T14:36:00 | 248,285,766 | 0 | 1 | MIT | 2022-01-18T14:36:01 | 2020-03-18T16:33:35 | C++ | UTF-8 | C++ | false | false | 8,641 | cpp | ex-evol1.cpp | /*************************** ex-evol1.cpp **********************************
* Author: Agner Fog
* Date created: 2001-12-08
* Last modified: 2008-11-28
* Project: stocc.zip
* Source URL: www.agner.org/random
*
* Description:
* Example showing how to simulate biological evolution using the library *... |
a0ff473deea83d7d4d8f0ee37b190717e002cae4 | 2bfc58f1c0329516b2e76351b280a56e318bde20 | /source/main.cpp | 9643a4559ccafd8086c97ccbc6b12e681267fb14 | [
"MIT"
] | permissive | littlebugyang/xieguangkun | 285dfc72f83f229816c40073e5967010f4cd1a60 | 1f3a5fe9988e2863734389e6325bce37c3d1e0d4 | refs/heads/master | 2022-02-23T22:43:39.860237 | 2019-09-17T09:15:04 | 2019-09-17T09:15:04 | 209,001,326 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,023 | cpp | main.cpp | /*
* @Date: 2019-08-12 11:31:51
* @LastEditors: lby
*/
//Defines the entry point for the console application.
/*
注意! 本程序可能有内存泄漏!
注意! 本程序可能有内存泄漏!
注意! 本程序可能有内存泄漏!
注意! 本程序可能有内存泄漏!
注意! 本程序可能有内存泄漏!
注意! 本程序可能有内存泄漏!
注意! 本程序可能有内存泄漏!
注意! 本程序可能有内存泄漏!
注意! 本程序可能有内存泄漏!
注意! 本程序可能有内存泄漏!
注意! 本程序可能有内存泄漏!
注意! 本程序可能有内存泄漏!
注意! 本程序... |
0fd1c48f24acfe567d21e228bca88fe05c6b25ae | 5a0a0d781b009bc592e5fc3b1e9048fadfc09adc | /c++/034_Network_OSC/src/ofApp.h | bee852a12ca65887b42dfba2b55f072c03d733fe | [] | no_license | IAIA-CINE-392H/course-material | 2e1050c572e2ff10d8eb8c70d2778bf1ad3d7cca | 8f1c00b6bf5af7b19fa5fa823c3b6ca5aecc7d4a | refs/heads/master | 2020-05-21T21:01:10.171759 | 2017-03-22T16:24:42 | 2017-03-22T16:24:42 | 65,834,669 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 434 | h | ofApp.h | #pragma once
#include "ofMain.h"
#include "ofxGpuParticles.h"
#include "ofxOsc.h"
#define _PROGRAMMABLE_RENDERER
#define PORT 12345
class ofApp : public ofBaseApp
{
public:
void setup();
void update();
void draw();
private:
// set any update uniforms in this function
void onParticlesUpdate(ofSha... |
acdced162970d0a01873087486213abdccb1c4b2 | 14a2beab5622bbdfbab9450560d2ae37ed5eb064 | /cxx/funcWithListOfArgs.cpp | 31ce917a772b9876f4edd983ca261f117e14fbf2 | [] | no_license | goatold/pets | 9fe5d12128a5f62aefb5c407e250156363a181d8 | a307aba3f47a5bd4ed296345eb953bab5af0211e | refs/heads/master | 2021-08-07T08:32:10.385172 | 2021-02-05T15:47:56 | 2021-02-05T15:47:56 | 37,509,649 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,404 | cpp | funcWithListOfArgs.cpp | #include <string.h>
#include <stdio.h>
#include <stdarg.h>
#include <iostream>
using namespace std;
/********************
* Try function with variable list of arguments
*
*
********************/
#define M_vaf(args) vaf args
void vaf(char* arg0, ...) {
va_list args;
const char* p;
va_start(args, arg0);
... |
0a505d05659a3e222895b7a3311d580a426f805b | 373035950bdc8956cc0b74675aea2d1857263129 | /cpp/common/write-event-loop.cc | b642ee8514c732f1f39df2eb2e19e654d601afcd | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | limkokholefork/SPARTA | 5d122cd2e920775d61a5404688aabbafa164f22e | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | refs/heads/master | 2021-11-11T21:09:38.366985 | 2017-06-02T16:21:48 | 2017-06-02T16:21:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,980 | cc | write-event-loop.cc | //*****************************************************************
// Copyright 2015 MIT Lincoln Laboratory
// Project: SPAR
// Authors: OMD
// Description: Implementation of WriteEventLoop
//
// Modifications:
// Date Name Modification
// ---- ---- --... |
1824a09480552a03c039224079e21dfc9e1675ef | d578b2e0da9c94fd1ea49611b06b7e86c4d34b67 | /mqttClass.cpp | 6f886f6f3562beb40f292c8725b5198f35cfb916 | [
"MIT"
] | permissive | ipa-rwu/weather_led_v2 | 63dd5b2ecb11bf672d1bf6b07196951170240715 | 2813efb7b67e3f6902010d5b469ec073b5b29f9f | refs/heads/main | 2023-02-19T07:28:29.696678 | 2021-01-19T22:15:01 | 2021-01-19T22:15:01 | 331,079,713 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,527 | cpp | mqttClass.cpp | #include "mqttClass.hpp"
MQTTClass::MQTTClass(Client& wifiClient):PubSubClient(wifiClient)
{
topic_location = "ball/weather/location";
topic_ball_color = "ball/color";
topic_onoff = "ball/onoff";
}
MQTTClass::~MQTTClass()
{
}
void MQTTClass::setup(const char* serverIP, int port, const char* myId) {
this->_s... |
14d2b1422e9b786916da9a6f9c1fabb0ccb9ba2f | f6f0be9108ba516d0f49e009ffe525814c6f0c95 | /test/strings/hashing_test.cpp | b5c02fa5b02381126c7d3b64c119601f7d97e0cb | [] | no_license | PauloMiranda98/Competitive-Programming-Notebook | fe07a318c50c147cc3939dfde9034fe3de5056d9 | 54af0a8dcefdeb5505538a3716855db62bcdc716 | refs/heads/master | 2023-08-02T04:36:52.830218 | 2023-07-31T00:21:04 | 2023-07-31T00:21:04 | 242,273,238 | 20 | 4 | null | 2021-07-08T19:21:44 | 2020-02-22T03:30:13 | C++ | UTF-8 | C++ | false | false | 511 | cpp | hashing_test.cpp | #include "../../code/strings/hashing.h"
void test(){
srand(time(0));
int n = 500;
string s(n, 0), t(n, 0);
for (int i = 0; i < n; i++){
s[i] = 'a' + rand() % 26;
t[i] = 'a' + rand() % 26;
}
StringHashing sh_s(s), sh_t(t);
for(int i=0; i<n; i++){
for(int j=i; j<n; j++){
bool a = sh_s.g... |
3227853fcb8e9886701a1e7466c4d3c7de32c564 | 64bd56e46ae9b4288b8ed2550d2b88079e6d90f3 | /Classes/HeartPoints.h | ef4cfa51d7e2e57fd174b3610635e3d95cec87cb | [] | no_license | HolicXXX/FruitSquad | c24d06aba3d7ef260e3d12f044ed41751ecc5e36 | 918f68f908be01d7c86f76b8ef06357c0ca2c7e4 | refs/heads/master | 2020-06-30T15:33:25.339799 | 2018-01-31T03:51:04 | 2018-01-31T03:51:04 | 74,362,568 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 322 | h | HeartPoints.h | #ifndef _HEART_POINTS_H_
#define _HEART_POINTS_H_
#include "cocos2d.h"
class HeartPoints : public cocos2d::Node
{
public:
static HeartPoints* create();
virtual bool init();
virtual void update(float dt);
private:
cocos2d::Sprite* m_hpBG;
cocos2d::Vector<cocos2d::Sprite*> m_hearts;
void initHearts();
};
#end... |
3ef9d79b5860b8e041db1aa8bc600a545daf61cf | 994b6e89c696b55743eb695f99277da76d1d860d | /bench/src/kfs/src/cc/libkfsClient/KfsPendingOp.cc | 86950659ed44aa218b008b4b775922eac061be56 | [
"Apache-2.0"
] | permissive | galtekar/berkeley-replay | a6f060c57be5510c2bf9829f861ccd1346db4e1f | fc63c06f8d6c1b3807862d8e7420d6b03446b370 | refs/heads/master | 2021-01-01T20:00:54.752487 | 2010-11-08T17:18:35 | 2010-11-08T17:18:35 | 28,765,613 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,930 | cc | KfsPendingOp.cc | //---------------------------------------------------------- -*- Mode: C++ -*-
// $Id: KfsPendingOp.cc 353 2009-05-28 21:54:49Z sjakub $
//
// Created 2008/12/28
// Author: Mike Ovsiannikov
//
// Copyright 2008,2009 Quantcast Corp.
//
// This file is part of Kosmos File System (KFS).
//
// Licensed under the Apache Lic... |
18c5077f948ae107c8ba2f123879d47682997893 | 54b318af77e747d7d827be99b2a8c33010e79ab9 | /Classes/MissionsScene.cpp | 4dc840c8284dff23b8146faa0f0159fa7b975de6 | [] | no_license | jokerwoow/WalkInSpace | bc4c8150d52526afc455ba7e7f76b613856d4d93 | a43536dffb37979d7b84a566ac4bf69332bc91f4 | refs/heads/master | 2021-04-27T09:18:36.439814 | 2018-03-05T18:02:45 | 2018-03-05T18:02:45 | 117,126,693 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,434 | cpp | MissionsScene.cpp | #include "MissionsScene.h"
#include "Definitions.h"
#include "GameScene.h"
#include "GameMode.h"
#include "cocos2d.h"
USING_NS_CC;
Scene* MissionsScene::createScene()
{
// 'scene' is an autorelease object
auto scene = Scene::create();
// 'layer' is an autorelease object
auto layer = MissionsScene::create();
//... |
713cdefb0b181f1950657285657fcf979b5c55d0 | 66213c48da0b752dc6c350789935fe2b2b9ef5ca | /abc/104/c.cpp | ee7c6fe90902fb6a4eda615481a2d3b83bc2cdbb | [] | no_license | taketakeyyy/atcoder | 28c58ae52606ba85852687f9e726581ab2539b91 | a57067be27b27db3fee008cbcfe639f5309103cc | refs/heads/master | 2023-09-04T16:53:55.172945 | 2023-09-04T07:25:59 | 2023-09-04T07:25:59 | 123,848,306 | 0 | 0 | null | 2019-04-21T07:39:45 | 2018-03-05T01:37:20 | Python | UTF-8 | C++ | false | false | 3,313 | cpp | c.cpp | #define _USE_MATH_DEFINES // M_PI等のフラグ
#include <bits/stdc++.h>
#define MOD 1000000007
#define COUNTOF(array) (sizeof(array)/sizeof(array[0]))
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define intceil(a,b) ((a+(b-1))/b)
using namespace std;
using ll = long long;
using pii = pair<int,int>;
using pll = pai... |
84eaa67144a6dae278e9a85441eabdc22c3291d8 | f78d81114a2537b48d72ed4084164afdf529914e | /INTEGRAZ/SUBSYS/MOTORE/PREPDATI/ML_CLASS.cpp | 3cfeeb8b9fd0ec601aac1801df8b7502b56ad551 | [] | no_license | esantanche/buggycppcompiler | 0ef95054f91ff95cdf13b903f64d0a8d2c63c2db | 560f3bbf1d36b9480a2653a8dc26e7d5e819379c | refs/heads/master | 2021-08-23T08:57:34.255468 | 2017-12-04T11:48:21 | 2017-12-04T11:48:21 | 113,035,838 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,695 | cpp | ML_CLASS.cpp | //----------------------------------------------------------------------------
// ML_CLASS: Crea un file con l' elenco delle classifiche definite
//----------------------------------------------------------------------------
#define LIVELLO_DI_TRACE_DEL_PROGRAMMA 1
#include "motglue.hpp"
#include "FILE_RW.HPP"
... |
dd8b9d41c9f5d04b426c1f804e12973ff23f89b8 | 0adc5c97f4ca28c7382f7cc1e7c029a0865edaeb | /hackerrank_c++/Introduction_7.cpp | 45fec6d098536551b2c79fa88d042b3c63e7fd70 | [] | no_license | fregu856/cpp | 047e29895558251d0562c0be5f8abd57157b52d4 | 1dc6c406ad0815f42edf94f5d013ffc9696ae7d9 | refs/heads/master | 2021-09-08T03:36:11.016843 | 2018-03-06T22:00:23 | 2018-03-06T22:00:23 | 106,098,643 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 446 | cpp | Introduction_7.cpp | #include <stdio.h>
#include <cmath>
// In order to access the memory address of a variable, var, we need to prepend
// it with a & sign. E.g., &var returns the memory address of var.
void update(int *a, int *b)
{
int a_old = *a;
int b_old = *b;
*a = a_old + b_old;
*b = std::abs(a_old - b_old);
}
int main()
... |
d5c93797af9ec851fb2e915f10ae3da74e9a1611 | 8d38a84edc263dd708dd8ad3041b54d49b333cb5 | /prerequisite/Osscilating price of Chakri.cpp | 55d55aa112052c7fde6dc81964dc352620afe59f | [] | no_license | kishankunal/100DaysOfCode | 04571f94bdbf9e5386be80207ef1dc9c9d61bb43 | 814641dfbca7fb2a34458df0aaa0cf7304c5285a | refs/heads/master | 2020-08-04T01:05:24.543691 | 2019-10-15T09:09:12 | 2019-10-15T09:09:12 | 211,946,809 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 379 | cpp | Osscilating price of Chakri.cpp | #including<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
int arr[n];
for(int i = 0; i<n; i++){
cin >> arr[i];
}
int maxProfit = INT_MIN;
int min = 0;
for(int i = 1; i<n; i++){
if(arr[i] < arr[min]){
min = i;
}
int profit = arr[i] - arr[min];
if(maxProfit < profit){
maxProfit... |
35c0664da636243197b8c0c5f117b2d0fb921bf0 | 4d74aa247055ba254a7f3ab305634dffcc656185 | /tests/group_functions/group_broadcast.h | b8b120378e7a2ce099924fabf4f45dc24a8b30d3 | [
"Apache-2.0"
] | permissive | KhronosGroup/SYCL-CTS | e2ecc8ffd0f80e90f6f44a2f5e1ce167aff53ba9 | cc653d0d88bb40d209e83267b5b91b070d84300a | refs/heads/SYCL-2020 | 2023-08-31T23:55:36.962775 | 2023-08-30T14:12:30 | 2023-08-30T14:12:30 | 160,528,100 | 51 | 60 | Apache-2.0 | 2023-09-14T15:49:21 | 2018-12-05T14:11:21 | C++ | UTF-8 | C++ | false | false | 8,672 | h | group_broadcast.h | /*******************************************************************************
//
// SYCL 2020 Conformance Test Suite
//
// Copyright (c) 2023 The Khronos Group Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You ma... |
afbe9989edac07f358ca340261052c8fb153c5c6 | 11927e62e9788036bd7062790be5c28511198cd1 | /Models/sensorlistmodel.h | 4d9b8b6f07c7a6d962418f86050666e8c0fdf444 | [
"BSD-3-Clause"
] | permissive | Kormil/harbour-powietrze | fa2bfe6934048800463f90d9d3c6069b748f4ad6 | c0f44d6c251a5b6abc8528c38639960ca58f35ba | refs/heads/master | 2023-03-20T03:49:38.362380 | 2023-03-05T11:36:51 | 2023-03-05T11:36:51 | 189,732,574 | 3 | 5 | NOASSERTION | 2021-06-13T15:59:09 | 2019-06-01T12:54:10 | C++ | UTF-8 | C++ | false | false | 1,286 | h | sensorlistmodel.h | #ifndef SENSORLISTMODEL_H
#define SENSORLISTMODEL_H
#include <QAbstractItemModel>
#include "Types/sensorlist.h"
class ModelsManager;
class Station;
using StationPtr = std::shared_ptr<Station>;
class SensorListModel : public QAbstractListModel
{
Q_OBJECT
public:
enum UnitsType
{
MICROGRAM = 0,
... |
6d9417f82628fd44c1f38d0c766edfe326c7bf2a | 24906b0aebcab90a1b95efa92f0977009e6b29fa | /make_ntuples_run2/trigger_check.cxx | 63afef23dc5bb4bcdedd8b9ea875f7107da2ba43 | [] | no_license | htrauger/JetTrack2016 | 7b58b31e48394b933299b0f79143265da07879d8 | 7f363da63df29996a6b29dae085d265d554ef2c8 | refs/heads/master | 2020-05-21T13:34:25.383429 | 2017-10-25T19:12:08 | 2017-10-25T19:12:08 | 63,094,666 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,446 | cxx | trigger_check.cxx | #include <iostream>
#include "TFile.h"
#include "TTree.h"
#include "TH1F.h"
#include "TProfile.h"
#include "TProfile2D.h"
#include "TH2D.h"
#include "TF1.h"
#include "TH2F.h"
#include "TMath.h"
#include <TNtuple.h>
#include "TChain.h"
#include <TString.h>
#include <TCut.h>
#include <fstream>
#include "TMath.h"
#inclu... |
9e0f0e91a992b631896e9bca22ecbc50c28ca19f | b292168a299483841e5eab63b8c2a153dcf5c6de | /Classes/MarketLayer.h | c391442b7cc80a27682f45438f27ef8d05c05438 | [] | no_license | francis1122/RogueDeck | 81622d512ff6ebbbc1856f2133d80fed8a2403d4 | f7e1853cd01bfff0ff50cd1033486889cbe8db37 | refs/heads/master | 2020-06-03T17:04:03.540198 | 2014-04-16T00:31:40 | 2014-04-16T00:31:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 763 | h | MarketLayer.h | //
// MarketLayer.h
// RogueDeck
//
// Created by Hunter Francis on 11/26/13.
//
//
#ifndef __RogueDeck__MarketLayer__
#define __RogueDeck__MarketLayer__
#include "cocos2d.h"
USING_NS_CC;
class MarketLayer : public CCLayer
{
public:
// Here's a difference. Method 'init' in cocos2d-x returns bool, i... |
dda951fd481693eefe92738b9f6c0ced93f1fefe | 293902682d7ee13be81ada6c28ef6b840983ac33 | /SQLiteAccess/tests/QueriesInSingleTable/queriesInSingleTable.cpp | 35307a0c9d6c7e25c953c464fea7ff30295e6129 | [] | no_license | cms-externals/coral | d17cba45fff7f34d7a1ba13ab3bb371e0696c1af | a879b41c994fa956ff0ae78e3410bb409582ad20 | refs/heads/cms/CORAL_2_3_21py3 | 2022-02-26T18:51:25.258362 | 2022-02-23T13:19:11 | 2022-02-23T13:19:11 | 91,173,895 | 0 | 4 | null | 2022-02-14T13:20:11 | 2017-05-13T12:47:54 | C++ | UTF-8 | C++ | false | false | 8,408 | cpp | queriesInSingleTable.cpp | #include <iostream>
#include <stdexcept>
#include "CoralBase/../tests/Common/CoralCppUnitTest.h"
#include "CoralBase/Attribute.h"
#include "CoralBase/AttributeList.h"
#include "CoralBase/AttributeSpecification.h"
#include "CoralBase/Blob.h"
#include "CoralBase/Exception.h"
#include "CoralKernel/Context.h"
#include "Rel... |
bd4f4bf24f60fe31b1092b19b338c30d57701184 | 1d404ed947259b564fe5c1e1b328dcde84670f42 | /AssetLease/Menu/AdministrativeMenu.cpp | 8fccd21885b79ec92ac93e67ce9dfe1fa0aa91d7 | [] | no_license | dadu0699/AssetLease | 333274a4a4619794877974af96071da2271df851 | 3f02f4a9dddc2b3f5cf13569fb2945d925b5e825 | refs/heads/master | 2022-11-05T23:21:03.202530 | 2020-06-17T23:43:38 | 2020-06-17T23:43:38 | 269,488,721 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,145 | cpp | AdministrativeMenu.cpp | #include "AdministrativeMenu.h"
#include "../Structures/SparseMatrix/SparseMatrix.h"
#include "../Structures/CircularDoublyLinkedList/CircularDoubleList.h"
AdministrativeMenu::AdministrativeMenu()
{
}
AdministrativeMenu::~AdministrativeMenu()
{
}
void AdministrativeMenu::interfaceDesign()
{
SparseMatrix *sp;
Circu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.