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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
39ccb9a0d8afe2214c66e6c265c75ad72fe4f199 | 1a9cba53b236b74c3bef5a9f0f7f1b699e0dc77a | /plugins/GSdx/GSDevice7.h | 2afbce261feb286bf341feb68d8d3697e42b21c2 | [] | no_license | EmulatorArchive/pcsx2-rr | 75cd482c7f49bb805ffcfbd2a727dc8c8c0bec4c | d14877c363dcb36bca9fffc91987898626e28d05 | refs/heads/master | 2020-04-23T21:08:53.767347 | 2015-03-17T05:17:42 | 2015-03-17T05:17:42 | 32,372,289 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,975 | h | GSDevice7.h | /*
* Copyright (C) 2007-2009 Gabest
* http://www.gabest.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
* ... |
8f0cff646ee2726286196358207149fc4ac7143e | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_basic_block_block_17074.cpp | 19c811b38b82ed11febaa7c98eff66fad7f41e26 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 287 | cpp | Kitware_CMake_repos_basic_block_block_17074.cpp | {
ret = __archive_write_output(a, pax->sparse_map.s,
archive_strlen(&(pax->sparse_map)));
if (ret != ARCHIVE_OK)
return (ret);
ret = __archive_write_nulls(a, pax->sparse_map_padding);
if (ret != ARCHIVE_OK)
return (ret);
archive_string_empty(&(pax->sparse_map));
} |
475d0290bed11da654ca3b749734c09feeb27e44 | f22f1c9b9f0265295be7cb83433fcba66b620776 | /native/include/src/main/include/jcpp/native/api/io/NativeIOFactory.h | c3418211249e9ac845815c60115027debe811759 | [] | no_license | egelor/jcpp-1 | 63c72c3257b52b37a952344a62fa43882247ba6e | 9b5a180b00890d375d2e8a13b74ab5039ac4388c | refs/heads/master | 2021-05-09T03:46:22.585245 | 2015-08-07T16:04:20 | 2015-08-07T16:04:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,168 | h | NativeIOFactory.h | #ifndef JCPP_NATIVE_API_IO_NATIVEIOFACTORY
#define JCPP_NATIVE_API_IO_NATIVEIOFACTORY
#include "jcpp/native/api/io/NativeFileInputStream.h"
#include "jcpp/native/api/io/NativeFileOutputStream.h"
#include "jcpp/native/api/NativeString.h"
namespace jcpp {
namespace native {
namespace api {
class NativeFactory;
... |
8f9138bab6bc10315c28c0245072bee821f5ef9f | fe413f8747ddddc011f4dd6783cc084881da870a | /Code/application/Gui/.svn/text-base/OverviewWindow.cpp.svn-base | 293178406310a46b362cc7d2ea1764f4db0855af | [] | no_license | GRSEB9S/opticks-cmake | f070b7ee32e5fff03de673c178cd6894113bc50b | 497f89ccbcbf50c83304606eb586302eec3e6651 | refs/heads/master | 2021-05-27T08:16:26.027755 | 2011-08-13T06:03:04 | 2011-08-13T06:03:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,737 | OverviewWindow.cpp.svn-base | /*
* The information in this file is
* Copyright(c) 2007 Ball Aerospace & Technologies Corporation
* and is subject to the terms and conditions of the
* GNU Lesser General Public License Version 2.1
* The license text is available from
* http://www.gnu.org/licenses/lgpl.html
*/
#include <QtCore/QEvent>
#incl... | |
ffeb6a730846ae2c4da09f78cdabe917dc7dec61 | 70418d8faa76b41715c707c54a8b0cddfb393fb3 | /1089.cpp | 9bcf117c68e9acd16ca98b20b13f242a4582392b | [] | no_license | evandrix/UVa | ca79c25c8bf28e9e05cae8414f52236dc5ac1c68 | 17a902ece2457c8cb0ee70c320bf0583c0f9a4ce | refs/heads/master | 2021-06-05T01:44:17.908960 | 2017-10-22T18:59:42 | 2017-10-22T18:59:42 | 107,893,680 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,996 | cpp | 1089.cpp | #include <bits/stdc++.h>
using namespace std;
#define MP make_pair
#define PI pair
#define FI first
#define SE second
#define PB push_back
#define SZ size()
const double eps = 1e-10;
const double pi = acos(-1.);
const int mod = 1000000007;
const int maxn = 100100;
const long long INF = ((1LL) << 60);
vector<PI<stri... |
b4a54d3acde448a28bfbe83ef8381414bb3244aa | 89df1ea7703a7d64ed2549027353b9f98b800e88 | /engine_test/shader_tests/src/graphics/renderer/2D/renderer_2D.h | 1f91b7e42dc95ba3acca101fcaf0428797cc1b73 | [
"MIT"
] | permissive | llGuy/gamedev | 31a3e23f921fbe38af48177710eb7bae661f4cfd | 16aa203934fd767926c58558e021630288556399 | refs/heads/master | 2021-05-04T15:09:33.217825 | 2019-01-17T23:15:36 | 2019-01-17T23:15:36 | 120,221,445 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 866 | h | renderer_2D.h | #pragma once
#include <array>
#include <glm/glm.hpp>
#include "../../../api/api.h"
#include "../../mesh/mesh_handler.h"
struct vertex2D
{
glm::vec2 pos;
glm::vec2 tex_coord;
};
class renderer_2D
{
protected:
u32 mesh_id;
std::unique_ptr<render_func> draw;
std::vector<pre_render_ptr> pre_renders;
public:
virtu... |
172430e5cf6f719f51d241e22480a76cb75119b5 | fed9f14edb87cd975ac946e01e063df492a9929a | /src/arc/038/B.cpp | 79f651d7ed0306d45086280a26d13f429bc50f5d | [] | no_license | n-inja/kyoupro | ba91dd582488b2a8c7222242801cf3115ed7fd10 | 44c5a888984764b98e105780ca57d522a47d832d | refs/heads/master | 2021-01-01T06:52:59.655419 | 2020-10-17T13:28:35 | 2020-10-17T13:28:35 | 97,537,227 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,046 | cpp | B.cpp | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vll = vector<ll>;
using vvi = vector<vector<int>>;
using vvl = vector<vector<ll>>;
int hx[3] = {0, 1, 1};
int hy[3] = {1, 0, 1};
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
int h, w;
cin >> h >>... |
6c4e80e3124fd8086b6dba4f1e7b71b530741ccc | 5a922f5803f004f07746d6f7ddb6d56f2dc59b3e | /VoxViz/GigaVoxels/GigaVoxelsDatabasePager.h | ab9abfc032ab32570ff75def037da1b97ff3ece4 | [
"MIT"
] | permissive | ichild1994/VoxVizThesis | a7514b8b7d1d71edcc7d0bf011e8691fc9d0ff1e | 43aeb666cc9f5005d9ec5b81acd4cc38aae0e0fd | refs/heads/master | 2021-06-22T11:10:14.160772 | 2017-08-21T17:07:42 | 2017-08-21T17:07:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,647 | h | GigaVoxelsDatabasePager.h | #ifndef GIGA_VOXELS_PAGER_H
#define GIGA_VOXELS_PAGER_H
#include "GigaVoxels/GigaVoxelsSceneGraph.h"
#include "GigaVoxels/GigaVoxelsOctTree.h"
#include "GigaVoxels/GigaVoxelsDebugRenderer.h"
#include "VoxVizCore/Referenced.h"
#include "VoxVizCore/SmartPtr.h"
#include <set>
#include <list>
#include <QtCore/QThread>
... |
b1b1a385d5f5c2841d4a13c5d2d3f693c1123052 | 0bbce01e6175411a6ae100bb88bd57efec776d3f | /main.cpp | bd9fca0a0eeceb6f2deda79a009caa99f836193d | [] | no_license | zoubirabde9a/ZScripts | 5566e537b33ae72f7ff325ff73312d9399e1a8a6 | 0c1f650e099abab048ecd8b6ef7d8878998b1fec | refs/heads/main | 2023-06-25T08:50:23.930250 | 2021-07-25T12:44:17 | 2021-07-25T12:44:17 | 389,331,564 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,396 | cpp | main.cpp | #include "ZScriptFunctions.h"
#include <stdlib.h>
using namespace ZScript;
void executeScript(const std::string& text)
{
std::vector < StmtPtr > stmt;
parseBuffer(stmt, text);
ZScript::Interpreter interpreter;
interpreter.interpret(stmt);
}
int myFunction(int a, int b)
{
return a + b - 1;
}
void interpret(I... |
97d9b3d092b852cb7496d35dc92bf857b5851fa8 | 980d930f35a033bc4225aeae3ac4455395398523 | /task 2/main.cpp | cced81547a1a99cc3a0e4c1e3839b35a4bab3a5b | [] | no_license | nazzrrg/diasoft-test-task | a9bc402af874f8afacfe47420cc4e675abcfe894 | a8a46dd6fb0fa586fe212937b76095f61f2c22ea | refs/heads/main | 2023-08-23T19:47:45.387226 | 2021-09-18T20:11:25 | 2021-09-18T20:11:25 | 407,872,836 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 945 | cpp | main.cpp | #include <iostream>
#include <string>
#include <codecvt>
#include <locale.h>
using namespace std;
wstring utf8_to_wstring (const string& str)
{
wstring_convert<codecvt_utf8<wchar_t>> conv;
return conv.from_bytes(str);
}
string wstring_to_utf8 (const wstring& str)
{
wstring_convert<codecvt_utf8<wchar_t>> ... |
30142dd99048526b163848ced6714cdbecc8c6b7 | 2fcee87709417717620d2ca4131f96e29c0bc320 | /Codeforces/Algorithm-Lab/QuickHull.cpp | eaa22da0639966711fc9bc9df86e168d73e32a7d | [] | no_license | Jaminur-Rashid/Problem-Solving | 7b502b03c5eea180282adcaad1b74ab526c92f12 | c651c9e810dba6a8f4b1ece6a3c27554d4a49ac0 | refs/heads/master | 2023-07-27T15:22:14.744541 | 2021-09-09T12:13:13 | 2021-09-09T12:13:13 | 404,700,331 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,784 | cpp | QuickHull.cpp | #include<bits/stdc++.h>
using namespace std;
#define pa pair<int,int>
vector< pair<int ,int> >vec,st;
int n;
//set<pair<int,int> >st;
int findSide(int mn,int mx,int indx){
int dist=(((vec[indx].second-vec[mn].second)*(vec[mx].first-vec[mn].first))-((vec[indx].first-vec[mn].first)*(vec[mx].second-vec[mn].second)))... |
7d0356ba62e1963ac9fd8f6e3b3db9573535b48a | 20049d88e2e8f0e1904efc561103c1d84d21507a | /baboshina.elizaveta/A1/circle.cpp | eb549e33720561d4b2f9cc6b544631c2da0ee83d | [] | no_license | gogun/Labs-for-SPbSPU-C-course-during-2019 | 5442a69152add3e66f02a7541e8dc8dd817f38a1 | 16ade47b859517a48d0fdb2e9704464bce4cc355 | refs/heads/master | 2022-01-09T16:02:54.728830 | 2019-06-06T11:06:33 | 2019-06-06T11:06:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 737 | cpp | circle.cpp | #define _USE_MATH_DEFINES
#include "circle.hpp"
#include <iostream>
#include <cassert>
#include <cmath>
Circle::Circle(const point_t center, const double radius):
center_(center),
radius_(radius)
{
assert(radius > 0);
}
double Circle::getArea() const
{
return M_PI * radius_ * radius_;
}
rectangle_t Circle::... |
cb36235df8fb2ec6fd2cb9607a015824d89ef08d | 5fff98f4e23d83423b751fc677c318101ff3f3ee | /ps3b/body.hpp | e4a7d453ba39f9b92a3cd0afe127c9bea51923b6 | [] | no_license | MichellemBettecourt/SolarSystemSimulation | 7ebb6054328a20c697eb920ccf43c2143553bb9c | 040700045e5c30b134ae0020337c72b0f3dc9d2c | refs/heads/master | 2020-04-17T18:35:35.926939 | 2019-01-21T15:05:13 | 2019-01-21T15:05:13 | 166,832,778 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,362 | hpp | body.hpp | #ifndef BODY_H
#define BODY_H
#include <iostream>
#include <SFML/Graphics.hpp>
class Body : public sf::Drawable
{
public:
Body(double w_size, double s) {window_size = w_size; scale = s;};
Body(double window_size, double radius, double x_pos, double y_pos, double x_vel, double y_vel, double grams, std::string file... |
932fb9f73c840edf6e92c834dc4623349f228cc4 | ef1740ee3eba4b76d08ed7d875117c4906abac06 | /src/rnaalifold_aln_rgn.cpp | 2d41a4a5037af91d2b61cfa3c1a479ae7e6b0ef3 | [] | no_license | Rossifumi/lncRNA_2way | 30541ba273504dad37b6f709e37dc539e0b6429d | e80af54dbdaaa7285e8ec9535a2bcd90697953db | refs/heads/master | 2021-01-19T00:36:56.608989 | 2016-11-10T14:41:16 | 2016-11-10T14:41:16 | 73,081,268 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,754 | cpp | rnaalifold_aln_rgn.cpp | #include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <stdlib.h>
using namespace std;
vector<string> tokenize(string input_string, char delimiter)
{
vector<string> tokens;
string::size_type start = 0;
string::size_type end = 0;... |
65b298cb7156124201971ee602b32a17534d0c94 | 513381a55f06f1016798175ffde872368985c8dd | /Projects/pp1/src/token.h | 407879c1545ed5fc4453512c22aa03be4d3ed806 | [] | no_license | dikshab/CPSC-221 | 66096eb378718bd041cc8eaba6133bbca73cae4b | 23b6b1eca0ceff50d30cb3e2a19fcc755bed9bdc | refs/heads/master | 2021-01-17T19:26:43.955974 | 2014-11-23T22:22:20 | 2014-11-23T22:22:20 | 35,469,310 | 1 | 1 | null | 2015-05-12T05:46:10 | 2015-05-12T05:46:10 | null | UTF-8 | C++ | false | false | 5,689 | h | token.h | // token.h --- Simple class for the Token type used to represent
// tokens produced as a Tokenizer consumes an input stream,
// specifically for the Racka-Bracka-Stack project.
// token.h is Copyright (C) 2014 by the University of British
// Columbia, Some Rights Reserved.
//
// This work is licensed under the Creativ... |
98673e98c91462955c87f372cae8c36b2c7677f3 | b1d8bc138254498b0c688283f830600af9bc78fe | /main1.cpp | b6647681188ad5bd3525aa6141895c38a37d9033 | [] | no_license | Sawndip2014/SumProductGraphMod | dc7396292da62fb3e50617913cceb333405b87fa | c610d4124eeab127f89df2ff2b460a15ec36645a | refs/heads/master | 2021-06-16T02:54:38.868344 | 2017-05-07T15:02:36 | 2017-05-07T15:02:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,535 | cpp | main1.cpp | /*
* File: main1.cpp
* Author: mdesana
*
*/
#include "SPGM.h"
#include "tests.h"
#include "runs.h"
#include "LearnSPGM.h"
#include <time.h>
using namespace std;
int main(int argc, char** argv)
{
Params params;
params.LoadFromArgs(argc, argv);
// TestMixMaxTreesSPGM(params);
if (params.rep... |
8335bb868c0fae2e9ea405e5b5a02e42521e1138 | 88ac9162aa5a561daafc96bcfde66f50684de148 | /Work/microblog/common/wbParser/wbParseObj.h | 5d6ce773011d86d9485fbb6f6c756c7c732bdc5c | [] | no_license | jielmn/MyStudio | e6d535aa7d8b72476bd9b6084560476ac8671609 | f45a90dbd73dbbb65df442639ceceb6149117deb | refs/heads/master | 2020-03-19T01:22:19.934472 | 2018-06-04T01:57:05 | 2018-06-04T01:57:05 | 135,540,356 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 23,874 | h | wbParseObj.h | #ifndef __WB_PARSE_OBJ_H__
#define __WB_PARSE_OBJ_H__
#include "wbParseStruct.h"
#include "wbParser.h"
namespace wbParserNS
{
class CWBXmlParser
{
public:
/** 解析错误 */
static t_wbParse_Error *parse_error(/*[in]*/wbParserNS::REQOBJ *obj, unsigned long *pmemSize=NULL);
static void parse_error(... |
66f3569c5d158b2875843807d363e55e94aa968a | f39a7135ee17138f06e410e1116458ab11e7083c | /CS 240 Projects/Homework8/Homework8/StaticArrayList.cpp | ea732996164ab475fc49698d8e066a3ad75ed059 | [] | no_license | sfeye/CS | 6f69a76b95b3cec5773a1e804278eeb2bed24c25 | ec15141626ad51eb604381bf4aac13011b6f793c | refs/heads/master | 2021-07-11T05:41:27.556935 | 2020-05-02T16:31:23 | 2020-05-02T16:31:23 | 130,940,952 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,954 | cpp | StaticArrayList.cpp | //Samuel Feye
//03-20-2018
//Professor Klein CS240
//Homework 8
//StaticArrayList.cpp
// Copyright © 2018 Sam Feye. All rights reserved.
#include<iostream>
#include "StaticArrayList.hpp"
using namespace std;
StaticArrayList::StaticArrayList()
{
size = 0;
}
int StaticArrayList::getSize() const
{
return size;... |
c70031cd7c4bcbd23bedf514bd67d2871223ca95 | ac2735758ad6b71c2faf3fa33d7c1083a28fabb8 | /dataset/sorted_source_code/semantic/ImBarD/ImBarD_1_1/main.cpp | 8776ed83b02feabb8fa785656db04150c11fc05b | [] | no_license | Darthone/Code-And-Malware-Stylometry | 389bcd5644a2f20103f39a374f9a04678b4f63e5 | 42f2091f50f8782a3a0b20c0d757e9d81edff6d8 | refs/heads/master | 2020-06-01T06:34:53.177201 | 2017-06-19T01:03:35 | 2017-06-19T01:03:35 | 94,065,628 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,226 | cpp | main.cpp | #include \
<iostream>
#include \
<vector>
#include \
<algorithm>
#include \
<string>
#include \
<ctype.h>
#include \
<deque>
#include \
<queue>
#include \
<cstring>
#include \
<set>
#include \
<list>
#include \
<map>
#include \
<random>
#include \
<unordered_map>
#include \
<stdio.h>
using
... |
850465f0a1f187c0446e3cf313116d6dfb2e95c3 | 284689d6a57f136b3f0ad2b8febba66dec85843f | /VolticRoleplay.Lakeside_County/Dialogs/PoliceDB_mainScreen.hpp | fbe0ef319bb49411c51061df0e06b6983e5ec864 | [] | no_license | Bladadah/Roleplay | 2b80bb2e832d63a5f658a01474b3f736eeef8c71 | 81fad3ac28183a23ffca04c2f7a896ab084ccfe9 | refs/heads/master | 2020-03-12T06:23:32.041030 | 2018-04-23T19:05:20 | 2018-04-23T19:05:20 | 130,484,115 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,502 | hpp | PoliceDB_mainScreen.hpp | class HRP_PoliceDB_mainScreen
{
idd = 5013;
class controls
{
class RscPicture_1200: RscPicture
{
idc = 1200;
text = "\RedRoleplay_Client2\icons\TabletMain.paa";
x = 0.102969 * safezoneW + safezoneX;
y = 0.159 * safezoneH + safezoneY;
w = 0.8 * safezoneW;
h = 0.7 * safezoneH;
};
class Warr... |
e8c1d47da66939390bcc381b4837c5e08ead27d9 | 29217bba0162f7a1183f909b17d5612d3194d661 | /Laozi/SkinListBox.cpp | 95ec8848c0a50b204e016d02db83ee0b680bdaa1 | [] | no_license | etoolkit/Laozi | 7dda5f31e41349d1c90636f07e63c3fe08eb5b2f | 4c843cf2c9e5dfe80decea98b6645f70c4e57d95 | refs/heads/master | 2023-02-25T18:01:09.517910 | 2021-01-26T02:06:02 | 2021-01-26T02:06:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 128 | cpp | SkinListBox.cpp | #include "StdAfx.h"
#include "SkinListBox.h"
CSkinListBox::CSkinListBox(void)
{
}
CSkinListBox::~CSkinListBox(void)
{
}
|
e99e3db9ea795082559db309b384e480526511ce | 6a8e95b5f3c7f1afc3cc56a7f07050595f67d447 | /game_project/game_projectDlg.h | d8d1623f03eb6f2fd00a823456750a5a2f1187a1 | [] | no_license | ZzangWoo/GameTeamProject | e92a6d21f5f329cb7938b7f92a64f774243c5279 | bff35c2d7b3cc496e75ebdcfea55abd7b7d979ee | refs/heads/master | 2020-08-19T10:22:23.643545 | 2019-10-24T18:44:23 | 2019-10-24T18:44:23 | 215,910,310 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,114 | h | game_projectDlg.h |
// game_projectDlg.h : 헤더 파일
//
#pragma once
#include "ClientSocket.h"
#include "afxwin.h"
#include "CreateRoomDlg.h"
// Cgame_projectDlg 대화 상자
class Cgame_projectDlg : public CDialogEx
{
// 생성입니다.
public:
Cgame_projectDlg(CWnd* pParent = NULL); // 표준 생성자입니다.
// 대화 상자 데이터입니다.
#ifdef AFX_DESIGN_TIME
enum { IDD = I... |
e9afe9127835906a00684c7f90f3e845cf1648e6 | 93376006df2e645ae7406ff739aa43643df9b3d5 | /CODE/OLD_CRAP/soundengine/Spatializer.hpp | 5553ad72c9a3d59e5a588aeca49466b4b33f8f14 | [] | no_license | omer4d/OldCodeBackup | fd5f84e660cc91ab32cb08032848f779ced66053 | d836c14006fa72f6e660bcf39d2315e69dc292f8 | refs/heads/master | 2021-01-10T05:54:20.340232 | 2015-12-13T14:44:10 | 2015-12-13T14:44:10 | 47,922,932 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 833 | hpp | Spatializer.hpp | #ifndef _Spatializer_hpp_
#define _Spatializer_hpp_
#include <fftw3.h>
#include "HRTFDB.hpp"
#include "CircularArray.hpp"
#include "Complex.hpp"
#include "Types.hpp"
namespace Audio {
class Spatializer {
int mBuffLen;
HRTFDB& mHrtfdb;
CircularArray mLeftTail, mRightTail;
double* mLeftSigTime;
d... |
ecd0010ce4194f511288c8498f57e63bda1dd19a | 7d68c1b1e853f36a0dc1b89cefa52211211e4358 | /examples/middleware_async_qt/window.cpp | db1635e2891c5d3ec67081ea9f2ae57b11ea91c3 | [
"MIT"
] | permissive | deiflou/uroboros | 78efba556b65bb01d72ac18d4e95643b7779fbb5 | defd4b02e7498abdd6eb2dd867a1a8e5ceda2820 | refs/heads/master | 2020-04-25T12:57:26.555284 | 2020-02-01T19:00:59 | 2020-02-01T19:00:59 | 172,793,797 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,989 | cpp | window.cpp | //
// MIT License
//
// Copyright (c) 2019 Deif Lou
//
// 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, copy,... |
acdd6d32e54f89ead071a8fa754b09b3650b38a8 | ca486c4afd78dc3d2c1bc1b919653b77a032c951 | /Selfhydro-Sensors/Selfhydro-Sensors/src/analogDigitalConverter.h | c225937a3d37945902514d8067a2be2d7d049c94 | [
"Apache-2.0"
] | permissive | selfhydro/selfhydro | c4841a3ee85852712edaee0042fce5a9e8f534a8 | a4c0897877fdc10f9b612af1bc4753857d877bfa | refs/heads/master | 2022-07-02T22:25:44.737776 | 2020-05-12T15:46:47 | 2020-05-12T15:46:47 | 120,166,236 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 514 | h | analogDigitalConverter.h | #ifndef ANALOG_DIGITAL_CONVERTER_H
#define ANALOG_DIGITAL_CONVERTER_H
#include <Arduino.h>
#include <Adafruit_MCP3008.h>
class AnalogDigitalConverter {
#define CS_PIN D8
#define CLOCK_PIN D5
#define MOSI_PIN D7
#define MISO_PIN D6
public:
AnalogDigitalConverter() {
adc.begin(... |
f8978339ae938ae5aacc8c24b5aedf2912efe1e8 | c36c9604d01d234c812dc29eaf03d65debb2add9 | /Estantes.cpp | aeca77bc5bba12d0157406b9ec91f3a1421165a1 | [] | no_license | Skar241/RepositorioPruebas | 27d324b36f2a00c8953c82da7137adb780c7afd1 | 68a61bce1c9bb2003ae72f43edcce31dd066e174 | refs/heads/master | 2020-05-17T17:25:18.593241 | 2015-06-07T01:37:00 | 2015-06-07T01:37:00 | 33,100,443 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,528 | cpp | Estantes.cpp | #include "Elementos.h"
//falta agregar sombra en orden correcto
void Estantes::Init(){
Exterior.LoadTGA("construccion/estantes/estExt.tga");
Exterior.BuildGLTexture();
Exterior.ReleaseImage();
Interior.LoadTGA("construccion/estantes/sombraEst.tga");
Interior.BuildGLTexture();
Interior.ReleaseImage();
PuertaI.L... |
c08ef2b0411947a52a279b154055f2800e056b41 | 8924ba7719164c962b49c36c05d81d393915d456 | /prototypev1/Tests/TestPolyconeContains.cpp | 024114b32e881cdc0d1b64a59daa2690f540f7a4 | [] | no_license | carlosal1015/VecGeom | 23525ff91567d58cfde1aa7c66f9cc508a3b5bbf | 12512cd7f67b89f7619a64474080ad24077aba10 | refs/heads/master | 2020-09-13T17:16:12.770167 | 2015-06-02T07:26:54 | 2015-06-02T07:57:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,442 | cpp | TestPolyconeContains.cpp | /*
* TestPolyconeContains.cpp
*
* Created on: Nov 18, 2013
* Author: swenzel
*/
// testing matrix transformations on vectors
#include "../TransformationMatrix.h"
#include "TGeoMatrix.h"
#include "TGeoManager.h"
#include "TGeoVolume.h"
#include "TGeoShape.h"
#include "../Utils.h"
#include <iostream>
#include... |
062f875960748f4a3784181d6afbae16f281d8ba | 0af9965de7527f4ca341833a5831dacd3fb8373f | /Baekjoon/2738.cpp | a1d0ec2d121352e65158d365329d23e5c89ff078 | [] | no_license | pcw109550/problem-solving | e69c6b1896cedf40ec50d24c061541035ba30dfc | 333d850a5261b49f32350b6a723c731156b24b8a | refs/heads/master | 2022-09-18T08:25:16.940647 | 2022-09-12T10:29:55 | 2022-09-12T10:29:55 | 237,185,788 | 11 | 1 | null | 2022-09-12T10:18:49 | 2020-01-30T10:05:42 | C++ | UTF-8 | C++ | false | false | 500 | cpp | 2738.cpp | #include <bits/stdc++.h>
using namespace std;
int main(void) {
ios::sync_with_stdio(false); cin.tie(nullptr);
int N, M, temp; cin >> N >> M; int input[N][M] = {};
for (int i = 0; i < N; i++) {
for (int j = 0; j < M; j++) {
cin >> input[i][j];
}
}
for (int i = 0; i < N; i... |
63f2181a1334736ddbe7252512a3cfbb70ac85a2 | 161abc244263a051359e3dfbbb7ce5f2495c11e9 | /SFML Graphing Calculator/!includes/Shuntting Yard/ShunttingYard.cpp | 63fb55abec9e48ceccced2083af598d7f469bd64 | [] | no_license | ggharibian/Graphing-Calculator-C | 946e30c518ecd1055d17321f112c9933ab58834b | 31287e41098ebd51576c4c2213ad7739d917611d | refs/heads/main | 2023-08-17T17:50:41.816360 | 2021-10-12T10:30:43 | 2021-10-12T10:30:43 | 416,179,790 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,110 | cpp | ShunttingYard.cpp | #include "ShunttingYard.h"
ShunttingYard::ShunttingYard(Queue<Token*> q)
{
Stack<Token*> buffer;
while (!q.Empty()) {
if (q.Front()->typeOf() == VARIABLE || q.Front()->typeOf() == OPERAND)
_postfix.Push(q.Pop());
else if (buffer.Empty())
buffer.Push(q.Pop());
else if (q.Front()->precedence() == Six... |
ffddac74dd95de353b163be2a6bab1c478981dcd | 5cf7765e12dd5f7303c4f2c17c672e8276a056d9 | /BehaviorTrees/Game/Source/Logic/Components/AIComponent/Behaviors/ChaseBehavior.h | d480f60263acea1f7a887a7e0e9eeccf7ff2d092 | [] | no_license | mylescardiff/BehaviorTrees | 000b059b4c3f377ad3033af9905b6801d634b8ed | 2a40b6fbd6ffe553d856f3415ff7d4914e2b7cc5 | refs/heads/master | 2023-01-14T14:21:05.256595 | 2020-11-23T22:53:11 | 2020-11-23T22:53:11 | 315,449,165 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 878 | h | ChaseBehavior.h | #pragma once
/** \file ChaseBehavior.h */
// Created by Myles Cardiff
#include <Logic/Components/AIComponent/Behaviors/PathedBehavior.h>
#include <Logic/Actor.h>
/// <summary>
/// Enables this actor to chase another actor
/// </summary>
class ChaseBehavior
: public PathedBehavior
{
public:
/// <summary>
/// Exp... |
403a032b26862649b46a2e75fc5f00c9cec19285 | 83b8a9e0ba13a792f44fca455ba01043b9a81c78 | /BOJ_SW_Practice_BruteForce/BOJ_SW_Practice_BruteForce/BOJ_1248.cpp | a40f4541c7fddaa561c1d10ad5826d24a9f8c5fc | [] | no_license | BoGyuPark/VS_BOJ | 0799a0c62fd72a6fc1e6f7e34fc539a742c0782b | 965973600dedbd5f3032c3adb4b117cc43c62a8f | refs/heads/master | 2020-04-14T12:45:53.930735 | 2019-12-04T03:06:44 | 2019-12-04T03:06:44 | 163,849,994 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,005 | cpp | BOJ_1248.cpp | #include<iostream>
#include<string>
using namespace std;
int n, s[11][11], ans[100];
bool check(int index) {
int sum = 0;
for (int i = index; i >= 0; i--) {
sum += ans[i];
if (s[i][index] == 0) {
if (sum != 0)return false;
}
else if (s[i][index] < 0) {
if (sum >= 0) return false;
}
else if (s[i][ind... |
cb97ef0cea2dca81486be12a162261b644c06081 | e926bede54cbddf08870036ae478124e0a6cec77 | /src/tests/unit_tests/particle_system_solvers_tests.cpp | 06a05196428d97e0bdaa6b4991a65c8c583020e9 | [
"MIT"
] | permissive | doyubkim/fluid-engine-dev | 2d1228c78690191fba8ff2c107af1dd06212ca44 | 94c300ff5ad8a2f588e5e27e8e9746a424b29863 | refs/heads/main | 2023-08-14T08:04:43.513360 | 2022-07-09T06:24:41 | 2022-07-09T06:24:41 | 58,299,041 | 1,725 | 275 | MIT | 2022-07-09T06:24:41 | 2016-05-08T06:05:38 | C++ | UTF-8 | C++ | false | false | 3,642 | cpp | particle_system_solvers_tests.cpp | // Copyright (c) 2018 Doyub Kim
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#include <jet/particle_system_solver2.h>
#include <jet/particle_system_solver3.h>
#include <gtest/gtest.... |
713639ce74a3cee54c508b0d27fa45de1efc00f0 | 1777b7e6455bf4fae8240a28fcc44340256ca12b | /source/bitmapfilter/paint_saver_test.cpp | 83b8ff7a06b7892106ab14f9631a646512f3b1c3 | [] | no_license | vidarn/color4d | 3444f448cb73f6f2149a8c175f9f7e688877c03d | 8f5a40715d4a6f3a74fe75333ae32c58904ce547 | refs/heads/master | 2021-01-10T02:14:03.309767 | 2016-01-11T20:44:03 | 2016-01-11T20:44:03 | 49,448,413 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,966 | cpp | paint_saver_test.cpp | // this example source code saves out the selected BP texture
// in all combinations (bitdepth, rgb, grey) of all registered
// bitmap filters
#include "c4d_commanddata.h"
#include "c4d_resource.h"
#include "c4d_general.h"
#include "c4d_painter.h"
#include "c4d_filterdata.h"
#include "lib_description.h"
#include "c4... |
dbe67df50c54ff8bf54b1c4c0e7fa1abef7762fc | de842f70795c27bebbdb6447a9c92d51ad26a5f4 | /sunbeamish.ino | 42356f039b238e3d7c9c39432b8d04697bb23b55 | [] | no_license | karlsoderby/arduinobasics | ed938fde47f491016fd76fc4c04a31aab7fb55c5 | 7b6c052c0f1aa1ca01f3a68a8bed16fcbb35e696 | refs/heads/master | 2020-03-23T12:16:45.153687 | 2018-07-21T08:17:32 | 2018-07-21T08:17:32 | 141,548,874 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 284 | ino | sunbeamish.ino | int photoPin = A0;
int ledPin = 2;
int photoValue = 0;
void setup() {
pinMode(ledPin, OUTPUT);
}
void loop() {
photoValue = analogRead(photoPin);
Serial.println(photoValue);
if(photoValue > 700) {
digitalWrite(ledPin, HIGH);
delay(3000);
digitalWrite(ledPin, LOW);
}
}
|
0049c7441d041a7fa054e915cbeabeb48769c61d | 9272c1cb5e356063896b0f91c483ba15c36d33c3 | /tools/lint/Ytest.cpp | ac98204143f6a08aba630087ae4e5d02f6904fff | [
"BSD-3-Clause"
] | permissive | ken1336/Yangmin | 4ee8468f2d0f6c89ce17170cc7a08564a16c0a8e | d2adbb7547a0b12662e1cdfc78cbdcbfb574277b | refs/heads/master | 2020-09-08T15:28:46.334254 | 2019-12-17T09:14:18 | 2019-12-17T09:14:18 | 221,171,731 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,678 | cpp | Ytest.cpp | #include<iostream>
#include<cassert>
#include "libyang.h"
#include "commands.h"
#include "context.h"
#include "./min_extension/internal_module.hpp"
#include"./min_extension/Context.hpp"
volatile uint8_t verbose = 0;
int main(){
//commands[i].func((const char *)"cmd_add");
//std::cout<<"i... |
3267b86f144b1aa2e10afd9170b40410deef7571 | 6d088ec295b33db11e378212d42d40d5a190c54c | /contrib/brl/bseg/bvxm/grid/Templates/bvxm_voxel_slab+bsta_vsum_num_obs+bsta_von_mises+float.3---.cxx | 0bb64f88e4048e0533b9c40aba40676362108678 | [] | no_license | vxl/vxl | 29dffd5011f21a67e14c1bcbd5388fdbbc101b29 | 594ebed3d5fb6d0930d5758630113e044fee00bc | refs/heads/master | 2023-08-31T03:56:24.286486 | 2023-08-29T17:53:12 | 2023-08-29T17:53:12 | 9,819,799 | 224 | 126 | null | 2023-09-14T15:52:32 | 2013-05-02T18:32:27 | C++ | UTF-8 | C++ | false | false | 300 | cxx | bvxm_voxel_slab+bsta_vsum_num_obs+bsta_von_mises+float.3---.cxx | #include <bvxm/grid/bvxm_voxel_slab.hxx>
#include <bsta/bsta_attributes.h>
#include <bsta/bsta_von_mises.h>
#include <bsta/io/bsta_io_von_mises.h>
#include <bsta/io/bsta_io_attributes.h>
typedef bsta_vsum_num_obs<bsta_von_mises<float, 3> > dir_dist_type;
BVXM_VOXEL_SLAB_INSTANTIATE(dir_dist_type);
|
2fa274117690e30486b57a75eb0b60f00eaf387e | 9f04be5d5fbf90fb3178dbd42eb832be457483e2 | /Sort_Sandbox.cpp | 4723510151ad1c61638ad22e6f91ddb734c74169 | [] | no_license | erasabi/sorting_algorithm_tester | 05120a7b42b3070f6c1a0b818e6f711798238ee1 | fcfd6c20a542f3b9f1edc6e610d587c3fe1f9029 | refs/heads/master | 2021-01-13T13:07:44.255273 | 2017-01-14T05:06:41 | 2017-01-14T05:06:41 | 78,834,013 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 916 | cpp | Sort_Sandbox.cpp | #include "Sort_Sandbox.h"
#include <iostream>
#include <stdio.h>
#include <stdlib.h> //rand()
#include <math.h> //pow()
#include <sstream> //stringstream
using namespace std;
int main(int argc, char* argv[]){
int power, //power factor for array size
n; //sample size of the array
char data; ... |
e3f168ceae8ef4c3b525ad3db74f4b7053ba3b6c | f7dff25777c257eaf60d29fdcbc7da10146a0416 | /1181.cpp | d211b7fb8fa26dc7ab275f9dc2f708f348f7ef10 | [] | no_license | pese2912/Algorithm | 752cf989c62e4654642158a59d91b106b3f2a584 | b23935f6a945e0e67b9f2fdea88c86cad35bb9f9 | refs/heads/master | 2021-01-10T05:36:12.322680 | 2016-04-12T12:22:36 | 2016-04-12T12:22:36 | 53,909,798 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 662 | cpp | 1181.cpp | #include <iostream>
#include <cstdio>
#include <string>
#include <algorithm>
#include <vector>
using namespace std;
bool comp(const string &a, const string &b)
{
if (a.size() < b.size())
{
return true;
}
else if (a.size() == b.size()){
if (a < b){
return true;
}
else
return false;
}
else
{
retu... |
02b17e26d52e4a92d923fe93bf57945965534ac1 | bc629494a8be039a8184f7959c531bfa1fb22abc | /pot.cpp | f2961c6a85c3f4dc88e795f9547ec1306c45a703 | [] | no_license | emilppp/open.kattis.com | f2f47c4df10a9faf07f8a30b670172a3d3f4f2fe | d779e3c02f7641700e15aa37a58230421498ffdf | refs/heads/master | 2021-09-07T14:56:38.000290 | 2018-02-24T11:51:31 | 2018-02-24T11:51:31 | 107,008,096 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 241 | cpp | pot.cpp | #include <iostream>
#include <cmath>
using namespace std;
int main() {
int n;
long sum = 0;
cin >> n;
while(n--) {
int p;
cin >> p;
sum += pow(p/10, p%10);
}
cout << sum;
return 0;
}
|
a1c108ef00cdadf54d4554fcc38e99f95a3e25ea | f61bb2133a9f149febae0dac34e00f7e627822a9 | /Graficos II/DLL/EventManager.cpp | 79408813fdd0a94223f0b4378dbd69edf416a3a5 | [] | no_license | Lithiot/Graficos-II | 35673d328693294462608414b01d1260c5dd90cc | 3330eefe5d9e362f4ec27dea5b8a24d5cc503c89 | refs/heads/master | 2021-06-29T18:15:48.682390 | 2019-08-06T03:54:22 | 2019-08-06T03:54:22 | 144,927,528 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,608 | cpp | EventManager.cpp | #include "EventManager.h"
EventManager* EventManager::instance = NULL;
EventManager::EventManager()
{
}
EventManager::~EventManager()
{
}
void EventManager::AddNewEvent(int key, int value, int* valueToChange)
{
Event aux(key, value, valueToChange);
createdEvents.push_back(aux);
}
void EventMana... |
36b221e2a673ae63df3b6a5aae1a881aa4b0914c | aaeda5a34c75c9d9414aebe2d28360a9bbf803f5 | /core/mepcomposite.h | 5e22dc59f0321e295707c0cc0cffab63edfb7053 | [] | no_license | dpietruchowski/MEPVision | 598e4cb77acd310a8a8ea0feadc8b8b2d5ec58ac | 10da2952735ce898ce3afac226b6938b6ed467e3 | refs/heads/master | 2020-03-29T21:57:45.669698 | 2016-08-12T12:08:14 | 2016-08-12T12:08:14 | 62,752,434 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,095 | h | mepcomposite.h | #ifndef MEPCOMPOSITE_H
#define MEPCOMPOSITE_H
#include "mepobject.h"
#include "mepgene.h"
#include <vector>
#include <string>
//TODO addchild - shouldnt be here
class MEPSHARED_EXPORT MEPComposite : public MEPObject
{
public:
typedef std::vector<MEPObjectPtr> Objects;
MEPComposite(const MEPId& id, int size)... |
2d97248012066705b8c1820e6a16c561a8248fc7 | e3ec7d68f544e82c6016409ce2a59a5680f19b1e | /C++/kniha/kap6/sumafile.cpp | a0695fff1e00e47a37ffe126c0bffb2b32830447 | [] | no_license | branislavblazek/notes | 429a9c3ceb142de9cfb460a0a8c1389f2313454e | e88072ff01ecba6e96d70decb5b5597755b8e925 | refs/heads/master | 2021-10-23T13:33:59.211385 | 2021-10-13T19:41:03 | 2021-10-13T19:41:03 | 239,040,112 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,064 | cpp | sumafile.cpp | #include <iostream>
#include <fstream>
#include <cstdlib>
using namespace std;
const int size = 60;
int main()
{
char filename[size];
ifstream inFile;
cout << "Zadajte meno datoveho suboru: ";
cin.getline(filename, size);
inFile.open(filename);
if (!inFile.is_open())
{
cout << "Nepodarilo sa... |
2a73f24d91f9fdf6b39e657d0fe8ef1017c38794 | 047b09758514aacb5d647380faa34b596a358ddb | /Delim.cpp | 86112fdef2c8aba54f742cbeb54aa3468c08b778 | [] | no_license | devonrball/Assignment3 | d16f6fbf1d5aa8c94433a18a14d32e7276795d8b | 741c6ef2dd5ab5c267d59568a2d2b046f381c322 | refs/heads/master | 2020-04-01T00:30:39.487007 | 2018-10-12T06:59:28 | 2018-10-12T06:59:28 | 152,700,026 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,117 | cpp | Delim.cpp | #include "Delim.h"
using namespace std;
Delim::Delim() //No use for default constructor in this implementation
{
data = '\0';
rightDelim = false;
leftDelim = false;
newLine = false;
}
Delim::Delim(char someChar)
{
data = someChar;
checkIfDelim();
if(data==')'){
closer = '(';
}... |
d876c944a09ab555206ce972ec652f47e91f65dd | 5818c5cd536d5b04dd8a35f7362edf57e2832262 | /recursion/10_horner's_rule.cpp | 6ded848957393d0bacf66c6b8593c46d0f0d7665 | [] | no_license | sanju-k-maurya/DSA_using_cpp | 7ec0182e953677cdfcecc33fd22e202c600fc1dc | 92379389ab67cd6662295a1e28acece7f8f6dcba | refs/heads/master | 2023-03-01T05:07:59.016366 | 2021-02-04T17:55:15 | 2021-02-04T17:55:15 | 236,751,014 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 608 | cpp | 10_horner's_rule.cpp | #include<iostream>
using namespace std;
double e(int x, int n) //Recursive approach
{
static double s;
if(n==0)
return s;
s=1+ x*s/n;
return e(x, n-1);
}
double e_iterative(int x, int n) //Iterative approach
{
double s=1;
int i;
double num=1;
doubl... |
73ad6508ee2a90ee2559186366e6417adfa4bac7 | 7dea2ddea8dfc593d1254d20be2a31a6e3520105 | /exam/For all/Untitled Folder/exampleforall.cpp | 98d2994dc96a47deb6976f7ef808ea01bb1f7119 | [] | no_license | ken-hsu/pathplanning | 13c1903d53c0ffc7c9b26a7a5b8d2772a78a2981 | 9843232d8a60d77c7683111143e4ae08208d6440 | refs/heads/master | 2021-07-26T12:45:13.676817 | 2020-04-24T02:43:27 | 2020-04-24T02:43:27 | 158,222,926 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,384 | cpp | exampleforall.cpp | /**
* increase_waypoint2
*/
#include "rt_nonfinite.h"
#include "increase_waypoint2.h"
#include "increase_waypoint2_terminate.h"
#include "increase_waypoint2_emxAPI.h"
#include "increase_waypoint2_initialize.h"
/**
* calcualte_distance2
*/
#include "calculate_distance2.h"
#include "calculate_distance2_terminate.h"
... |
bb0908770582f475c75a97efc9597f20dcc34398 | 020d30182de8039c46b3dd50fedeb8e775e847a3 | /src/dataset.h | db2f2361977d3ac2d750f414aea0a4f9a2acf7c0 | [] | no_license | VictorEijkhout/EduDL-public | a2638816c1fbd65da1b243537bc7c625b9f1b294 | 2c90a166133d4703c04b57575930fafd8d7a0c34 | refs/heads/main | 2023-04-18T22:10:33.430079 | 2021-05-08T21:00:01 | 2021-05-08T21:00:01 | 356,033,063 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,056 | h | dataset.h | /****************************************************************
****************************************************************
****
**** This text file is part of the source of
**** `Introduction to High-Performance Scientific Computing'
**** by Victor Eijkhout, copyright 2012-2021
****
**** Deep Lea... |
66ea2667a49cf9e5c679608a045962a069c5c89d | 184bcf7925e6718b3021946581576f8cae80526b | /Useless/vijos/Train_base/3-simulate/p1772.cpp | da89b015b0be5e809a3cc40c495b93774dc03665 | [] | no_license | iPhreetom/ACM | a99be74de61df37c427ffb685b375febad74ed9a | f3e639172be326846fe1f70437dcf98c90241aa0 | refs/heads/master | 2021-06-14T08:11:24.003465 | 2019-09-13T22:54:34 | 2019-09-13T22:54:34 | 142,748,718 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 434 | cpp | p1772.cpp | #include<bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
ios::sync_with_stdio(false),cin.tie(0),cout.tie(0);
int ar[] = {1,2,3,4,5,6,7,8,9};
while(next_permutation(ar,ar+9)){
int a,b,c,i=0;
a = ar[i++]*100 + ar[i++]*10 + ar[i++];
c = ar[i++]*100 + ar[i++]*10 + ar[i++];
b = ar[i+... |
65dd4d57b57218520f7b2069d406c127ec39ef57 | e43484bb35e711adbf5e7357a912fcc4eaef8a1f | /Git-Dashboard/GetPasswordsWindow.h | 1f153feb1293e8d9e42acd68e4eedfd367b9dd9f | [
"MIT"
] | permissive | jplflyer/Git-Dashboard | 8aeb38e6dc5bac714a5d5e5bf0e24fb0f62cef29 | 1aeaeb8495a5cfdc00906b9b82e798936df67f7c | refs/heads/main | 2023-03-26T09:48:01.200218 | 2021-03-29T16:45:25 | 2021-03-29T16:45:25 | 343,510,329 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 632 | h | GetPasswordsWindow.h | #pragma once
#include <QWidget>
#include <showlib/StringVector.h>
namespace Ui {
class GetPasswordsWindow;
}
class GetPasswordsWindow : public QWidget
{
Q_OBJECT
public:
explicit GetPasswordsWindow(ShowLib::StringVector &vec, QWidget *parent = nullptr);
~GetPasswordsWindow();
private slots:
void o... |
6103da9c06402e28d12c469ba0927dd692b38357 | 28b8ca5ff1a84547a2e1d289bc846309a6b5401c | /salary.h | 0310da9a619094601fabe105ba1d2bba7f75df55 | [] | no_license | VadimGerman/tz | 4a042a6e07a74e3f03e0a7bb0d4ea119db8017cf | 6b8e9cecffc5333ed6a2db0317244d296de59fcd | refs/heads/master | 2020-05-29T22:01:29.100100 | 2019-05-30T11:10:58 | 2019-05-30T11:10:58 | 189,399,223 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 198 | h | salary.h | #ifndef SALARY_H
#define SALARY_H
#include "Clerk.h"
class Salary
{
public:
virtual ~Salary() {}
virtual float compute(Clerk *clerk, QDate date) = 0;
};
#endif // SALARY_H
|
b660d898659fac241eb27bb07b4fb9e1c5c1e964 | 848401f485da0dd1ddf0f48c7342660405dc77dc | /14502.cpp | c5ea746c7593743b74b30717609d4b56bcf23a19 | [] | no_license | gusqls1603/2020-AlgoStudy | ae5a6b10a798d4d744eb77fca264611f58a9ac63 | aeb0bd9e699bcc53641d826318bef5ff817f85e2 | refs/heads/master | 2023-03-01T06:35:59.051323 | 2021-02-16T06:44:24 | 2021-02-16T06:44:24 | 283,943,612 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,713 | cpp | 14502.cpp | #include <iostream>
#include <string.h>
#include <queue>
using namespace std;
int N, M, map[10][10], E = 0;
queue <pair <int, int>> oq;
int count(queue<pair<int, int>> q, int a, int b, int c)
{
int cmap[10][10], cE = E - 3, x, y;
memcpy(cmap, map, sizeof(map));
cmap[a / M + 1][a % M + 1] = 1;
cmap[... |
cf727341a96df77387e51fddb5f0a24a8bd61544 | 7579d827cb7b50b438dfd9ef6fa80ba2797848c9 | /sources/plug_osg/src/luna/bind_osg_CoordinateSystemNode.cpp | 8134954d75f6c3e42ab86cc901759dd6adc94be0 | [] | no_license | roche-emmanuel/sgt | 809d00b056e36b7799bbb438b8099e3036377377 | ee3a550f6172c7d14179d9d171e0124306495e45 | refs/heads/master | 2021-05-01T12:51:39.983104 | 2014-09-08T03:35:15 | 2014-09-08T03:35:15 | 79,538,908 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 76,731 | cpp | bind_osg_CoordinateSystemNode.cpp | #include <plug_common.h>
#include <luna/wrappers/wrapper_osg_CoordinateSystemNode.h>
class luna_wrapper_osg_CoordinateSystemNode {
public:
typedef Luna< osg::CoordinateSystemNode > luna_t;
inline static bool _lg_typecheck_getTable(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
... |
97a8e26c9dd23cda4b99537beb9d186fdb800a02 | 056b50bd3c00b32022ae3af5ad490bf7ae2c4cd8 | /v1/include/loadBalanceServer/TcpServer.h | 6597b031f2dd324ac125d4b4989383d2c3a5b1ad | [
"MIT"
] | permissive | lexingsen/distributed-system-framework | 66b8dbf894fdb8229ca92b0e9682572693aaa276 | 3b9a8aa88048055ebd0a0edea2142b81242367b3 | refs/heads/master | 2022-05-25T06:24:43.025007 | 2022-05-05T13:48:37 | 2022-05-05T13:48:37 | 178,776,814 | 73 | 30 | null | null | null | null | UTF-8 | C++ | false | false | 444 | h | TcpServer.h | #ifndef _TCP_SERVER_H_
#define _TCP_SERVER_H_
#include <string>
using namespace std;
class TcpServer {
public:
TcpServer(const std::string& ip, unsigned short port);
int Accept();
int Send(int fd, const std::string& msg);
int Recv(int fd, std::string& msg);
int getListenFd() const;
std::string getIp() con... |
0e767427b35e090dffcff8b91d6cd9e1bcf58d6b | dca8d0641fa5608c6e3ba4ecf955d90eedc58102 | /[EDD]Proyecto1_201800624/[EDD]ProyectoUno/[EDD]ProyectoUno/NodoLS.h | 968d9f01403f8cec6fbed1fbdf0541043a8a3822 | [] | no_license | car123che/-EDD-ProyectoUno | 00517bf4b20ad8f3f695dba3617ecac6d15a22a5 | ac89d6982dc634b40c67529d6854d30b20f571bb | refs/heads/master | 2022-11-03T08:20:40.200760 | 2020-06-19T05:41:25 | 2020-06-19T05:41:25 | 269,880,888 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 197 | h | NodoLS.h | #pragma once
#include <iostream>
#include "Activo.h"
class NodoLS
{
public:
NodoLS* siguiente;
int posicion;
Activo* activo;
NodoLS(Activo* a) { siguiente = 0; posicion = 0; activo = a; }
};
|
91ce932230b01ced71097b49245f2fc9c77a423d | 9c2d27f2b23630034f426434b3e2bfd384fb7134 | /Assignment2/AccountInheritanceHierarchy/savingAccount.h | 6c974c6c1ed8be108725c74fe9e5a9274d70915c | [] | no_license | XiaofengLighthouseLabs/Cpp-practice1 | 6c3bd8a773bd26b92847de61d3c95bb2c23c20d3 | 93e070dfa19c9825fcc4f84fb8d8a8d2e7140559 | refs/heads/master | 2020-07-29T17:22:15.488483 | 2019-09-21T00:13:18 | 2019-09-21T00:13:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,064 | h | savingAccount.h | /*
* savingAccount.h
*
* Created on: Jul 12, 2019
* Author: Xiaofeng Zhang
*/
#ifndef SAVINGACCOUNT_H_
#define SAVINGACCOUNT_H_
#include <iostream>
#include <string>
#include "account.h"
using namespace std;
class SavingAccount : public Account{
private:
double interestRate;
public:
e... |
b7f251ee34d6182f102a42a6d1b88bfd61204e1c | d09945668f19bb4bc17087c0cb8ccbab2b2dd688 | /2017-2021/2019/iroha/day3/d.cpp | 3a75e41b87e0d87eca7d3be9216e027db63cf456 | [] | no_license | kmjp/procon | 27270f605f3ae5d80fbdb28708318a6557273a57 | 8083028ece4be1460150aa3f0e69bdb57e510b53 | refs/heads/master | 2023-09-04T11:01:09.452170 | 2023-09-03T15:25:21 | 2023-09-03T15:25:21 | 30,825,508 | 23 | 2 | null | 2023-08-18T14:02:07 | 2015-02-15T11:25:23 | C++ | UTF-8 | C++ | false | false | 1,315 | cpp | d.cpp | #include <bits/stdc++.h>
using namespace std;
typedef signed long long ll;
#undef _P
#define _P(...) (void)printf(__VA_ARGS__)
#define FOR(x,to) for(x=0;x<(to);x++)
#define FORR(x,arr) for(auto& x:arr)
#define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++)
#define ALL(a) (a.begin()),(a.end())
#... |
4e0034c3eda7c02be3d322bfa44a332ebebd0f0b | 66d6d8b59346bee299e54ae2b889da02ff62b292 | /src/car.cpp | 625db84799b1b448d77f51d17fe0a93c61897249 | [
"MIT"
] | permissive | deepakzambre/PathPlanning | dc067b683c5261a9809b61d9ad796681c92ef71b | c81b2028c493c05ce7ad89285fbddf6cf718a72b | refs/heads/master | 2020-03-24T09:03:45.124669 | 2018-08-20T04:51:25 | 2018-08-20T04:51:25 | 142,617,259 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,003 | cpp | car.cpp | #include "car.hpp"
#include "common.hpp"
#include <iostream>
#include <iostream>
#include <fstream>
#include <cmath>
#include <vector>
#include "json.hpp"
#include "spline.h"
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "Eigen-3.3/Eigen/Dense"
#include "helper.hpp"
#include "com... |
5d093f8b14506dbeb4573da63441eb16bf60833e | a0c4ed3070ddff4503acf0593e4722140ea68026 | /source/NET/UI/NCPA/NCPA/NCPADOMN.HXX | 4c3e4c3baf0be6450c72475279394c609f7f3625 | [] | no_license | cjacker/windows.xp.whistler | a88e464c820fbfafa64fbc66c7f359bbc43038d7 | 9f43e5fef59b44e47ba1da8c2b4197f8be4d4bc8 | refs/heads/master | 2022-12-10T06:47:33.086704 | 2020-09-19T15:06:48 | 2020-09-19T15:06:48 | 299,932,617 | 0 | 1 | null | 2020-09-30T13:43:42 | 2020-09-30T13:43:41 | null | UTF-8 | C++ | false | false | 8,757 | hxx | NCPADOMN.HXX | /**********************************************************************/
/** Microsoft Windows NT **/
/** Copyright(c) Microsoft Corp., 2000 **/
/**********************************************************************/
/*
NCPADOMN.HXX
Domain and Computername alteration dialogs and classes
... |
76f22f9fb3cea8a506e6156a58c49e9528215379 | 251921a9bad70bf0cef196a755b17a30e583d49d | /ArpHeader/ArpInterface/ArpFileNameControl.h | 55ad86406ced68b31b3d72defb06b61215afb890 | [
"Artistic-1.0"
] | permissive | tgkokk/Sequitur | 6d25b901c14960445230c91571934b3bdc0db214 | de306eb37de25cd8237c9a4bd30ce3e7a7ed416f | refs/heads/master | 2021-01-17T07:50:13.962534 | 2014-01-01T21:52:41 | 2014-01-01T21:52:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,733 | h | ArpFileNameControl.h | /* ArpFileNameControl.h
* Copyright (c)2002 by Eric Hackborn.
* All rights reserved.
*
* This code is not public domain, nor freely distributable.
* Please direct any questions or requests to Eric Hackborn,
* at <hackborn@angryredplanet.com>.
*
* -----------------------------------------------------------------... |
a96071e0effa4bd800eaa9535e10e2fcd892b6fb | 3a918810fff9810a3e77ba6e8d323cd67b99f4cd | /ArduinoPlatformio/02_demos/08 wifi/02_WebServerRelayAdvanced/ESP/Platformio/ESP8266/Sonoff/src/main.cpp | 876130a495970e91c1ec22d7fc9ef68230ca782a | [] | no_license | ramonjunquera/GlobalEnvironment | 7cdb81e7dd30619016ee36f3d4501ebb13891d8b | d099ce6fbaa4e9f570428ca30a058bf75a4ac4b5 | refs/heads/master | 2023-03-08T02:36:07.720569 | 2023-02-20T08:58:18 | 2023-02-20T08:58:18 | 110,946,331 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 16,802 | cpp | main.cpp | /*
Autor: Ramón Junquera
Tema: Conexión WiFi
Objetivo: Crear un interruptor (relé) con control remoto por Internet
Material adicional: Sonoff, cables, FTDI
Descripción:
Gestionaremos un relé de manera remota a través de un servidor web integrado en Sonoff.
Para facilitar la identificación del servidor, ... |
f523c5bc06f9cc45117dd592c7da796bf32bf07e | 6288052de241a6044bdccc3c5ae3bba0c8639a3c | /perfect_sets_counter/binary_conv.cpp | aee4fb1d11425ab0964cb4a4a93793187adc5aa9 | [] | no_license | ValerioTram/Simple_Algorithms | 50b978f473dfa60b159671c6765d257ec817db4d | 316c1aeaccb9eaa7bd9f295161385d96cc636ef4 | refs/heads/main | 2023-02-08T12:58:49.503554 | 2020-12-31T16:30:23 | 2020-12-31T16:30:23 | 325,833,493 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 252 | cpp | binary_conv.cpp | #include "binary_conv.h"
vector<int> dec2bin(int dec_num)
{
vector<int> bin_num_vec;
int i = 0;
while(dec_num>0)
{
bin_num_vec.push_back(dec_num%2);
dec_num = dec_num/2;
i++;
}
return bin_num_vec;
}
|
31bf2868cd758f8a1fe7bc49954ab9ff110ff55d | 502381e7ca4ac8b11d696f3c2e13a04f30cb8f6d | /BestPuzlleMatchTheAdjacent/Classes/Status.h | fbd59238e77c985ed454bdc48dfdee5d76336671 | [] | no_license | 73153/IncomeTaxCalculator | 2c70a7ceb09dc96969a90ff36f65681b199bfdca | 38f54db09ebd0e85427401543850a19ee077066e | refs/heads/master | 2021-01-20T15:10:43.059210 | 2017-02-22T12:15:08 | 2017-02-22T12:15:08 | 82,799,857 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 347 | h | Status.h | /*
* Status.h
*
* Created on: 2013-7-18
* Author: maxing
*/
#ifndef STATUS_H_
#define STATUS_H_
#define MAX_UNREGULAR_STAGE 10
class Status {
public:
Status();
virtual ~Status();
bool mute;
int highScore;
int stage;
int score;
int target;
int lastTarget;
};
... |
16bb4fdb5f24e428e3e3bfde1501e2157d449c88 | 68beabeb4ac1dfdb6ab8b103087ab96a7f0a365b | /Separate Compilation/test.cpp | a4a458faf8863d1fd355b11345e80acb9405e2e2 | [] | no_license | wangying2016/Seperate_Compilation_of_Class_Template | fc32c1a9da6dbcf26b7f33f08eff8fbf16eb49a3 | 784b1a62c7a4f581e26f5590fd51f147b7339097 | refs/heads/master | 2020-04-08T22:15:55.484647 | 2018-11-30T06:37:30 | 2018-11-30T06:37:30 | 159,779,498 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 288 | cpp | test.cpp | #include "MemoryCell.h"
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
MemoryCell<int> m1;
MemoryCell<double> m2{ 3.14 };
m1.write(37);
m2.write(m2.read() * 2);
cout << m1.read() << endl;
cout << m2.read() << endl;
system("pause");
return 0;
} |
cf3a8e789592d48e99270bf179ef0db6aff4d68c | 3e520825665dbf75ccb93445c95d2a2573739233 | /main.cpp | 9f531dc2ba1f51d1ea3718d792c3fc93f4bf7cdd | [] | no_license | bartlomiej/BlockListChecker | 995bf5f84a569e59c4a915d85b83b14830a44cee | 86cca5d6ec6646d5eba3dbe3a6fab9c606ed4aa6 | refs/heads/master | 2020-04-26T03:54:19.612843 | 2019-03-01T10:47:38 | 2019-03-01T10:47:38 | 173,282,899 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 592 | cpp | main.cpp | #include "blocklistchecker.h"
#include <QApplication>
#include <QTextCodec>
#include "singleapplication.h"
int main(int argc, char *argv[])
{
#ifndef Q_OS_UNIX
QTextCodec::setCodecForLocale(QTextCodec::codecForName("Windows-1250"));
#else
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
#endif... |
315457939540cb183969fb6b9ca16b000702d5af | 9fb01562288fde5dcafa25387d219256a26f7ba8 | /wrap.cpp | 6568c7068e1dc41d5cfd699318d56d9bcb20c131 | [] | no_license | zootella/ftorrent | 8a8a2d7709a99c305ffb3b88942078c0200a364b | 05acb00e26b38e1dd545ad287820d834ff8d5fcf | refs/heads/master | 2020-04-11T09:16:44.535991 | 2012-10-22T06:23:47 | 2012-10-22T06:23:47 | 536,161 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 36,482 | cpp | wrap.cpp |
#include "heavy.h"
extern app App; // Access global object
// Takes a settings structure to look at, or null to not update settings
// Starts libtorrent and adds extensions
void InitializeLibtorrent(settings_structure *info) {
try {
App.session = new libtorrent::session; // Make the libtorrent session ob... |
728cc687a7265a9a0b36c04fce2174e3dd210596 | 7761859044d1881c83c60e3dbd380fed2cd14afb | /Pruebas/ArbolBinario/ArbolBinario.h | 3093e236cf091b47257d3f51ff997e8cdfdd4b45 | [] | no_license | camilojm27/ProgramacionCompetitiva | 5f44ce4b92f4e38395e8b77e6c76d55e4b5f850b | d179814bcd1a171cf5c99c8959e0ca05d4877a63 | refs/heads/master | 2021-04-18T22:43:26.669044 | 2020-03-21T03:34:33 | 2020-03-21T03:34:33 | 126,571,358 | 0 | 0 | null | 2019-07-04T17:12:07 | 2018-03-24T06:09:34 | C++ | UTF-8 | C++ | false | false | 308 | h | ArbolBinario.h | #include <iostream>
using namespace std;
struct Nodo
{
int dato;
Nodo *der;
Nodo *izq;
};
Nodo *crearNodo(int);
void insertarNodo(Nodo *&arbol, int n);
void mostrarArbol(Nodo *, int contador);
bool busqueda(Nodo *arbol, int n);
// Nodo *arbol = NULL; Con esta linea crea un nuevo arbol(Nodo) |
0c7c896cfc0dac5674f287ab70b77c1f1c845943 | 2a3c5d469f89dfbbfc7be1d276867f62619418b0 | /airbender.h | 1785e7af3800a9d4119e199b47dbeba6abbe8ffc | [] | no_license | abialvarado14/Suyapa_Alvarado_lab9_avatar | b04799e58583d0af1d7839b7d8389851f59a7d95 | 9c446f2004be9dfd545e1dbaa87e31f0c343d1fc | refs/heads/master | 2021-01-22T20:44:08.664080 | 2017-03-17T17:57:11 | 2017-03-17T17:57:11 | 85,347,873 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 273 | h | airbender.h | #include "Bender.h"
#include <string>
#ifndef AIRBENDER_H
#define AIRBENDER_H
using namespace std;
class airbender : public Bender{
public:
airbender(int, int, int, int, string);
virtual void ataqueNormal(Bender*);
virtual void ataqueEspecial(Bender*);
};
#endif |
612c0d4cce96d2373e6655405024dcbb2da64eff | 61304bfb26ac0615629ebd44ecfcff2dce803fcb | /chefAndLeftRight.cpp | 7df0b50f34c16e59d1d45091af5c873d11917494 | [] | no_license | gokul1998/Codechef | c6109d5ade6c1fcfbb581647ed0ff8c97b441ccc | 253a779a0c669cb2b41d3f1ede1bdf0f7259b40e | refs/heads/master | 2020-06-23T09:48:58.653802 | 2019-07-24T08:11:33 | 2019-07-24T08:14:06 | 198,589,391 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 472 | cpp | chefAndLeftRight.cpp | #include<bits/stdc++.h>
#define MOD 1000000007
using namespace std;
int main(){
int t;
cin>>t;
while(t--){
string s;
int i,len;
long long r=1;
cin>>s;
len=s.size();
for(i=0;i<len;i++){
if(i%2==0){
if(s[i]=='l')r=(r*2)%MOD;
else r=((r*2)+2)%MOD;
// cout<<"if ";
}
el... |
751c789c8c7c0c81931e28563b505e1f19a76ac1 | 1e5cf97921ce4a6b18b169bd348db24c03e29c5b | /theory_and_practice/algorithms_and_data_structures/data_structures/avl_tree/avl_tree.hpp | c4a4da9811d283e0bce08ec147dc6fe391de83a9 | [] | no_license | lnikon/edu | 68c51cf1c1246939c748d698b74e982ea96ef7d1 | 7df043e24560fa136a2142871100af94021bd61e | refs/heads/master | 2021-01-07T07:23:04.923479 | 2020-03-05T12:44:24 | 2020-03-05T12:44:24 | 241,619,433 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,761 | hpp | avl_tree.hpp | #pragma once
#include <iostream>
#include <stack>
struct AVLNode
{
int value{0};
int height{0};
AVLNode* left{nullptr};
AVLNode* right{nullptr};
AVLNode(int value)
: value(value), height(0), left(nullptr), right(nullptr) {}
};
class AVLTree
{
public:
~AVLTree() {}
AVLNode* inse... |
56ee67550b15e6c36116f6573afbafffbb0dd4c3 | 09d1138225f295ec2e5f3e700b44acedcf73f383 | /Plugins/Prism/ServerManager/vtkSMPrismThresholdRangeDomain.cxx | b4ac16032900e7c801d677554b32439d72eb3a73 | [
"BSD-3-Clause"
] | permissive | nagyist/ParaView | e86d1ed88a805aecb13f707684103e43d5f6b09f | 6810d701c44b2097baace5ad2c05f81c6d0fd310 | refs/heads/master | 2023-09-04T07:34:57.251637 | 2023-09-03T00:34:36 | 2023-09-03T00:34:57 | 85,244,343 | 0 | 0 | BSD-3-Clause | 2023-09-11T15:57:25 | 2017-03-16T21:44:59 | C++ | UTF-8 | C++ | false | false | 2,938 | cxx | vtkSMPrismThresholdRangeDomain.cxx | // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
// SPDX-License-Identifier: BSD-3-Clause
#include "vtkSMPrismThresholdRangeDomain.h"
#include "vtkObjectFactory.h"
#include "vtkPVXMLElement.h"
#include "vtkSMDoubleVectorProperty.h"
#include "vtkSMIntVectorProperty.h"
#include "vtkSMStringVectorProperty.h"
#includ... |
eb142eda57d17dba36c741376c3476392798b9db | 2bce17904e161a4bdaa2d65cefd25802bf81c85b | /codeforces/906/B/B.cc | b407deb7dc44d17995070a5abf216a6a4367bfd7 | [] | no_license | lichenk/AlgorithmContest | 9c3e26ccbe66d56f27e574f5469e9cfa4c6a74a9 | 74f64554cb05dc173b5d44b8b67394a0b6bb3163 | refs/heads/master | 2020-03-24T12:52:13.437733 | 2018-08-26T01:41:13 | 2018-08-26T01:41:13 | 142,727,319 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,273 | cc | B.cc | #pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,sse4.1,sse4.2,popcnt,abm,mmx,avx,tune=native")
#include "bits/stdc++.h"
#include <assert.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define PB push_back
#define MP make_pair
const int MOD=1000000007;
#define endl "\n"
... |
9e77b15efa9fe7b105449dd75ad3f7e44d7a05bb | 06df0250fc60734329682c263384561638e2a42e | /src/input/mouse/MouseState.cpp | c4a97ef7e4e47ca96ea627bcdf9d29f7f8fc932e | [] | no_license | mmicciolo/VenomFramework | 2747811bf20bd8e3008e940e46dbd5592ce93ebc | 085ae42548a730007983d7ce529f66039b7f4cac | refs/heads/master | 2020-03-18T07:58:59.804675 | 2018-06-27T20:38:14 | 2018-06-27T20:38:14 | 134,480,500 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,663 | cpp | MouseState.cpp | #include "MouseState.h"
bool VF::Input::MouseState::IsButtonPressed(MouseButtons::Buttons button) {
switch (button) {
case MouseButtons::Buttons::LEFT_BUTTON:
return mouseData.leftButton == ButtonState::State::Pressed ? true : false;
case MouseButtons::Buttons::RIGHT_BUTTON:
return mouseData.rightButton == Butt... |
309bb5d3305efb7e72184e695b780aea599dfcc3 | b96a1a03a0b34dd78d02e7293608f3ff7e6fbcd7 | /Tutorial12_MeshClass/Mesh.h | c2e429ce3d96bd33a7cfbec05ff73677f440eeeb | [] | no_license | finoriko/CppOpenGL | e9cd67616516b536e56078230f30d011b3ee2107 | 1d5ea29c504924b0b8632371fd0e66ab6c7c576e | refs/heads/master | 2021-05-25T17:37:54.538440 | 2020-06-14T14:56:55 | 2020-06-14T14:56:55 | 253,848,602 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,497 | h | Mesh.h | #pragma once
#include<iostream>
#include<vector>
#include"Vertex.h"
#include"Shader.h"
#include"Texture.h"
#include"Material.h"
class Mesh
{
private:
std::vector<Vertex> vertices;
std::vector<GLuint> indices;
GLuint VAO;
GLuint VBO;
GLuint EBO;
glm::vec3 position;
glm::vec3 rotation;
glm::vec3 scale;
glm:... |
c38dfc334bf720f61d51d3f6c1440d74979a756b | 778f08e46f73cb6f48c8681b95be74858adcbada | /gis_patrol_client/src/patrolCommunications/pAttribute.h | d6220770c7a78182440968d8f9ba620a7e71705e | [] | no_license | YuriyRusinov/gis_patrol_rubin | 2704e2612431e9197da738ac9a860173a1127256 | 6c1344ac29fdfc28b63e737dab53900f8cab1ab1 | refs/heads/master | 2023-06-15T14:21:12.621001 | 2021-01-21T20:34:22 | 2021-01-21T20:34:22 | 265,806,283 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 349 | h | pAttribute.h | /*
* @brief Абстрактный класс, описывающий параметры/группу параметров узла связи,
* pAttribute.h
*
* (C) НИИ "Рубин"
* @author
* Ю.Л.Русинов
*/
#pragma once
class pAttribute {
public:
virtual int getEntity() const=0;
virtual qint64 getId() const=0;
};
|
c3fc924bf406588a5f248b7f1b38f3b3ae24ffec | 7b67cab222fa108d3bb9728ac5ccb8dccb820435 | /PixelJetFinder/interface/PixelJetProducer.h | 25db82437649778fb4cb9d53748f0db64ce9ac5d | [] | no_license | lsilvamiguel/usercode | 5fbfa224c0be162df350cff8a6964e15d665b925 | 16e28f8126b844775853c58c0e6bba3a24e106dc | refs/heads/master | 2021-01-09T05:57:56.039791 | 2016-12-21T16:05:30 | 2016-12-21T16:05:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,416 | h | PixelJetProducer.h | //
// Package: AnalysisExample/PixelJetFinder
// Class: PixelJetProducer
//
//
// Description: Produces PixelJets from PixelTracks
//
// Original Authors: M. De Mattia
// Created: 6/8/2007
//
#ifndef AnalysisExamples_PixelJetFinder_h
#define AnalysisExamples_PixelJetFinder_h
//#include <map>
// Nee... |
efc78d305f7535271589e5619be76f483dfea54c | cd0b338301ee4997c4cb114899ebd407c2b62c0b | /Codeforces/1294A.cpp | 8f89e85ffd4680ac014c94b1847d825f061d51dc | [] | no_license | shubh-am-gupta/Competitive-Programming- | c433b4fe3806df902ec46877417ed7e4209786c4 | 3138ca94910cd9d0e2aa0f8934ffc7cb1f3badbd | refs/heads/master | 2021-09-08T03:53:39.851506 | 2020-10-02T06:43:55 | 2020-10-02T06:43:55 | 246,778,259 | 1 | 2 | null | 2021-08-31T03:45:21 | 2020-03-12T08:12:10 | C++ | UTF-8 | C++ | false | false | 543 | cpp | 1294A.cpp | problem link--> https://codeforces.com/contest/1294/problem/A
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define fast ios_base::sync_with_stdio(false); cin.tie(NULL);
#define test ll t; cin>>t; while(t--)
int main() {
fast;
test{
ll a[3],n,x;
cin>>a[0]>>a[1]>>a[2]>>n;
... |
55ba0ca6fe8b9a8f81b178324cbdb570e3ca0030 | 7d5593b9bbaf6bb8eaacca88449d90c9c305c36e | /problems/928-minimize-malware-spread-ii/928.cc | a6e9dec7342b91dfd55286949f20cf0c7095cde9 | [] | no_license | yottacto/leetcode | fc98052ed9d643be8a79116d28540596bcc7c26b | 9a41e41c0982c1a313803d1d8288d086fbdbd5b6 | refs/heads/master | 2021-04-25T12:05:55.671066 | 2019-12-15T03:07:31 | 2019-12-15T03:07:31 | 111,814,868 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 34 | cc | 928.cc | #include "928.hh"
int main()
{
}
|
b24cd0afb1ec07562b71c101672b9f6683eea376 | 2d0ecc01a2876c52daad91f50c51cb5f052daf44 | /acmicpc/icpc/trains/tzc/2013-08-23-bfs/简单版贪食蛇.cpp | e5138a1b4c7069197c8ddd63f764f14f66e0115a | [] | no_license | shimaomao/language | 353cafdc9758142bbc2421b443070ec2942e62b2 | 4f1244c7222b07b03d13e534b0ee9340c3b43c07 | refs/heads/master | 2020-06-18T00:01:36.040333 | 2018-09-04T01:58:40 | 2018-09-04T01:58:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,517 | cpp | 简单版贪食蛇.cpp | #include <iostream>
#include <cstdio>
#include <cstring>
#include <string>
#include <vector>
#include <queue>
#include <algorithm>
using namespace std;
const int N = 105;
int n, m;
char map[N][N];
struct Point {
int x, y;
string steps;
};
int dx[] = {0, 0, 1, -1};
int dy[] = {1, -1, 0, 0}; // E, W, S, N
string... |
b2c6c6f27a2bd78441901297efdd74972fe28af6 | 63b2914b4596a81eb17f37b5015a608b0b94f8f5 | /2images_restruction/src/LoadJPEG.cpp | e543089b292ec342a0a36b421079710c00d3ef45 | [] | no_license | TripleTLab/SfM_Reconstruction | 66a82f905fdefc6f49633dfb2780051fc726e185 | 4db2b3847f5e0e1eaf63a7daa664d42db6669d5b | refs/heads/master | 2021-01-24T10:38:54.273971 | 2018-03-28T12:19:48 | 2018-03-28T12:19:48 | 123,057,490 | 6 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 3,479 | cpp | LoadJPEG.cpp |
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <jpeglib.h>
#include "image.h"
void GetJPEGDimensions(const char *filename, int &w, int &h)
{
struct jpeg_decompress_struct cinfo;
struct jpeg_error_mgr jerr;
cinfo.err = jpeg_std_error(&jerr);
jpeg_create_decompress(&cinfo);
... |
9a3d27306c117bed5cc5b3afd2bcfb6da936effc | 8e068eede9730e6ce3773f1e7232c34dd03ef29d | /Engine/Common/Engine/Application/IGameLaunchOption.h | d64f53e1843dca35b8052c4f1a25b995e7eef11f | [
"MIT"
] | permissive | leec0m3t/Leggiero | 2e228fa23f723132883577c8018e7f6a47879f61 | 8fe13d86454a08ba8a3a8cebe1ce92343090c1be | refs/heads/main | 2023-04-09T19:17:06.555139 | 2021-04-19T06:54:00 | 2021-04-19T06:54:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 529 | h | IGameLaunchOption.h | ////////////////////////////////////////////////////////////////////////////////
// Application/IGameLaunchOption.h (Leggiero - Engine)
//
// Abstract Interface for Game Launch Option Class
////////////////////////////////////////////////////////////////////////////////
#ifndef __ENGINE__APPLICATION__I_GAME_LAUNCH_OP... |
755e579846532c84eb57212b6aadf026006a4645 | 8e90818d38e59997949b0bf8a661df903f74fb3b | /zgsaPC/roomsvrzgsa/Service.cpp | 4f2c5a4d085ef40e987a564c66c575dc87229b0d | [] | no_license | externIE/yingsanzhang | 092a4dcc5f0b31f8ca66e6d1d5eeca2c166af5f3 | f72f9e8739bdf9c550cab176af69dbe0a44ee9bc | refs/heads/master | 2021-01-10T12:07:58.552113 | 2016-03-25T05:52:37 | 2016-03-25T05:52:37 | 54,697,781 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,827 | cpp | Service.cpp | #include "stdafx.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
const DWORD dwWaitFinished = 5000; // time to wait for threads to finish up
CMainService::CMainService(const TCHAR* szServiceName, const TCHAR* szDisplayName,
const int iMajorVersion, const int iMinorVersion)
:CNTService(szServiceName, szDisplay... |
842c9340bd42a2e57bca8c2269910b38152683f8 | 3a4dd02d19b35f2e402e06891906e44942823416 | /archive/2021s/solutions/ScribbleRoads.cpp | 1cf0a4862ca942632780d48f4e1c8097bc788499 | [] | no_license | mbhs/mbit | cbd2d4478447df0afccc118f28c55a224628014e | c9264cd8e526411f746ff526b4f6464ac80bc64e | refs/heads/master | 2022-06-19T00:20:40.369880 | 2022-05-28T00:00:00 | 2022-05-28T00:00:00 | 192,783,606 | 1 | 2 | null | 2019-11-02T03:25:03 | 2019-06-19T18:21:22 | CSS | UTF-8 | C++ | false | false | 2,591 | cpp | ScribbleRoads.cpp | #include <bits/stdc++.h>
using namespace std;
struct DSU {
vector<int> e;
void init(int n) {
e = vector<int>(n, -1);
}
int get(int x) {
return e[x] < 0 ? x : e[x] = get(e[x]);
}
bool same_set(int a, int b) {
return get(a) == get(b);
}
int size(int x) {
return -e[get(x)];
}
... |
0033549cc5d8452b1d378c2b04d54e951a1f7698 | 471126f2f0c9c139e55f0fcbabe9ebf9b444bae4 | /Arma 3/@PUBattleRoyale/addons/br_code/config.cpp | 1fd5d404eac295d2ee7beef900bc2330c2407fc8 | [] | no_license | KiwiBear/DayZBattleRoyale | d1532c37571c7df92e0d49e835d00a5a08e0b96e | 70d55b7c8fa551aa5ac7233b5f5b85e95e79c5f9 | refs/heads/master | 2021-01-20T08:34:10.907196 | 2014-05-16T19:03:00 | 2014-05-16T19:05:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 379 | cpp | config.cpp | class CfgPatches {
class br_code {
units[] = {};
weapons[] = {};
requiredVersion = 0.1;
requiredAddons[] = {};
};
};
class CfgMods
{
class BattleRoyale
{
dir = "PUBattleRoyale";
name = "Arma 3: Battle Royale Alpha";
picture = "\br_code\screen\mod.paa";
hidePicture = 0;
hideName = 0;
action = "ht... |
5c592c77be814dd188a11bbc44cea57a8ab9e414 | 31965d3125b23e955a45230b89e17a8bb96377e5 | /moon/moon/logic/doer/playerData.cpp | 03f0eebeeadb6b3948b1e956ce1ea443797b04b7 | [] | no_license | jiyahan/moon | 18e5a955c66fbb7251d6b7d67159bdf7c13d99a9 | 363072cdf3c3d0378b41a0c3237f4e604c7572ab | refs/heads/master | 2021-06-04T21:26:13.436132 | 2016-05-10T06:41:35 | 2016-05-10T06:41:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,356 | cpp | playerData.cpp | #include "StdAfx.h"
using namespace moon;
using namespace common::SystemId;
bool CPlayer::loadData(CDataPacketReader &data)
{
if (m_boIsNewPlayer)
{
PlayerId charId;
LPCSTR sCharName;
WORD wLevel;
BYTE btGender;
data >> charId;
data >> sCharName;
data >> wLevel;
data >> m_btJob;
data >> btGender;
... |
15955caf6a286b6060977d7390a6bb1a959524a1 | 03f037d0f6371856ede958f0c9d02771d5402baf | /graphics/VTK-7.0.0/Interaction/Widgets/Testing/Cxx/TestPlaneWidget.cxx | ea0e2586927fb045fc1867d82dae1a27389622ae | [
"BSD-3-Clause"
] | permissive | hlzz/dotfiles | b22dc2dc5a9086353ed6dfeee884f7f0a9ddb1eb | 0591f71230c919c827ba569099eb3b75897e163e | refs/heads/master | 2021-01-10T10:06:31.018179 | 2016-09-27T08:13:18 | 2016-09-27T08:13:18 | 55,040,954 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,496 | cxx | TestPlaneWidget.cxx | /*=========================================================================
Program: Visualization Toolkit
Module: TestPlaneWidget.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This ... |
a208ea5dee92f4d070c5040f8a7d750a9ea3279a | e1951b7f7a739b96e961797f8849e58dcb41f00d | /falcon/functional/operators.hpp | 85571c60ed50e445254669073d3f1e210013ec40 | [
"MIT"
] | permissive | jonathanpoelen/falcon | fcf2a92441bb2a7fc0c025ff25a197d24611da71 | 5b60a39787eedf15b801d83384193a05efd41a89 | refs/heads/master | 2021-01-17T10:21:17.492484 | 2016-03-27T23:28:50 | 2016-03-27T23:28:50 | 6,459,776 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,266 | hpp | operators.hpp | #ifndef FALCON_FUNCTIONAL_OPERATORS_HPP
#define FALCON_FUNCTIONAL_OPERATORS_HPP
#include <falcon/c++1x/syntax.hpp>
#include <falcon/type_traits/default_or_type.hpp>
#include <falcon/type_traits/internal_reference.hpp>
#include <falcon/functional/is_transparent_inheritance.hpp>
#include <utility>
#include <type_traits... |
0a89143efa1bed7d30f0e2d65e23aa7134ad5acc | b7bc9a7bcdd29ce77f39d5a390f5b5f6965e0326 | /demo/OpenCV_Test/test_rotate.cpp | 7011c3276fe902b846350af77300567c0514026d | [] | no_license | fengbingchun/OpenCV_Test | 3ab3ddf06b788fd7b33905163b2f247df4ed1ae2 | c0c9b54d4593689fbe33b1e4d30c116aced79285 | refs/heads/master | 2023-08-16T12:29:48.033454 | 2023-08-13T03:30:05 | 2023-08-13T03:30:05 | 53,253,299 | 210 | 119 | null | null | null | null | UTF-8 | C++ | false | false | 4,727 | cpp | test_rotate.cpp | #include "fbc_cv_funset.hpp"
#include <assert.h>
#include <opencv2/opencv.hpp>
#include <rotate.hpp>
// Blog: http://blog.csdn.net/fengbingchun/article/details/51923769
int test_getRotationMatrix2D()
{
#ifdef _MSC_VER
cv::Mat matSrc = cv::imread("../../../test_images/lena.png", 1);
#else
cv::Mat matSrc = cv::imrea... |
21c3bf23ba09f70f25d95c9ec0869f5ea251cd4b | d49d829adcc867571592795035829ebe7b1601c9 | /SSETest/SSETest/sqrt_test.cpp | 35437e9e0daffe15b73712a7ef06dab12e237010 | [] | no_license | caohaitao/CHTTest | 12622088a0de0b88a6803d0b377afd9e23290ff0 | e195ee1452758d9302586a15b438d0a710c7591e | refs/heads/master | 2020-06-19T23:47:36.930966 | 2019-07-16T01:08:45 | 2019-07-16T01:08:45 | 196,917,081 | 0 | 0 | null | null | null | null | ISO-8859-7 | C++ | false | false | 3,972 | cpp | sqrt_test.cpp | #include "stdlib.h"
#include "stdio.h"
#include "time.h"
#include <chrono>
#include "nmmintrin.h"
#include <immintrin.h>
#include "common.h"
static float normal_sqrt(float * a, int n)
{
float sum = 0.0;
for (int i = 0; i < n; i++)
{
sum += sqrt(a[i]);
}
return su... |
a8851dd256aedb8fefffe94693062dbc8d1f599c | 5672afd545d8d02e00a8a5e6fa5f6bf54ed16ec8 | /src/engine/drawables/Drawable3DGrid.h | a16aba16398339b6798a136049d6f39ba331265b | [
"MIT",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | alopatindev/ponic | 940470a7b4b57a628d598f31ea0ed28d66bddc58 | e100b20dcbab584b51dfa871aa45dc2c15faef8b | refs/heads/master | 2016-09-06T14:41:44.401235 | 2014-10-12T09:49:11 | 2014-10-12T09:49:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,480 | h | Drawable3DGrid.h | #pragma once
#include <engine/drawables/Drawable3D.h>
#include <engine/GridManager.h>
#include <engine/misc/Singleton.h>
#include <glm/glm.hpp>
#include <cstdlib>
static const size_t GRID_WIDTH = 80;
static const size_t GRID_HEIGHT = 50;
static const float ASPECT_ADDITION = 1.0f;
class Drawable3DGrid_Class : public ... |
7d96754806cbc9a6ca92e4fd65ee3d9a1eb1451e | 6d84fc2add0c42cf0ebe953686be54282139669d | /ThirdsEngine/Shader.cpp | fbb852f766ed1bce777b2d8fba90d74e7cc18263 | [
"Apache-2.0"
] | permissive | OlisProgramming/ThirdsEngine | 791a709c08d885862dbebd1c203939dc517a19e3 | 0f44ae9e96f47d69222a57f43c1744cd89995e44 | refs/heads/master | 2021-01-14T11:39:26.854655 | 2016-12-17T21:37:27 | 2016-12-17T21:37:27 | 68,458,042 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 633 | cpp | Shader.cpp | #include "Shader.h"
namespace te {
namespace render {
Shader::Shader(std::string vert, std::string frag) {
program = loadShaders(("shader/" + vert).c_str(), ("shader/" + frag).c_str());
idMVP = getUniformID("MVP");
}
void Shader::bind() {
glUseProgram(program);
}
GLuint Shader::getUniformID(co... |
dd004f4dc665322e8df08bd6ac9631e32a88f37a | 492076face9fc0534465ed58c30553ad19627c01 | /Sources/main.cpp | 5109477333ace208a366150782eb8d691dc7d15e | [] | no_license | Olive-Noire/PixMap-Editeur | 084924c094024629ce72f7842fe349c0cc399194 | 3b350dc476f942a87ad1a57b29787eed64aee456 | refs/heads/main | 2023-03-23T00:42:02.288638 | 2021-03-13T15:17:01 | 2021-03-13T15:17:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 918 | cpp | main.cpp | #include "../Headers/Editor.hpp"
#include "../Headers/Image.hpp"
#include <iostream>
//#include <thread>
//#include <windows.h>
#include "../Headers/Files.hpp"
#include "../Headers/Picker.hpp"
int main(int argc,char* argv[]) {
//_setmode(_fileno(stdout), 0x00020000);
Editor editor;
if (a... |
f67659a8f231e71a2b4571bbcbe253be6a86cbd9 | c7c3f07a9300944efb862e3dbf480de1aba6d64c | /DungeonCrawler/Room.h | a32f764d07e478295493da1ea12456e908092546 | [] | no_license | carlwilke/DungeonCrawler | b7acee09335349061e01c6271dd5eb64312b22e6 | c130f3d7897172d320bdc52f6131ab662acd9671 | refs/heads/master | 2022-11-05T07:20:19.695724 | 2020-06-23T14:50:42 | 2020-06-23T14:50:42 | 274,423,216 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 343 | h | Room.h | #pragma once
#include <vector>
#include "GameCharacter.h"
#include "Item.h"
#ifndef ROOM_H
#define ROOM_H
using namespace std;
class Room
{
public:
int position;
bool isExit;
vector<Item> items;
vector<GameCharacter> enemies;
Room(int, bool, vector<Item>, vector<GameCharacter>);
void ClearLoot();
void Clea... |
33497be90939fbe488f376a3856fdd3903dca3cf | 39e4ba72b7983416458191d043c5251c5e67a21f | /test/handlers/screen.test.cpp | 7ed9142de4719976e7f57b216eaea3a73e0452dd | [] | no_license | CalgaryMichael/barthes | 3e5c75eb830b201d8a6da4883067d16d81312744 | b1b17e188124b421f97b32e26700d64d66c3400e | refs/heads/main | 2023-08-15T08:34:43.708578 | 2021-10-18T05:24:10 | 2021-10-18T05:24:10 | 403,179,194 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,537 | cpp | screen.test.cpp | #include <gtest/gtest.h>
#include <barthes/config.h>
#include <barthes/handlers/input.h>
#include <barthes/handlers/screen.h>
TEST(ScreenHandlerTest, generate_line__empty__no_value) {
barthes::TermConfig tc = {
.window_size=std::make_pair(50, 50),
.view=std::make_pair(0, 0),
.cursor=std::... |
a355965289323ae2d44fdb427ac245d5b5e6a463 | 2e10a55bcc27421c2ce00bac67d62ca3ae7a43be | /gcommon/source/gguinodecomponenttext.cpp | 622e2fcb017d94827608d75f6420d821cbcb54c9 | [
"Unlicense"
] | permissive | DavidCoenFish/ancient-code-0 | 2f72b8e20406b9877daa032f9e9fb8343da62340 | 243fb47b9302a77f9b9392b6e3f90bba2ef3c228 | refs/heads/master | 2020-03-21T10:18:30.613722 | 2018-06-24T01:18:30 | 2018-06-24T01:18:30 | 138,444,313 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,209 | cpp | gguinodecomponenttext.cpp | //
// GGuiNodeComponentText.h
//
// Created by David Coen on 2011 04 12
// Copyright 2010 Pleasure seeking morons. All rights reserved.
//
#include "GGuiNodeComponentText.h"
#include "GGui.h"
#include "GGuiType.h"
#include "GGuiFont.h"
#include "GGuiFontDataLoad.h"
#include "GGuiNode.h"
#include "GGuiNodeComponent... |
bf584a245df192e4638d81a6b3285391c556cebe | 97aa1181a8305fab0cfc635954c92880460ba189 | /aten/src/TH/THStorageFunctions.cpp | 2d58360a17c66088f92336a6ccb7ae39c429ae04 | [
"BSD-2-Clause"
] | permissive | zhujiang73/pytorch_mingw | 64973a4ef29cc10b96e5d3f8d294ad2a721ccacb | b0134a0acc937f875b7c4b5f3cef6529711ad336 | refs/heads/master | 2022-11-05T12:10:59.045925 | 2020-08-22T12:10:32 | 2020-08-22T12:10:32 | 123,688,924 | 8 | 4 | NOASSERTION | 2022-10-17T12:30:52 | 2018-03-03T12:15:16 | C++ | UTF-8 | C++ | false | false | 2,407 | cpp | THStorageFunctions.cpp | #include <climits>
#include <c10/util/intrusive_ptr.h>
#include <TH/THStorageFunctions.hpp>
#include <TH/generic/THStorage.cpp>
#include <TH/THGenerateAllTypes.h>
#include <TH/generic/THStorage.cpp>
#include <TH/THGenerateComplexTypes.h>
#include <TH/generic/THStorage.cpp>
#include <TH/THGenerateHalfType.h>
#inclu... |
a2a8651b9e3086ba12830ff9a310ce6cc28f2d30 | f3660c7c295b6f7d26cdb287015d710fe9637ed0 | /src/226_invertBinaryTree.cpp | 2c3e23e18e093d32ee9e033100ab1f6361304957 | [] | no_license | freehawkzk/leetCode | d32e081cab2f772fc7b33056e228eb3709cb19f2 | 990019bf9eca7f619f69fe1157d7a0488f8a83c6 | refs/heads/master | 2021-01-10T11:47:44.846832 | 2020-09-14T07:14:01 | 2020-09-14T07:14:01 | 55,280,051 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,159 | cpp | 226_invertBinaryTree.cpp | #include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <bitset>
#include <stack>
#include <map>
using namespace std;
/************************************************************************/
/*
* Invert a binary tree.
*
* 4
* / \
* 2 7
* / \ / \
* 1 3 6 ... |
3646be4989cfdd08e422f6d189ab310fbfefd79b | 3cc352b29b8042b4a9746796b851d8469ff9ff62 | /src/kmer_freq/FindKmerFrequencies.cc | 61d3e6f209a72966f0c6e5020a4dc3bacb391978 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | CompRD/BroadCRD | 1412faf3d1ffd9d1f9907a496cc22d59ea5ad185 | 303800297b32e993abd479d71bc4378f598314c5 | refs/heads/master | 2020-12-24T13:53:09.985406 | 2019-02-06T21:38:45 | 2019-02-06T21:38:45 | 34,069,434 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,795 | cc | FindKmerFrequencies.cc | /////////////////////////////////////////////////////////////////////////////
// SOFTWARE COPYRIGHT NOTICE AGREEMENT //
// This software and its documentation are copyright (2008) by the //
// Broad Institute/Massachusetts Institute of Technology. All rights //
// are... |
0be7132dac853da5b4eeccdbc3158c2420b51407 | 98f1a0bfa5b20a0b81e9e555d76e706c62d949c9 | /src/array/cpu/traversal.h | b593332746c192151126d36b5976e2c21b362d22 | [
"Apache-2.0"
] | permissive | dmlc/dgl | 3a8fbca3a7f0e9adf6e69679ad62948df48dfc42 | bbc8ff6261f2e0d2b5982e992b6fbe545e2a4aa1 | refs/heads/master | 2023-08-31T16:33:21.139163 | 2023-08-31T07:49:22 | 2023-08-31T07:49:22 | 130,375,797 | 12,631 | 3,482 | Apache-2.0 | 2023-09-14T15:48:24 | 2018-04-20T14:49:09 | Python | UTF-8 | C++ | false | false | 10,056 | h | traversal.h | /**
* Copyright (c) 2020 by Contributors
* @file array/cpu/traversal.h
* @brief Graph traversal routines.
*
* Traversal routines generate frontiers. Frontiers can be node frontiers or
* edge frontiers depending on the traversal function. Each frontier is a list
* of nodes/edges (specified by their ids). An opti... |
50c199d275c7325240022357eaa300894f29f54f | 3d3080ad2cb363065cc2bc2871403069cd2fe2e4 | /Competitive Programming/Musical Chairs/main.cpp | 4222f1af637b10fa47ac381d572afaccc2a56fb3 | [] | no_license | Jacky-He/Competitive-Programming | e741fe79e3adcf0e7286fec49294effa2439b006 | 74050876175cfba7cc0274fef15d070bc80f771c | refs/heads/master | 2020-11-24T17:27:13.033791 | 2020-01-03T18:36:16 | 2020-01-03T18:36:16 | 228,261,428 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,086 | cpp | main.cpp | #include <bits/stdc++.h>
using namespace std;
int n, k;
int empty, student;
int state [1000003]; //-1: empty, 0: nothing: 1: student
stack <int> students;
int lookup [1000003];
int studentcnt;
int main ()
{
scanf ("%d%d", &n, &k);
studentcnt = k + 1;
for (int x = 0; x < k; x++)
{
scanf ("%d", ... |
67fdbc5a6de8f787cb530b4fb1f1e57da7f9b4c2 | e75b113f11669324d51faf879ab562357c929d08 | /game/src/mge/behaviours/PlayerBehaviour.cpp | 957b87b9209ea16112374afb7a9205c12cda0b7b | [] | no_license | jeremy-coleman/HastyHarry | 0524d4538b14c2545e909c7d75b5d17143358712 | f44010e5dfcd616a9333520a804b879e79e7520c | refs/heads/master | 2021-05-30T17:25:50.413870 | 2016-03-18T01:19:48 | 2016-03-18T01:19:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,518 | cpp | PlayerBehaviour.cpp | #include <typeinfo>
#include "mge/behaviours/PlayerBehaviour.hpp"
#include "mge/behaviours/SoundBehaviour.hpp"
#include "mge/core/GameObject.hpp"
#include "mge/core/Camera.hpp"
#include <sfml/window/event.hpp>
#include <iostream>
#include "..\..\include\tokamak.h"
#include <glm/gtx/matrix_decompose.hpp>
#include <SFML... |
b607772b8e74727ad5830914a6e42172d0554238 | 4145500714b175cd40f6ecbd215635b5b859241f | /engine/XEffeEngine/XMedia/XMicrophone.h | 161c6e3dbb5424981cfa40f04d91568da432dab8 | [] | no_license | QiangJi/XEffect2D | 3fbb1e5f1a3a7c94f9d1ab3abb57943fa9da7b62 | bf7224542d8bb48de19b15a0b06a094bc78bd9f5 | refs/heads/master | 2020-12-13T12:52:53.945387 | 2014-04-22T08:45:37 | 2014-04-22T08:45:37 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,118 | h | XMicrophone.h | #ifndef _JIA_XMICROPHONE_
#define _JIA_XMICROPHONE_
#include "al.h"
#include "alc.h"
#include "stdlib.h"
#include "XBasicFun.h"
//++++++++++++++++++++++++++++++++
//Author: 贾胜华(JiaShengHua)
//Version: 1.0.0
//Date: 2013.3.15
//--------------------------------
//下面是一个关于录音设备的类 基于OpenAL
enum _XCaptureState
{
CAPTURE_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.