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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
95dc5e9318515888e1ce9e7c2981f4262c043a0f | fff4d28dc270f26e237cdc7f0c6fbf31a64d8cfa | /src/ImageOperations/Selection/UnselectOperation.hpp | bff94136e08be926a30c3cff4e2c89e20cc89be8 | [
"MIT"
] | permissive | iElden/MyGIMP | 5af412a0b912f8495281b35e676bf7f8c5d13aa0 | e973c3523e8125858c041b30846d306957bcc708 | refs/heads/master | 2021-05-24T09:34:52.863544 | 2020-08-18T14:45:54 | 2020-08-18T14:45:54 | 253,497,878 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 821 | hpp | UnselectOperation.hpp | /*
** EPITECH PROJECT, 2020
** MyGimp
** File description:
** UnselectOperation.hpp
*/
#ifndef MYGIMP_UNSELECTOPERATION_HPP
#define MYGIMP_UNSELECTOPERATION_HPP
#include "../ImageOperation.hpp"
namespace Mimp
{
//! @brief Define the UnselectOperation.
class UnselectOperation : public ImageOperation {
public:
//... |
6e5ed9bf39d7ed9fece6522b1004e7dfa643202c | 2d246284d5d1d9fcede5e8f3af943f8814351bd3 | /Arduino/RehabTracker.ino | 23e13b311a685476b8b3a65e89d14ca6efad726c | [] | no_license | TheQuadraticKing/Rehab-Tracker | da8cc410c01e35e07c35a33af52e2de1dd5bf35e | 7f360d5fcd02e5404248250200f382131e833fe1 | refs/heads/master | 2021-07-25T08:01:52.104781 | 2017-10-19T22:25:28 | 2017-10-19T22:25:28 | 108,164,911 | 0 | 0 | null | 2017-10-24T18:06:27 | 2017-10-24T18:06:26 | null | UTF-8 | C++ | false | false | 2,220 | ino | RehabTracker.ino | /*
* Testing Script by Sean Kates
* Hard coding data to write to the Central through ble_write_array
* Using this script to bypass the logic of the SEED teams code
*/
// libraries and packages we need
#include <SPI.h>
#include <boards.h>
#include <RBL_nRF8001.h>
// create an unsigned char array of length 255 (w... |
28724b0cb715372e8c0361c9c557df400025f645 | 940a3433c93f37df8f94a0973c9be0a3ea67bac6 | /SimDash/HelloWorld.cpp | 530d2d29b0dd0bbdf96836df4d3a4332bfb34287 | [
"MIT"
] | permissive | bdr27/SimDashProject | d5e8274bae0158b1d410af2a91abb9ab04201137 | d2781ddb68e6db0170570b4c8a6d6782751cabe7 | refs/heads/master | 2021-07-12T06:33:14.010781 | 2020-05-20T12:55:59 | 2020-05-20T12:55:59 | 133,655,259 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,084 | cpp | HelloWorld.cpp | #include "HelloWorld.h"
class RPM : public Drawable{
public:
/*Drawable(int x, int y, int width, int height) {
this->x = x;
this->y = y;
this->width = width;
this->height = height;*/
};
/*void Drawable::draw(&SWTFT tft, string value) {
tft.setCursor(x, y);
tft.print(value);
}*/
/* class BaseClass ... |
2ec15a7d18f15ead72cdb65ee6a88a3fc6755e90 | c7b72f418858916dc233c1799af6fe69c62edc8f | /test/core_type.cpp | 33dda3035f46805fa43068b355c91b7a8b5315ef | [] | no_license | brucelevis/fay | 5647fa58b93c74897fa0f3186646b0809d7a348c | f9c808c88558c624053189c71052e5407168faa4 | refs/heads/master | 2023-03-22T18:54:39.214633 | 2021-02-17T05:52:38 | 2021-02-17T05:52:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,499 | cpp | core_type.cpp | #include <gtest/gtest.h>
#include "fay/core/fay.h"
#include "fay/core/type.h"
using namespace std;
using namespace fay;
// -------------------------------------------------------------------------------------------------
#define FAY_TEST_TYPE_ENUM(T) \
ASSERT_EQ(type_v<T>, type_enum::T##_); \
ASSERT_TRUE((std::is_s... |
159ca6f98a9b67c2c69871d34eebc29f5d366feb | e09eaace754c45a67232e8700b3d46753b516a38 | /Source/Simulation/Solver/IISPH.cpp | 748df4d6cf6385541c60804524ef09beec5afbfd | [] | no_license | piandpower/Simulation | 0293e35123dae2e6d9ca1ec6d2a094e3be95e6d8 | 94219d5e63cbc6706c19bf29c128fc0721d5d747 | refs/heads/master | 2020-04-19T01:26:51.847245 | 2019-01-22T15:48:52 | 2019-01-22T15:48:52 | 167,872,364 | 1 | 0 | null | 2019-01-27T23:50:59 | 2019-01-27T23:50:59 | null | UTF-8 | C++ | false | false | 13,532 | cpp | IISPH.cpp | #include "IISPH.h"
#include "Simulator.h"
UIISPHSolver::~UIISPHSolver()
{
}
UIISPHSolver * UIISPHSolver::CreateIISPHSolver(TArray<UAcceleration*> accelerations,
float desiredAverageDensityError,
float desiredIndividualDensityError,
int minIteration,
int maxIteration,
float jacobiFactor,
UBoundaryPressure * boun... |
5875a8628a8008c1a906392baa636d9236380f71 | 198fff317c383ea547b7e189fce9887726eb5da7 | /Transciber.h | 6dd6c7b7f04e69c242ac8e6c35ef9e419e759e0f | [] | no_license | llkid/micro-transcribe | 7a3a296cef74887b20c243330ee84804f4125441 | ea49ecda21f21ee30667dde0b0701db44b63a3da | refs/heads/master | 2023-03-23T01:13:51.078865 | 2021-03-20T16:11:22 | 2021-03-20T16:11:22 | 349,765,622 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,529 | h | Transciber.h | #pragma once
#include "feat/wave-reader.h"
#include "online2/online-nnet3-decoding.h"
#include "online2/online-nnet2-feature-pipeline.h"
#include "online2/onlinebin-util.h"
#include "online2/online-timing.h"
#include "online2/online-endpoint.h"
#include "fstext/fstext-lib.h"
#include "lat/lattice-functions.h"
#include... |
3af8b18924fb2f10d921554fda264a4d3373dfcf | 8239c4dbd2ff13879ce474721df6ec07cb1e0f2e | /HDU_2089_不要62.cpp | 5e5903e16d5e4eccea943ab7ca8a3ecaeebb40fd | [] | no_license | wujysh/2015_ACM_Summer_Training | 815b69c633ae9385a415ca73beab07f97bd64a66 | 1bb81b03ad47c8c2ce1317232eb871809b0e31bb | refs/heads/master | 2020-04-06T03:42:01.019281 | 2015-12-19T04:37:40 | 2015-12-19T04:37:40 | 40,514,947 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 854 | cpp | HDU_2089_不要62.cpp | #include <iostream>
#include <cstring>
#include <cstdio>
using namespace std;
const int MAXN = 7;
int dp[MAXN][2], n, m, digit[MAXN], len;
int DP(int n, bool flag, bool limit) {
if (n == 0) return 1;
if (!limit && dp[n][flag] != -1) return dp[n][flag];
int ans = 0, maxDigit = limit ? digit[n] : 9;
f... |
e1464037275aad5c8d7550350508347b7c982b49 | 3cf9ef4553705abdaa1ed6bd04a9063209e2f7b9 | /Chapter2/2-2/008-interval-scheduling.cpp | 9315df638773ea2e83f632cadddb263013829774 | [] | no_license | haya14busa/arisan-book | 7848f1ce352cf3a011dc465e4c736c96a7c7b8ef | 9826475e41947e8d11a887a81be291def6dfa3e0 | refs/heads/master | 2016-09-06T19:16:18.569238 | 2014-04-07T07:52:53 | 2014-04-07T07:52:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,295 | cpp | 008-interval-scheduling.cpp | #include <cstdio>
#include <iostream>
#include <assert.h>
#include <algorithm>
const int MAX_N = 10000;
int max_n_of_jobs_can_be_paticipating(int n_of_jobs, int start_t[], int end_t[]) {
/*
* Input:
* n = 5
* s = {1, 2, 4, 6, 8} // start time
* t = {3, 5, 7, 9, 10} // end time
*
... |
c5b4c85716161e78e244ad1e78d3cd1d71578bdd | 9da55a873b57e83236f77c830b57f07c810496e6 | /PennCloud/BE_server/StorageRepositoryImpl.h | e4ebb8541b19678e1eb8526c0ce706a4f9690d72 | [] | no_license | blockspacer/CIS505PennCloud | 54f64041bc2911904246ce258af54460670e86f2 | bd78619f4a776ad07ee1823f2e2ea6fd42ea340d | refs/heads/master | 2020-12-02T15:20:55.385546 | 2019-09-19T21:54:22 | 2019-09-19T21:54:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,589 | h | StorageRepositoryImpl.h | /*
* StorageRepositoryImpl.h
*
* Created on: Nov 11, 2017
* Author: cis505
*/
#ifndef BE_SERVER_STORAGEREPOSITORYIMPL_H_
#define BE_SERVER_STORAGEREPOSITORYIMPL_H_
#include <iostream>
#include <memory>
#include <queue>
#include <string>
#include <unordered_map>
#include <vector>
#include <set>
#include "B... |
cf1bde92e390713e3a5b3d748fa9955e86c85418 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-gamelift/include/aws/gamelift/model/GameSessionConnectionInfo.h | 6e72363753605a51211f300ae2f150ce54dab007 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 15,992 | h | GameSessionConnectionInfo.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/gamelift/GameLift_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/gamelift/model/MatchedPlayerSess... |
0221388f82729a1f5dd4c7ea7e39f0a6298f2072 | 6112cb19ecea8bc29ee538b854779b8cf9160aae | /CS302-Project/CS302-Project/node.cpp | ee8e29ba7213f8214b5dbe0553d56e19c2bde100 | [] | no_license | MattGeyer87/CS302-Project | c9e0fbac59d56f7782e8a7566d147a2a4648596c | c94f8d8bdaba85d9c72858045744896e960f0725 | refs/heads/master | 2021-01-23T08:43:48.416099 | 2010-04-21T19:49:14 | 2010-04-21T19:49:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 100 | cpp | node.cpp | #ifndef NODE_CPP
#define NODE_CPP
template<class PT>
struct node{
PT info;
node *next;
};
#endif |
ec6437868fc45c94f70df722f66e9127cf833e87 | 95649ed891922f4ea3c5a0830fc7975a6c4f9156 | /oep13/Minta2/main.cpp | 77994f73f14ab1c065dabb149701cb61cdb0b4b3 | [
"Apache-2.0"
] | permissive | csuvikg/proginf-2-oep | 5b721d50072919db54fdec0b11af8792bd136680 | 791d7d692c1484af8e15d2a14bc1173429a495f2 | refs/heads/master | 2023-07-22T09:11:34.021046 | 2019-05-16T17:58:16 | 2019-05-16T17:58:16 | 171,933,743 | 0 | 0 | Apache-2.0 | 2019-03-08T23:09:48 | 2019-02-21T19:40:37 | C++ | ISO-8859-2 | C++ | false | false | 1,220 | cpp | main.cpp | #include <iostream>
#include "library/enumerator.hpp"
#include "library/linsearch.hpp"
#include "library/maxsearch.hpp"
#include "library/counting.hpp"
#include "library/seqinfileenumerator.hpp"
#include "library/stringstreamenumerator.hpp"
/// Input fájl szerkezete:
/// a fájl egy sora egy hallgató által egy tárgyból... |
6500e7c24ce0905845473f2c6d805190a68ba4b9 | 62408a02b44f2fd20c6d54e1f5def0184e69194c | /Gym/102409F/26951230_AC_296ms_15996kB.cpp | 5c8116285ccc70b135240bc121885e7305f586c5 | [] | no_license | benedicka/Competitive-Programming | 24eb90b8150aead5c13287b62d9dc860c4b9232e | a94ccfc2d726e239981d598e98d1aa538691fa47 | refs/heads/main | 2023-03-22T10:14:34.889913 | 2021-03-16T05:33:43 | 2021-03-16T05:33:43 | 348,212,250 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 750 | cpp | 26951230_AC_296ms_15996kB.cpp | #include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define pb push_back
#define pd pair<double,double>
#define pi pair<int,int>
#define pll pair<ll,ll>
#define fi first
#define se second
#define endl "\n"
#define debug(x) cout << (#x) << " : " << (x) << endl
using namespace std;
int main(){
i... |
451c13fe42480ece512b9f52c2918d5254b76aaf | 00e49c2ed2f768f6836e1f048774cab5f0330f2d | /cpp_d09_2018/tests/ex04/unit_tests_4.cpp | 92d48ded5bcb2dd6f2112febc5d1cb22e47b723c | [
"MIT"
] | permissive | ltabis/epitech-projects | 9925d446fec06b3d3110e6233600246577b4cf82 | e38b3f00a4ac44c969d5e4880cd65084dc2c870a | refs/heads/master | 2022-12-08T17:54:08.234635 | 2020-09-07T02:35:49 | 2020-09-07T02:35:50 | 293,403,489 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 816 | cpp | unit_tests_4.cpp | /*
** EPITECH PROJECT, 2019
** unit_tests_1.cpp
** File description:
** battery
*/
#include <criterion/criterion.h>
#include "Paladin.hpp"
Test(ex04, Paladin)
{
Paladin c("palachiasse", 15);
cr_assert_eq(c.getName(), "palachiasse");
cr_assert_eq(c.getLvl(), 15);
cr_assert_eq(c.getPv()... |
022652c8813bb7a7b85403498a819e63afcdfd57 | 1501f50acc22b9e915d04df435210d68e2a907ee | /include/System/Net/NetworkInformation/NetBiosNodeType.hpp | c98b0782e311b6e46b4cd8694e402977305e5308 | [
"Unlicense"
] | permissive | sc2ad/BeatSaber-Quest-Codegen | cd944128d6c7b61f2014f13313d2d6cf424df811 | 4bfd0c0f705e7a302afe6ec1ef996b5b2e3f4600 | refs/heads/master | 2023-03-11T11:07:22.074423 | 2023-02-28T22:15:16 | 2023-02-28T22:15:16 | 285,669,750 | 31 | 25 | Unlicense | 2023-02-28T22:15:18 | 2020-08-06T20:56:01 | C++ | UTF-8 | C++ | false | false | 4,796 | hpp | NetBiosNodeType.hpp | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Enum
#include "Syste... |
ab81ece550f1468beee49d74750db6c4fdbdf6d9 | 49bfbe21c4a2f957176ddce4e191deb36d376cba | /ex1-valor.cpp | ec468a4993ae9c0ffb3a5ea31dce9c5c97018906 | [] | no_license | gama18k/c-exercises | 50ea564e153ad4b14e49ef1545272f1a720e3abc | 2d52bf0e85db55249f2dec9084dd2151f6ff2652 | refs/heads/master | 2020-03-27T05:48:16.266192 | 2018-09-27T15:25:04 | 2018-09-27T15:25:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 156 | cpp | ex1-valor.cpp | #include <stdio.h>
#include <stdlib.h>
int main (){
int valor;
printf("digite um valor \n");
scanf("%d", &valor);
printf("o valor foi %d", valor);
}
|
67fe6cb7e6815995c109a68593293e4304f80ce8 | f9ef63d68b4a87836f8611e802828fcb1bb62656 | /Advanced/Navigation3D/OGLES3/Content/075_FRC.PNG.cpp | 3902403eb783be6501b11c4335c5e602ddd7d6a4 | [] | no_license | ThreeNG/Examples | 557aecb1c126479c077c6a87f08b2508c50e2c23 | 28af63cf097cbe4389cfb3c151dc1bceec19ba24 | refs/heads/master | 2021-05-26T19:29:27.809842 | 2013-08-20T19:13:04 | 2013-08-20T19:13:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 240,452 | cpp | 075_FRC.PNG.cpp | // This file was created by Filewrap 1.1
// Little endian mode
// DO NOT EDIT
#include "../PVRTMemoryFileSystem.h"
// using 32 bit to guarantee alignment.
#ifndef A32BIT
#define A32BIT static const unsigned int
#endif
// ******** Start: 075_FRC.PNG.pvr ********
// File data
A32BIT _075_FRC_PNG_pvr[] ... |
3a450693715f3601712ed944f5392f77bc055a0d | 09866ba376f9aa53ab6d129e2ff4f89076664c6d | /Source/RTSProject/Plugins/RealTimeStrategy/Source/RealTimeStrategy/Classes/RTSActorComponent.h | c839b9398bd311652e08c0b98eb6594c603081c2 | [
"MIT"
] | permissive | JaredP94/ue4-rts | c05dee7f6b94fbed6343b0b04df8d921421f9cee | 242aa314ea8a4ac4145af214399d2ecb6c25234c | refs/heads/develop | 2021-05-17T22:53:11.999359 | 2020-12-20T19:48:54 | 2020-12-20T19:48:54 | 250,988,884 | 1 | 1 | MIT | 2020-12-20T19:48:55 | 2020-03-29T08:45:49 | C++ | UTF-8 | C++ | false | false | 730 | h | RTSActorComponent.h | #pragma once
#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "RTSGameplayTagsProvider.h"
#include "GameplayTagContainer.h"
#include "RTSActorComponent.generated.h"
/** Base class for actor components with additional functionality, e.g. initial gameplay tags. */
UCLASS(meta = (BlueprintSpa... |
b82f39f698fb669b0f7db7fa44141744d1499a74 | 598de19e4412a9fefde788eb778cc4a0db2fc10f | /Uva_solutions/136.cpp | a1a01989ac637a8b8c335f5d0218ccbd09c6b69a | [] | no_license | shovonAhmed/Programming_with_cpp | 44fdcc55dc36dd03e60297365b9b522841760686 | 507dc02702e47b5fe7146dafcb7ec17995f4dadb | refs/heads/master | 2021-04-14T08:23:53.185531 | 2020-08-14T07:43:58 | 2020-08-14T07:43:58 | 249,218,760 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 336 | cpp | 136.cpp | #include<iostream>
using namespace std;
int main()
{
int n,i,count=1;
for(i=2; ;i++)
{
rem=i;
while(rem%2!=1)
{
n=rem/2;
rem=n;
}
while(rem%3!=2)
{
n=rem/3;
rem=n;
}
while(rem%5)... |
79a87aba72454528c4daab6877b3c4f972c85bd9 | 181250dfc7c2fa9e9d5aa12dc9f86be6553ce9ca | /engine/enginecode/src/independent/Camera/FreeOrthographicCameraController.cpp | 10357034faf752edc797eb6e202b1c8aa7cf3784 | [] | no_license | tinitis0/Advanced-Game-Engine-Architecture | c8304fdd555ef4f02eb799465d0a51bee6954ca8 | 5f439806c8129669499f105fde6a73f4ca0cee8f | refs/heads/main | 2023-06-30T12:50:07.581610 | 2021-07-21T22:27:55 | 2021-07-21T22:27:55 | 388,260,349 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,478 | cpp | FreeOrthographicCameraController.cpp | /*! \file FreeOrthographicCameraController.cpp */
#include "engine_pch.h"
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "Camera/Free2DOrthographicCamera.h"
#include "independent/core/inputPoller.h"
#include "independent/Events/codes.h"
namespace Engine
{
Free2dOrthographicCamera::Free2dOrth... |
8ddb7d0cf0ecfbc0f9d7a1042ccd03448954d1e7 | e1ca143fd876604d33975128eb798cdbb981677f | /SCHEDULE.cpp | 33fd2bef5998fca53bcef284693ab5dfe59fbbb3 | [
"MIT"
] | permissive | prtik147/codechef | 1414a50ce9837a5803a0e6054de136dd4ae126a7 | 16791bfeb8c2a1c6279c3433472ccaf8ef41578e | refs/heads/master | 2021-05-12T01:28:08.686837 | 2020-10-01T07:19:42 | 2020-10-01T07:19:42 | 117,559,170 | 0 | 1 | MIT | 2020-10-01T07:19:43 | 2018-01-15T15:00:04 | C++ | UTF-8 | C++ | false | false | 1,587 | cpp | SCHEDULE.cpp | /*=======================*/
//PRATEEK KUMAR MAURYA //
//NIT RAIPUR //
//IT (2015-2019) //
/*=======================*/
#include <iostream>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <vector>
#include <climits>
#include <utility>
#include <map>
#include <set>
using namespace s... |
a36aac62ba5a352f43054250444e48b2de266b9e | a0eb8ca2b6c83836d7dd64667cf87e832a0479fe | /Math/Number Theory/CountPrimes204.cpp | 3200f9af55cce7e7ac0257a8702931f70cce3491 | [
"MIT"
] | permissive | chenna1199/Data-Structures-Algorithms-Handbook | 17812178a1594935bde458760a0f16efbd51ff07 | 125a6db4a649614849a7ec68f5c034626c1cd71d | refs/heads/master | 2023-08-24T08:09:07.419059 | 2021-10-14T09:43:21 | 2021-10-14T09:43:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 884 | cpp | CountPrimes204.cpp | // 204. Count Primes
// Count the number of prime numbers less than a non-negative number, n.
// Example 1:
// Input: n = 10
// Output: 4
// Explanation: There are 4 prime numbers less than 10, they are 2, 3, 5, 7.
// Example 2:
// Input: n = 0
// Output: 0
// Example 3:
// Input: n = 1
// Output:... |
f67f27691c86bde4679814274491efee63444564 | 2af22a5f9321e3e9a81b0c66cc9fb5439048cea9 | /Medium/Single Number III/Single Number III.cpp | 5b58b485679bd69baaa6e816b3afba4435cd038b | [] | no_license | glf3/LeetCode | 13a2350ddf1ce96b35747c7acf0f9f0885cc15c9 | 889bc3aef2c15b77db5f96b82aaba0896dbd8d50 | refs/heads/master | 2016-09-10T12:09:51.664322 | 2015-09-18T17:27:26 | 2015-09-18T17:27:26 | 26,170,263 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,259 | cpp | Single Number III.cpp | #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <queue>
#include <stack>
#include <set>
#include <sstream>
#include <algorithm>
#include <map>
#include <cstring>
using namespace std;
#ifdef OK
/* Solution 1 */
typedef map<int, int>::iterator It;
class Solution {
public:
vector<int> singleNumber(v... |
6ccdfb9725e3306da70fe5b6a661bf8d96091f3d | 06238169291e3ebfdf9849c0203f5c78505dce2b | /army/Unit/Test/test_Wizard.cpp | 5b5b542cbe4e48a38711c9b3bdd2ac0f5cb469dd | [] | no_license | maksklaban/ArmyOOP | 8ca5c73537a25fae89630155488ed7f1e46192ed | f4284d4fcbc6a9736d103ad4336065d10d8de4cc | refs/heads/master | 2021-01-13T05:54:32.321269 | 2017-06-21T08:02:06 | 2017-06-21T08:02:06 | 94,978,747 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,639 | cpp | test_Wizard.cpp | #include "../Wizard.h"
#include "../Soldier.h"
#include "../Rogue.h"
#include "../Berserk.h"
#include "../Vampire.h"
#include "../Werewolf.h"
#include "../Healer.h"
#include "../Priest.h"
#include "../Demon.h"
#include "../Warlock.h"
#include "../Necromanser.h"
#include "catch.hpp"
#include <iostream>
TEST_CASE("test ... |
569bf32da14c84adbf166d96606f187fdd68a5af | 8fc2849a4ddb7b33f052ce491ac93f06ddd3983d | /viejo/Code/Grafo.cpp | 925549a18d885082d5b18a76cdb92591c6e0622c | [] | no_license | alu0100904932/CC_HC | acacf1464272ba359c03301e6632aea189681fcd | 256f0af96d55debcf70926fdf90f88859c0b410e | refs/heads/master | 2020-04-14T14:36:33.609085 | 2019-01-17T16:21:21 | 2019-01-17T16:21:21 | 163,901,515 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 877 | cpp | Grafo.cpp | /*
* Fichero: Grafo.cpp
* Autor: Cristina Garrido Amador
* Objetivo: Clase para tratar de representar y obtener la entrada del grafo del que se parte
* para construir el circuito.
*
* Creado el 8 de diciembre de 2017, 10:50
*/
#include "Grafo.h"
Grafo::Grafo() {
}
Grafo::Grafo(cons... |
085a8f817987d6d4712712e449722cfdbbd40e65 | db3d1545c37a5bad3b7451ddc8aa056fe4e67b91 | /Source/Stealie1/Stealie1GameMode.h | edc573c8499bfb23690b2be5752f1b4b348617ed | [] | no_license | JornYtterdal/Stealie1 | b602770e7085f0a0048c7ddb0f243d6622305d6e | 658eb94fbd272bb347c17a4c8607e140b401c812 | refs/heads/master | 2021-01-24T12:47:44.327763 | 2018-02-26T18:28:47 | 2018-02-26T18:28:47 | 123,150,094 | 2 | 0 | null | 2018-02-27T15:38:49 | 2018-02-27T15:38:49 | null | UTF-8 | C++ | false | false | 305 | h | Stealie1GameMode.h | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/GameModeBase.h"
#include "Stealie1GameMode.generated.h"
UCLASS(minimalapi)
class AStealie1GameMode : public AGameModeBase
{
GENERATED_BODY()
public:
AStealie1GameMode();
};
|
72357724b54d3768d8f1179f5332c4ae3cd280bb | 9fc3d66c76fca42f257070937510f9d73b288443 | /BE_xBP/Includes.hpp | 960e6cffe0f23fbf5bfead45e09c80a97846a13d | [] | no_license | uvbs/BE_Fuck | 5e16ae4c2bf3fdac550ea7646bb3a9468bd1500e | c52dd3be678ee3a6046fb9548cff2f8ceda0a657 | refs/heads/master | 2020-03-17T22:56:14.665532 | 2018-04-27T07:26:13 | 2018-04-27T07:26:13 | 134,024,140 | 1 | 0 | null | 2018-05-19T02:54:02 | 2018-05-19T02:54:02 | null | UTF-8 | C++ | false | false | 1,194 | hpp | Includes.hpp | #pragma once
#include "../BE_Starter/Common.hpp"
#define USE_VMPROTECT 0
#define DISABLE_DLLDETECTION 1
#define DISABLE_THREADDETECTION 1
#define DISABLE_APIPROTECTION 1
#define DISABLE_PROCESSDETECTION 1
#define DISABLE_BECLIENT 1
#define HOOK_PIPE 1
#define LOG_STATE 0
#define LOG_CREATESEMPAPHORE 0
#define LOG_N... |
fb8b86f30885d2ed96e5b4d69f860c3a5aa36bd0 | 2162ceede2760b54ff8b323ce6dccd735930a80a | /src/481-div2-900/BatchSystem.cpp | 0a4677927af4662a704b86141c061b78b9e52c63 | [] | no_license | kuno4n/TopCoder | 3c3ecc4a883f5fca8d3f410c9752e1e9ba967f59 | 44749cef939854db6c3644a0ae778e59467e431e | refs/heads/master | 2021-01-10T18:44:37.424057 | 2015-02-19T12:04:00 | 2015-02-19T12:04:00 | 6,072,910 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,521 | cpp | BatchSystem.cpp | #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <ctime>
#include <iostream>
#include <algorithm>
#include <sstream>
#include <cstring>
#include <vector>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <utility>
using namespace std;
#define SZ(x) ((int)x.size())
#define MSET(x,a... |
eb512bc318de4e3309dd7685fb0deaa5735087bd | 4bca2f952bc7e749bb282cebb5ba6fe4e723089e | /common/EncodeConv.cpp | cd98e78d7c303fe25c68152dbdc26134f0c0fcc2 | [] | no_license | dongtaoapp/BlsNetPlatformPro | 63081a78cac66398b6ea4cb074774898de75062e | 43ca4faa3eb1c760630a3138f1c36d4cb52ed45c | refs/heads/master | 2021-09-12T13:17:08.815046 | 2018-04-17T04:00:49 | 2018-04-17T04:00:49 | 126,117,629 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,503 | cpp | EncodeConv.cpp | #include "iconv.h"
#include ".\EncodeConv.h"
#include <boost/lexical_cast.hpp>
#define _CRT_SECURE_NO_WARNINGS
#pragma comment(lib, "iconv.lib")
using namespace std;
using namespace boost::locale::conv;
namespace jysoft { namespace utility {
CEncodeConv::CEncodeConv(void)
{
}
CEncodeConv::~CEncodeConv(void)... |
4be342aa4fb5d6d5f2cadb0d2823394c3a895501 | 6dd932a505d4fd1007ea524cc3156b697c2e5a0c | /Cgol.h | 8ebec733b9fb9eee051b0fb259caff775fba0867 | [] | no_license | exrook/Seagull | 4b712da7df957e41e8dac27dc8e7e209a4c22021 | 74c5164d23014fb6ff10b1fc3b095476427aedaf | refs/heads/master | 2016-09-11T05:10:01.197102 | 2013-10-29T03:55:49 | 2013-10-29T03:55:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 190 | h | Cgol.h | #ifndef _CGOL_H_
#define _CGOL_H_
#include "Rule.h"
class Cgol: public Rule {
char *out;
public:
virtual char* compute(const int sizeX, const int sizeY, char data[]);
};
#endif
|
0bf9e5a3ce734a6d421c56557811c4c51d137d86 | 878a4bea1220b60d15772a9544a67e737856de6a | /DSLRMacViewer/Engine/SKRenderingEngine.cpp | c53533097ac8d6e38e87aa75de2ceec876d2b2ac | [] | no_license | hsg2510/DSLRMacViewer | a11b61c018ffd09319e13579b409d76c450d74f7 | 718854b739621cff0035b71151778a6586c9f5c7 | refs/heads/master | 2022-04-05T00:12:38.266480 | 2020-02-12T08:54:00 | 2020-02-12T08:54:00 | 161,013,299 | 2 | 2 | null | 2020-02-12T13:20:08 | 2018-12-09T06:55:30 | C++ | UTF-8 | C++ | false | false | 2,013 | cpp | SKRenderingEngine.cpp | //
// SKRenderingEngine.cpp
// DSLRMacViewer
//
// Created by hsg2510 on 2018. 12. 4..
// Copyright © 2018년 hsg2510. All rights reserved.
//
#include "SKRenderingEngine.hpp"
#include "SKShaderLoader.hpp"
#include <iostream>
using namespace CP;
using namespace std;
static SKRenderingEngine *mEngineInstance = nul... |
2a5516cb44827e917bd75868f52a320dc2680794 | b72ee5f08decbfe06eebbc65012ef1d5ac151641 | /code.cpp | 9c89567b96d0c16fa6fc4d15d89b5d0494f4ef56 | [] | no_license | aicapdhacks/Equal-XOR-partition-Problem- | 5d4384028f57dc31e63e38552e85b05a7047cfc6 | da057242ad4575637b5d0c6df6ef0a1a342760e7 | refs/heads/master | 2023-07-27T02:30:21.986641 | 2023-07-10T07:17:52 | 2023-07-10T07:17:52 | 50,666,081 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 250 | cpp | code.cpp | #include<iostream>
using namespace std;
int main()
{
int n;
cin>>n; // take input
int num,exor=0;
for(int i=0;i<n;i++)
{
cin>>num;
exor^=num; // performing xor of elements
}
if(exor==0)
cout<<"1";
else
cout<<"0";
return 0;
}
|
259e91bba8ed4d98a6704afc929d14916ff3f4fa | ac40b00b3d86803d8ea59c46c79884b33711d6f5 | /scmp.cpp | c1a4211037d6a35a8d53000d94cc9e9b431b5087 | [] | no_license | adityaraj079/R171219001 | 1d4c8807e485151870d736f24393a500617dc4f6 | 0b2e6785cacd0606667195f6107608b5eec08a7d | refs/heads/master | 2022-04-20T19:51:05.436787 | 2020-04-21T07:42:45 | 2020-04-21T07:42:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,119 | cpp | scmp.cpp | #include<iostream>
using namespace std;
struct Node
{
int data;
Node *link;
};
Node *top = Null;
// Aditya Raj part start
void push(int max, int *curr)
{
if(max<=*curr)
{
cout<<”\n Stack is FULL\n”;
} else
{
int value;
cin>>value;
Node *ptr = new Node;
ptr->data = value;
ptr->link = top;
*curr ++;
... |
40a411bb3aed754e109867c2fe5258d65aa45790 | 6215dc7cc2d65fb7891c469879dec23ee6379320 | /include/FastNoise/Generators/White.inl | 98acde89161d4f7fd48b7bdc299389cec54d39d6 | [
"MIT"
] | permissive | caseymcc/FastNoise2 | 7660b523440bf0a75e316e61eb309e059139f014 | 8a180b4c1c8a67526080a35397bea16c58437171 | refs/heads/master | 2022-07-28T06:53:04.664010 | 2020-03-06T02:24:56 | 2020-03-06T02:24:56 | 246,206,333 | 1 | 0 | null | 2020-03-10T04:14:58 | 2020-03-10T04:14:57 | null | UTF-8 | C++ | false | false | 942 | inl | White.inl | #include "FastSIMD/InlInclude.h"
#include "White.h"
#include "CoherentHelpers.inl"
template<typename FS>
class FS_T<FastNoise::White, FS> : public virtual FastNoise::White, public FS_T<FastNoise::Generator, FS>
{
public:
virtual float32v FS_VECTORCALL Gen( int32v seed, float32v x, float32v y ) final
{
... |
5f81187295a52d80fda464bb528aa65a11b66a36 | 3cdad26b06fe568a64477004cba7091be58a86db | /Shadow's Play/Shadow's Play/DLList.h | 3df10cde994d86532136caeb75cde8d67f28dde7 | [] | no_license | LilElvis/Shadow-s-Play | fd121874722d513e85bd72f9743ed68c9e855a10 | 9a6bb1fcd06bbd0b7665c8c5893b46ae7aeab284 | refs/heads/master | 2022-03-10T08:01:23.065979 | 2019-01-15T03:01:54 | 2019-11-18T00:41:56 | 219,449,501 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,027 | h | DLList.h | #include <iostream>
#include <string>
#include "SceneObject.h"
namespace ENG
{
// Sorted Doubly Linked List
// The list is sorted based on priority, with the item that has the lowest priority at the front of the list.
class node {
public:
node(SceneObject* dataPtr);
int priority;
SceneObject*... |
118d85152fcd635936c4b0c9a7673e6bce9c4807 | 2fecdeaca0adf090ebf581e053daf9261b0cb743 | /C++提高编程/14.全局类外实现.cpp | 55cf60745c35df731bab0529c0998fa0a4f1cf7f | [] | no_license | ArvinRoad/C-Tutorial | 9aa5d98411aaf47d7698fddc68626349440e4806 | 4b1a535be496def8a37de7774b2d0adbadf7939f | refs/heads/master | 2022-12-29T02:37:17.298342 | 2020-10-20T06:48:21 | 2020-10-20T06:48:21 | 284,160,213 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 905 | cpp | 14.全局类外实现.cpp | #include<iostream>
using namespace std;
template<typename NameType, typename AgeType>
class Person14a1; //提前让编译器知道Person14a1的存在
//全局函数在类外实现,实现让编译器提前看见
template<typename NameType, typename AgeType>
void PrintPerson14(Person14a1<NameType, AgeType>p) {
cout << "Name: " << p.M_Name << endl;cout << "Age: " << p.M_Age << e... |
f278368eb60f0b35c92eb7d50d38b6434d5c0e1e | bd349c39bf95e58e4f5ea63efebd36d62eb5b349 | /src/core/vla.hh | cd49754ceb9f15d978417743840dbd3d164f392a | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | scylladb/seastar | 588bd4ed833837e50e92912282264b631816b6fe | 4f8c225d48565f5df4f034dcb55f5b5d2038c362 | refs/heads/master | 2023-09-05T22:07:13.027241 | 2023-09-05T05:55:54 | 2023-09-05T07:58:00 | 23,061,798 | 7,641 | 1,676 | Apache-2.0 | 2023-09-13T17:56:34 | 2014-08-18T07:01:07 | C++ | UTF-8 | C++ | false | false | 1,752 | hh | vla.hh | /*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.
*
* You may ... |
0126eacdc263c478417ab3bbd8e9ad499448dcae | f0b9bac05213ca3df3c64968d529d2883133b27f | /Renderer/Opengl/Model/MeshModel.h | ae4cde1be9826da0ce5d3a761df9eea6f9f65f41 | [
"MIT"
] | permissive | ViPErCZ/snake3d | d54d87aca269856973078791d94d290fe75ed0fd | eff3a54093c855616d42f3003fc70b60689bb1a7 | refs/heads/master | 2023-07-09T07:57:25.802945 | 2023-07-07T14:42:26 | 2023-07-07T14:42:26 | 231,792,763 | 1 | 0 | MIT | 2023-07-07T14:42:27 | 2020-01-04T16:20:21 | C++ | UTF-8 | C++ | false | false | 418 | h | MeshModel.h | #ifndef SNAKE3_MESHMODEL_H
#define SNAKE3_MESHMODEL_H
#include "Utils/Mesh.h"
using namespace Manager;
using namespace ModelUtils;
namespace Model {
class MeshModel {
public:
explicit MeshModel(BaseItem *baseItem);
virtual ~MeshModel();
[[nodiscard]] Mesh *getMesh() const;
prote... |
4d2f660731381872ff6cefa5c0f3cde465bc6b36 | a909df0ba2abf695df4a7d15350312d4c6463c48 | /UVa/11245.cpp | ebe31ee82c770cd81078edb3777dc7c332774e8f | [] | no_license | SayaUrobuchi/uvachan | 1dadd767a96bb02c7e9449c48e463847480e98ec | c213f5f3dcfc72376913a21f9abe72988a8127a1 | refs/heads/master | 2023-07-23T03:59:50.638063 | 2023-07-16T04:31:23 | 2023-07-16T04:31:23 | 94,064,326 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 269 | cpp | 11245.cpp | #include <stdio.h>
long long n, ans, times;
int main()
{
int count, m;
scanf("%d", &count);
while(count--)
{
scanf("%lld%d", &n, &m);
ans = n--;
for(n/=m-1, times=1; n; times*=m, n/=m-1)
{
ans += n * times;
}
printf("%lld\n", ans);
}
return 0;
}
|
ef2eb9f936d8d03ec2d9b8e20c748f2c9b56d0b0 | 429dcf0468c83719c25851f6a1af11527cfbb886 | /codeforces/813_C.cpp | 8f59ce663d8274837534be7afed66edd29118c8f | [] | no_license | dk-15/Codes | ff2445f1561caad78288c4cadd907e968366ef82 | d035ae93007898d7f61475d90cb44665a620f7f1 | refs/heads/master | 2020-12-02T19:39:21.007613 | 2017-07-06T00:24:35 | 2017-07-06T00:26:48 | 96,370,522 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 875 | cpp | 813_C.cpp | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define nl printf("\n")
struct node {
vector<int> adj;
};
vector<ll> depth(200005), height(200005), parent(200005);
vector<node> tree;
void dfs(ll u, ll p) {
ll i,v;
for(i=0; i<tree[u].adj.size();i++) {
v = tree[u].adj[i];
if (v != p) {
dept... |
20cf758cc37f285a97eed57e3e561f82597ac6e6 | 7a5dbfc55d2fcd43e90e14ebe3fe3fa4705a162a | /Quasics2016Code/SimpleRobot/src/Subsystems/IntakeArm.cpp | 0167cde7d0b07065135885dceb3c9f4ed70e55f3 | [
"BSD-3-Clause"
] | permissive | quasics/quasics-frc-sw-2015 | c71194921a3f0930bc16ae96952577ff029f8542 | 83aa34f475e5060e31ddf12186b48cb68430acc6 | refs/heads/master | 2023-08-23T07:13:23.194240 | 2023-08-17T23:19:51 | 2023-08-17T23:19:51 | 43,209,473 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 5,957 | cpp | IntakeArm.cpp | // RobotBuilder Version: 2.0
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// C++ from RobotBuilder. Do not put any code or make any change in
// the blocks ... |
1437598759752cf62a890178e5ef249db769e0f5 | be2a4f95696848f72c4b04ef047a23b20d038a23 | /code/c++/sensor_network/src/algorithms/heuristics.cpp | 4e4986a7b2286f204dff8526f2020035aa2b482c | [] | no_license | BatyLeo/metaheuristics2020 | 73db6793408198aedf6eea603453d58c3b0ab17f | 2771d663328ca2c7acbd228a330f60965d89c600 | refs/heads/main | 2023-01-07T21:44:38.084211 | 2020-11-03T18:29:08 | 2020-11-03T18:29:08 | 304,644,409 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,872 | cpp | heuristics.cpp | #include "heuristics.h"
Solution* shortestPathsHeuristic(const DataSet* data_set, const vector<int>& seed_vector){
Solution* solution = new Solution(data_set);
int number_targets = data_set->getNumberTargets();
int reception_level = data_set->getReceptionLevel();
if(!(seed_vector.size() == number_tar... |
eb5d7706723c1902a80ddd5a789e51250bfcbcd9 | 0f2b4d4ffe3a188082fe591eaec9c008ee783aba | /leetcode/130.被围绕的区域.cc | e199f4abf9d8fb7702c5a122aa20b20ae97f4835 | [
"MIT"
] | permissive | AimTao/algorithm-training | 46989e58a1236cda174b5b703d3b1501be2195f1 | 08e0a3299f69c2a8e98d2036a6d87a61c55e281f | refs/heads/master | 2023-03-20T23:08:47.468992 | 2021-03-07T14:20:40 | 2021-03-07T14:20:40 | 252,351,369 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,484 | cc | 130.被围绕的区域.cc | #include <iostream>
#include <vector>
using namespace std;
/*
关键点:
- 与边界 O 相接连的 O 不变
- 没有与边界 O 相接连的 O 变成 X
步骤:
1. 先挑出所有与边界 O 相连的 O,标记为 T;
- 从边界 O 出发;
- 上下左右搜索 O 点;
- 标记为 T;
2. 将所有 O 变为 X,所有 T 变为 O;
*/
int n, m;
void Dfs(vector<vector<char> >& board, int x, int y) {
if (x... |
cc8e73cb80097ebe305827629fbf4cfabbd5d978 | 05b90d2a28567be5c1b513ba22dbb988f9cc69e1 | /AMT8520_Handler/Dialog_AlignPogo.cpp | 8b177a54133096047486964c9d9fdece45b9ea5d | [] | no_license | ybs0111/AMT8520_ybs | dea0bca614e33cc83ffb8c3e4b229bbba6aaf5cf | 860a333993f64ae582a3fa671b7c91813b6eabc7 | refs/heads/master | 2021-01-11T19:08:46.581287 | 2017-07-03T12:40:44 | 2017-07-03T12:40:44 | 79,325,765 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 3,469 | cpp | Dialog_AlignPogo.cpp | // Dialog_AlignPogo.cpp : implementation file
//
#include "stdafx.h"
#include "handler.h"
#include "Dialog_AlignPogo.h"
#include "Dialog_Infor.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
///////////////////////////////////////////////////////////////////////////... |
51207c8d03cc0dad57da2bd3ddfa1bdc9f329506 | 7c64360b6e32f8576344048db7b9938ea722dedd | /npy/NPYBase.cpp | cf125d3c07b3167cd34ef8d243bdd8fd4a580e2b | [
"Apache-2.0"
] | permissive | recepkandemir/opticks | 4be08a9243c3e0abe82eca77be70178e6384e555 | 523387f7593676bab58de22d22049e650de3f5c3 | refs/heads/master | 2023-01-24T16:55:04.131498 | 2020-12-04T20:25:09 | 2020-12-04T20:25:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,075 | cpp | NPYBase.cpp | /*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* 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 ... |
0084cdbb004f9f4ad5c562feb54133f925e25526 | 0c38a8cd1cc76dd039ca402dd32a69be791fcaaa | /h/IdleThr.h | 392d6dd02d2c7c4a2811c52a376397e8ac629142 | [] | no_license | alokind/8086-multithreading-kernel | 53f21dcb91f100f8585dbd834448cb9b1158d08d | ae28b890927dbe78be7f2d1e1128ed000821b351 | refs/heads/master | 2020-05-01T01:51:54.054290 | 2019-03-22T20:28:35 | 2019-03-22T20:28:35 | 177,204,956 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 410 | h | IdleThr.h | /*
* IdleThr.h
*
* Created on: Aug 22, 2018
* Author: OS1
*/
#ifndef OS1_IDLETHR_H_
#define OS1_IDLETHR_H_
#include "syncPrnt.h"
#include "Thread.h"
#include <STDIO.H>
class IdleThread : public Thread{
public:
IdleThread() : Thread(defaultStackSize, 1) {};
void run() {
//syncPrintf("Idle");
while(1... |
e94fccec163fb2e3ba8a9f80d2649ca3a63658f0 | 612b85ba9505629deb9eeb4a8f5a1f1ed9250120 | /source/theMaze.cpp | 9aeb473647e2ba38fb11898ef20e5a5bf3b9bb5a | [] | no_license | ihsuy/CodingPractice | c2bc7e48723ef176df9f2f60c49b50af7bbc8be2 | 78bc5c7413478b7753bc2025045ce20e23ae7d60 | refs/heads/master | 2020-04-29T02:53:28.446366 | 2020-03-09T08:13:39 | 2020-03-09T08:13:39 | 175,787,251 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,481 | cpp | theMaze.cpp | #include <math.h>
#include <algorithm>
#include <bitset>
#include <chrono>
#include <fstream>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#i... |
89624d76aa61ee2a02cca2d1835a1d3a878da1b0 | 4ce498089e9ba87723f80859a319bb9b7b3ba358 | /car.cpp | ab276911b7a19a894753971701da4a627e7208c3 | [] | no_license | sit215-high-achievers/Ian_draftController | f459072ecb969da21966f2a538931d4dd3e46a36 | 0a1281acabcc63b393090f2bfa2f6524e24cc34f | refs/heads/master | 2020-06-20T03:03:29.609995 | 2019-07-24T23:02:32 | 2019-07-24T23:02:32 | 196,969,611 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,320 | cpp | car.cpp | #include "car.h"
#include <iostream>
#include <cmath>
#include <vector>
Car::Car(int speedLimit)
{
//Power, speed, acceleration values for the car
power = 0;
speed = 0;
accel = 0;
//Control functions
//Four parameters for trapezoid-shaped functions (left, right, middle-left, middle-... |
aae8e42bf54f169a2c88229fa455a3085d4fdc19 | 5a66d961d5d0542be0fcb3f83961d2f07bab2401 | /PadmeMC/MCTruth/include/MCTruthVertex.hh | 5796e538f4b7ea1d4bf2328a263913cac7eefae0 | [] | no_license | PADME-Experiment/padme-fw | 1f2b56899e311b958945d0b1c4f934dfeeba761a | bec2a83e3a32b8db38977c404d78f4f36a384f30 | refs/heads/develop | 2023-08-06T11:27:10.402467 | 2023-07-18T10:15:50 | 2023-07-18T10:15:50 | 44,676,186 | 11 | 6 | null | 2023-07-18T10:15:52 | 2015-10-21T12:57:21 | C++ | UTF-8 | C++ | false | false | 1,453 | hh | MCTruthVertex.hh | // --------------------------------------------------------------
// History:
//
// Created by Emanuele Leonardi (emanuele.leonardi@roma1.infn.it) 2021-03-24
//
// --------------------------------------------------------------
#ifndef MCTruthVertex_h
#define MCTruthVertex_h 1
#include "globals.hh"
#include "G4ThreeVe... |
4834edc47bcf507b95961e58db0524e734113871 | 39288b4c12babde1e512a6ec91efe0059ee3df4a | /AlgoSpot/JumpGame-01.cpp | 77cb8282f9a87451f2e8ce0daf1dbd231967fa10 | [] | no_license | love4rh/Training | d30f323793b1fb6b7e0b182a6d1f0641f9a94128 | 09a02af0d2f376acf2431d8a39cba5b2de7f4246 | refs/heads/master | 2021-01-17T16:08:23.825240 | 2018-06-27T06:30:08 | 2018-06-27T06:30:08 | 56,220,764 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 839 | cpp | JumpGame-01.cpp | // https://algospot.com/judge/problem/read/JUMPGAME
#include <fstream>
#include <iomanip>
#include <iostream>
using namespace std;
//istream& in = cin;
ifstream in("V:\\Work\\Algorithm\\data\\jumpGame.txt");
int board[101][101];
bool nav(int y, int x)
{
if (y == 0 && x == 0)
return true;
bool ret = false;
... |
a11ffd653cac6ca813ecd65342dc06d27f6253ff | c552e4caf87b824466fa298cdddd2c495eb5ae50 | /CF/380/B.cpp | fca98368c4af0c7f05c95efb24399d19b09d76d7 | [] | no_license | BufferNihility/acm-icpc | d2dffc535061f0f2a5bedda4f53533634d14347f | e7261bdf35fe390e32872d89eb54f4a4835feb0f | refs/heads/master | 2022-02-22T03:54:57.445377 | 2019-10-08T11:09:17 | 2019-10-08T11:09:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 959 | cpp | B.cpp | #include <bits/stdc++.h>
const int N = 1200;
int f[N][N];
int main() {
int n, m; scanf("%d%d", &n, &m);
for(int i = 0; i < n; i++) for(int j = 0; j < m; j++) scanf("%d", &f[i][j]);
int ans = 0;
for(int i = 0; i < n; i++) {
bool flag = false;
for(int j = 0; j < m; j++) {
if(f[i][j] ... |
9fe450817a73e5708f553a58a39638f98ea749c3 | d55c04653b3fc040335d610a6962d3414560d34d | /Bisection_method.cpp | ac57db5bf5abf2f082d4307201de0eab0ac724fa | [] | no_license | ahmedsaqib123/NumericalComputing-NC | e2624de05e08fcf69d98554746ce9f4676f4edf5 | 5b537ab124ad941680f5b3ef76f7cacd97c00027 | refs/heads/master | 2023-04-12T02:19:49.957948 | 2021-04-28T12:15:13 | 2021-04-28T12:15:13 | 362,454,003 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 775 | cpp | Bisection_method.cpp | #include<iostream>
#include<cmath>
using namespace std;
#define e 0.01
double func(double x)
{
return ((x*x) - 6);
}
void bisection(double a, double b)
{
if (func(a)*func(b) >= 0)
{
cout << "Asumption of the values are incorrect!" << endl;
return;
}
double x = a;
int i=0;
cout... |
81a5b461f58e4b9d80c4054ab9ccd1504adac515 | 10abc4d167c63312968257c8f7c20e0b3668ac1f | /Project-Perfect-Citizen/Code/Game/iconInputComponent.h | 395986a602cd312eca3f62e66bb2097a5e1228fc | [] | no_license | danieljluna/Project-Perfect-Citizen | adab75c5551dc70760d0de8f69a3eaf10f4a60f5 | 7d942ebba98a901789fae642cbc2024d628af95f | refs/heads/master | 2021-01-22T16:32:46.658146 | 2016-04-22T00:47:34 | 2016-04-22T00:47:34 | 43,266,914 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,616 | h | iconInputComponent.h | #pragma once
#include <SFML/Graphics.hpp>
#include "../Engine/inputComponent.h"
#include "../Engine/InputHandler.h"
#include "../Engine/Entity.h"
#include "../Engine/subject.h"
#include "../Engine/desktop.h"
#include "createWindow.h"
#include "../Engine/Window.h"
#include "../Engine/WindowInterface.h"
#include "../En... |
6f00e07d99e22d3c6c81cbc31471f053fdc5d5bc | bfd2a57a7d6980a4a67bfa8d4405c9b33838bae7 | /Src/D3D12MiniLibrary/Engine/InstancingComponent/InstanceDataManager.h | 1eb25932eab11a6db3d7503cc9dfd232d8e317a1 | [] | no_license | Mag357num/TBDR | ec936d5925e696affdf790d2f268931069a164fe | 792926bbe51bd01b0a2db72171827521fdb3af14 | refs/heads/master | 2021-10-23T21:04:27.786138 | 2019-03-20T01:30:49 | 2019-03-20T01:30:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 165 | h | InstanceDataManager.h | #pragma once
#include <vector>
#include <map>
class InstanceDataManager
{
private:
public:
private:
public:
InstanceDataManager();
~InstanceDataManager();
};
|
269778fb3a8bfee92f415e29add885d142179b96 | 6676954026226189d13747fb4ec3f0871306d7ca | /MonteCarlo Poker/MonteCarlo Poker/Deck.h | 4d7ee55326a8b00d7739a38bc31994cad60d57f0 | [] | no_license | se-mendheim/Monte-Carlo-Simulation | f16b760a63f27557f37e6723b84fa00825925be8 | a4c9b130afe5d24b486a7bf0b512f73442d8014a | refs/heads/master | 2020-08-09T05:43:30.399628 | 2019-10-09T20:00:44 | 2019-10-09T20:00:44 | 214,011,889 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,486 | h | Deck.h | /*****************************************************
Samuel Mendheim and Nic Grube ~ COMP233 Fall 2019 ~ Monte Carlo
*****************************************************/
#pragma once
#include "Card.h"
#include <stdexcept>
class Deck {
private:
int numSuits = 4;
int numCardsInSuit = 13;
int maxDe... |
73c5b314fb7e89002364ce54af2bbbbbdbf664e9 | 81212bac677b65bfd85aecd075d5e75fa1b87847 | /Graphical-AI-Solutions/AICommonLibrary/TileMap.cpp | c3bbcf7751e763c938ade62e38a24a372d2706f0 | [] | no_license | destarfighter/AI-Examples | 5bc51568fe40438f7cd88f3b7deed7bf6907c357 | 2f53bc5c02052a926d881f447c391a8d1dc6fd3a | refs/heads/main | 2023-04-16T19:12:26.442526 | 2021-05-02T11:13:34 | 2021-05-02T11:13:34 | 348,512,990 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,619 | cpp | TileMap.cpp | #include "pch.h"
#include "TileMap.h"
TileMap::TileMap()
: vertices_(sf::VertexArray())
, tileset_ptr_(std::make_shared<sf::Texture>(sf::Texture()))
, mapData_(MapData()){
}
bool TileMap::initialize(const std::string& tilesetPath, MapData mapData) {
// Load the tileset Texture
if (!tileset_ptr_->loadFromFile(ti... |
970aee1f43e09173df1664e551610de084c229c4 | b5fce3da7bb47a1963a03eeac8b634e472e31427 | /CGProject/src/Plane.cpp | a3497be2466bc471ee98db29bbac8010dbf85b4c | [] | no_license | PacchiiAkaDave/CG | 4dca73980a230654609e836a8774257d1a9481a3 | 41841400bd8864fbd4df33988c44c547560af182 | refs/heads/master | 2023-08-30T19:46:49.103051 | 2021-11-09T21:30:08 | 2021-11-09T21:30:08 | 426,391,013 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,355 | cpp | Plane.cpp |
#include <stdio.h>
#include "Model.h"
#include "stdlib.h"
#include "Plane.h"
#include "Lights.h"
#include "ShaderLightMapper.h"
//Richtung wird angegeben in Himmelsrichtung
// Hoehe des Flugzeugs wird uebergeben
Plane::Plane(Plane::Direction dir, float h) {
this->dir = dir;
this->height = h;
//Flugzeug bekommt ei... |
79a8210fc30752c93200edf6d617b9d16b39e711 | b08ea4acca1c89427b7e64880864f09682d8b4e4 | /src/liquid.h | 23454e66298feaaf301d87ed4f6b097669899ed2 | [] | no_license | elisejakob/balloongame | 7c3a7101f3817ec880377f446e0553e8ebcff353 | 5d786afe208e13fe6d2d2bd3e8d47da3d5addad0 | refs/heads/master | 2016-09-09T18:28:26.599025 | 2015-07-17T15:09:55 | 2015-07-17T15:09:55 | 39,209,218 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 295 | h | liquid.h | //
// liquid.h
// balloon
//
// Created by Elise on 15.07.15.
//
//
#ifndef __balloon__liquid__
#define __balloon__liquid__
#include "ofMain.h"
class Liquid {
public:
float x, y, w, h;
float c;
Liquid();
void draw();
};
#endif /* defined(__balloon__liquid__) */
|
665fab988b09c8f4c532ba62f013a76af89b6a33 | e3dc0a946d4a5568384202d9db51ffe723607cd7 | /Adjuster.h | cc1e0fa5a30d82e236674c54afaed2228130b7f3 | [
"Apache-2.0"
] | permissive | AJMansfield/SettingsMenu | 9bf7feee33f0faee47d159a709d56e4a4cf5e118 | 42d19b660c50ababb3ebcb60395106aac5542068 | refs/heads/master | 2021-01-21T10:04:41.192356 | 2017-03-03T21:44:22 | 2017-03-03T21:44:22 | 83,361,360 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,618 | h | Adjuster.h | #ifndef ADJUSTER_H
#define ADJUSTER_H
#define if_while(x) if ((x)) while ((x))
#include <Arduino.h>
class AdjusterBase {
public:
virtual ~AdjusterBase(){}
virtual void adjust(const int delta) = 0;
AdjusterBase * chain;
};
class DummyAdjuster: public AdjusterBase {
public:
static DummyAdjuster& getInstance(... |
874ee4056ba2969edc9b3bdb5b39f86a5a074c75 | eac0b25ba923767568547a354d7ad19f3610d33a | /src/core/context.cpp | a4ad6641afd86220eb7e61496eb7ed9c15c10f8d | [
"ISC"
] | permissive | OpenRhythm/OpenRhythm | 6c8d40a88750abebc050effcc7e1c6dab51a5c82 | 76c709455448515d352d36f48ec9cbc9f87a437c | refs/heads/master | 2020-04-11T04:30:51.813614 | 2018-01-12T09:23:11 | 2018-01-12T09:23:11 | 32,247,359 | 22 | 5 | null | 2017-09-04T03:51:14 | 2015-03-15T05:58:15 | C++ | UTF-8 | C++ | false | false | 1,208 | cpp | context.cpp | // Copyright (c) 2015-2017 Matthew Sitton <matthewsitton@gmail.com>
// See LICENSE in the project root for license information.
#include "context.hpp"
namespace ORCore
{
Context::Context(int major, int minor, int msaa)
: m_major(major), m_minor(minor), m_msaa(msaa)
{
init_video();
... |
c04756de1f8783323154d291ae8b049e45f4338d | 78f56cf11e1b5b023e32f10954f6b3378a4d4ae1 | /sensor/sensor.ino | 12bee641e23927f67dbc80954cb0ea6299f39283 | [
"MIT"
] | permissive | nohorjo/vr-walking-sensor | df97c533aff5915acbc20281ffa8756716d684f6 | da8d6d5a44d0d86b53f0cd2b85bc317555d359b6 | refs/heads/master | 2023-03-01T10:02:42.880407 | 2021-02-08T19:01:29 | 2021-02-08T19:01:29 | 319,968,767 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 572 | ino | sensor.ino | #include <ESP8266WiFi.h>
#include <WebSocketsClient.h>
#include "constants.h"
bool state = false;
WebSocketsClient webSocket;
void setup() {
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
}
delay(1000);
webSocket.begin(ip, PORT, path);
pinMode(SENSO... |
9d634f16ee9af1d456b56a391ced92448303e0ef | 7bd101aa6d4eaf873fb9813b78d0c7956669c6f0 | /PPTShell_Multi/PPTShell/DUI/RightBarItems/Button/ListBarLocalSearchItem.h | 33b624e6c6bb8ca6d99f0af0578f34d553a07fb9 | [] | no_license | useafter/PPTShell-1 | 3cf2dad609ac0adcdba0921aec587e7168ee91a0 | 16d9592e8fa2d219a513e9f8cfbaf7f7f3d3c296 | refs/heads/master | 2021-06-24T13:33:54.039140 | 2017-09-10T06:31:11 | 2017-09-10T06:35:10 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 614 | h | ListBarLocalSearchItem.h | #pragma once
//
// ListItem.h
//
#include "../ListBarItem.h"
class CListBarLocalSearchItem : public CListBarItem
{
public:
CListBarLocalSearchItem();
~CListBarLocalSearchItem();
virtual bool OnChapterChanged( void* pObj ) ; //章节切换事件
virtual bool OnRefreshGroupExplorer( void* pObj ) ; //GroupExplorer刷新按钮事... |
6b5e865af2a25af674d606a9525d3982e38c2b28 | 43ea7947c1c0883675b04975c3cbac5322916bc8 | /Pet.h | 2bf109ceba2dc939b6eea017fe4b100cf5e03ebb | [] | no_license | Sheepwalrus/PetLab | 6e6ac4180405272a7178ae60afb4fe9593fb2461 | b4cc5947d6d8411f8172675a0a4ad7e9fdd1a265 | refs/heads/master | 2021-01-12T12:06:27.787661 | 2016-11-05T16:32:05 | 2016-11-05T16:32:05 | 72,300,964 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 155 | h | Pet.h | #include <string>
using namespace std;
class Pet
{
public:
string name;
int age;
Person *owner;
virtual void action()
{
//Virtual Function
}
};
|
bef8fe9b30d553345e535346aec5f66df8147226 | 46287a77154659270f3865aa0f4097034ce89938 | /kontr/kontr/vector.h | e43df5e5cc5166d265346184e387ad33f31511db | [] | no_license | 10041/CppOOP | a0903c5c533941a9fd399c8a88366443c94bb1b0 | 7aae26465c21331adf77c3b57a53e3e2fa49132e | refs/heads/master | 2021-06-11T02:41:47.474273 | 2016-11-26T06:20:47 | 2016-11-26T06:20:47 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 1,280 | h | vector.h | #pragma once
#include <iostream>
#define VectorMax 10 //размер массива по умолчанию
class vector
{
int size; //размер вектора
int *arr; //массив элементов
public:
vector() : size(0), arr(nullptr) { arr = new int[VectorMax]; }; // конструктор без параметров
vector(int, int, ...); //конструктор с переменным числом ... |
1ea9b5d9e763f017afad33a2dbe9734bee05b661 | 58b589be581ab55e26b5dd600c89184c849f59d7 | /src/engine/renderers/Renderer.cpp | 1728fa69e386f936e2035f7923c60f7b651ea128 | [
"MIT"
] | permissive | kosua20/Rendu | 02a0b9b39997b03f9c05138749f1f9bed0f223d9 | 6dd327cec52819ee0d04a4d8e8270dbe0a27b194 | refs/heads/master | 2023-08-31T17:11:39.583115 | 2023-07-09T20:58:17 | 2023-07-09T20:58:17 | 58,236,869 | 456 | 32 | null | null | null | null | UTF-8 | C++ | false | false | 405 | cpp | Renderer.cpp | #include "Renderer.hpp"
Renderer::Renderer(const std::string & name) : _name(name) {
}
void Renderer::draw(const Camera &, Texture*, Texture*, uint){
Log::Error() << "Renderer: Unimplemented draw function." << std::endl;
assert(false);
}
void Renderer::interface(){
Log::Error() << "Renderer: Unimplemented interf... |
9697ebfe0f81634d8d847f21618e92980147544b | f222cfa6f2ed1a9325c29521f79ad3cf2230320e | /single-number.cpp | 4e2a26b9a67629f0a3289c9bfb91b5aaabfa3889 | [] | no_license | PriyaBansal01213/DS-A | f83fe6344d11bba7f3033b15c6bb798697478b56 | 15308f66dd8dc8e6df06929644f71f36bcf2a572 | refs/heads/main | 2023-06-16T19:17:53.674546 | 2021-07-14T15:33:31 | 2021-07-14T15:33:31 | 381,094,461 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 266 | cpp | single-number.cpp | #include<iostream>
using namespace std;
int calculate(int arr[], int n){
int x = arr[0];
for(int i=1;i<n;i++){
x^= arr[i];
}
return x;
}
int main(){
int n,arr[100];
cin>>n;
for(int i=0;i<n;i++){
cin>>arr[i];
}
cout<<calculate(arr,n);
}
|
ac0dbf90532041ef87f12a6b6e43f44063c02d94 | 146bfedc59ae06846c17b180d2e63350193e0db4 | /DamageCalc.cpp | d5f853dee86ac19084f85d13f6446b4fcf3622b1 | [] | no_license | DC37/MPCharacterTracker | e308d40eb734edea2cb032d92c01b3a574acf680 | e1f66f145f20fc8c6911012f31d01c9d7bc0d992 | refs/heads/master | 2021-01-19T11:15:38.933636 | 2013-06-12T05:08:32 | 2013-06-12T05:08:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,993 | cpp | DamageCalc.cpp | // Made for Mario Paintasy (MPXVI)
// (c) 2009 by RehdBlob
// Version 4.0
#include <iostream.h>
#include <stdlib.h>
#include <time.h>
int main()
{
int restart = 1;
int totnetdamage, percent;
double spattack, atk, spatklvl;
double coredamage, attack, defense, damage, netdamage;
srand(time(NULL));
while (r... |
fcc9ba01dd96fa96eefbbddeee7b56a256210a3c | 58a0ba5ee99ec7a0bba36748ba96a557eb798023 | /Olympiad Solutions/DMOJ/ioi07p4.cpp | be7b0993261ac47d3f14a8e5fe62a7f380dfb2e4 | [
"MIT"
] | permissive | adityanjr/code-DS-ALGO | 5bdd503fb5f70d459c8e9b8e58690f9da159dd53 | 1c104c33d2f56fe671d586b702528a559925f875 | refs/heads/master | 2022-10-22T21:22:09.640237 | 2022-10-18T15:38:46 | 2022-10-18T15:38:46 | 217,567,198 | 40 | 54 | MIT | 2022-10-18T15:38:47 | 2019-10-25T15:50:28 | C++ | UTF-8 | C++ | false | false | 1,515 | cpp | ioi07p4.cpp | // Ivan Carvalho
// Solution to https://dmoj.ca/problem/ioi07p4
#include <cstdio>
#include <cstring>
#include <map>
#include <algorithm>
#define MAXN 100010
#define MP make_pair
#define F first
#define S second
using namespace std;
typedef pair<char,char> cc;
typedef pair<cc,cc> c4;
map<c4,int> dp,temp;
char entrada[MA... |
2e4b635a74b9e99a20216551a690c7aec7a5f1b5 | 64c7ab81d4f13be812a5de3cd88793ef4f35ba75 | /Sprite.h | b1ff57b8e43a7c6d38f34db9bf01890fee650655 | [] | no_license | atlas3141/Tetris | f3c3da1176383c51a659990d36be536b7bfd82ec | f0bdfd4ac0d67c51aee802c3707c6792e2688a86 | refs/heads/master | 2021-01-21T10:51:50.155445 | 2017-03-01T08:19:04 | 2017-03-01T08:19:04 | 83,494,394 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 703 | h | Sprite.h | #include "SDL.h"
#include <vector>
using namespace std;
class Sprite{
protected:
SDL_Surface* image;
SDL_Rect rect;
int origin_x, origin_y;
public:
Sprite(Uint32 color, int x, int y, int w = 48, int h = 64);
void update();
void draw(SDL_Surface* destination);
SDL_Surface* get_image() const;
... |
89a436a4c47f794e8ce7970e228f6b3760d0149b | 2b0ff7f7529350a00a34de9050d3404be6d588a0 | /001_C++基本觀念/52_charstrnpy(純C的strnpy模擬)/charstrnpy.cpp | dd8c70683fd1319f2f9177c0df63abd3643ebb32 | [] | no_license | isliulin/jashliao_VC | 6b234b427469fb191884df2def0b47c4948b3187 | 5310f52b1276379b267acab4b609a9467f43d8cb | refs/heads/master | 2023-05-13T09:28:49.756293 | 2021-06-08T13:40:23 | 2021-06-08T13:40:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 240 | cpp | charstrnpy.cpp | #include <stdio.h>
#include <string.h>
void strget(const char *data)
{
int i;
char buf[4];
for(i=0;i<3;i++)
buf[i]=*(data+3+i);
buf[3]='\0';
printf("%s\n",buf);
}
void main()
{
char chrinput[]="127.0.0.1:6000";
strget(chrinput);
}
|
cdaef924139e3b08d65c64b3b5c74326c1b147db | a370e62d4bbc7bf36df8aa790b00f8535369d60d | /FreshyCalls/process.cpp | 5caeb043ef8affb7e41c509f3903059725bcaa2a | [
"MIT"
] | permissive | GWSoT/Freshycalls_PoC | ce2587cc92272a900c0d4150573b300d44274479 | bc4c5912473ce6208b3eda1fba722a18801d6403 | refs/heads/master | 2022-10-19T09:09:41.812497 | 2020-06-10T13:04:33 | 2020-06-10T13:07:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,701 | cpp | process.cpp | #include "freshycalls.hpp"
#include <algorithm>
#include <utility>
/*
* Given a PEB and a module name searches in the current process the module in memory and returns the corresponding
* base address. We do this by iterating through the given PEB
*
* @param[in] `peb` current process PEB
* @param[in] `t... |
ef248bf8bad336c736136a90fa163a38d6bd9448 | 9de0a5065bab30a2b7aa46a4635e06cb247b3e21 | /Giraffe/src/Giraffe/logic/GMSPktHandler.h | 33743045d813e6bd3f47d53c4a71e65efdc0d2c2 | [] | no_license | hustliuyuan/Giraffe | c2b4f790b2e8bca919e3bd8a2279183a6bb9896b | b55f003fd79b9d5fe077444c13b7a28921767d19 | refs/heads/master | 2020-04-09T14:17:50.274874 | 2012-03-28T02:57:48 | 2012-03-28T02:57:48 | 3,854,270 | 1 | 0 | null | 2016-02-03T09:38:36 | 2012-03-28T11:19:33 | null | UTF-8 | C++ | false | false | 2,313 | h | GMSPktHandler.h | #ifndef __GMS_PACKET_HANDLER_H__
#define __GMS_PACKET_HANDLER_H__
#include "Base/GHeader.h"
#include "SessionManager.h"
class GMSPktHandler : public IPacketHandlerTask
{
public:
typedef Network::PacketINFO PacketINFO;
typedef Network::PInetAddr PInetAddr;
typedef Network::PAddressable PAddressable;
... |
2133831e8ea2cd762e383931f2430801e80bebce | 5386865e2ea964397b8127aba4b2592d939cd9f2 | /grupa C/olimpiada/oblasten/2008/reshenija/Sofia/E/AIB/raz.cpp | 1c2ba6e337d982df0a5f373d0a6955cc28ac7697 | [] | 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 | 400 | cpp | raz.cpp | #include<iostream>
using namespace std;
int main()
{ int N,razl=100001,am=0,bm,zap1,zap2;
cin>>N;
for(int i=0;i<N;i++){
am=am+1;
if(N%am==0){
bm=N/am;
if(am>bm){
if(am-bm<razl) {
razl=am-bm;
zap1=bm-1;
zap2=am;}}
else if(bm-am<razl){
razl=bm-am;
zap1=am;
zap2=bm;}}} ... |
95cf081d0ecd4767f76071a749385ad96cf5946a | 7b5b883a28d5493578138f31ec0b1531b9c1077c | /Source/BattleTank/Public/Tank.h | b45ad73e4e4293d2c764108828f5cc3ad2795f9e | [] | no_license | BLEDE/TankGame | 1a989c2688a4f44d84a1b06f5278bba988d95180 | ddc68521ace283642a90d91751672b146b1c61cf | refs/heads/master | 2020-05-17T04:29:22.794392 | 2020-03-05T01:17:51 | 2020-03-05T01:17:51 | 183,509,312 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,601 | h | Tank.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Pawn.h"
#include "Tank.generated.h" // This must always be the last include
class UTankBarrel;
class UTankAimingComponent;
class UTankMovementComponent;
class AProjectile;
UCL... |
17749ea032136fbaf9d19b56ccb17a374933454a | d8cb4c3617f4f8c9a7a3262909ed97d635fe0522 | /App/lidar_reader/mesh_select.cpp | 1e020104137eb7a02313cf8c9e675c61254cee6e | [] | no_license | iljoobaek/3D_view | 447636915337d4b60538c7616ff077032c1f29df | b19cf4b476b4406eb24e9388f266e5bcd32f0134 | refs/heads/master | 2022-02-21T04:38:34.723317 | 2018-11-16T08:03:06 | 2018-11-16T08:03:06 | 135,342,927 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,626 | cpp | mesh_select.cpp |
#include "mesh_select.h"
void print_grid2(int grid[GRID_NUMBER][GRID_NUMBER]) {
for (int i=9; i>-1; i--) {
for (int j=0; j<10; j++) {
std::cout << grid[i][j] << " ";
}
std::cout << endl;
}
}
void print_grid1(int grid[GRID_NUMBER][GRID_NUMBER]) {
for (int i=9; i>-1; i--... |
2e32ef6d69f645adf42e20666fe4c4a347374e9c | d2f2ee922b74b92a21443012e2efe6857d7036b3 | /WinEaf/MyForm.h | 46cc2797761559a03cc874e279c68a34290b035b | [] | no_license | RezWaki/Eaf | b092ab60bfaab7c6358dc6472fa3d3e3ec6173bb | d2373ac1cd638776d3f2361acce5fd95d712c82d | refs/heads/master | 2021-01-24T08:43:08.736147 | 2018-02-27T08:44:50 | 2018-02-27T08:44:50 | 122,989,255 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 4,174 | h | MyForm.h | #pragma once
#include "newarc.h"
#include "extractarc.h"
namespace WinEaf {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/... |
6e4eeadd4acd673a49de468cf291e8ac38adc927 | a3ca1f53459ef5bc3653f900d7381c2615c51ad9 | /A314.cpp | 8b788183fe972589cb1350049346f01f1716dcf6 | [] | no_license | giongto35/CompetitveProgramming | cf7b02dfaecb46c4c949d903675817cd9c2e141b | 29b7cdf7796d4054f5e74d2bce7e0247a21968e8 | refs/heads/master | 2021-01-20T23:32:38.627994 | 2015-01-30T17:07:56 | 2015-01-30T17:07:56 | 30,082,220 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,613 | cpp | A314.cpp | #include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <sstream>
#include <iostream>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <ctim... |
ab78d1f78eb4f758eb1782e153b102b33b3fca91 | 6d4535f9d1496190cd34cb900621b35577bcfd1c | /source/Framework/GameEngine/Collision/CollisionShape/LineSegment.h | 5f9f785f3faf12746b882a03e5035b47abcc372e | [
"MIT"
] | permissive | KaiAraki/BalloonWorld | d9476101da7b9ca07387a63067edfa3c1eca61d5 | 23379c83779c4f94b1a50e611ddab01d6256f827 | refs/heads/master | 2023-02-24T11:32:15.550523 | 2019-05-28T23:55:29 | 2019-05-28T23:55:29 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 2,844 | h | LineSegment.h | //================================================================================
//! @file LineSegment.h
//! @brief 線分Class
//! @details
//! @author Kai Araki @date 2018/11/02
//================================================================================
#ifndef _SEGMENT_H_
#define _SEGMENT_H_
//**... |
623f98efbd99a15962be697ee363d56ae195c56e | 383210eddcc435a17344348b5998b6ff201e6dc8 | /InfoCidade.h | ea8255971d4f6b60929d8f19a856c3d352ebcc54 | [] | no_license | LeonardoN-Aragao/ED2-Trabalho2-2020.3 | f335137271401725d4ef136767d6968beff97d82 | b4345d2e39189904bbd04ff429edb77d24709037 | refs/heads/master | 2023-03-22T08:23:18.189422 | 2021-03-16T01:14:25 | 2021-03-16T01:14:25 | 345,864,140 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,173 | h | InfoCidade.h | #ifndef INFOCIDADE_H
#define INFOCIDADE_H
#include <iostream>
// 2020-03-27,AC,Acrelândia,120001.0,0,0
class InfoCidade{
public:
InfoCidade(){
data = " ";
sigla_estado = " ";
nome_cidade = " ";
codigo_cidade = 0;
casos = 0;
mortes = 0... |
5ea35f32350b2c2c1a1c75e09477fda157e3915b | c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64 | /Engine/Plugins/FX/Niagara/Source/Niagara/Private/NiagaraDataInterfaceVector4Curve.cpp | 81c3b6ca83ae15bfab6fe17a62b5a4bae4e90eae | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | windystrife/UnrealEngine_NVIDIAGameWorks | c3c7863083653caf1bc67d3ef104fb4b9f302e2a | b50e6338a7c5b26374d66306ebc7807541ff815e | refs/heads/4.18-GameWorks | 2023-03-11T02:50:08.471040 | 2022-01-13T20:50:29 | 2022-01-13T20:50:29 | 124,100,479 | 262 | 179 | MIT | 2022-12-16T05:36:38 | 2018-03-06T15:44:09 | C++ | UTF-8 | C++ | false | false | 8,907 | cpp | NiagaraDataInterfaceVector4Curve.cpp | // Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "NiagaraDataInterfaceVector4Curve.h"
#include "Curves/CurveVector.h"
#include "Curves/CurveLinearColor.h"
#include "Curves/CurveFloat.h"
#include "NiagaraTypes.h"
//////////////////////////////////////////////////////////////////////////
//Color Cu... |
b0f04096c127f4e196f3861ddf0b7d62bc0aa600 | 27168267643fa2e7b1ac347ed2b4d5cc9de8bdbf | /Libraries/GameLibrary/Properties.h | 1a73ccfbfb03acf873861d2cf73ee60703640464 | [] | no_license | hvanhorik-GDP/Master | f8c2b74c862963f78ee7ab987eec1e0a5b7860bd | 0ec2e27c306959ff19d0358cbe40878a8564f0dc | refs/heads/master | 2020-07-20T20:54:43.031754 | 2019-11-10T04:15:37 | 2019-11-10T04:15:37 | 206,706,071 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,462 | h | Properties.h | #pragma once
#include "XML/XMLArrayBase.h"
#include "XML/XMLAttribute.h"
namespace gamelibrary
{
class Property_name : public XMLAttribute
{
public:
Property_name() {};
virtual ~Property_name() final {}
Property_name(rapidxml::xml_node<>* node) : XMLAttribute(node) {}
virtual const std::string& GetName() c... |
92239eb224d1c8161ebae3ce3668641caa446234 | 7eb522b0c569fbedc724b34c31ea9708a098a824 | /Bearlet/FormatLoader.hpp | d1e29ed18db22d136e37bd01c898b9a012a0012f | [] | no_license | BookmanHan/Bearlet | c5b4069dc635666bf9572b261eae9d4f9f6e8832 | 045e2bff82b899301701f7ef8ea967c4e51b1458 | refs/heads/master | 2021-07-08T19:58:54.650758 | 2017-10-08T04:43:02 | 2017-10-08T04:43:02 | 106,171,954 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,863 | hpp | FormatLoader.hpp | #include "Import.hpp"
#include "Logging.hpp"
#include "File.hpp"
#include <boost/format.hpp>
#include <boost/tokenizer.hpp>
#include <boost/algorithm/string.hpp>
class FormatLoader
{
public:
FormatLoader()
{
;
}
};
class FormatLoaderText
:public FormatLoader
{
protected:
string loading_content;
public:
Forma... |
89ac82c4e734986fe967daff82df19a080e57f2b | 22e6f330cc2578e34a8779c610e5468f71b2e938 | /ProceduralTerrain/Scene.h | 300703b1654985d54ea5b5708a23625f5d3f283e | [] | no_license | ekicam2/TerrainGeneration | 61a074ffa8ef0ef4ac588820bb2a429a5a8e204b | 5194f0895f3e1e793a16174088fc6d582c6371c7 | refs/heads/master | 2021-01-12T07:59:17.929100 | 2017-01-25T19:58:55 | 2017-01-25T19:59:13 | 77,074,917 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 409 | h | Scene.h | #pragma once
#include <glm\vec2.hpp>
#include <map>
class Terrain;
class Camera;
class Program;
class Renderer;
class Scene {
public:
Scene();
virtual ~Scene();
bool init(const glm::uvec2& winSize);
void processInput(int key, int action, int mods);
void draw(Renderer* renderer);
private:
T... |
ef1a7755f7caf0fd7dcb4ceef53dc511ea235236 | 54fbab5a0ec14e4e634ef205b38787f8c4bf18e6 | /nsl/rts/incl/nsl_din_num_3.h | dbfc13edea7fb170936cfb6124c49099147aad93 | [] | no_license | biorobaw/QTNSLSpring2018 | dcc5b954e0560740657256ce953b595c828fcfad | 4d8afa6314ac6f15f09ef989e991d39b6980d712 | refs/heads/master | 2021-07-20T15:29:42.724283 | 2020-05-14T21:46:46 | 2020-05-14T21:46:46 | 162,358,177 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,335 | h | nsl_din_num_3.h | /* SCCS %W%---%E%--%U% */
//
// nsl_din_num_3.h
//
/*
template<class NslNumType, int NslTypeId>
class nsl_din_num_3 : public nsl_num_3<NslNumType,NslTypeId>
{
public:
nsl_din_num_3(const int = 0,const int = 0,
const int = 0,int=0,int=0,int=1);
nsl_din_num_3(const char*,nsl_public* = 0,
const int = 0,const in... |
ea062a9d3ae6adb02b8bf6410ffa58d4eaee055e | a9bd0c9f6a21c90104c82d547fe8377b02be6dd6 | /code source/config.cpp | 1257fed85134698462b67af583a899be26450ff9 | [
"MIT"
] | permissive | samiyc/Mario-en-ASCII | d3fc7f8f256ff82d5c22eeb83cd96e46031cacbc | c26f74914613d1396f46d972763fe48f6cdf0681 | refs/heads/master | 2020-03-17T10:14:32.165103 | 2018-05-15T11:23:36 | 2018-05-15T11:23:36 | 133,505,183 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,651 | cpp | config.cpp | /*!==================================================================
Nom : config.cpp
Projet : mario
Editeur : Samuel Yanez-Carbonell
===================================================================*/
//#define FINAL_MODE
//LES VARIABLES GLOBALES ============================================
int... |
fe7d5a2d86d0a1c5865d90343bebe8bfc4ad0d11 | a055c41211c4143e1a9c3ec93d5ffe701272a349 | /gui/script_generator_frame.cc | 73c59b06413cf9f07e53c8eb3336c82112ef6dfd | [
"Artistic-1.0"
] | permissive | teamhimeh/simutrans | 7ed04e4218f727831191b7e2420b19b2c9849650 | ff35971ca4bdfe6007ac71de63fcff6d1276e166 | refs/heads/OTRP | 2023-09-02T23:05:44.165750 | 2021-10-06T13:17:58 | 2021-10-06T13:17:58 | 82,244,298 | 27 | 20 | NOASSERTION | 2022-11-24T13:42:32 | 2017-02-17T01:37:33 | C++ | UTF-8 | C++ | false | false | 1,161 | cc | script_generator_frame.cc | /*
* This file is part of the Simutrans project under the Artistic License.
* (see LICENSE.txt)
*/
#include "script_generator_frame.h"
#include "../script/script_tool_manager.h"
#include "../dataobj/environment.h"
#include "../dataobj/tabfile.h"
#include "../dataobj/translator.h"
#include "../simdebug.h"
#include ... |
e510aa6428795d72fa90fc9b7adf08ebb88b4b2e | ec98c3ff6cf5638db5c590ea9390a04b674f8f99 | /components/SampleSummaryComponent/include/components/SampleSummaryComponent/SampleStorage.hpp | ed1edd2c533512fcab812649ede3da59fcbeb519 | [
"GPL-1.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0"
] | permissive | gavinband/qctool | 37e1122d61555a39e1ae6504e4ca1c4d75f371e9 | 8d8adb45151c91f953fe4a9af00498073b1132ba | refs/heads/master | 2023-06-22T07:16:36.897058 | 2021-11-13T00:12:26 | 2021-11-13T00:12:26 | 351,933,501 | 6 | 2 | BSL-1.0 | 2023-06-12T14:13:57 | 2021-03-26T23:04:52 | C++ | UTF-8 | C++ | false | false | 1,049 | hpp | SampleStorage.hpp |
// Copyright Gavin Band 2008 - 2012.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef QCTOOL_SAMPLE_SUMMARY_COMPONENT_SAMPLE_STORAGE_HPP
#define QCTOOL_SAMPLE_SUMMARY_COMPONENT_SAMPL... |
4f27c0f58d2c8ae1f0286608bb3fad7534c8fd08 | 36164d3caa7f4ee3206b09498804658e92964316 | /StageRunner/fx/fxitemobj.h | 875e94a2bbb27fdc6781ea6a7838ab0814bcb396 | [] | no_license | Pit1966/StageRunner | 7d7c73d81e636f46f843afbcf50467d7f1c89b2d | ac2384cba7c15266974fc7aa95885bf56cc2c4a4 | refs/heads/master | 2023-03-09T11:54:58.495853 | 2023-02-23T23:06:33 | 2023-02-23T23:06:33 | 184,044,057 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,481 | h | fxitemobj.h | //=======================================================================
// StageRunner
// Multi platform software that controls sound effects, sound recordings
// and lighting systems on small to medium-sized stages
//
// Copyright (C) 2013-2019 by Peter Steinmeyer (Pit1966 on github)
// (C) Copyright 2019 stone... |
20b482f3946f2d163c37bfdd4b607f5be212f0ca | ecac474a3f5095c61cfccd0e69cab0d4ca050ebd | /BZOJ/BZOJ3688.cpp | 6cc481875fb4b53670697d2b718b75b3e26d100d | [
"Apache-2.0"
] | permissive | xehoth/OnlineJudgeCodes | 478e678b35ba1b7e168b8230da594f03532aa74c | 013d31cccaaa1d2b6d652c2f5d5d6cb2e39884a7 | refs/heads/master | 2021-01-20T05:37:25.194545 | 2019-08-17T16:07:02 | 2019-08-17T16:07:02 | 101,457,867 | 7 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 2,707 | cpp | BZOJ3688.cpp | #include <bits/stdc++.h>
namespace IO {
inline char read() {
static const int IN_LEN = 100000;
static char buf[IN_LEN], *s, *t;
s == t ? t = (s = buf) + fread(buf, 1, IN_LEN, stdin) : 0;
return s == t ? -1 : *s++;
}
template <typename T>
inline void read(T &x) {
static char c;
static bool ios... |
81fb33cdaf7c08d2427da923f9683b332906fcfc | 634994b09a0850f2370dec6ccdb356b700a31b24 | /LuaFunctions.cpp | 00559ed8da9de91043f71e8af269dacaf64d7b6d | [] | no_license | Rastrian/Eluna | 1c518467099e804bdefe634a28ebd38da3c26eb3 | 3aba229ceeb138d403e93f0277c803791068bbf1 | refs/heads/master | 2021-01-18T13:00:46.136019 | 2015-04-10T20:27:59 | 2015-04-10T20:27:59 | 34,008,071 | 2 | 0 | null | 2015-04-15T17:21:05 | 2015-04-15T17:21:05 | null | UTF-8 | C++ | false | false | 109,924 | cpp | LuaFunctions.cpp | /*
* Copyright (C) 2010 - 2015 Eluna Lua Engine <http://emudevs.com/>
* This program is free software licensed under GPL version 3
* Please see the included DOCS/LICENSE.md for more information
*/
extern "C"
{
#include "lua.h"
};
// Eluna
#include "LuaEngine.h"
#include "ElunaEventMgr.h"
#include "ElunaIncludes.h"
#i... |
b488f6950799b11036958defb6c18a14da437d5c | ac53584919db7d8bb057243cb7475b49fca615a0 | /src/modules/signal/KneeClipper.cpp | 54674b4c59a44f5d4a26a00105c60b9472a8e3ef | [
"MIT"
] | permissive | Solertis/ofxPDSP | 3b7bdc4465b27ee9cd7ae6cdd96ba7b540a613df | 49b320fccb47daa027dec8f5443a8d9f9d2ea7d5 | refs/heads/master | 2021-08-23T09:11:53.782735 | 2017-12-04T12:55:48 | 2017-12-04T12:55:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,539 | cpp | KneeClipper.cpp |
#include "KneeClipper.h"
void pdsp::KneeClipper::patch(){
addModuleInput("0", input_gain0);
addModuleInput("1", input_gain1);
addModuleOutput("0", output_gain0);
addModuleOutput("1", output_gain1);
addModuleInput("threshold", threshold_ctrl);
addModuleInput("knee", knee_ctrl);
... |
a5f4713dc37f709adbb2a86c7d5e4ea7c63968ce | 18678326e0d9111d4d3528e7b3dbb318e419dfdc | /src/Matrix.cpp | 91ba6165aa8cf1dd26aac5cc86cb1b50ef3a911a | [
"MIT"
] | permissive | progs2002/LinearTransformation | cba611f52717bc2722af2be09b7b21562ba08ce8 | 3515348bbdd25542c1a4314ae68e807347c8257e | refs/heads/main | 2023-07-18T12:17:30.650820 | 2021-08-29T12:01:26 | 2021-08-29T12:01:26 | 370,135,515 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 267 | cpp | Matrix.cpp | #include "Matrix.h"
Matrix::Matrix(float ix, float iy, float jx, float jy)
{
this->ix = ix;
this->iy = iy;
this->jx = jx;
this->jy = jy;
}
Vector* Matrix::getiVector()
{
return new Vector(ix, iy);
}
Vector* Matrix::getjVector()
{
return new Vector(jx, jy);
} |
fa8674a092565ec402ae80952e32350c2c694216 | 92eeef4be893943d3f724375299d49b37fde8d50 | /Trees/height.cpp | 764307bbb353315713948c2bc471cd85b534b167 | [] | no_license | kuluruvineeth/coding_questions | 51593c272bcd3c2d0f2d572d02c8949bd84412fa | ad59620ff8be13dcc4db832466ca4681e7a32ad3 | refs/heads/master | 2023-03-18T01:50:45.624087 | 2021-03-05T14:18:04 | 2021-03-05T14:18:04 | 299,634,419 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 761 | cpp | height.cpp | #include<bits/stdc++.h>
using namespace std;
typedef struct node
{
int data;
struct node *left;
struct node *right;
node(int value)
{
data = value;
left = NULL;
right = NULL;
}
}no;
void preorder_traversal(no *node)
{
if(node == NULL)
{
return;
}
cout<<node->data<<" ";
preorder_traversal(node->le... |
5162461d9b8cac65770eefc2560c817bb55f4e42 | f6eb77c0cd038bb1966de0989d29b5c3b6482ca5 | /examples/rc_comm/rc_comm.ino | 941a01722dcfdf0b986fd814c75fb770cbf1e12b | [
"MIT"
] | permissive | DrexelASME/sdc_2018 | 4af0118627f6b9c69edcb28f28da72b99333ff33 | ed18c5864ec5479c034960c49b86d32ae3d29a7f | refs/heads/master | 2021-04-30T06:58:49.745840 | 2018-02-15T02:54:37 | 2018-02-15T02:54:37 | 121,459,472 | 0 | 2 | MIT | 2018-04-16T06:49:54 | 2018-02-14T01:54:00 | C++ | UTF-8 | C++ | false | false | 809 | ino | rc_comm.ino | /**
* @file rc_comm.ino
* @brief Example of how to get data from RC controller
* @author Frederick Wachter - wachterfreddy@gmail.com
* @date Created: 2017-01-27
*/
#define PULSEIN_TIMEOUT 100000 // 0.1 second timeout
const int CH1 = 11;
const int CH2 = 11;
int CH1_OFFSET, CH2_OFFSET;
void setup() {
Serial.... |
6b8df07c50324921d5fb0cab4c84e5b148539395 | 48ff170be438ac2bbaaaa61c70d4128a2fc64307 | /day19/exceptions.cpp | 858d41583f0eb5e7c1c6d09f0711db183c34890a | [
"MIT"
] | permissive | PiRaj1404/basic_cpp | 2418b2892aea1bbafee2881a0f77920f0ee329d7 | 61a9692c4977c7af79b8cb264aea01c662e8a71a | refs/heads/master | 2022-12-29T09:48:18.634915 | 2020-10-19T15:02:12 | 2020-10-19T15:02:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,889 | cpp | exceptions.cpp | #include <iostream>
#define ERROR_CODE 100 // alias
class myException{
public:
std::string getErrorMessage(){
return "myException sample exception message";
}
int getErrorCode(){
return -9;
}
};
class something{
private:
std::string _msg;
p... |
e71079969253ba221e753fafec9dcde16744c3d1 | 15a56f5d6b4730c9f64db13f3a232fa4b480c999 | /4.그래프, DFS, BFS 관련 보충문제/77. 친구인가(Union&Find 자료구조).cpp | dc3a2c39d48ae9710e14c42bb28c08a933ddbae4 | [] | no_license | juwon0605/algorithm_basics | 3c24e86d4afcadffe812d653a42534ca76ae715a | 4dd42e3038c98b79668968225ac67f428950c082 | refs/heads/main | 2023-06-04T18:16:48.813863 | 2021-06-25T17:57:43 | 2021-06-25T17:57:43 | 330,885,405 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,020 | cpp | 77. 친구인가(Union&Find 자료구조).cpp | //#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;
/*
77. 친구인가? (Union&Find 자료구조)
오늘은 새 학기 새로운 반에서 처음 시작하는 날이다. 현수네 반 학생은 N명이다. 현수는 각
학생들의 친구관계를 알고 싶다.
모든 학생은 1부터 N까지 번호가 부여되어 있고, 현수에게는 각각 두 명의 학생은 친구 관계
가 번호로 표현된 숫자쌍이 주어진다. 만약 (1, 2), (2, 3), (3, 4)의 숫자쌍이 주어지면 1번 학
생과 2번 학생이 친구이고, 2번 학생과 3번 학... |
f8bfbdf5456cd2ed8abf7b2ec56bbcf2e5a4f6df | 5107e9eccb45fcce5def7c4ecbec3281226242db | /postscriptemulation.cpp | f34de13c788821a28440e61aee58801164a83862 | [] | no_license | qbolec/c | 1b2b0276497f60f5b117c1393d828b8c4dc16dc2 | 52a6144c68def40748f37e8862edde16d23a4e1d | refs/heads/master | 2020-06-08T23:07:37.339071 | 2009-09-30T07:29:00 | 2009-09-30T07:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,718 | cpp | postscriptemulation.cpp | #include <iostream.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <iomanip.h>
struct vec{
double x;
double y;
};
vec axisx={1,0},axisy={0,1},orin,turtle;
double ang=0;
double scx=1;
double scy=1;
int bgbr=0;
const double DEG_TO_RAD=0.0174532925199433;
double... |
6a5dc7ef3249ae3d660ea382e46ae41dbbc9cd70 | f71fe728904863239420d52a11f6972240166c11 | /Lib/src/spi.cpp | e5b1fa7d55df498ce6c7310a7c00f1ae32c37fd3 | [
"Apache-2.0"
] | permissive | joson1/thunderlib32-AC6 | 1ccc3bd1ec2e7f3b6d1e2c7b2d69335e7be61d54 | d3e551eb3d4aada0bfdd0a129349e25dd7400584 | refs/heads/master | 2020-04-17T14:46:07.515133 | 2019-04-15T13:58:32 | 2019-04-15T13:58:32 | 166,671,006 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,066 | cpp | spi.cpp | #include "spi.h"
#include "gpio.h"
void _spi1::init(uint8_t SPI_MODE,uint8_t data_width)
{
GPIO_InitTypeDef gpio_init;
// gpio_init.Mode = GPIO_MODE_OUTPUT_PP;
// gpio_init.Pin = GPIO_PIN_5;
// GPIO::Init(GPIOA,&gpio_init);
gpio_init.Mode = GPIO_MODE_OUTPUT_FF;
gpio_init.Pin = GPIO_PIN_6|GPIO_... |
9b7d0a8e7a2517004f5777efee4abd3baf0ef773 | 6e27d860f19539274be143b961b002c911fc78b9 | /ports/arduino/arduino-rpi-say-your-name/arduino-rpi-say-your-name.ino | 4d3156041a54233164c9c31937904020ecac96d0 | [] | no_license | enseitankado/raspberry-pi | d04de49a334a1199a80555547dc9fc71b0ae91b4 | 6d223379c03bbb1db8edd6adf1ea03479a3b7706 | refs/heads/master | 2021-06-19T11:52:52.401846 | 2021-01-03T12:22:16 | 2021-01-03T12:22:16 | 141,041,874 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 433 | ino | arduino-rpi-say-your-name.ino | void setup() {
Serial.begin(115200);
// Karsilama mesajini yaz
Serial.println("Serial arabirimi 115200 baud da basladi.");
}
void loop() {
// Raspberry Pi'a yaz
Serial.println("Bana adini soyler misin?");
// Raspberry Pi'dan geleni oku
while (Serial.available() == 0);
String isim = Serial.readString()... |
696dcc4f6eed44232926409fed5d36d388fed646 | 6c532c07712e2cf7e164121ac171184a77e81257 | /diagram_writer.h | 1ac17b2afaf751dbedeec0ded2c9b9a89214e7d6 | [] | no_license | BrickBot/QtNQC | 1911203a34fd86307cd498330c6a8415a1ecc0d4 | ab7852cd8c9479a227d03352c077696471e21c98 | refs/heads/master | 2023-02-22T03:50:17.649429 | 2023-02-11T15:59:49 | 2023-02-11T15:59:49 | 243,972,842 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 501 | h | diagram_writer.h | #ifndef _DIAGRAM_WRITER_H_
#define _DIAGRAM_WRITER_H_
/*
** -- Qt Classes --
*/
class QString;
class QWidget;
/*
** -- Local Classes --
*/
class editor;
/*
** -- Qt Includes --
*/
#include <qfile.h>
#include <qcursor.h>
#include <qmessagebox.h>
#include <qtextstream.h>
#include <qapplication.h>
/*
** -- Local In... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.