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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
91e125143a3a20f80ec509516e86b81db752ef9b | 1228f8cce666e58647a322170f3b252590b37c4d | /stan_test/test.cc | c156db773e493acc007b8840e5e12a3383b556f1 | [] | no_license | andersdot/shoderivz | c8e23c86b3ac763f976824a8a38bdd01a9083cc2 | 36647d8d61583ac5d675dfdfdfdaab1d97dd4985 | refs/heads/master | 2021-06-17T15:42:10.278731 | 2021-01-15T20:17:28 | 2021-01-15T20:17:28 | 143,882,756 | 0 | 1 | null | 2018-10-01T20:58:37 | 2018-08-07T14:11:14 | Jupyter Notebook | UTF-8 | C++ | false | false | 1,503 | cc | test.cc | #include <iostream>
#include <stan/math.hpp>
#include <stdexcept>
#include <vector>
struct sho_ode {
template <typename T0, typename T1, typename T2>
inline std::vector<typename stan::return_type<T1, T2>::type>
// initial time
// initial positions
// parameters
// double data
// integer data
operator(... |
ba6dc7bd1398dcc4442ac52e744c94fb392cb91d | 2955547cad5ffa9c386a77aa4901d0a00efeef5a | /ClientServer/build-Client-Desktop_Qt_5_12_3_MinGW_32_bit-Debug/ui_mainwindow.h | 34f9ba4f5f024478a5921cc67aa6e9f5761e4156 | [] | no_license | Facassanxt/QT | 50be6a647b4ea69b56d590b69ffcc96ce4179117 | 2d267506e5a4ab26c2d059bf6d0d0a18b64f6fe7 | refs/heads/master | 2022-11-23T04:15:21.576438 | 2020-07-21T08:35:56 | 2020-07-21T08:35:56 | 281,335,965 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 41,741 | h | ui_mainwindow.h | /********************************************************************************
** Form generated from reading UI file 'mainwindow.ui'
**
** Created by: Qt User Interface Compiler version 5.12.3
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
*********************************... |
f7283dc440f05d92bacfdfed6e1a35d7077d11f4 | dec93ac0f633a804362fc2429678ba9c0251712f | /HW10/Point.h | 518c3f12759c2bea3cf4507cfe2b044f2afbcf9c | [] | no_license | viktoria2506/cpp-itmo | 9353ee4ec9f2e0c903ab850293e77fe0f9d7a770 | 184bda74d85cd2a49db236968729433907862508 | refs/heads/master | 2021-10-24T12:00:12.578769 | 2019-03-25T23:13:36 | 2019-03-25T23:13:36 | 177,664,605 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 498 | h | Point.h | //
// Created by vikac on 20.01.2019.
//
#ifndef HW10_POINT_H
#define HW10_POINT_H
class Point {
public:
explicit Point(double x = 0, double y = 0) : x(x), y(y) {};
double getX() const { return x; }
double getY() const { return y; }
bool operator<(const Point& p) const {
return ge... |
cf5ae5d3705033556395189e88d1c760cd648478 | 2ebdb85fdd3160d31fe19e6644b5c8bd0a72f49e | /test/SphericalCoordinateTest.cpp | 61e3e7f70549237f93eac1cf66d448dfbfb57510 | [] | no_license | XuRongYan/ModelGeneratorBasedOnSketch | af8726173b6a57661acbe16001292dd2edb77a25 | b828935137e37b3fd1b423eb7bae0b03075d5537 | refs/heads/master | 2022-03-04T18:59:58.828836 | 2019-11-14T08:02:48 | 2019-11-14T08:02:48 | 214,182,331 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,936 | cpp | SphericalCoordinateTest.cpp | //
// Created by 徐溶延 on 2019/9/9.
//
#include <Eigen/Core>
#include <Eigen/Dense>
#include <gtest/gtest.h>
#include "../spherical_harmonic/ContourSphericalCoordinate.h"
#include "../spherical_harmonic/MeshSphericalCoordinate.h"
#include "../spherical_harmonic/TriangulationSpericalCoordinate.h"
#include "../io/MeshIO.h... |
8a2795c342e14bb0a439a40257f9adf0232ef3d8 | eafae6e88ae9c25a11a218414e4e80a73de8deed | /Dependencies/Header/mysql/server/private/sql_show.h | 3d7a4d1146cedd6bc209ec6de5b2bb57d26385d3 | [
"GPL-2.0-only",
"Apache-2.0"
] | permissive | GabrielLins64/SimpleERP | 12fdc969a8bf1a211cc48b62fac10ec601eec8c1 | 8a25bdab32bd58a866f429b7f541e0e0617ef2e1 | refs/heads/main | 2023-05-14T11:55:15.623120 | 2021-06-02T18:41:58 | 2021-06-02T18:41:58 | 373,289,684 | 0 | 0 | Apache-2.0 | 2021-06-02T20:05:27 | 2021-06-02T20:05:26 | null | UTF-8 | C++ | false | false | 9,607 | h | sql_show.h | /* Copyright (c) 2005, 2010, Oracle and/or its affiliates.
Copyright (c) 2012, 2016, MariaDB
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; version 2 of the License.
This program is ... |
6c0cbe6d57cf1ba38a8f4728f7c5b8168ea6b295 | 27b6db2b06406e8c03b68e3e21734dbb5352205c | /c18/src/Cuboid.cpp | d00fa4500197719175199ac24e78504234867e1c | [] | no_license | kuniyoshi/chapter18 | 53144e1c23aec9b92b85319f454917ac704ea35f | f04b3ed65bfca33760b40362e360cfa33dddf67d | refs/heads/master | 2021-01-01T05:24:32.442360 | 2016-04-15T06:32:11 | 2016-04-15T06:32:11 | 56,276,902 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,259 | cpp | Cuboid.cpp | #include "Cuboid.h"
#include "GraphicsDatabase/Vector3.h"
using GraphicsDatabase::Vector3;
namespace
{
const int InternalRange = 1000;
} // namespace -
Cuboid::Cuboid()
: balance_x_(0), balance_y_(0), balance_z_(0),
half_x_(0), half_y_(0), half_z_(0)
{}
Cuboid::Cuboid(const Cuboid& base)
: balance_x_(base... |
3a5409444674803a67564f27cb82d224f53cf33a | de1b9e5ebf35324b501add2c7f01b36a7246e6ea | /CPP/sqrt_rounded_to_nearest_int.cpp | 2646d9fbf8dd56e360f9fe2425381bce06dc2208 | [] | no_license | ishanmazhar/prog-prob-solving | f0993703ade0f91d875e94ae905505eab28e713e | eda361854a9bccd577cd16502a4d08577b0938c9 | refs/heads/master | 2023-06-27T23:44:46.196283 | 2021-07-30T08:29:30 | 2021-07-30T08:29:30 | 390,990,442 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 184 | cpp | sqrt_rounded_to_nearest_int.cpp | #include <iostream>
#include <cmath>
using namespace std;
int main() {
double x;
cin >> x;
cout << "The nearest int of the square root is " << round(sqrt(x)) << endl;
return 0;
}
|
be59f38dec819887edb6dd3a239eb7191e2ddf79 | 2b282fb3219251277c5a84e43b5d9827680ab200 | /2840.cpp | 465d96a0f0c50f794d8c44afc3a4631d53c031a6 | [] | no_license | MatheusMilan/URI-Online-Judge | 4cdc658737c6eea2d5f30fc557deae903adab366 | ef440044c3dd5435c80a6c45cc6f27ea1dcc44a0 | refs/heads/main | 2023-01-12T15:11:59.971428 | 2020-11-21T12:32:57 | 2020-11-21T12:32:57 | 314,798,562 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 213 | cpp | 2840.cpp | #include <stdio.h>
#include <math.h>
int main() {
int R,L;
double v;
scanf("%d %d",&R,&L);
v=(4.0/3.0)*(3.1415*(pow(R,3)));
v=floor(L/v);
printf("%.0f\n",v);
return 0;
}
|
aa74b40ee38cb42c87c53f03ec12fbe0058e9311 | 586d140f0102c1961f3c86045f5750b6f244b055 | /Source/SideOp/Classes/HUD/SideOpHUD.h | b01fae35c355ef0d670f6592558d56ff8d68e5b1 | [] | no_license | DaedalusProspect/SideOp | 0e879d5a691716cb84edf1acd3e22185cc8a13bd | 7d5dc2f7aece86284bb2c418e21bf61955197585 | refs/heads/master | 2021-01-02T08:52:25.657512 | 2015-07-29T02:05:08 | 2015-07-29T02:05:08 | 33,493,968 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 271 | h | SideOpHUD.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "GameFramework/HUD.h"
#include "SideOpHUD.generated.h"
/**
*
*/
UCLASS()
class SIDEOP_API ASideOpHUD : public AHUD
{
GENERATED_BODY()
};
|
7a26b0ea017d67e133a5a8e5d9f0af780416ee48 | ae31542273a142210a1ff30fb76ed9d45d38eba9 | /src/backend/gporca/libnaucrates/src/operators/CDXLScalarSubqueryQuantified.cpp | 06b552e64e0856b04dfac3dd6b8981b2072788f3 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"PostgreSQL",
"OpenSSL",
"LicenseRef-scancode-stream-benchmark",
"ISC",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-ssleay-windows",
"BSD-2-Clause",
"Python-2.0"
] | permissive | greenplum-db/gpdb | 8334837bceb2d5d51a684500793d11b190117c6a | 2c0f8f0fb24a2d7a7da114dc80f5f5a2712fca50 | refs/heads/main | 2023-08-22T02:03:03.806269 | 2023-08-21T22:59:53 | 2023-08-22T01:17:10 | 44,781,140 | 6,417 | 2,082 | Apache-2.0 | 2023-09-14T20:33:42 | 2015-10-23T00:25:17 | C | UTF-8 | C++ | false | false | 3,563 | cpp | CDXLScalarSubqueryQuantified.cpp | //---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2012 EMC, Corp.
//
// @filename:
// CDXLScalarSubqueryQuantified.cpp
//
// @doc:
// Implementation of quantified subquery operator
//--------------------------------------------------------------------... |
6b18b472a3649bfdcc7c7bc8a8b517516f862f20 | f7fa487f1872352781372611e3322d494de569da | /linux ADO 数据库代码/MyDB.cpp | d34375bc5bc3c3956f2c6c388a606a7af7c7f458 | [] | no_license | rainhenry/CodeNote | 151494aa5069d49ccf27112c8fc791a1c355bc5c | ba55ca15ee003aa2a02ffae7563629907a831333 | refs/heads/master | 2023-07-02T03:51:23.163637 | 2021-08-07T17:16:32 | 2021-08-07T17:16:32 | 393,670,260 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,053 | cpp | MyDB.cpp | /*************************************************************************
> File Name: MyDB.cpp
> Author: SongLee
> E-mail: lisong.shine@qq.com
> Created Time: 2014年05月04日 星期日 23时37分08秒
> Personal Blog: http://songlee24.github.io
***********************************************************************... |
13f4c1c47665b4c7abbb6ac4ab15495b6b333d5f | 9de32079256a0a052087c60baa4f23c7387ef249 | /src/networkinterfacefrontendbase.cpp | 425ccf274b899c2ab90e1157877f750ade28b4a3 | [
"MIT"
] | permissive | drcfts/SystemC_RISC-V | 69710dfc3e4a1fa7bbae8c1759fabebe0d76dd6a | 3d35d752d57405d5a0b55e09d1143e0f43a90887 | refs/heads/master | 2021-01-25T09:32:25.572964 | 2017-07-08T14:40:15 | 2017-07-08T14:40:15 | 93,849,004 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,698 | cpp | networkinterfacefrontendbase.cpp | #include "networkinterfacefrontendbase.h"
NetworkInterfaceFrontEndBase::NetworkInterfaceFrontEndBase() :
_payloadDst(0),
_payloadSrc(0),
_ack((std::string(SC_KERNEL_EVENT_PREFIX)+"NIShellBase_ack").c_str()),
_valid((std::string(SC_KERNEL_EVENT_PREFIX)+"NIShellBase_valid").c_str()),
_ackFlag(false),... |
7460fe13d2837fa2e1e5e054add4953e814139f7 | 7d558e68292c1b6345e6f0af1f14927a60367718 | /IDPUI/CZToolBar.h | 5a48ee5633cc1497a59e18cb86f69223faa0df1a | [] | no_license | veinyyxy/IDP_OLD2 | e8c15c8cc0d0be62ea7c359b46b5285616ba2da1 | 4dbd439f5d01a78eb10a3da5792d609d0950ae2b | refs/heads/master | 2022-12-19T19:19:31.823314 | 2020-09-28T05:24:17 | 2020-09-28T05:24:17 | 299,151,464 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 503 | h | CZToolBar.h | #ifndef CZTOOLBAR_H
#define CZTOOLBAR_H
#include <QtGui>
#include "ui_CZToolBar.h"
#include "idpui_global.h"
#include "IDPdb.h"
class MainWindow;
class IDPUI_EXPORT CZToolBar : public QToolBar
{
Q_OBJECT
public:
CZToolBar(QWidget *parent = 0);
~CZToolBar();
public:
void LoadData(QString fileName);
private:
voi... |
3c87b00f2583999075a779c51868ec90e6a7ba54 | 29beae3644979feda8969c63ceefdd0ac586ca2d | /spanner/polygon.h | ece0c41792f6d68fef078788a3f54ae6cf459cd6 | [] | no_license | luccasiau/cpsc448 | a956654f7637526069a9e050dcb8ac79ceb80eb1 | 6283dc80be97225f1e634dc47d961de59a06659d | refs/heads/master | 2020-12-14T18:22:25.421327 | 2020-04-21T00:34:12 | 2020-04-21T00:34:12 | 234,837,910 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 977 | h | polygon.h | #include <cmath>
#include <vector>
using namespace std;
typedef long double ld;
class Point {
public:
ld x, y;
Point(ld x_=0, ld y_=0): x(x_), y(y_) {}
static ld dist(Point p, Point q);
};
class SpannerGraph {
public:
int n;
int numEdges;
SpannerGraph(vector<Point> p);
void ... |
7da95985654b0159fff5dcb7c10d35d6e60540d0 | 4fdd91f9c7bd4d61eaa65b48ecedb3faafd4ee9a | /Volatile Database/Volatile Database/Game.cpp | 37c6f2cff2ac10b1414ae0b179d85df71e6fc29a | [] | no_license | jobtolmop/Volatile-Database | 76c864f89380071ad358e7ec730dc25be017c82c | f4db7200f661cc2d8116f37bcb4f38d61e84dac6 | refs/heads/master | 2020-08-31T02:09:10.944021 | 2019-10-30T15:04:59 | 2019-10-30T15:04:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 99 | cpp | Game.cpp | #include <iostream>
#include "Game.h"
void Game::StartGame()
{
std::cout << "it works";
}
|
6d2c80aae97c5aca5040643b9a9ed7613c3de225 | 01a42b69633daf62a2eb3bb70c5b1b6e2639aa5f | /SCUM_Skewer_Vegetables_functions.cpp | fc09ee7e5a9373f11c36bed45f81d5617fced00e | [] | no_license | Kehczar/scum_sdk | 45db80e46dac736cc7370912ed671fa77fcb95cf | 8d1770b44321a9d0b277e4029551f39b11f15111 | refs/heads/master | 2022-07-25T10:06:20.892750 | 2020-05-21T11:45:36 | 2020-05-21T11:45:36 | 265,826,541 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,919 | cpp | SCUM_Skewer_Vegetables_functions.cpp | // Scum 3.79.22573 (UE 4.24)
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace Classes
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function ConZ.FoodItem.OnR... |
2c45d299ef6592317cc103d99064c383bec137ef | b380d77a3fbf00404f6bdd28bd605e0df255ac56 | /My_Solid_Proj/EngineInclude/EngineGenerated/rigidBody.sld.hpp | e3192cf766ea60dc4bfe2401015f5b71b9dc223b | [
"MIT"
] | permissive | SolidTeamDev/SolidEngine | 6fc3074c4a83a140698617edb864d1e67fbbdad3 | 63f61a34db7604081ed82894a5eac4c33607d94f | refs/heads/master | 2023-05-27T09:48:05.073017 | 2021-06-14T09:22:42 | 2021-06-14T09:22:42 | 270,995,069 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,728 | hpp | rigidBody.sld.hpp | #pragma once
/**
* Source file: D:\Project\SolidEngine\SolidEngine\Include\ECS\Components\rigidBody.hpp
*/
#include "EntityMacros.h"
#include <Refureku/Misc/DisableWarningMacros.h>
#include <Refureku/TypeInfo/Namespaces/Namespace.h>
#include <Refureku/TypeInfo/Namespaces/NamespaceFragment.h>
#include <Refureku/TypeI... |
f409e0abef074d83701172a9708fe10eb5677aff | 2ddfba5d2ad9c28e99d5c55ebf529cf70bced034 | /buylow/buylow.cpp | 00dd4d39ae7fe37143939826e06cf118b11f9524 | [] | no_license | SanD94/USACO | 9b59dc17ac7cf4ed60a300c3af3d34dc679207b6 | 42cec4a11e7ac1837c39c951fde1c0f6b8e5a03c | refs/heads/master | 2021-01-21T04:37:19.248925 | 2019-10-01T12:18:10 | 2019-10-01T12:18:10 | 37,533,047 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,470 | cpp | buylow.cpp | /*
ID: safaand1
PROG: buylow
LANG: C++11
*/
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
#define max(a,b) a>b?a:b
#define min(a,b) a<b?a:b
ifstream fin("buylow.in");
ofstream fout("buylow.out");
string sum(string a, string b){
string res = "";
int a_len = a.length();
int... |
d97a16ddcbe67e721e9914d59be684d81ca0a1af | 2952219d4db6d181e815b5a58344e19428d6b745 | /src/main.cpp | 04852358b7ca01a221b21202654c8fc47386387b | [] | no_license | BuzzVII/PointViewer | df82c589bc18262196f8aa4e15206a8e65982e2f | a79193876b2ad8405beec2b922427510b8563242 | refs/heads/master | 2020-05-13T18:47:34.583175 | 2018-10-14T11:07:11 | 2018-10-14T11:07:11 | 12,083,854 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,879 | cpp | main.cpp | #include <math.h>
#include <time.h>
#include <iostream>
#include <string>
#include <vector>
#include <fstream>
#include <algorithm>
#include "load_points.h"
// open gl includes
#include <GL/glfw.h>
//PointViewer version 0.2
void resetPoints(Points *pPset, double *pDims);
void resetPoints(Points *pPset, double *pD... |
3421a208f7c47836a2474ee112b8554f7ef18633 | 715b6e5edbd097ced1354f8d385a053ab412de4f | /S01602AW-test.ino | 8425fced33b21b201cce23c6103c08e2519a697b | [
"MIT"
] | permissive | yoggy/S01602AW-test | 4ab0cdc4233bf0ec593028dfeeaf767944cec38a | 099ebcf539b36670e010f0741e7d0866f8e44524 | refs/heads/master | 2021-01-12T05:00:28.451504 | 2017-01-03T07:48:30 | 2017-01-03T07:48:30 | 77,827,112 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 688 | ino | S01602AW-test.ino | //
// S01602AW-test.ino - a sample sketch for for SO1602AWWB, SO1602AWGB, SO1602AWYB
//
// OLED Character Display Module 16x2
// http://akizukidenshi.com/catalog/g/gP-08277/ (White)
// http://akizukidenshi.com/catalog/g/gP-08276/ (Green)
// http://akizukidenshi.com/catalog/g/gP-08278/ (Yellow)
//
// license:
// ... |
3ba2a62074119ceaf1c9f2801bd0b2f84a59b013 | e5c753ab5204897919a934c4184e874b39f14530 | /Undergrad/Second Year/Compilers/Project/parser/symbol.cpp | e81dfb0bac9caa13b92791484c82c0fd2c024ff4 | [] | no_license | adechan/School | bcb7a50ec0c21c4362495c0e0746ab4a6e79cba8 | 975da492704111a47f50f9f75ccaf2a023f9e8fc | refs/heads/master | 2021-06-09T16:00:21.764181 | 2021-05-11T06:58:07 | 2021-05-11T06:58:07 | 106,673,346 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 216 | cpp | symbol.cpp | #include "symbol.hpp"
namespace parser
{
symbol::symbol(const lexer::token& token, parser::type type)
: token_(token)
, type_(type)
{}
const std::string& symbol::text() const
{
return token_.text();
}
} |
902dba01010cc154f7db9f3b93006aa6486837b2 | a7f3bd7e33edd82c41d8bc5b0d81f66777ef2a6f | /tile.h | 636f1524b683cc03b1f6c2e19a3f74b6d5d0e6d7 | [] | no_license | joemac875/cursed-realms | 385ebc852b1ce6a7372dcf7d89f8d59a980abcaf | c7cb455714efcf937bbb089c1e3525cf3d7c07a4 | refs/heads/master | 2020-05-25T01:36:15.873236 | 2019-05-30T16:02:20 | 2019-05-30T16:02:20 | 187,559,980 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,348 | h | tile.h | #ifndef TERRAIN_H // include guard
#define TERRAIN_H
#include "FastNoise.h"
#include <curses.h>
#include <vector>
#include <time.h>
#include "settings.h"
#include "resource.h"
#include <string>
/* used to use the same noise generator to
get different values at the "same" spot */
#define NOISE_GEN_OFFSET 9000
using n... |
87a04babfab68d6519dce6729d54e0d12dd4e9ca | 31a00f317d9d3fdb80ee70256ab00191652d166f | /BuyuSources/ServerCore/SourceCode/GameServer/FishLogic/FishScene/FishMap.cpp | 8ac127be8e4e14ca5eb792c85957833370c20aab | [] | no_license | guojia2017/Fish | 17aa7438004197a797f3ff95253540ab2896f1c4 | 1bc98d96fb1f1685e041ee4a4b76de2f9c0331a3 | refs/heads/master | 2021-01-19T09:48:34.011324 | 2017-04-11T03:42:03 | 2017-04-11T03:42:03 | 87,787,390 | 4 | 4 | null | null | null | null | GB18030 | C++ | false | false | 14,058 | cpp | FishMap.cpp | #include "stdafx.h"
#include "FishMap.h"
#include "Crc32.h"
#include "tinyxml2.h"
#include "Random.h"
#include <algorithm>
#include "FishResManager.h"
FISHMAP FishMap::ms_AllMapList;
#include <vector>
#include <string>
using namespace tinyxml2;
#define LAST_COUNT 5
struct FindXMLData
{
wstring fileName;
wstring path;... |
ec578503da31e2cf2b5b19e015b65a7319b92544 | 2dbfc4dd5e03abae36c170484299654f79f7f580 | /Surrounded Regions.cpp | e349c7a9054b4d16e8c749df97e830bc0dddc952 | [] | no_license | MarcosFelipeBC/LeetCode-Solutions | aab03f9a02ce7983ac4b0538c87d2407bdddfce9 | 67602af597997fe11fb5afbf6fc7ec5f8f8cd2aa | refs/heads/master | 2020-07-07T04:46:56.410148 | 2020-04-18T17:43:39 | 2020-04-18T17:43:39 | 203,253,746 | 1 | 1 | null | 2020-04-18T17:51:14 | 2019-08-19T21:36:42 | C++ | UTF-8 | C++ | false | false | 1,412 | cpp | Surrounded Regions.cpp | //https://leetcode.com/problems/surrounded-regions/
class Solution {
public:
vector < vector < bool > > vist;
int n, m, dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0};
bool check(int x, int y){
return (x >= 0 && x < n && y >= 0 && y < m && !vist[x][y]);
}
void propagate(vector ... |
ea06bb3e32510fe8ff443701bb491192fc8bf25f | 0d4d9fbd57e4ca666bd8eb7923aba08d5f669121 | /src/downToZero2.cpp | c356c33fcab742a602ec7fafde399f0743582cf6 | [] | no_license | TMBear/prep | e8c0aac78aa75dfb1da13cb67953d03406903d7d | b4690fe80558f03d370af6b8c7c8c43b6320beb2 | refs/heads/master | 2020-07-31T15:15:54.778274 | 2020-03-03T03:15:25 | 2020-03-03T03:15:25 | 210,650,033 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,670 | cpp | downToZero2.cpp | //////////////////////////////////////////////////////////////////////////////////////////////////////
// https://www.hackerrank.com/challenges/down-to-zero-ii/problem
//
#include <iostream>
#include <vector>
class DownZero {
const int c_maxVal;
public:
DownZero(const std::size_t maxVal);
void initialize();
... |
399d1650a1c0cc1df0858867ad5990a65c672ba8 | 0deeaaed18f11b60908135964758dd715434e92c | /ctp2_code/ui/slic_debug/sourcelist.cpp | 7486b0c7e2e270c797d79b71dd6920347fc729a5 | [] | no_license | civctp2/civctp2 | 0a8deaf7f525cfff2ec5bab99f015b0ba52cf11b | 67532c1338ad8c0f8e943a6e04633782543fa06a | refs/heads/master | 2023-09-04T12:44:38.436220 | 2020-09-27T15:05:43 | 2023-03-02T02:31:57 | 152,506,474 | 66 | 22 | null | 2023-09-03T21:20:51 | 2018-10-11T00:20:01 | C++ | ISO-8859-3 | C++ | false | false | 13,350 | cpp | sourcelist.cpp | //----------------------------------------------------------------------------
//
// Project : Call To Power 2
// File type : C++ source
// Description : Slic source list
// Id : $Id$
//
//----------------------------------------------------------------------------
//
// Disclaimer
//
// THIS FILE IS... |
fba4c2690c9d7f6581dacdf1b8aac7c6feeff3e3 | bb90ad20468f9fe2039b8c16858bd8eae8bbc050 | /src/endpoints/authentication/cose_auth.cpp | acd9a755d7526af45164e66226980855412d3867 | [
"Apache-2.0"
] | permissive | microsoft/CCF | 0997fd81a924d36d775b219720b26b4ff196b18a | 2fbf87840b9e8334c141f4a9c9b25aae979b0540 | refs/heads/main | 2023-09-05T15:39:37.265089 | 2023-09-05T15:27:25 | 2023-09-05T15:27:25 | 180,112,558 | 687 | 229 | Apache-2.0 | 2023-09-14T14:28:39 | 2019-04-08T09:13:04 | C++ | UTF-8 | C++ | false | false | 15,487 | cpp | cose_auth.cpp | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache 2.0 License.
#include "ccf/endpoints/authentication/cose_auth.h"
#include "ccf/crypto/cose_verifier.h"
#include "ccf/crypto/public_key.h"
#include "ccf/http_consts.h"
#include "ccf/rpc_context.h"
#include "ccf/service/tables/mem... |
44b9532ab331860c6c5216ff3d3f95cf9b37dbdf | ae089e025211d289a99ca2acab9f9aa77d0908ce | /include/couchdb/export.hpp | 81adc718775d319dbf5445ea8f8b0d59353eaae9 | [
"BSL-1.0",
"Apache-2.0"
] | permissive | greenjava/couchdbpp | aeab479ba4f46b68e40bca1131ef498c93e9e8e2 | 69743a1bbef2c7630b8ce4dc65d005f1e688dfb5 | refs/heads/master | 2020-07-02T02:35:51.384272 | 2013-03-07T09:05:23 | 2013-03-07T09:05:23 | 8,608,157 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 767 | hpp | export.hpp | #ifndef __COUCH_DB_CONFIG_HPP__
#define __COUCH_DB_CONFIG_HPP__
#ifdef _WIN32
#ifdef COUCHDB_EXPORTS
#define COUCHDB_API __declspec(dllexport)
#else
#define COUCHDB_API __declspec(dllimport)
#endif
#define COUCHDB_CLASS_API
#elif defined(__GNUC__) && (__GNUC__>=4) && defined(__USE_DYLIB... |
e9650b3a6a5019a10bff3991cd3a373304892d72 | ca602ac81a00ad82d539519502d764180ae57ba9 | /Num17_std_invoke.cpp | 21d984f77ee931fc909e1f92508f7fa379d85b78 | [] | no_license | jpiccoli/Cpp_Weekly | 8b6251b367fe2399754cddf443c29c86204f0116 | d640ab43c18c4ecdd81eb494d5daf75d886a9b0e | refs/heads/master | 2021-09-17T09:29:14.602062 | 2018-06-30T01:40:52 | 2018-06-30T01:40:52 | 110,934,144 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 811 | cpp | Num17_std_invoke.cpp | #include <iostream>
#include <functional>
int do_something(const int i)
{
return 5 + i;
}
struct S
{
int j = 5;
int do_something(const int i)
{
return j + i;
}
int do_something_2(const int i)
{
return j * i;
}
};
int main()
{
std::cout << std::invoke(&do_something, 5) << "\n";
S s;
st... |
6da3efedbce0303b3fc1edcf196e870fb5284fb1 | 3a4762368701494deabe35407dee73880dd09c0b | /dht_temp_sensor/dht_temp_sensor.ino | 81d0751abc5c24318ae5ef7d7db62a12f654fa91 | [
"Unlicense"
] | permissive | Pohjois-Tapiolan-lukio/arduino-projects | 1843e5ce8128fa22e9e86f5144c74a643fb55b54 | 410942e0b08989635481c85d009df141f30994b2 | refs/heads/master | 2022-01-07T13:01:23.327230 | 2019-06-05T03:26:25 | 2019-06-05T03:26:25 | 106,404,874 | 3 | 2 | null | 2018-02-27T18:24:57 | 2017-10-10T10:52:51 | C++ | UTF-8 | C++ | false | false | 2,929 | ino | dht_temp_sensor.ino | /* Tässä on erikseen ladattavat kirjastot:
* - FirebaseArduino: https://github.com/firebase/firebase-arduino
* - Adafruit BMP085: https://github.com/adafruit/Adafruit-BMP085-Library
* - DHT: https://github.com/adafruit/DHT-sensor-library
* - Adafruit Unified Sensor: https://github.com/adafruit/Adafruit_Sensor
* - ... |
f13e4f2bd2bc6c794c6c630b3f7d860069045a11 | 69d41528d52112e4681322a793015768c27a29d1 | /IcaroLib/Matrix.cpp | aa20cc4bff885556d3c812d2ff5e17905a246c67 | [] | no_license | icaromanfrinni/Convex_Hull_and_Delaunay_Triangulation | 079d7245b7018437879821894f830f2fc51602b5 | c5f079880ccfff4e290bbc9537f363850fee311d | refs/heads/master | 2020-07-12T08:37:52.370884 | 2019-08-29T06:40:44 | 2019-08-29T06:40:44 | 204,767,606 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,008 | cpp | Matrix.cpp | #include <iostream>
#include <stdlib.h>
#include <iomanip>
#include <cmath>
#include "Matrix.h"
using namespace std;
//DEFAULT CONSTRUCTOR
Matrix::Matrix()
{
sizeR = 0;
sizeC = 0;
for (int i = 0; i < MAX; i++)
for (int j = 0; j < MAX; j++)
e[i][j] = 0.0;
}
//OVERLOAD CONSTRUCTOR
Matri... |
741f06d08dd28277ade650f0e935603c1f2b01d8 | 793c8848753f530aab28076a4077deac815af5ac | /src/dskphone/ui/t48/talkui/src/ctalkframetopbar.cpp | 7f3b213a23a5e4dc92dc06395abbebed3ee49599 | [] | no_license | Parantido/sipphone | 4c1b9b18a7a6e478514fe0aadb79335e734bc016 | f402efb088bb42900867608cc9ccf15d9b946d7d | refs/heads/master | 2021-09-10T20:12:36.553640 | 2018-03-30T12:44:13 | 2018-03-30T12:44:13 | 263,628,242 | 1 | 0 | null | 2020-05-13T12:49:19 | 2020-05-13T12:49:18 | null | UTF-8 | C++ | false | false | 3,511 | cpp | ctalkframetopbar.cpp | //mod-this(TalkUI)
#include "ctalkframetopbar.h"
//mod-UIKernel
#include "qtcommon/qmisc.h"
#include "baseui/fontcolor.h"
#include "customtheme/modcustomtheme.h"
#include "uikernel/languagehelper.h"
#include "uikernel/qwidgetlist.h"
#include "uikernel/qwidgetutility.h"
#include "uikernel/qdatetimelabel.h"
// mod-Main... |
bfbe12cc840fa0319fd0e961a76f1f6c0e958582 | 6887ae9cae51dc646e0e51ef81a8fec6a7addbc0 | /libstacker/src/focas.cpp | aa537b41a698a3fbda0f6e84adfb743feacee994 | [
"MIT"
] | permissive | JoeAndrew/OpenSkyStacker | d93c6131aeea10c47eeb6ae2bb3c2dd4a2282510 | d55b4b5bbfdffa893410f3ddc594848847f6d0e5 | refs/heads/master | 2022-11-05T04:54:19.776152 | 2020-06-20T16:40:42 | 2020-06-20T16:40:42 | 273,366,286 | 0 | 0 | MIT | 2020-06-19T00:15:36 | 2020-06-19T00:15:35 | null | UTF-8 | C++ | false | false | 11,572 | cpp | focas.cpp | #include "focas.h"
using namespace openskystacker;
std::vector<Triangle> openskystacker::generateTriangleList(std::vector<Star> List)
{
int nobjs = NOBJS;
if (List.size() < NOBJS) nobjs = static_cast<int>(List.size());
//ntriang = (nobjs - 2) * (nobjs - 1) * nobjs / 6;
std::vector<Triangle> List_tria... |
223f5757b28fcdef9bb200b72894d7994a5d536f | 9d61448272b9eafd5765357c3cd6d4162d297acd | /src/cube.cpp | 391cfb06ae5f6a5b92ae83a19c6ddd78a55b7a2d | [] | no_license | pandeyjames/RobotArm | 9af41bf846bbe7ab2dd758e56164fb2d22d294a0 | 82eb17f141eb7427682d44484ba92b047b989f4c | refs/heads/master | 2021-08-30T21:00:46.741007 | 2017-12-19T12:29:20 | 2017-12-19T12:29:20 | 113,297,980 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,889 | cpp | cube.cpp | #include "../include/cube.h"
Cube::Cube(){
width = 1.0f;
breadth = 1.0f;
height = 1.0f;
pos = GMlib::Point<float,3>(0.0f,0.0f,0.0f);
makeCube();
}
Cube::Cube(GMlib::Point<float,3>pos , float width, float breadth, float height){
this->width = width;
this->breadth = breadth;
this->height... |
7f62ea014fb5b6f71d54f00e2089fb49b25d7c3a | 9b3b3ffc842c038a296fd57ebb167269a96faf0e | /1102.cpp | b45910b6315b3c6f0085e94904ab6727fd554ee9 | [] | no_license | ee-lynn/PAT_test | 577cce79e482da60aab8e88fe167a4eff01d17f8 | 21a2576b7b9ee738ca0a0cbde18a5edffdc9f03e | refs/heads/master | 2021-06-30T03:02:01.937954 | 2017-09-18T02:22:14 | 2017-09-18T02:22:14 | 103,836,895 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,682 | cpp | 1102.cpp | #include <iostream>
#include <vector>
#include <algorithm>
#include <queue>
using namespace std;
typedef struct node
{
int key;
int left;
int right;
}node;
int NUM = 0;
void invert(vector<node>& BTree, int root)
{
if (BTree[root].left != -1)
invert(BTree, BTree[root].left);
if (BTree[root].right != -1)
invert(... |
0dfe1d462c888a4384620d68dc84a7a421e36c4a | 4db3777336ee57e24138eaae027d58e264939cba | /chapter5/exercises/exercise_5_3.cpp | 8c8af076dbd05791935a429bc2cb3f73fe93bb26 | [] | no_license | Canciller/tlpi | e502a5921d2a4df67213da22c98fb81e5265cdb9 | fe39494698648113feeb94eee1e2529a04142322 | refs/heads/master | 2020-09-24T10:51:58.882863 | 2019-12-28T01:06:13 | 2019-12-28T01:06:13 | 225,743,454 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 823 | cpp | exercise_5_3.cpp | #include <sys/stat.h>
#include <fcntl.h>
#include "tlpi_hdr.h"
int main(int argc, char *argv[])
{
if(argc < 2 || strcmp(argv[1], "--help") == 0)
usageErr("%s filename num-bytes [x]\n", argv[0]);
bool x = argc > 3;
size_t bytes = atoi(argv[2]);
int flags = O_CREAT | O_WRONLY | O_TRUNC;
if(... |
41b6084db8aad51e4eca399c1281fa6734d718ad | 1854667e41610358399e95fc326e0d308f79f9df | /GameClient/include/GameClient/main.cpp | d56796243ac24cbb304ae446c20171d6e9cb3071 | [] | no_license | 1aam2am1/RTS_GAME | c84e8a102635bdccbd91bc3b23b6b5663b162151 | d8df7df5949738f248d948ff49dd9703b726d9fd | refs/heads/master | 2023-03-24T06:38:55.735177 | 2021-03-26T13:59:07 | 2021-03-26T13:59:07 | 296,715,523 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,409 | cpp | main.cpp | #include <GameClient/Argv_options.h>
#include <GameApi/GlobalLogSource.h>
#include <Version/version.h>
#include <GameClient/Unity/Editor/Menu.h>
#include "MainWindow.h"
#include "FontLoader.h"
#include "GlobalStaticVariables.h"
#include <filesystem>
#include <GameClient/Windows/AssetWindow.h>
#include <GameClient/Unity... |
19db33973d46cfbbaddfcce725c1cac4742cdaa6 | dafbd21f473ecfc176f42e03bb5c2b302811ebd3 | /Mathlab/MathLabAddWidget.h | 03dd0187b8c55b553224b67872708ca9fafdd644 | [] | no_license | tsbraw/Mathlab | 811f50716eed32a14c7030bcf9c6e26d351290e0 | e1cf2a06edce1c621e728a6f1b8c72f3b157cf86 | refs/heads/master | 2023-06-04T14:27:24.668382 | 2021-06-14T12:41:15 | 2021-06-14T12:41:15 | 339,039,245 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 494 | h | MathLabAddWidget.h | #ifndef MATHLABADDWIDGET_H
#define MATHLABADDWIDGET_H
#include <QDialog>
#include "MathLabTypes.h"
namespace Ui {class MathLabAddWidget;};
class MathLabAddWidget : public QDialog
{
Q_OBJECT
public:
MathLabAddWidget(QWidget *parent = 0);
~MathLabAddWidget();
CourseInfoPtr GetCourseInfo();
void SetCourseInfo(C... |
dcb8e08f0830d2d20f66ffe4fd82a6c3d4554de5 | cb48413932dd202b7f2ac53542779b5732b22234 | /src/graphics/animation/blendop.h | b8bd97c6eb473d037b1449b6bacda0033c8a8dd7 | [] | no_license | mkkellogg/GTE | b80e119366b69303e48e1aadee9c06c60f133f09 | 5ddaca3b9ab6e7231775f2d0ac31840542d81724 | refs/heads/master | 2021-01-13T17:27:38.790833 | 2018-06-12T00:22:41 | 2018-06-12T00:22:41 | 22,696,044 | 12 | 0 | null | 2017-05-02T17:25:16 | 2014-08-06T19:53:58 | C++ | UTF-8 | C++ | false | false | 1,220 | h | blendop.h | /*********************************************
*
* class: BlendOp
*
* author: Mark Kellogg
*
* This class is the base class for animation blending operations.
*
***********************************************/
#ifndef _GTE_BLENDOP_H_
#define _GTE_BLENDOP_H_
#include <vector>
#include <string>
#include "engine.h"
#in... |
51e08b3f8817ef2e222ff5dfb0454fc711b4a7bd | 3d1b69ca81cb16cda4db6dafc3769f30c3f2535a | /TME3/exo4.cpp | 4ed396ada4d25d30382f9f576853fb91df42730d | [] | no_license | KatiaAMICHI/CPA-Projet | a5b3d2bd164dbd33c483cb11abadf064290c2d7f | e1359e63566399ef2415ea5de6697019630bd978 | refs/heads/master | 2020-05-23T23:12:46.778397 | 2019-04-07T10:43:41 | 2019-04-07T10:48:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,647 | cpp | exo4.cpp | #include <stdio.h>
#include "structs.h"
#include "algs.h"
#include <set>
#include <cmath>
int nbTriangles(adjArray *arr) {
int nb = 0; int i, j, k;
for(i = 0; i < arr->n; i++) {
std::set<unsigned int> unei; // Tous les voisins de u
for(j = arr->cd[i]; j < arr->cd[i+1]; j++) unei.insert(arr->adj[j]);
fo... |
19cb1fb9dfed6612a71ff027607c0dd1b7d0e8a5 | 363b26d5e929f651349a5a8c4f735bdb9a0b20eb | /CIS350/main.cpp | 0dfd0ce7e01b2966a3df22543e47c1e68c4afc1b | [] | no_license | habeshawit/convertInfixOperation | f24e297275f29bd1e1e747bf6b608a9634cf5dad | d52651a4e3c259ecf31abd8b7047bb0502dbce5c | refs/heads/master | 2023-08-24T00:32:21.619849 | 2021-10-02T03:58:09 | 2021-10-02T03:58:09 | 410,217,044 | 0 | 0 | null | 2021-09-30T09:02:52 | 2021-09-25T08:22:51 | C++ | UTF-8 | C++ | false | false | 16,376 | cpp | main.cpp | //Program Name: EvaluateInfixOperations
//Programmer Name: Shalom Kebede
//Description: Given a file with infix expressions, the program will create and traverse trees in prefix, infix and postfix order. It will evaluate the expression from the prefix notation and print to the screen the result of the traversal or prin... |
4fd54dde223a8ee8e04ca05c37bf14eec33d0e8a | dbb31defecc286f88d69082f0710d47c2fbce74f | /common/Point3D.hh | e4d7fbbe4c0eda394cc89178ea0b6eaf9bbc9db8 | [] | no_license | gRiverOS/2DSimulationRefactoring | dffbce0592d4fb0742f4a0f1a7f7cad299d2e68c | fa7b7b2d51b2cf6e2dd162117776b6926743291f | refs/heads/master | 2020-05-19T08:03:11.282683 | 2015-08-07T03:00:17 | 2015-08-07T03:00:17 | 39,927,226 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,479 | hh | Point3D.hh | #ifndef POINT3D_HH_
#define POINT3D_HH_
#include <stdlib.h>
#include <iostream>
#include "Point.hh"
class Point3D : public Point{
private:
double x;
double y;
double z;
public:
Point3D();
Point3D(double n_x, double n_y, double n_z);
Point3D(Point3D * v);
double getX() const;
void setX(double x);
... |
62b816d8a863a4ab3d54681e48322c3abd358778 | 703cc1b788895b98331f52dc6e87ac6ec1910e35 | /src/psi/pat.cpp | ef64710f6531221375be64314255b7b99a75c887 | [] | no_license | ioxuy/dvb_si_psi_parser | 1509942fb116ec23cb0ded94fffa24788864526b | 75f8fb87734ff6211e895356d4e1f8087c6fbf54 | refs/heads/master | 2021-06-04T22:13:06.628804 | 2016-09-08T05:17:47 | 2016-09-08T05:17:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,367 | cpp | pat.cpp | /*
*Original Author: shko
*/
#include <pat.h>
PAT::Program::Program(const int program_number, const int program_map_PID)
{
InitInternalData();
this->program_number = program_number;
this->program_map_PID = program_map_PID;
}
int PAT::Program::getProgram_map_PID()
{
return program_map_PID;
}
int P... |
ab6a97e197b2862e2e1ebae8713da2fcd3124957 | f93a873c48905f0f9559e376ff9f74ca78bb5058 | /koopa.h | 0f4f05fa37ad6043f17f5fdcff3ed278bd19566a | [] | no_license | Flirre/game-engine | eed1b5a109f5f03219900f0b1427b0ed48e9e203 | 15ad824c90d74f96bb211a3220c998d234ebf55e | refs/heads/master | 2020-03-27T09:16:40.817782 | 2019-05-19T16:29:00 | 2019-05-19T16:29:00 | 146,327,193 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,367 | h | koopa.h | #pragma once
class KoopaInputComponent : public InputComponent
{
public:
void Create(AvancezLib* system, GameObject * go, std::set<GameObject*> * game_objects, Direction direction)
{
InputComponent::Create(system, go, game_objects, KOOPA_SPEED, direction);
go->direction = direction;
}
virtual void Receive(Mes... |
f0e0e8051c909449f0eec7a8d7a4c00202903d7f | 29ac0c9c6b5863d71b986dd3ec7cb19b4cfde1ef | /utilsCtrl/editDistanceProc/EditDistanceProc.h | 2fbdd4fddd14eccf6d0e17a6cab2cd93728d3396 | [] | no_license | mayurou/caiss | 92dcdf1077bef4928763261cb2415805f1534401 | aab39d7b7844a68b9c194f09b3aaef7ab695616b | refs/heads/master | 2023-07-18T16:07:38.297135 | 2021-09-11T01:54:35 | 2021-09-11T01:54:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,009 | h | EditDistanceProc.h | //
// Created by Chunel on 2020/7/4.
// 计算两个字符串的编译距离,用于去重
//
#ifndef CAISS_EDITDISTANCEPROC_H
#define CAISS_EDITDISTANCEPROC_H
#include <vector>
#include "../UtilsProc.h"
using namespace std;
class EditDistanceProc : public UtilsProc {
public:
/**
* 是否超过编辑距离
* @param fst
* @param snd
* @par... |
d27e2d7a7a108c079eeb878d5db938e0570c5c85 | 3fc28213605b14ed9970e1834fe5064a97a213b9 | /dataloaders/new_MBD/cpp/wrap_py2.cpp | 3d671a39624d64a96bd34115ef50cedfeba52d41 | [] | no_license | onvungocminh/Dahu_CNN_IOG | fc670f1bfc4134b1abf58ab165276bccf7ce1476 | 8c7640133edfe0f4cb25cbff81af4f4c2985e860 | refs/heads/master | 2023-02-01T19:28:46.549365 | 2020-12-18T11:59:26 | 2020-12-18T11:59:26 | 322,581,698 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 124 | cpp | wrap_py2.cpp | #include "MBD_distance.cpp"
PyMODINIT_FUNC
initMBD(void) {
(void) Py_InitModule("MBD", Methods);
import_array();
}
|
d56b8b2d88c63d901bb7a9cea9436423531d4b32 | a3f664e0b17c1b7cf718c75e0f7300d3485d724f | /engine/GZJTextureManager.cpp | 83c4bf1ec109fc0e353dc375f104057311afc3b5 | [] | no_license | DarkTong/engine | 7842eeddb216983a62f5a376e4ddf77cb7e8e45b | f15aa4f4ce180bf224c0f57a0d8a233589231867 | refs/heads/master | 2021-04-12T08:46:32.666706 | 2018-05-04T03:09:20 | 2018-05-04T03:09:20 | 126,551,732 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,113 | cpp | GZJTextureManager.cpp | #include "GZJTextureManager.h"
namespace GZJ_ENGINE {
GZJTextureManagerPtr GZJTextureManager::_instance = nullptr;
GZJTextureManager::GZJTextureManager()
{
assert(_instance == nullptr);
}
GZJTextureManager::~GZJTextureManager()
{
}
void GZJTextureManager::StartUp()
{
resMap.clear();
resHandleMap.clea... |
34e3bb435d921eb334de9a2c8d380af94e11c934 | 568ac7b7cd7d2befaceecdf2496855c19c31c900 | /welcomedialog.cpp | 6e41ad67a8ff3a113e3a8378fa57c4497c0babf3 | [
"MIT"
] | permissive | HarukiMoriarty/QtMall | 86c70fcb19c2b4f5f153d56d89b837958b33782c | e135ab0f766ffa9cd595d3332f642c72aac121ee | refs/heads/master | 2022-01-16T02:52:54.008192 | 2019-03-11T18:42:12 | 2019-03-11T18:42:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,069 | cpp | welcomedialog.cpp | #include "welcomedialog.h"
WelcomeDialog::WelcomeDialog(QWidget *parent) :
QWidget(parent)
{
nameLabel = new QLabel(tr("name:"));
nameLineText = new QLineEdit();
passwordLabel = new QLabel(tr("password:"));
passwordLineText = new QLineEdit();
passwordLineText->setEchoMode(QLineEdit::... |
56bb566ac278f53081b55890ad8d3e5d97db28cf | e85338f6d8666eb476698de5025c742b9b838a50 | /ojs/cf/663C.cpp | b3595f8580301b279f00d26a8657cbc0a9dc2171 | [] | no_license | yancouto/competitive-programming | 8104bb3c45e0b385c2abb4cfcac14c35cce0619e | ac849e3aa858eea56b0aa6b7eb93e9a9e70f9475 | refs/heads/master | 2022-10-19T11:29:46.932829 | 2022-10-07T00:16:43 | 2022-10-07T00:16:43 | 66,641,933 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,688 | cpp | 663C.cpp | #include <bits/stdc++.h>
using namespace std;
#define fst first
#define snd second
typedef unsigned long long ull;
typedef long long ll;
typedef pair<int, int> pii;
#define pb push_back
const ll modn = 1000000007;
inline ll mod(ll x) { return x % modn; }
#ifdef ONLINE_JUDGE
# define lld I64d
# define debug(args...) {}
... |
9771798be6f75c479c3f12c73db94a005ba58c8d | 328f58958dee676e04f7754172251b62b93b77b9 | /Downloads-Genesis/Cpp-Assessment/99002539/trip.h | 0328a4a40802c1567623d61d091de2079cf7642d | [] | no_license | 99002500/Desktop-Genesis | 957e6ed41b694757b2ecd74416a3c177078a71c9 | da3ccf82d7844932a3f66a3f4710c9ac2d149ea2 | refs/heads/main | 2023-01-09T15:51:26.077219 | 2020-11-12T11:22:34 | 2020-11-12T11:22:34 | 312,192,379 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 464 | h | trip.h | #ifndef TRIP_H_INCLUDED
#define TRIP_H_INCLUDED
#include<iostream>
const int speed = 500; // 500 miles per hour
const int price = 10; // 10 rupees per mile
class Trip
{
std::string m_SourceCity;
std::string m_DestinationCity;
public:
Trip();
Trip(std::string,std::string);
std::string getOrigin();... |
c02075cde99697bf1fa56fb11a18fe62ec5d634b | b2955406769855ab42617d59805ef643d860db38 | /OOP-Projects/ATM/include/Conta/ContaPoupanca.h | 842307f7742b8e1d12f51de188ed79c85d217100 | [] | no_license | lucasbivar/object-oriented-programming | 46ded50a73b92abb7f2d34136499f27a84269769 | 11a6367404985cd4c384ab1997d07db64c455e78 | refs/heads/main | 2023-08-18T14:10:28.503755 | 2021-10-15T00:24:30 | 2021-10-15T00:24:30 | 380,388,577 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 617 | h | ContaPoupanca.h | #ifndef CONTA_POUPANCA_H
#define CONTA_POUPANCA_H
#include <string>
using std::string;
#include "Conta.h"
#include "../Pessoa/Pessoa.h"
class ContaPoupanca : public Conta {
public:
ContaPoupanca(Pessoa* p=nullptr, string prefixoConta="", string prefixoPessoa="",
int dataDeAniversario=10 , double ... |
74d8940ee9f826f0f0a9241f34b9417db62faccd | ca2e65ad96ce8022d423c3e83cfef79b2ce53a7f | /src/transport/IBTransport.cpp | 28089548731567cce29204118f777a1553da605f | [] | no_license | bharurn/MiMiC_CommLib_Test | 8196054960aaa04a6f9452504f4b708c3ac053b8 | 7c75a8210c87db8bccc203bd168543666ce957f2 | refs/heads/master | 2022-11-09T17:55:22.632369 | 2020-06-18T10:46:26 | 2020-06-18T10:46:26 | 272,648,350 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 66 | cpp | IBTransport.cpp | //
// Created by vbolnykh on 6/4/18.
//
#include "IBTransport.h"
|
5be42a5cc2aef3ab871f4a71fbfa02f0adf2df6a | 7c82cb038616b804274af51fd7f9521e9195daaa | /Cylinder.cpp | dd0d63bd992437e9b4c0ebed3e9f390e7e6a0b35 | [] | no_license | ahmetYilmaz88/C-plus-plus | b63bb7813dbdd3bd421720f70100a34095fd60ce | 93163e053dd60d5dcd53884f9bd5fc548821fd3b | refs/heads/main | 2023-01-18T19:37:08.363441 | 2020-12-03T04:27:54 | 2020-12-03T04:27:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,164 | cpp | Cylinder.cpp | /// @author Ahmet Yilmaz
/// I pledge my word of honor that I have abided
/// by the CSN Academic Integrity Policy while completing
/// this assignment.
/// @file AhmetYilmazCit133_pa11.cpp
/// @version The date is: 2020-06-13
/// @brief The program uses various number of functions
/// and two class
/// class ... |
4375e34241c081322b35dcacc1a583a79a535dd3 | 02c855e1c35fa756b01d3c857307b3b695b54de8 | /MicroChat/gen-cpp/UserService_server.skeleton.cpp | 7ede973fbb9aed44a45fa414f251444809c8fc69 | [] | no_license | KeithStoke/ECE578_Final_Project_MicroChat | 538633a5ba1a561e01a4caf0c0a7264cbc74e7d3 | 176c246c6d9aec26727ee981f3d56a10a56ef134 | refs/heads/master | 2023-04-14T16:59:06.284402 | 2021-04-23T01:55:22 | 2021-04-23T01:55:22 | 343,955,735 | 1 | 1 | null | 2021-04-23T01:55:22 | 2021-03-03T00:47:08 | Lua | UTF-8 | C++ | false | false | 2,005 | cpp | UserService_server.skeleton.cpp | // This autogenerated skeleton file illustrates how to build a server.
// You should copy it to another filename to avoid overwriting it.
#include "UserService.h"
#include <thrift/protocol/TBinaryProtocol.h>
#include <thrift/server/TSimpleServer.h>
#include <thrift/transport/TServerSocket.h>
#include <thrift/transport... |
2f181c82bdd2641e6595d03d3347ad7ce2b502d1 | 80a83faaf11d8755d9963b0f805fe1688c1ad08d | /boj/11062.cpp | d3976babfa484fd51d96b58890bc7b48cf4efa88 | [] | no_license | 0913vision/Study | c594bf13176f95218235e914184a670e4a77647d | 7c1fe1f5b40815b658e79784ae4fc95a2659cf46 | refs/heads/master | 2022-07-06T10:48:23.867310 | 2022-06-30T21:46:21 | 2022-06-30T21:46:21 | 224,319,553 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,421 | cpp | 11062.cpp | //interesting card game!
#include <iostream>
#include <algorithm>
#include <memory.h>
#define LEFT 0
#define RIGHT 1
using namespace std;
int *card;
int table[1010][1010];
int ctable[1010][1010];
int n;
int dp(int L, int R) {
int cl, cr, el, er, ecl, ecr;
if(table[L][R] > -1) return table[L][R];
if(L>R)... |
8fabb92961335044b4c6899be36ecfd7afb1c81a | 86dd3706c22680995a92ff92c86ac33d58e55f30 | /lib/ADC_Stream_processing/ADC_Stream_proc/ADC_Stream_proc.ino | 8f3941ed5edad26898d33a52e0fc01997c04dd65 | [] | no_license | davidwkleber/webArduino | eec4f7c6e728ab722a086c317553d059a9368369 | 7a81968794980f8b09748c27706e4b995e4579a9 | refs/heads/master | 2020-05-15T21:17:38.163839 | 2015-04-01T10:36:48 | 2015-04-01T10:36:48 | 23,706,715 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 885 | ino | ADC_Stream_proc.ino |
//
#define FASTADC 1
// defines for setting and clearing register bits
#ifndef cbi
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
#endif
#ifndef sbi
#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit))
#endif
int readA0;
int readA1;
int readA2;
//int readA3;
//int readA4;
//int readA5;
long nowTime=0;
long lastTi... |
86a1110c80f725b4ba3ba5fed7027f8189aa6620 | 9147e7be8697621c2b47c8d1e07d6bfa1b98c38c | /calculator/Calc.h | 35d28f8aeeda11728cd19da5444b5066b8ffbf6d | [] | no_license | ljian1992/calculator | e09eebe3d97e5607480d70a106ea1eee2db40d17 | abff2de6fa438efb801e9a176dcf2891d236e3b9 | refs/heads/master | 2021-01-15T23:02:13.255596 | 2015-02-11T14:35:50 | 2015-02-11T14:35:50 | 30,637,279 | 1 | 1 | null | null | null | null | GB18030 | C++ | false | false | 1,738 | h | Calc.h | #ifndef _CALC_H_
#define _CALC_H_
#include <string>
#include "SymbolTable.h"
#include "FunctionTable.h"
#include "Storage.h"
#include "Serial.h"
class Parser;
class Calc : public Serializable
{
friend class Parser; //使到Parser类方便的访问Calc的私有成员
private:
//-->由于定义了SymbolTable类,因此需要把它的头文件包含起来, Calc类负责symTbl_的生命周期,因此是两... |
2805eea3a2c5a204b773b90ba49c2c427a52f5b3 | 8bc5715e9fb0a18cb4c70a271b22dc108fdfe4f8 | /servotester_final_mit_lcd_4884_shield_011__beta/c_receiver_test.ino | 95c07f38275faba58fa5bc4c66b53b81caacad70 | [] | no_license | ossilampe/PCB-Projekte | f2c8fd85ee67a5c2eace2e35d7f48481efd394b3 | f07ad613103d3a10ed10fa0b44190b0359f76f91 | refs/heads/master | 2020-05-29T15:11:18.245514 | 2017-10-30T17:50:03 | 2017-10-30T17:50:03 | 60,724,086 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,591 | ino | c_receiver_test.ino |
void rxtest()
{
duration1 = pulseIn(pin1, HIGH, time); //reads rx channel in
if (duration1 == 0){pwmin1 = 1500;} // if no input set to 1500us
else {pwmin1 = duration1;}
duration2 = pulseIn(pin2, HIGH, time);
if (duration2 == 0){pwmin2 = 1500;}
else {pwmin2 = duration2;}
duration3 = pulseIn(... |
2ac61856a029dae1018b80192a197825d723ba1a | f1fbb63275ff66a97c8e654cabe0301851e9c317 | /VS_CPp/Console/MatrixMultiplication/MatrixMultiplication.cpp | c0040809929568b85d7f09ff5b42cdf3088ff856 | [] | no_license | AAMORENKO/EXAMPLS_CPP_JAVA | c0eeb489ef1cb10d14cbb8de565e18f6044d0f61 | 2a732c503be8ac569505f942328524b86d43791e | refs/heads/master | 2021-10-28T22:13:44.605096 | 2021-10-14T09:42:07 | 2021-10-14T09:42:07 | 163,251,015 | 9 | 9 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 1,618 | cpp | MatrixMultiplication.cpp | #include <iostream>
#include <fstream>
using namespace std;
int n, m, q, p;
int A[20][20], B[20][20],C[20][20];
fstream inf, otf;
int main()
{
setlocale(LC_ALL, "rus");
system("color 1F");
cout << "\n\tПрограма множення матриць AxB=C\n";
cout << "\n\tПочатковi данi з файлу data.txt :\n\n";
inf.... |
b78d1473b0e5081420ab79a6025548cb344247f0 | 485303ba578e154b2c0c110f8e0fec758d921ed0 | /week-03/day-02/LookForValue/main.cpp | 610e95d89fc0de79322ce3fc41d9f2f2678284df | [] | no_license | green-fox-academy/mazurgab | 0b6e3c3a7fe0a4940ff80c4e25f9f386b408ab7b | 1eae9aae0338122a3d1536fecd2eb15dc7871a3e | refs/heads/master | 2020-04-02T17:22:07.998691 | 2019-04-28T21:52:14 | 2019-04-28T21:52:14 | 154,655,053 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 780 | cpp | main.cpp | #include <iostream>
int main()
{
// Create a function which takes an array (and it's lenght) and a number as a parameter
// the function should return index where it found the given value
// if it can't find the number return 0
void returnIndex (int array[], int length, int param);
int array[] = ... |
358718846e352847acdc1d70a84a802a1d0ac74f | 78f7c50fe8462758814c5b372b8249a4e2eab700 | /src/dwaognie.cpp | 57f529f0851d7dabf7204f271d3e7c39dc57df39 | [] | no_license | Arquanite/ProjektPO | cc7766eb844ad81813fe89928cc04af05c893488 | 1810307420e1208a2b94f305e2452cd9cd5c85a4 | refs/heads/master | 2021-01-17T16:23:41.392695 | 2016-06-17T06:38:28 | 2016-06-17T06:38:28 | 61,349,911 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 867 | cpp | dwaognie.cpp | #include "dwaognie.h"
DwaOgnie::DwaOgnie(){
}
DwaOgnie::DwaOgnie(QString Gospodarz, QString Gosc, QString Sedzia, int LiczbaGraczy) : Pilka(Gospodarz, Gosc, Sedzia), m_LiczbaGraczy(LiczbaGraczy){
}
QString DwaOgnie::Rozegraj(){
while (m_PunktyGospodarza < m_LiczbaGraczy && m_PunktyGoscia < m_LiczbaGraczy){
... |
75bd5d3ef578f42594f149c08a0c54ca548ef8e2 | 61499fa2a25fbc101cb3808148610c3d6490a1cd | /Sorting Algorithms/Bucket Sort.cpp | a113860cd3a09fb5c9d63485bc2c525f5ab7d396 | [] | no_license | pz1971/Data-Structures-And-Algorithms-in-C-and-CPP | 5c54ba85b1ff97f0c268539448d834f57d9d1321 | d00e76d6e7feefd3957e8bfb672966764aeebd73 | refs/heads/master | 2021-08-08T07:27:15.754558 | 2020-07-06T15:16:23 | 2020-07-06T15:16:23 | 198,986,136 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,332 | cpp | Bucket Sort.cpp | #include <bits/stdc++.h>
using namespace std ;
class Bucket{
private:
class Node{
public:
int key ;
Node *next ;
Node(int key){
this-> key = key ;
next = nullptr ;
}
} *head ;
public:
Bucket(){
head = nullptr ;
}
void insert(int key){
if(head == nullptr){ // list was empty
head = new No... |
5f3dd91b913cfb1688d42d5438757890e2e7f51f | 8183abbc92d580f400d0a27bba545ac7c70d3c25 | /selectionSort.cpp | 99e16b4a4756beb63f2c0a196675d94cde5bd32c | [] | no_license | Noymul-Islam/problems | 6fce4954377d1d2f1847b3741430820d4dfaa099 | dec80211ce6904f81b616e1f16b30cfa80dbbe2a | refs/heads/master | 2020-03-29T16:57:46.804665 | 2018-09-24T17:25:08 | 2018-09-24T17:25:08 | 150,136,724 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 542 | cpp | selectionSort.cpp | #include<cstdio>
#include<cmath>
#include<cstring>
#include<algorithm>
using namespace std;
void selectionSort(int arr[], int n)
{
for(int i=0;i<n-1;i++)
{
int key= i;
for(int j=i+1;j<n;j++)
{
if(arr[key]>arr[j])
{
key=j;
}
}
... |
2983b66c9642a6e9841b0ec6272272e27a92e55f | 6bdbbf9ae43daa6d55f5c0491c8f1ab16b52fb16 | /src/pack/belov_inc/spprc_dp.h | afb5f7ebcaddb81504560f59639bd3d10ae4b8b4 | [] | no_license | ethanschreiber/number_partitioning | cf8f4e3078fb05b2009136e1ff4c564b70e6f357 | bfb4b53d711080c125e11ade7b6d52a8387f59ce | refs/heads/master | 2022-06-14T09:59:47.507481 | 2022-06-04T22:11:50 | 2022-06-04T22:11:50 | 68,240,729 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,695 | h | spprc_dp.h | #ifndef __SPPRC_DP_H
#define __SPPRC_DP_H
SS_BEGIN_NAMESPACE__
namespace spprc_dp
{
/**
Dynamic programming for SPPRC,
Shortest Path Problem with Resource Constraints
with upper bounds on $x_{ii}$ ($x_{ij}$ are binary)
and single resource
The table filling procedure follows the "Improved DP"
from
U. Pfers... |
e89ed76768b6abb110784b94eba1c6501f3b36ab | a411a55762de11dc2c9d913ff33d2f1477ac02cf | /lte/gateway/c/core/oai/tasks/mme_app/mme_app_pdn_context.cpp | 4f9d0663d4ba2f0ebf7322e6d34f86ef4ef9026b | [
"BSD-3-Clause"
] | permissive | magma/magma | 0dc48c1513d9968bd05fb7589f302c192b7c0f94 | 0e1d895dfe625681229e181fbc2dbad83e13c5cb | refs/heads/master | 2023-09-04T09:31:56.140395 | 2023-08-29T13:54:49 | 2023-08-29T13:54:49 | 170,803,235 | 1,219 | 525 | NOASSERTION | 2023-09-07T17:45:42 | 2019-02-15T04:46:24 | C++ | UTF-8 | C++ | false | false | 5,165 | cpp | mme_app_pdn_context.cpp | /*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the terms found in... |
0de897112b017b7f88f28a89d981079a5ddd4efe | ee62e0fffada4dfefc14eda14b6f53826cbeca02 | /patch_generator/src/BinaryWriter.cpp | 409797c98a882c5c7c3f245b3baddbd7ca65e076 | [
"MIT"
] | permissive | beaupreda/cnn-rgbir | cd10471930ee8464807b986433b4de4a10ae87cc | f2011ea72c577953c031164bbf3a866d8a409df6 | refs/heads/master | 2020-05-31T18:50:04.706566 | 2019-06-13T00:31:55 | 2019-06-13T00:31:55 | 190,444,014 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 846 | cpp | BinaryWriter.cpp | #include "../include/BinaryWriter.h"
BinaryWriter::BinaryWriter(const std::string& name, const std::string& info) {
this->filename = name + info;
}
void BinaryWriter::writePointsToFile(const std::vector<std::vector<float>>& pointsToSave) {
std::ofstream file(this->filename, std::ofstream::binary | std::ios::o... |
a0c60b73f77abd471fd880df60338da6b77205c8 | 6226d6aed3629aa4069c46971ffe764bb6c743f6 | /Myway/Math/MWPlane.cpp | cd406c21b27d6b5452cc1327ca80fa27e8331b82 | [] | no_license | Myway3D/Myway3D | 83c30258f1e3eae90e619269406acd0ddeac7887 | 39cf569993f62fc648cbba49ebf74b3f8a64e46a | refs/heads/master | 2020-04-22T20:24:15.817427 | 2014-03-09T14:25:23 | 2014-03-09T14:25:23 | 170,640,096 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,375 | cpp | MWPlane.cpp | #include "MWPlane.h"
#include "MWMath.h"
namespace Myway
{
const Plane Plane::Zero = Plane(0, 0, 0, 0);
/* Plane
--------------------------------------------------------------------------
@Remark:
3d plane.
--------------------------------------------------------------------------
*/
inli... |
0108a274a44b440f3ca3bafc47255d7dd2f4406d | 3dfd8cab46104449ba3aaa80674663bc0ba4b78f | /pku/3435.cc | d2870bbde577a66a645d84b3db3c7109e59bc97d | [] | no_license | chronotable/procon | a449ed506be2d041c26a828e67ce47615c9152f1 | 8b4c79d91bfb05f6f57114e5e3fe53e2d7394a76 | refs/heads/master | 2021-01-17T10:05:36.360756 | 2019-03-17T02:45:55 | 2019-03-17T02:45:55 | 21,483,371 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,412 | cc | 3435.cc | #include <iostream>
#include <stdio.h>
using namespace std;
int main(){
int m,n;
int b[101][101];
cin >> m;
n = m*m;
for(int i = 0; i < n; i++)
for(int j = 0; j < n; j++)
cin >> b[i][j];
//check row
for(int i = 0; i < n; i++){
bool u[101];
for(int j = 0; j <= n; j++)u[j... |
c40a9c41de6c2eda179208eab1a70ab30a7bf631 | 9e76f6c992b80c0fa7b8bf70c6344b83c59ae109 | /net-p2p/twister/files/patch-libtorrent_include_libtorrent_pe__crypto.hpp | 957e136e07f6db7beef78558f4dcb697848c7769 | [] | no_license | O2Graphics/ports | 1c54bc1271f46962bd2290cbf2919d4da91e257c | 076444f2a71d2f269b0338319520b22e757a1985 | refs/heads/master | 2021-01-19T20:44:03.866657 | 2018-01-24T10:28:35 | 2018-01-24T10:28:35 | 88,542,367 | 1 | 0 | null | 2017-04-17T19:34:35 | 2017-04-17T19:21:19 | Makefile | UTF-8 | C++ | false | false | 328 | hpp | patch-libtorrent_include_libtorrent_pe__crypto.hpp | --- libtorrent/include/libtorrent/pe_crypto.hpp.orig 2014-11-29 15:20:43 UTC
+++ libtorrent/include/libtorrent/pe_crypto.hpp
@@ -43,6 +43,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <openssl/rc4.h>
#include <openssl/evp.h>
#include <openssl/aes.h>
+#include <openssl/rand.h>
#else
// RC4 state from libtomcrypt
struc... |
6262111e8512e65a4dc483377d221c07bf6ab5c2 | 1bcb99efd5cc703c8d588e0191da26bea1e8166d | /OOPs Concepts Programs/Pointer to Object for 'N' objects.cpp | bbe6194be0d5bff97214f9c904a4c9b8c91f9968 | [] | no_license | leshwar/Object-oriented-programming | e819933157d9e112bb0a7b45c02b90dbdb088778 | 391b54dc17bbda231bf9f28351d99535e664bf36 | refs/heads/master | 2021-04-19T07:31:36.102282 | 2020-03-27T05:15:54 | 2020-03-27T05:15:54 | 249,591,380 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 690 | cpp | Pointer to Object for 'N' objects.cpp | //Implementation of Pointer to Object for a single Object.
#include<conio.h>
#include<iostream>
using namespace std;
#define cnst 10
class example
{
char name[cnst];
public:
void getdata(){cout<<"Enter the Name\n";cin>>name;}
void display(){cout<<"The Name you Entered is ... |
f8e72af152eac36c47e90ac6a9d82b9313d3dc23 | a8ec0b280e63eb06c9352402aaa81c4f6b06b47c | /HDU/4111.cpp | 354fdfe2afcd62581723e0f10aabdce8647c4f79 | [
"Unlicense"
] | permissive | CodingYue/acm-icpc | 5eff1b81a50cc9f7cbcd93c38b0232ba085a0b97 | 667596efae998f5480819870714c37e9af0740eb | refs/heads/master | 2020-05-16T21:51:33.553238 | 2017-02-14T11:52:05 | 2017-02-14T11:52:05 | 17,904,772 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,811 | cpp | 4111.cpp | // File Name: A.cpp
// Author: YangYue
// Created Time: Wed Jun 19 14:25:46 2013
//headers
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <ctime>
#include <string>
#include <queue>
#include <set>
#include <map>
#include <iostream... |
1a95c5ca306a10252858811c7f6f17224b6962b0 | 5386865e2ea964397b8127aba4b2592d939cd9f2 | /grupa C/olimpiada/oblasten/2008/reshenija/Plovdiv/B/NBP/plates.cpp | af961c8533433479987160662cc28be5c2c10a9e | [] | no_license | HekpoMaH/Olimpiads | e380538b3de39ada60b3572451ae53e6edbde1be | d358333e606e60ea83e0f4b47b61f649bd27890b | refs/heads/master | 2021-07-07T14:51:03.193642 | 2017-10-04T16:38:11 | 2017-10-04T16:38:11 | 105,790,126 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 463 | cpp | plates.cpp | #include<iostream>
#include<cstring>
using namespace std;
int main()
{
char a[50][1000000];
int n, m, br=0;
cin>>n>>m;
for(int j=0;j<n;j++)
for(int i=0;i<m*m;i++)
cin>>a[j][i];
int b[50];
for(int i=0;i<n;i++)
{
for(int j=0;j<m*m;j++)
b[i]=b[i]+a[i][... |
b2ce67a72fe895d4ba9f53f0437a642d10ee49d4 | c9cf0586ace11aa32fa67606d237a130a06364ee | /circular-cylinder-10-20/24.5025/p | 0be2a0ad3b30b207c0baae24a1ef678dcf7f7992 | [] | no_license | jezvonek/CFD-Final-Project | c74cfa21f22545c27d97d85cf30eb6dc8c824dc1 | 7c9a7fb032d74f20888effa0a0b75b212bf899f4 | refs/heads/master | 2022-07-05T14:43:52.967657 | 2020-05-14T03:40:56 | 2020-05-14T03:40:56 | 262,370,756 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 24,207 | p | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6.0
\\/ M anipulation |
\*-----... | |
b4a954762864b38aebcb8691b74976f9872a4f13 | aed0e5a7cbb1fc035a525f6d7458a494f05d7679 | /src/engine/core/Entities.cpp | 6ae61a2d0e8a4eac87fe3bcaeeba1b7dcd05fd18 | [
"MIT"
] | permissive | arcln/indie | 829ea8d000e0541f5fb63ed6a7c3b947d65de48e | 984450211c8b1b5405da2431eeb858d0d5fec5e5 | refs/heads/master | 2021-09-16T07:21:01.231131 | 2018-06-06T15:10:31 | 2018-06-06T15:10:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,404 | cpp | Entities.cpp | /*
** EPITECH PROJECT, 2017
** worms
** File description:
** A file for worms - Paul Laffitte
*/
#include <algorithm>
#include <engine/components/TransformComponent.hpp>
#include <engine/utils/TagComparator.hpp>
#include "engine/utils/EntityComparator.hpp"
#include "engine/components/TagComponent.hpp"
#include "engine... |
e105d4a77d243c01c691280161146616f227f6d3 | ba24c7e8496dab2498f3e8fdcaad3347842d017c | /General/TernaryExample.cpp | 6a8acaf8ddacb6ee5fdd529710b47fa8d1b5b84b | [] | no_license | codejith/TestPrograms | 7c4eb31b505349df2dbdc6b80bb3aa075a50b410 | 56e53fc76af0262a75a96d77e3e6eb44ae382656 | refs/heads/master | 2021-01-12T05:17:42.195835 | 2017-03-31T09:44:39 | 2017-03-31T09:44:39 | 77,902,957 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 122 | cpp | TernaryExample.cpp | #include <iostream>
int main()
{
int test = 0;
std::cout << (test? 'S' : 1) << std::endl;
return 0;
}
|
4e4be54fd517c7b38d1590300ca0536c8d83aa31 | 7949db20aad375304227ee7af25aed92e00cb7d7 | /resultado final/Trabajo Final/Jump Mario 3.0/src/Personaje.cpp | 3ee458f9a22fa646fa71d2cc08238c1dfbd65f45 | [] | no_license | jorgealfaro1345/Trabajo-final | a598f7ca8cf13a7fe9fe20c1e8f13e5faf52d9cb | befcadf3f88cf0929099458573992f584d310952 | refs/heads/master | 2021-08-22T07:25:29.602725 | 2017-11-29T16:10:06 | 2017-11-29T16:10:06 | 108,771,149 | 0 | 0 | null | null | null | null | MacCentralEurope | C++ | false | false | 3,443 | cpp | Personaje.cpp | #include "Personaje.h"
#include "sstream"
#include "iostream"
//CLASE CREADA
#include "Texto.h"
//LIBRERIAS DE SFML
#include <SFML/Graphics.hpp>
#include<SFML/Audio.hpp>
using namespace sf;
Personaje::Personaje()
{
txt_jugador = new Texture;
spr_jugador = new Sprite;
vidas=new int;
*vidas= 3;
vi... |
ce902300fbffd89824dc364deed366e7d810aeb7 | 88c0e520e2389e676fea559f944109e1ee7e157b | /include/Windows.UI.Xaml.Core.Direct.2_4bc8ceb3.h | 15ecadb4848ba377fcc62769547bd04814b15a29 | [] | no_license | jchoi2022/NtFuzz-HeaderData | fb4ecbd5399f4fac6a4982a0fb516dd7f9368118 | 6adc3d339e6cac072cde6cfef07eccafbc6b204c | refs/heads/main | 2023-08-03T02:26:10.666986 | 2021-09-17T13:35:26 | 2021-09-17T13:35:26 | 407,547,359 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 599 | h | Windows.UI.Xaml.Core.Direct.2_4bc8ceb3.h |
#include "winrt/impl/Windows.UI.1.h"
#include "winrt/impl/Windows.UI.Xaml.1.h"
#include "winrt/impl/Windows.UI.Xaml.Media.1.h"
#include "winrt/impl/Windows.UI.Xaml.Media.Media3D.1.h"
#include "winrt/impl/Windows.UI.Xaml.Core.Direct.1.h"
WINRT_EXPORT namespace winrt::Windows::UI::Xaml::Core::Direct {
}
namespace... |
056bc64cc2d28766a93a6f1298154c12fbc1c38b | f58365bcef42779533bcc3b93d7449b26139dfba | /kernel/objects/flock_child/flock_child_view.cpp | a45a0a6d0d184119c0ff90795b4f4a5aec5f8c00 | [] | no_license | hl0071/test_osg | 763b83895f30e1761b6b3e86171fca5c0508a08e | 2ea41efe216e15f7a4452c6b105397a923f3b04f | refs/heads/master | 2023-03-19T09:02:48.435332 | 2017-03-16T18:32:40 | 2017-03-16T18:32:40 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 2,211 | cpp | flock_child_view.cpp | #include "flock_child_view.h"
namespace flock
{
namespace child
{
object_info_ptr view::create(kernel::object_create_t const& oc, dict_copt dict)
{
return object_info_ptr(new view(oc, dict));
}
AUTO_REG_NAME(flock_child_view, view::create);
view::view(kernel::object_create_t const& oc, dict_copt dict)
: b... |
89445e121602b7d87cede0e77de7bfad8077dcb4 | 944d1030c23ae7f231647d7d1ca57ed2e8b7701b | /Chapter2-Lighting/02-BasicLighting/src/Exercise2.cpp | e750487dca5c920f21548229eb80e34630b93230 | [] | no_license | inlet511/LearnOpenGL_execise | 510cc55711a95dc9f43a2f0843b958246630a9e9 | caaeb29b1b51ff89ab70724abee0bf05fe139a7b | refs/heads/master | 2023-07-17T15:20:29.946804 | 2021-09-03T09:39:23 | 2021-09-03T09:39:23 | 389,158,011 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,058 | cpp | Exercise2.cpp |
#define STB_IMAGE_IMPLEMENTATION
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include "Shader.h"
#include "stb_image.h"
#include <iostream>
#include <glm.hpp>
#include <gtc/matrix_transform.hpp>
#include <gtc/type_ptr.hpp>
#include <Camera.h>
#include "imgui.h"
#include "backends/imgui_impl_glfw.h"
#include "back... |
e723014946c7f4bb8587fcb8727a22c54d25494f | 2a594aeb45cf16333d83421ae3c11f9ef39dc8bc | /leecode-II/RemoveElement/源.cpp | 4ceb3bee3d001a087431e9ddd8bb943bacfc001e | [
"MIT"
] | permissive | lisnb/leetcode | 9bcd40c9fd8a84ed30e4a91edc7451220ffef676 | 7875e4ff20412b663c59e57f76d08cd62b91481c | refs/heads/master | 2020-06-04T05:32:52.595221 | 2015-08-20T14:39:46 | 2015-08-20T14:39:46 | 22,034,965 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 590 | cpp | 源.cpp | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
int removeElement(vector<int>& nums, int val) {
if (nums.empty())
return 0;
int p1(-1), p2(0);
while (p2 < nums.size())
{
if (nums.at(p2) != val)
... |
2cc1baa228e562ede3ec87e4c7de2e0f5815bf44 | 44fd7e3915a6d00b5c668f4c404467e15dfb1eb6 | /src/Triangle.h | ad2f559c6ebbb4d8e38edb41f9808c201c44b484 | [] | no_license | davidnov12/Path-Tracer | e47278c4ae76f9c94c3462446fa503e3ae65d881 | 6b4ddf34017ba394b3e8b637995c8890937bb12a | refs/heads/master | 2021-01-13T08:09:22.128920 | 2017-05-01T11:03:46 | 2017-05-01T11:03:46 | 69,872,341 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 773 | h | Triangle.h | /*
* Path tracing na GPU
* Bakalarska prace
* David Novak, xnovak1l
* FIT VUT Brno, 2016
*
* Triangle.h - trida pro reprezentaci trojuhelniku
*/
#pragma once
#include <vector>
#include <glm/glm.hpp>
using namespace std;
using namespace glm;
class Triangle {
public:
// Konstruktor
Tr... |
ecf8f829ebd01e15602d591860d95df533d9f356 | ed0124801e8cea3c955cd35de1e4b7de0c4cc7de | /select/buffer.h | 5844a094ab95cc36982e74453950eff68d76260a | [] | no_license | Pramy/agent | 47287b22d75bb74041f68e28d70fc0153957f19c | e8a32ec4af093fc5116fb9331e4497037a06dd1b | refs/heads/master | 2022-06-28T17:21:58.279131 | 2020-05-11T11:12:04 | 2020-05-11T11:13:36 | 257,616,156 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 682 | h | buffer.h | //
// Created by tuffy on 2020/4/24.
//
#ifndef AGENT_BUFFER_H
#define AGENT_BUFFER_H
#include <unistd.h>
#include <cstring>
class Buffer {
public:
explicit Buffer(int maxLen);
virtual ~Buffer();
bool IsReadable();
bool IsWriteable();
bool IsEmpty();
bool IsFull();
void Reset();
int Read(int socket_... |
0dd8e85bc9ea4255dfbb975f40e890e9a6ccfc43 | def6c8adbd89e27fb1b63602b76e38bbaf995974 | /cordic_posit.cpp | c2f0bccc7bac13eb32e2e826fc57709c32ca29ce | [] | no_license | mshachnai/Posit-mathlib | 61e6a30410a91261a9204abec42ecad86369594f | f498b35c2ec8870a3524eef7d0fc16c8d2fc3f0b | refs/heads/master | 2022-03-27T07:09:53.879495 | 2020-01-22T16:11:10 | 2020-01-22T16:11:10 | 192,587,680 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,369 | cpp | cordic_posit.cpp | //CORDIC algo to compute sine/cos/tan using Posit
#include <math.h>
#include "../SoftPosit/source/include/softposit_cpp.h"
#include "mpreal.h"
#include "mpfr.h"
#include "gmp.h"
#include <iostream>
#include <iomanip>
#include <vector>
//#define M_PI
const float R_to_D = 180 / M_PI; //radians to degrees
const float D_t... |
f06d027b99ae06ab37b69351966a6faf200fb5ce | 5a7e9f03e0adcff08aa3cb0302601d8f7df2ff5f | /src/Entity.cpp | f7d6032071763fb80f0cf93272ce053de0533fb2 | [] | no_license | jaccen/entity-framework | 3fccdfcd2773a47131e64477b632435d66b762ee | 5fbc9db334abd8d8ecc7f2069fe971ab5a1646a9 | refs/heads/master | 2021-01-25T06:56:25.211222 | 2016-12-30T18:16:08 | 2016-12-30T18:16:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 825 | cpp | Entity.cpp | #include "Entity.h"
Entity::Entity()
{
resetUUID();
}
Entity::Entity(int32_t uuid, shared_ptr<ComponentOperationHandler> componentOperationHandler)
: uuid(uuid), componentOperationHandler(componentOperationHandler)
{
}
int32_t Entity::getUUID()
{
return uuid;
}
ComponentBitSet& Entity::getComponentBits(... |
14ec2a17a70429357ca0d39f0ee55c96f86c4e81 | 426e6d4c9147d105087f0d5c13fbb58d57758e39 | /trunk/pacman/jni/input_manager.h | f0e043bd13cd64ea7ca5a863a19ad9591fe20252 | [] | no_license | Im-dex/pacman | 52e08d183cd4785472f9d7de4a84863a3479e764 | 26c545aa21adba35ec00e8fc8c515e6a54a76bb4 | refs/heads/master | 2021-05-04T06:42:01.518772 | 2012-10-15T00:59:21 | 2012-10-15T00:59:21 | 70,499,036 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 969 | h | input_manager.h | #pragma once
#include <memory>
#include <atomic>
#include "base.h"
#include "utils.h"
#include "engine_listeners.h"
namespace Pacman {
enum class TouchEvent
{
Up = 0,
Down = 1,
Move = 2
};
struct TouchInfo
{
TouchEvent event;
float x;
float y;
};
class InputManag... |
12e5bd3e66ae9f405b20aa54e7d46dd5fb6281b1 | 483255eebf46a12460a9349fdfb78a5e7d1c1048 | /homeworks/LaxWendroffScheme/mastersolution/laxwendroffscheme.h | 21de0b19ca04bb5b199f6a01faf777afa4102b26 | [
"MIT"
] | permissive | erickschulz/NPDECODES | 5460331cb4c608ff922658c9beb1e31b4b6c9b2e | 47b4fe6d60640a10bfe0ed085d67a3ccdadac831 | refs/heads/master | 2023-05-03T09:46:22.047387 | 2023-05-01T07:27:10 | 2023-05-01T07:27:10 | 184,058,364 | 32 | 64 | MIT | 2023-04-28T14:58:23 | 2019-04-29T11:28:34 | C++ | UTF-8 | C++ | false | false | 2,917 | h | laxwendroffscheme.h | /**
* @file laxwendroffscheme.h
* @brief NPDE homework "LaxWendroffScheme" code
* @author Oliver Rietmann
* @date 29.04.2019
* @copyright Developed at ETH Zurich
*/
#include <Eigen/Core>
namespace LaxWendroffScheme {
/**
* @brief Returns the x-values as needed in the exercise.
* @param c speed of propagation... |
89a50697aa1b789a2b6aef3ed74d3f3677a05861 | e386871963ddd0e2d526f7817c52add4a59629ce | /Source/Tonks/Pawns/BasePawn.cpp | 97145dbd19474966db4e04021bf427be39207ef3 | [] | no_license | FAnargyrou/Tonks | f8821e909c68e9ade33b8f30ab1cadc1e446ca82 | 2754fb1917f90fcb2e9ba9d5cc9dc56a186d0842 | refs/heads/master | 2023-02-13T18:02:42.876090 | 2021-01-08T17:13:39 | 2021-01-08T17:13:39 | 314,864,753 | 1 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 7,421 | cpp | BasePawn.cpp | // Tonks © 2020 Felipe Anargyrou. All Rights Reserved
#include "BasePawn.h"
#include "Components/BoxComponent.h"
#include "Camera/CameraComponent.h"
#include "Engine/World.h"
#include "GameFramework/SpringArmComponent.h"
#include "Kismet/GameplayStatics.h"
#include "Tonks/Actors/ProjectileBase.h"
#include "Tonks/Game... |
0ae7f3c58d095a460e14997b404621b2723528ef | b1d49de22c9cee06e934fac53adebae84773fe80 | /Player.h | 47130a9f6de9731cd56baefb2ba91ef2f8a766f0 | [] | no_license | play3577/GoSample2 | ccc370f2169e8968c13b2c41112c71aea1e5b5a0 | 37d9231566dc04167e39d2418197f3ab035f3ddd | refs/heads/master | 2021-04-12T08:35:55.435271 | 2016-08-21T02:26:12 | 2016-08-21T02:26:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 117 | h | Player.h | #pragma once
#include "Board.h"
class Player
{
public:
virtual XY select_move(Board& board, Color color) = 0;
};
|
91255d2edd9e837d1a8402909201b2ed4d712266 | d932e10fc9a2930d3e7e75d6ff332265d2f2cda2 | /target_com/power_crc.cpp | 723dbf591c32402c8e193657acbf3caf3ff7a4db | [] | no_license | bding2018/targetman | aa70f55ca4c453101c1a71ff5eef329a43f51985 | 0169e8f90f0eeade2bbb25d61f449730f675986b | refs/heads/master | 2020-05-04T07:28:49.155222 | 2019-04-08T07:52:24 | 2019-04-08T07:52:24 | 179,028,873 | 7 | 1 | null | null | null | null | GB18030 | C++ | false | false | 6,691 | cpp | power_crc.cpp | /*---------------------------------------------------------------------------
CRC 校验计算类
该类可用于计算8位、16位和32位 CRC 校验。在类的初始化函数中指明要计算
的CRC的位长、多项式、运算顺序、初始值和屏蔽值。
Reverse为真时表示是右移
---------------------------------------------------------------------------*/
#include "power_crc.h"
#ifdef _DEBUG
#de... |
8ac072a90a0b3366d90affa6ceb9a3afcb4f4c48 | 645c6766afe021387b0d391e20e77514e4222b13 | /1208.cpp | f3a35fcc20700b7624476f317fea42215fea1b4e | [] | no_license | krofna/uva | 2d48218c26e59ccf56dabc1ec75fa1acb2ac75ea | fbc956d98c14b55a62b606747acdf467d304b142 | refs/heads/master | 2020-06-22T09:31:03.786648 | 2019-03-11T22:10:22 | 2019-03-11T22:10:22 | 74,597,336 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,590 | cpp | 1208.cpp | #include <iostream>
#include <vector>
#include <tuple>
#include <queue>
#include <sstream>
using namespace std;
typedef tuple<int, int, int> iii;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef vector<vii> vvii;
typedef vector<iii> viii;
typedef greater<iii> giii;
typedef priority_queue<iii, viii, giii> pqi... |
e14b723acceaa14050337a5b765ed35615551e8c | 05f76534047232e08b32dfa59e0703859c206c74 | /Campfire keeper xxx engine version=1.0/code/Game/game_utils.cpp | bfb9e857a8fecbfe75ecb57a81c09c215491243b | [] | no_license | Straple/Lunar-Oblivion-CPP-2d-Game-Engine | 1f50eb864ac8569ab7acf18a72d438f2d5994b59 | 02c5669cee5ddaecd3a2befec9e043981a0e2123 | refs/heads/main | 2023-04-24T18:08:42.570009 | 2021-05-12T14:55:27 | 2021-05-12T14:55:27 | 348,034,204 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 855 | cpp | game_utils.cpp |
void draw_collision(const collision_circle& coll) {
if (eng_state.debug_mode()) {
Circle circle = coll.circle;
static_pos_update(circle.pos, !eng_state.camera_mode());
draw_circle(circle, Color(0xffffff, 128));
}
}
void draw_collision(const collision_box& coll) {
if (eng_state.debug_mode()) {
dot p0 = co... |
582b81ca9274eead19d92f6fddf09708725bbb0b | 5c68ef82ad13b694bb92763f36f939526305509d | /Config/Cpp/Templet/ConfigStruct.h | ba75c196327128ef06230456ab8deb306a821423 | [
"MIT"
] | permissive | catdoc/CSVGenCode | c33ac4ef0e4357c4713d42ccb140ed8d054cc2ce | c4f1977419ed8d700fa6a59c7de3f2acd3587f78 | refs/heads/master | 2020-06-21T03:25:10.539150 | 2018-04-20T06:13:12 | 2018-04-20T06:13:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,999 | h | ConfigStruct.h | /********************************************************************
** This head file is generated by program, **
** Please do not change it directly. **
********************************************************************/
#ifndef CODE_GEN_BY_CSV_CONFIG_STRUCT_H... |
64a0f9c3965888eea47095ca74f8175a406c3470 | 0ef6f523f64dd2461893bfa510eae3ac2da47dc1 | /Classes/CannonTypeMagicSlowLine.cpp | 5f6fe0c3a7673be2c0a725d154a0ec0e07fbe993 | [] | no_license | Crasader/ColorDefence | 2654fcd368f9a3f20056dbb8733f3f9c99264770 | e0f940c26bbf3803ff64b7a4e4d2e248967db2ab | refs/heads/master | 2020-12-07T08:41:53.498516 | 2016-05-21T06:17:23 | 2016-05-21T06:17:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,731 | cpp | CannonTypeMagicSlowLine.cpp | #include "CannonTypeMagicSlowLine.h"
#include "BulletTypeMagicSlowLine.h"
#include "NumericalManager.h"
USING_NS_CC;
bool CannonTypeMagicSlowLine::init()
{
if ( !Cannon::init() )
{
return false;
}
_cannonType = 0;
setTexture("cannons/CannonCover_MagicSlowLine.png");
return true;
}
void CannonTypeMagi... |
908bbd81b9ba9ee3d8129de9025e1919678736cd | 8483830175b98ba2915d7bf90bed728bb6a4ed75 | /Examples/include/asposecpplib/system/io/string_writer.h | 56070f466e92d5df3e477a06e6c5f9c66b7a895f | [
"MIT"
] | permissive | kashifiqb/Aspose.PDF-for-C | 83393e3173e2d74540f7ec7904eb91fb23b13550 | 13d49bba591c5704685820185741e64a462a5bdc | refs/heads/master | 2020-08-08T11:15:23.173738 | 2019-10-09T04:41:03 | 2019-10-09T04:41:03 | 213,819,800 | 0 | 0 | MIT | 2019-10-09T04:20:06 | 2019-10-09T04:20:06 | null | UTF-8 | C++ | false | false | 4,762 | h | string_writer.h | /// @file system/io/string_writer.h
#ifndef string_writer_h
#define string_writer_h
#include "fwd.h"
#include "system/iformatprovider.h"
#include "system/exceptions.h"
#include "system/reflection.h"
#include "system/globalization/culture_info.h"
#include "system/io/text_writer.h"
#include "system/text/string_builder.... |
948925f4a6f2a82ca52f86edd9b31038362875dd | e70d0bcc547d63b338ff51c253aa95d78ea99992 | /xdl/ps-plus/ps-plus/common/initializer/random/philox_random.h | 09fb8178473a8ad555a59bb1a361b58821f0395f | [
"Apache-2.0"
] | permissive | niumeng07/x-deeplearning | 2513f7ba823521c40e0346284f5dd0aca5562e40 | 6d3bc3ad4996ab8938c56d8a834af07a04dc2f67 | refs/heads/master | 2020-04-12T23:06:24.447833 | 2019-07-06T16:06:16 | 2019-07-06T16:06:16 | 162,808,758 | 2 | 0 | Apache-2.0 | 2018-12-22T12:18:01 | 2018-12-22T12:17:59 | null | UTF-8 | C++ | false | false | 7,220 | h | philox_random.h | /* Copyright (C) 2016-2018 Alibaba Group Holding Limited
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed ... |
d7b116ecb1a96aec5bedd35d282922286bf2266e | 1cf71a114fc68752034582a5d4ea9330cd9b7ace | /SP4 GDT Team 10/AI/Source/EffectReticle.h | 7cbdab87a9a4400bfb0341f51d8086fefc1b8f26 | [] | no_license | Tynk3r/2019sp4gdt | 19af09673f1ab468331d1ebd93061b13cc1caeec | 8889a96d66a8cd4bfd7f3b34b0976bdb61d34830 | refs/heads/master | 2020-04-22T02:51:27.359357 | 2019-02-28T13:03:25 | 2019-02-28T13:03:25 | 170,065,462 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 419 | h | EffectReticle.h | #pragma once
#include "EffectBase.h"
struct GameObject;
class EffectReticle : public EffectBase {
public:
enum RETICLE_TYPE {
RETICLE_OUTER,
RETICLE_INNER
};
EffectReticle(RETICLE_TYPE type = RETICLE_OUTER);
virtual ~EffectReticle();
GameObject* selected;
float reticleThickness;
float fElapsedTime;
virt... |
d4f4957e473c19b3e59ba1c523aba00b621cb89c | ed42076d431ed30b3085e378075ee3368ec8631c | /RegularRock.cpp | 9d73b420e5d90dc459ee4805da5cea3ddcf68888 | [] | no_license | yanivys4/Gold-Miner | fdebc1047a6abe2f6a4c45dd9c8e614ae46fa9d7 | d40d11c6476e4d57b01ef35594b48fed023ba068 | refs/heads/master | 2020-07-01T03:13:27.241689 | 2019-08-07T11:27:58 | 2019-08-07T11:27:58 | 201,028,797 | 2 | 2 | null | 2019-08-07T11:26:59 | 2019-08-07T10:34:24 | C++ | UTF-8 | C++ | false | false | 1,084 | cpp | RegularRock.cpp | #include "RegularRock.h"
bool RegularRock::m_registeritSmall = Factory::registerit('1', [](const sf::Vector2f & pos) -> std::unique_ptr<BoardObject> { return std::make_unique<RegularRock>(pos); });
bool RegularRock::m_registeritRegular = Factory::registerit('2', [](const sf::Vector2f & pos) -> std::unique_ptr<Boa... |
f46bf62780cbd8d418f7d51b3902990894c5fbab | 58e631e84062a18a8202fb68f5cce2c754c0fe49 | /Tools/PreZ/utils.cpp | c0f27cc1e6750aa4245c32cc2ddbc541b8677d26 | [] | no_license | zhaosiwen1949/Fire_Game_Engine | e816215833cc5a3a006da0c257f0f447c2a7cbbc | f2c13c3f32765fd6df368649fccd1b67564cb3ec | refs/heads/main | 2023-07-06T18:55:12.437310 | 2021-08-06T01:38:12 | 2021-08-06T01:38:12 | 393,214,296 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 488 | cpp | utils.cpp | #include "utils.h"
#include "soil.h"
GLuint CreateTexture2DFromPNG(const char *imgFilePath, bool invertY) {
int nFileSize = 0;
unsigned char *filecontent = LoadFileContent(imgFilePath, nFileSize);
if (filecontent == nullptr) {
return 0;
}
unsigned int flags = SOIL_FLAG_POWER_OF_TWO;
if (invertY) {
f... |
e7d0d2442bf2baadb8f327803ff76050dc12e7f1 | f828f4a295574acfd2846d151dc7d705831e7387 | /src/internet/ipnetwork.cpp | 16edc2f46e95712fb49ae3b7eda302196f7b71e4 | [
"BSD-2-Clause"
] | permissive | pfedick/pplib | 7f45ae312d7881bc7f774e77839082a7f692983f | 39296a209630b16a788a609611aaf85651b822f5 | refs/heads/master | 2023-08-22T05:24:24.242007 | 2023-08-18T19:29:13 | 2023-08-18T19:29:13 | 46,127,089 | 1 | 1 | BSD-2-Clause | 2019-10-27T15:40:00 | 2015-11-13T14:38:47 | C++ | UTF-8 | C++ | false | false | 7,933 | cpp | ipnetwork.cpp | /*******************************************************************************
* This file is part of "Patrick's Programming Library", Version 7 (PPL7).
* Web: http://www.pfp.de/ppl/
*
* $Author$
* $Revision$
* $Date$
* $Id$
*
*******************************************************************************
*... |
7dd3e01861a47184c07703b726564bcadb2695f6 | 0bcd128368e2de959ca648960ffd7944067fcf27 | /gm/crbug_1156804.cpp | d4bec89a4911e49d9c2d9be63aec09c920351885 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google/skia | ac6e39179cd33cf0c8a46d29c1a70bf78b4d74ee | bf6b239838d3eb56562fffd0856f4047867ae771 | refs/heads/main | 2023-08-31T21:03:04.620734 | 2023-08-31T18:24:15 | 2023-08-31T20:20:26 | 15,773,229 | 8,064 | 1,487 | BSD-3-Clause | 2023-09-11T13:42:07 | 2014-01-09T17:09:57 | C++ | UTF-8 | C++ | false | false | 1,816 | cpp | crbug_1156804.cpp | /*
* Copyright 2020 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm/gm.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkPaint.h"
#include "include/core/SkRect.h"
#include "include/effects/SkImageFilters.h"
#include "s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.