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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7a4c10bd8ed8cd810a3ca4ba5c984d4a7db0ddec | a35b30a7c345a988e15d376a4ff5c389a6e8b23a | /boost/icl/type_traits/is_interval_container.hpp | a218762d00fa1f763ecad2e47cb654e05a20d05c | [] | no_license | huahang/thirdparty | 55d4cc1c8a34eff1805ba90fcbe6b99eb59a7f0b | 07a5d64111a55dda631b7e8d34878ca5e5de05ab | refs/heads/master | 2021-01-15T14:29:26.968553 | 2014-02-06T07:35:22 | 2014-02-06T07:35:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 83 | hpp | is_interval_container.hpp | #include "thirdparty/boost_1_55_0/boost/icl/type_traits/is_interval_container.hpp"
|
4f8f674b1b3849974022c8c2f74eabc8962882c3 | e2d0684b32fdaeef050cca038f6cc68375227096 | /Engine/Source/Physics/PhysicsActor.cpp | 1cc2521a6471e9ef8e1eba2094dcb2a17dfc5e7f | [] | no_license | wdrDarx/DEngine2 | d6b3854e7f22a38e2c99c62e1f8ce6910e6763c6 | e86790ddfdc9334887477df5dfbf77797e68354b | refs/heads/main | 2023-08-23T21:52:19.057167 | 2021-10-17T17:51:55 | 2021-10-17T17:51:55 | 387,153,879 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,600 | cpp | PhysicsActor.cpp | #include "PhysicsActor.h"
#include "PhysicsWorld.h"
#include "PhysXAPI.h"
#include "PhysicsLayer.h"
#include "DEngine.h"
#include <glm/gtx/compatibility.hpp>
PhysicsActor::PhysicsActor(PhysicsScene* physicsScene) : m_PhysicsScene(physicsScene)
{
}
PhysicsActor::~PhysicsActor()
{
for (auto& collider : m_Colliders)
... |
a52ccb014bab5dfcd2de1ebcdf27785f1cdb111e | 483e8c3fd98536fa17f9a0a41923f60e2a79d55a | /sources/src/spatial/objet/Navette.h | 5aaa949452d41ae7d68db16df9d0a0b97aad2f3d | [] | no_license | Shailla/jeukitue.moteur | b9ff6f13188fb59d6b8d2ea8cde35fc7d95dd3dd | acc996f240699b5ec9c6162e56c5739f86a335a5 | refs/heads/master | 2020-05-22T04:20:33.298261 | 2014-11-20T22:20:43 | 2014-11-20T22:40:11 | 34,282,766 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 2,303 | h | Navette.h | #ifndef __JKT__NAVETTE_H
#define __JKT__NAVETTE_H
#include <vector>
using namespace std;
#include "spatial/Mouve.h"
#include "util/V3D.h"
class CGame;
namespace JktMoteur
{
class CMap;
class CIstreamMap;
class CPointNavette
{
public:
static const char* identifier;
float m_Vitesse; // Vi... |
33fc2d764fa7a70a9ba3a2f350ff5c0ebc6050e9 | c95d1027e178b616e8fb785c321b65a82cf18455 | /goose.cc | 9ec8966d98c578595a01333964349e125da5e147 | [] | no_license | ShiqinRan/Watopoly | b9fdca18fcb3f1f66b75d4121aa872abb5cfa2e3 | bc72390e1bea76514017f6892b9a9f8ee86871e2 | refs/heads/master | 2020-06-14T20:42:58.199142 | 2019-07-04T18:54:45 | 2019-07-04T18:54:45 | 195,119,454 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 424 | cc | goose.cc | #include "goose.h"
#include "player.h"
using namespace std;
Goose::Goose(string name, Xwindow *w): Cell{name, w} {}
void Goose::landOn(Player *p) {
cout << p->getName() << " Is Attackted by a goose" << endl;
}
CellType Goose::cType(){
return CellType::Non_Property;
}
void Goose::draw(int x, int y, int color) ... |
3e64e55f796b8112de374756bedf12f3140e2637 | 2881f513e776c6edcada55f8f6b929586dd75afa | /cse20212make/Pokemon.h | 122d57a29dfa5ace3aa19d51738d9f2ddae3502f | [] | no_license | ahansen3/Cse20212 | 8cb74789e93d722b712eec01f42a1d50db820839 | 00558b683e7de6efd6e38ee2af9b5c77c0188f1b | refs/heads/master | 2021-01-21T11:46:51.885183 | 2014-05-01T02:31:46 | 2014-05-01T02:31:46 | 17,455,439 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,501 | h | Pokemon.h | /* Pokemon Project
Alex Hansen
Pokemon.h
Pokemon Class.
Pokemon Object
Stores all the attributes of a pokemon, getter/setter functions for the proper values, and some interaction functions
*/
#ifndef POKEMON_H
#define POKEMON_H
#include <stdlib.h>
#include <iostream>
#include <string>
#include "Location.h"
#include ... |
12ab0ce27057b9b46a5c3da677ec2cd80d986d5f | 479e7546840d7d201d98cff7689c81617e804d6d | /whereEval.h | fc5a368af5772e2478bd02fc081a06b85103093c | [] | no_license | tekale2/Tiny-SQL-DBMS | 467f1b0859fe0e1166941a1d3bdb8d24e54b5938 | aaf6553704abb8b20d8c17fa2f388c989be7e833 | refs/heads/master | 2021-08-23T07:04:10.947762 | 2017-12-04T02:06:32 | 2017-12-04T02:06:32 | 110,429,447 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 897 | h | whereEval.h | #ifndef _WHERE_EVAL_H
#define _WHERE_EVAL_H
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
#include "./StorageManager/Field.h"
using namespace std;
class CondEval
{
private:
vector<string> postfix;
unordered_set<string> ops;
unordered_map<string, enum F... |
214f6596f2c4fae8cb334739987f38f03cd10f8c | dba17c545c97f1135536a4e3348430654a589438 | /reflective/introspect.hpp | 5fb6494ac0ff67a26deaaa75af33cc7c32a1588f | [] | no_license | tim42/reflective | de714db3df80547d167404a47805cc8142cea130 | bbae865309a74611351fd48b859452d30138816e | refs/heads/master | 2020-04-07T02:24:27.228357 | 2017-01-23T22:20:22 | 2017-01-23T22:20:22 | 50,803,668 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,889 | hpp | introspect.hpp | //
// file : introspect.hpp
// in : file:///home/tim/projects/reflective/reflective/introspect.hpp
//
// created by : Timothée Feuillet on linux-vnd3.site
// date: 31/01/2016 14:00:13
//
//
// Copyright (C) 2016 Timothée Feuillet
//
// This program is free software; you can redistribute it and/or modify
// it under the... |
0e7f86a3c79df95a0740a6f6559ceb4483c8afda | b01dec5c7410787cc85060075af1f19e035edcc2 | /src/SystemCommand.cpp | 871b4ef77a3f6ed89ef6b910852c80e889b0fff5 | [] | no_license | DorianHawkmoon/Graphiure | b32529ce5b1c0c7ef1c15d73e25490ee6f488ea0 | 3cf29fc52cf40409452544a5addc4f012c49f043 | refs/heads/master | 2021-01-17T01:37:08.151407 | 2016-12-10T13:35:50 | 2016-12-10T13:35:50 | 33,836,230 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,041 | cpp | SystemCommand.cpp | /*
* File: SystemCommand.cpp
* Author: dorian
*
* Created on 27 de marzo de 2015, 18:08
*/
#include "SystemCommand.h"
SystemCommand::SystemCommand() : commandable() {
type=TypeSystem::INPUT;
}
SystemCommand::~SystemCommand() {
}
void SystemCommand::finalize() {
}
void SystemCommand::initialize() {
}
... |
ed77c7fe397c8934794b52c792332544b751e338 | 7179e87f61d9da0d906310b00bc6a46bfb85725c | /benchmark/mnist.cc | 7d2539db2cf66509760ff3fdc8c55f498508d6cf | [] | no_license | lining1111/tf-cpu | b206930e96d73752f0675549cce3aa9b94a8f585 | c0c96ca023cecc48bd9091f93686cab6359c272d | refs/heads/master | 2023-06-25T06:17:43.882001 | 2020-10-20T00:52:18 | 2020-10-20T00:52:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,711 | cc | mnist.cc | #include <inttypes.h>
#include <libgen.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#define _BSD_SOURCE
#include <endian.h>
#include <ios>
#include <memory>
#include <string>
#include <vector>
#include <gflags/gflags.h>
#include "simple_network.hpp"
DEFINE_int32(neurons, 30, "");
DEFINE_int32(epoc... |
31df0aff491ee7478f5e05508969a24a96f4752e | a725c4f380cc19b46ff97e769cf3cbf44214333b | /cpp-leetcode/leetcode39-combination-sum_backtracking.cpp | d6274fa77b327e9b03259bed602d5496114833bc | [
"MIT"
] | permissive | llenroc/leetcode-ac | b4e120d42aa138bfaa092a24dc941b03eb0c9279 | fd199fe254898fcb5de7d16a5d39ff78cfcd1026 | refs/heads/master | 2023-08-12T07:58:16.609374 | 2021-10-12T14:03:23 | 2021-10-12T14:03:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,154 | cpp | leetcode39-combination-sum_backtracking.cpp | #include <algorithm>
#include <vector>
#include <iostream>
using namespace std;
// dfs
class Solution {
vector<vector<int>> res;
public:
vector<vector<int>> combinationSum(vector<int>& candidates, int target) {
vector<int> curGroup;
dfs(candidates, target, curGroup, 0, 0);
return res;
... |
87dac4b3d2bed51bf9805394b8cde8bb00e2950c | 4bd4cd8725113cf6172005e36c1d22d2c04df769 | /code5/src/include/eff_far.hpp | 2728dd43897608e8ba124810e44d84dbf452181d | [] | no_license | gjwei1999/PandaX-4T_sdu | 0389999da02334e1201efb8a7e534421401e7cdc | 7134cd5cd37e5be788d962ea7ee49ade0e9e660f | refs/heads/master | 2023-06-26T00:59:44.196253 | 2021-07-22T14:04:40 | 2021-07-22T14:04:40 | 318,829,423 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,283 | hpp | eff_far.hpp | /***************************/
/* */
/* Created by Jiawei Guo */
/* Shandong University */
/* */
/***************************/
#ifndef EFF_FAR_H
#define EFF_FAR_H
#include "TH1D.h"
#include "TH2D.h"
#include "TMath.h"
#include "TFile.h"
class Eff_far{
private... |
5ba3817af2e25b48b3cd58dbddefcd02f4ebf283 | a5a934e6039c24e1311a00303f653fbac89e911f | /misc/concert/main.cpp | e32e252a2c93067036c7101aefe2c3134b20c740 | [
"MIT"
] | permissive | wdjpng/soi | 8bd9561a3a3d86a0081388cde735a2d2cd3b3de8 | dd565587ae30985676f7f374093ec0687436b881 | refs/heads/master | 2022-11-19T03:26:58.386248 | 2020-07-15T15:35:48 | 2020-07-15T15:35:48 | 171,109,395 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,183 | cpp | main.cpp | #include <iostream>
#include <vector>
#include <queue>
#include <limits>
#define int long long
using namespace std;
signed main() {
// Turn off synchronization between cin/cout and scanf/printf
ios_base::sync_with_stdio(false);
// Disable automatic flush of cout when reading from cin cin.tie(0);
cin.... |
b40169069f39e1bb3559e2c1aaed8dcd906075db | 3569ff39cc1c7bb82aa359d86bfa7a052d437f9e | /toytracer/ppm_image.cpp | 7b5582e33c2e22feeb8f1c5a1c7f33c6aa911da7 | [] | no_license | patback66/COEN148 | 00d215f0a8067a77763282f85c5b6dbff1585c96 | edbb9ff975019ba205822dc4d3dc93baae268c8c | refs/heads/master | 2021-01-17T11:04:50.980131 | 2017-03-15T18:00:46 | 2017-03-15T18:00:46 | 42,891,290 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,958 | cpp | ppm_image.cpp | /***************************************************************************
* ppm_image.cpp *
* *
* The image class defines a trivial encoding for images known as PPM *
* format... |
06d7655afb720d9fcbcc07f49a88e3acc0795d3b | 21f9204b89ba2e530f7ceaad55f68015bd20d83a | /topcoder/SRM634/ShoppingSurveyDiv1.cpp | 00a8a2250634965daf66b37f0e7d3e3b7fe27ed8 | [] | no_license | zhupeijun/Algorithm | 00d76e8d5944851f3776934b6edc47704d2e8d7a | af51abc16689f1e7c545bcee40c0727e69708e05 | refs/heads/master | 2023-01-24T03:07:22.529359 | 2023-01-09T16:26:36 | 2023-01-09T16:29:23 | 27,425,280 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,180 | cpp | ShoppingSurveyDiv1.cpp | #include <iostream>
#include <cstring>
#include <string>
#include <vector>
#include <cstdlib>
#include <cstdio>
using namespace std;
const int MAXN = 505;
int tot[MAXN], top[MAXN];
class ShoppingSurveyDiv1 {
public:
int minValue(int N, int K, vector <int> s) {
int M = s.size();
for(int k = 0; k <... |
b19103429254cc466fdde7d6d564571ec09653a4 | 99466d9132f7cf3ee53f54f1c3fe5a2848f1942e | /416.cpp | e0cc869dd9e17eed2456133d2172fc2256eca363 | [] | no_license | Hyukli/leetcode | e71604126712ad801dd27c387099999085f055d3 | 3444f0a92ee4edc7607ee8afab760c756a89df7f | refs/heads/master | 2021-06-05T14:14:58.792020 | 2020-03-31T13:40:58 | 2020-03-31T13:40:58 | 93,115,710 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 772 | cpp | 416.cpp | #include<iostream>
#include<vector>
using namespace std;
class Solution {
public:
bool canPartition(vector<int>& nums) {
int sum=0;
int n=nums.size();
for(int i=0;i<n;i++)
{
sum+=nums[i];
}
if((sum&1)==1)
{
return false;
}
... |
2739c05cd89046bddfd63950884b9c8309487d74 | aa9501929556d66af3e017c218b93b4f893c3a72 | /test/gl_test.cpp | 9aabc9cd6c21ad612adebc1161c55d171229de91 | [] | no_license | k-sheridan/dipa | 61c2d9ec3a00a6b141e0509083c792cc4362b781 | 52477bb5c7debea6850abc86cc7e106f255aa5f7 | refs/heads/master | 2021-03-27T19:48:22.745912 | 2017-07-17T21:35:56 | 2017-07-17T21:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,025 | cpp | gl_test.cpp | /*
* gl_test.cpp
*
* Created on: Jun 30, 2017
* Author: kevin
*/
#include <ros/ros.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include "opencv2/core.hpp"
#include "opencv2/core/opengl.hpp"
#include "opencv2/core/cuda.hpp"
#include "opencv2/highgui.hpp"
using namespace std;
using namespace cv;
using namesp... |
420e2925ea7ce416d7df083590d4ef6ef9fbfc97 | d83ceddccfe42f217047bc681eb8301f431d8040 | /day3/fun_calculator.cpp | fac609d37a2605da28511a719b09d86de0b77dbd | [] | no_license | SimranKaur431/NR_Ace_Coding | e9d959c73cc0a19cc0a1999abd657a2edee09eaa | 16a5e9ad10b6dff92430a7851bd1a90f2903b33a | refs/heads/main | 2023-09-04T12:26:15.209260 | 2021-10-08T12:53:10 | 2021-10-08T12:53:10 | 411,299,232 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,277 | cpp | fun_calculator.cpp | #include<bits/stdc++.h>
using namespace std;
int sum(int a, int b){
return a+b;
}
int sub(int a ,int b){
return a-b;
}
int mul(int a, int b){
return a*b;
}
int divide(int a, int b){
return a/b;
}
int main(){
cout<<"Calculator";
while(true){
cout<<"Enter the operation you want to perfo... |
2419101d6986af0848e78321f203659114a5e9f1 | c368ca9315f3d5142c8d4448b7603fe9aa5bf813 | /GameSystem/Timeline/Timeline.cpp | 72bd948e34bfdd20ade227d4b4a0308dd1ec656b | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | timofonic/OpenHexagon-Unix | e546986aace4adaf58f0a90ff697403f7180d384 | 3bee9a481ee35f93c14ef1e8ad96837a0800332c | refs/heads/master | 2016-09-10T00:12:26.824430 | 2012-11-20T14:58:34 | 2012-11-20T14:58:34 | 6,785,335 | 1 | 0 | null | 2014-10-20T23:52:52 | 2012-11-20T21:17:52 | C++ | UTF-8 | C++ | false | false | 1,891 | cpp | Timeline.cpp | #include "Timeline.h"
#include "Command.h"
#include "../Utils.h"
#include <algorithm>
#include <iostream>
#include <sstream>
using namespace std;
namespace ssvs
{
Timeline::~Timeline()
{
for (auto commandPtr : commandPtrs) delete commandPtr;
}
bool Timeline::isFinished() { return finished; }
... |
de3ccc920618761c79e98aec7f576c4ee2b4bebc | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/httpd/gumtree/httpd_repos_function_175_httpd-2.2.2.cpp | c013981f1db291fb8d55f800ecab6c0c329ffb6c | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,386 | cpp | httpd_repos_function_175_httpd-2.2.2.cpp | static dav_error * dav_generic_resolve(dav_lockdb *lockdb,
dav_lock_indirect *indirect,
dav_lock_discovery **direct,
dav_lock_discovery **ref_dp,
dav_lock_indirect ... |
3d8cbee8ee71ad4138158930080c46c52ad1edc6 | 39687a63b28378681f0309747edaaf4fb465c034 | /examples/04-fileIO_String/Mesh_io/include/gotools_core/LUDecomp_implementation.h | ec66104f9f828562686d8da624025386fe531d29 | [] | no_license | aldongqing/jjcao_code | 5a65ac654c306b96f0892eb20746b17276aa56e4 | 3b04108ed5c24f22899a31b0ee50ee177a841828 | refs/heads/master | 2021-01-18T11:35:25.515882 | 2015-10-29T01:52:33 | 2015-10-29T01:52:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,123 | h | LUDecomp_implementation.h | //===========================================================================
// GoTools - SINTEF Geometry Tools version 1.0.1
//
// GoTools module: CORE
//
// Copyright (C) 2000-2005 SINTEF ICT, Applied Mathematics, Norway.
//
// This program is free software; you can redistribute it and/or
// modify it unde... |
599d9791512adf5a8d036eed9ef03b8a87d46ae5 | 77bdcfff89d093a7f5a953e53bc4cdd18a84f16a | /dracula/Logic/track.h | d25f9a53963d4ead79783304e80e4c40ce3e0c2f | [] | no_license | bulygin1985/dracula | 7aa46d45e70446ff24a80622a9e2c778572cb2f6 | 216fdec103267e12c9c8c980252a1fbaa08599c8 | refs/heads/master | 2020-05-26T15:15:36.470434 | 2017-05-21T22:21:44 | 2017-05-21T22:21:55 | 85,009,589 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 609 | h | track.h | #ifndef TRACK_H
#define TRACK_H
#include <QList>
#include <logicobjects.h>
#include <QString>
class Track
{
public:
Track();
//track elelement is added only to begin of track
void addTrackElement(const TrackElement& element);
QList<TrackElement> elements;
QList<TrackElement> getElements() const;
... |
cdbf10c98b8d9a14e4afa3b57c434e920f9b97e1 | 23f730e55990a8782407a030845e2912ce41794e | /src/Benchmark.hpp | fb296d6088b7eecf310a499b6eb4b0fd59e505da | [] | no_license | madamskip1/-AAL-Discrete-Knapsack-Problem | d0ddfda143519f67d42ab3f653b7da67d7bd9ed0 | 50e194237a8b0374c238b0544a9f68fd73b62828 | refs/heads/main | 2023-02-02T10:36:04.949436 | 2020-12-22T15:25:55 | 2020-12-22T15:25:55 | 306,403,932 | 0 | 0 | null | 2020-10-29T15:57:53 | 2020-10-22T16:57:39 | C++ | UTF-8 | C++ | false | false | 774 | hpp | Benchmark.hpp | #pragma once
#include <chrono>
#include <iostream>
#include <vector>
class Benchmark
{
public:
Benchmark();
void run(bool naive);
void setStartNumItems(int start);
void setCapacity(int capacity);
void setNumProblems(int problems);
void setNumInstances(int instances);
void setStep(int step)... |
262fffec0a1fa94a165b226cec9baef578036509 | f206260f0660136563bbe288d071fec1c625535a | /receiver.ino | bc29f2f2b5e2594bb2476c0c9d831142dcccd5eb | [] | no_license | soummo19/Gesture_Controlled_Car | 40b2b0345ffca0943ff0e0af25292db417ba4f27 | 86fb05ac87bc84cfdf31f7e1cc150cdd9b95d01f | refs/heads/master | 2022-11-30T15:08:39.203030 | 2020-08-09T10:44:17 | 2020-08-09T10:44:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,846 | ino | receiver.ino | #include <VirtualWire.h>
byte message[VW_MAX_MESSAGE_LEN];
byte messageLength = VW_MAX_MESSAGE_LEN;
int lm=9;
int lmr=8;
int rm=10;
int rmr=7;
int ledPin=13;
void setup()
{
pinMode(ledPin,OUTPUT);
pinMode(lm,OUTPUT);
pinMode(lmr,OUTPUT);
pinMode(rm,OUTPUT);
pinMode(rmr,OUTPUT);
vw_setup(2000);
vw_rx_start();
}
v... |
6cc58fccd0a3a56ccd5cecb9d1bbd4d449a63470 | d0926ed5a1ce8a360565b1ed44351c65d3e145b3 | /main.cpp | 1a3b2ecfa42868e17b27459ff3fb4746ba4a8101 | [] | no_license | vanilla111/SimpleFtp | f4520170aab92a322d80fff27092eb8d835ab6fe | 8ccb24d948688631aaee9c4459a84b8766d50a40 | refs/heads/master | 2022-06-04T14:56:57.207261 | 2020-05-02T03:09:37 | 2020-05-02T03:09:37 | 259,364,584 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,010 | cpp | main.cpp | #include <sys/socket.h>
#include <netinet/in.h>
#include <memory.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <cerrno>
#include <sstream>
#include <poll.h>
#include "Server/headers/CommandParser.h"
#include "... |
2057ca962096129f9bef6b393ce87b3188e3fd6c | 3436e188d5ab9650860162367a86a1436e76fd50 | /linked_list/listnode.cpp | 88e687d5fe1d4e2ba57652ede93eafbecbc4826a | [] | no_license | PU-UP/cpp_beginner | 9995e8c4f8df516321d84d0a469f89b288c85a5d | 40427fda1fb5f93ee6b1c434c8e05402f3bdc116 | refs/heads/main | 2023-06-19T00:23:08.310399 | 2021-07-19T12:58:56 | 2021-07-19T12:58:56 | 387,361,190 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 756 | cpp | listnode.cpp | # include <iostream>
using namespace std;
struct node
{
int data;
node *next;
node(int data, node *next = NULL){
this->data = data;
this->next = next;
}
};
node *createlist()
{
node *head =NULL;
node *cur = NULL;
for(int i=0;i<5;i++)
{
if(head==NULL)
{
... |
a9546005a9b9b4d6a1fe0d783eafc3f9f53b0b09 | b3c33dfd7f170e456136e790cb5990ef77f2691c | /SOC/TextureManager.cpp | 9d8b2a687172031d5f05fd56d1de4cfcbb53c12a | [] | no_license | hsb0818/SOC_Framework | 3da7c9ad43b5fdb71abca9a5089db723a1d9a723 | 102be3057b3e225024caa0c3c8be6fced88fe93f | refs/heads/master | 2020-12-25T12:57:02.170142 | 2013-10-07T19:08:07 | 2013-10-07T19:08:07 | 12,836,364 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,801 | cpp | TextureManager.cpp | #include "TextureManager.h"
#include <string>
using namespace std;
namespace Rendering
{
TextureManager::TextureManager()
{
resourceDirLen = strlen(RESOURCE_DIR);
}
TextureManager::~TextureManager()
{
DeleteAll();
}
Texture::TextureForm* TextureManager::AddTexture(std::string path, bool inResourceFolder)... |
8deaf45f0e91c0a5d527b8c3e9a27f4256bc6572 | 78c38be7d33da5bf273044030d78129264def7ca | /primer/TestQuery.cpp | 70a50955dafab7a8c9913cbe505ddf7ed59f3cd4 | [] | no_license | Sesamely/cprimer | 4eedc39bb6ff762e6932d156f4d68cafadf93011 | 40201fa78669bc3e6055f0913c52724a00a03adf | refs/heads/master | 2021-05-11T02:10:14.129753 | 2018-04-23T17:09:37 | 2018-04-23T17:09:37 | 118,352,561 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,123 | cpp | TestQuery.cpp | /************************************************************************
**** > File Name: TestQuery.cpp
**** > Author: yiwen liu
**** > Mail: newiyuil@163.com
**** > Created Time: Mon 22 Jan 2018 12:00:37 PM CST
************************************************************************/
#include <... |
fe13c70b6e2f246a8810fc7cb4ad84d8ee58be52 | 63b3e64d0f1290676cdc91c882e9d900eefa6e73 | /visuals/apps/myApps/oscParametersReceiverExample/src/ofApp.h | cdb8a7bf2a6c7a24a90c7c3de9e5c24881177b23 | [] | no_license | KAZOOSH/MIMR | 68cb983e2aa47636a438e71551d9b2f8be135c0c | 994c7d70f4bc9e71ffa7880e0e2ad08ae551bd26 | refs/heads/master | 2022-10-15T08:54:37.444689 | 2022-09-15T15:38:16 | 2022-09-15T15:38:16 | 90,995,645 | 2 | 1 | null | 2017-10-02T20:24:52 | 2017-05-11T15:36:03 | Python | UTF-8 | C++ | false | false | 1,289 | h | ofApp.h | #pragma once
#include "ofMain.h"
#include "ofxGui.h"
#include "ofxOscParameterSync.h"
class ofApp : public ofBaseApp{
public:
void setup();
void update();
void draw();
void keyPressed (int key);
void keyReleased(int key);
void mouseMoved(int x, int y );
void mouseDragged(int x, int y, int button);
... |
c34c64c45949639e55c4e9648bd5b7a6a5be02d7 | dc3e696025bca400aaabc0b3fce4aa334b067c84 | /BCATM2.cpp | ba9e93fb13068c962abd4c21f5f5edd22474ba0c | [] | no_license | NguyenTheAn/Algorithm | 740170afb6d4e2db362f5e406fc48f014ce693a4 | 1fe154ae46658079b422e3a5198e239908939b6b | refs/heads/master | 2020-10-01T09:40:06.473488 | 2019-12-12T03:27:16 | 2019-12-12T03:27:16 | 227,510,768 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 523 | cpp | BCATM2.cpp | #include <bits/stdc++.h>
using namespace std;
int n;
long long s, a[100], bestconfig=LONG_MAX, d=0;
int dd[100];
void Try(int i){
for (int j=0; j<=1; j++){
dd[i]=j;
if (dd[i]==1) s-=a[i], d++;
if (s>=0 && d<bestconfig){
if (i==n-1){
if (s==0) bestconfig = d;
}
else Try(i+1);
}
... |
b0a50816010c296ee61e1bfd0aff794bcf945412 | 56a77194fc0cd6087b0c2ca1fb6dc0de64b8a58a | /applications/DEMApplication/custom_constitutive/DEM_Dempack_dev_CL.h | 0858ab52ed8980ef87f0fb1fb2d889a04a720206 | [
"BSD-3-Clause"
] | permissive | KratosMultiphysics/Kratos | 82b902a2266625b25f17239b42da958611a4b9c5 | 366949ec4e3651702edc6ac3061d2988f10dd271 | refs/heads/master | 2023-08-30T20:31:37.818693 | 2023-08-30T18:01:01 | 2023-08-30T18:01:01 | 81,815,495 | 994 | 285 | NOASSERTION | 2023-09-14T13:22:43 | 2017-02-13T10:58:24 | C++ | UTF-8 | C++ | false | false | 5,801 | h | DEM_Dempack_dev_CL.h |
#if !defined(DEM_DEMPACK_DEV_CL_H_INCLUDED)
#define DEM_DEMPACK_DEV_CL_H_INCLUDED
/* Project includes */
#include "DEM_Dempack_CL.h"
//#include "DEM_discontinuum_constitutive_law.h"
namespace Kratos {
class KRATOS_API(DEM_APPLICATION) DEM_Dempack_dev : public DEM_Dempack {
typedef DEM_Dempack BaseClas... |
cd7654700e93c5835fb56379cf8d8c0591beace2 | 7573863a78046c1fc0c9e1ac5a1ba3636a3a11b9 | /EckelCpp-master/Volume2/6. Algorithms/ex11.cpp | 7183786199b818b4eba8c91bf971e6cdae007c0c | [] | no_license | ponram/BruceEckel | c88a47fd1918067a6da3e9f46bc4eb9e5f8c809b | dccbc03b4c9da0b0c3997a00a2143242d18f9f74 | refs/heads/master | 2020-05-17T03:29:47.124272 | 2019-08-09T17:49:32 | 2019-08-09T17:49:32 | 183,481,787 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,540 | cpp | ex11.cpp | /*
Write a program that finds all the words that are in
common between two input files, using set_intersection( ).
Change it to show the words that are not in common,
using set_symmetric_difference( ).
*/
#include <iostream>
#include <algorithm>
#include <vector>
#include <fstream>
#include <cctype>
int main() {
st... |
e67e3648804a8401183fada2736fba604bfe4032 | 46dbb7a842ba89ca1faac0a19e9b818656220fc9 | /src_ref/main.cpp | 8222ff5954619fc2fb0ca42c5acabd3f5937683e | [
"MIT"
] | permissive | Joilnen/rge | 8075a2403a22bc1bc9187bcc4f5a8cf74f0c3e0a | df20a68a9f86239d9801fcd77f2131e8977a594e | refs/heads/main | 2023-07-02T05:54:22.019272 | 2021-01-24T16:23:45 | 2021-01-24T16:23:45 | 158,673,453 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 630 | cpp | main.cpp | #include "ECS.h"
#include "GameNode.h"
#include <string>
#include "Actor.h"
#include <OGRE/Ogre.h>
#include "GameManager.h"
#include "SceneManager.h"
#include "RootGame.h"
using namespace Ogre;
int main()
{
auto world { World::createWorld() };
auto gameSystem { world->registerSystem(new GameManager) };
a... |
7bf658c035454b36951638c56cbd2be04b4f1fd4 | 2755461cf9bf0a49d85341aae1fd7571de54ce91 | /clasificar-numeros/clasificar-numeros.cpp | d8c90dbe2265e749f8ac274deddf89f414eaa5f7 | [] | no_license | luxkalku/Algoritmos-y-estructuras-de-datos | c6e8bd2e48bdb32785347ed9f868b178d212f5ac | e82bf289c456cea64de1402edf88c2c16a89716e | refs/heads/master | 2021-01-20T00:15:52.093469 | 2017-05-04T23:19:18 | 2017-05-04T23:19:18 | 89,103,485 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 448 | cpp | clasificar-numeros.cpp | #include<iostream>
#include <stdlib.h>
using namespace std;
int main()
{
int n=0,cant_ceros=0,cant_positivos=0,cant_negativos=0;
for(int i = 0; i < 10; i++)
{
cout<<"ingrese un numero"<<endl;
cin>> n;
if(n==0)
cant_ceros++;
else
if(n>0)
cant_positivos++;
else
cant_negativos++;
... |
f6d5371eb60a023418773af7aa6bb7afa1a861f3 | e70e76766f625695f5936d8e72583e6e26c56360 | /TheMaze/User.cpp | 54f0838a3b40d77809c56e492d879125d031d5a3 | [] | no_license | webbrandon/MazeGen | 38176918cf600daf1d245548883353747eaca81e | 0efaed418fa37754ba29390d817856177bb16e48 | refs/heads/master | 2021-01-17T10:23:51.181441 | 2012-08-23T13:01:13 | 2012-08-23T13:01:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 58 | cpp | User.cpp | #include "User.h"
#include "Game.h"
User::User(void)
{
}
|
f1cf7459c8136205484d74e98fdb70df18f67f62 | f76ae6e1f43680d192118514bc549e67a4ad04a0 | /test/expression/variable/dot_unittest.cpp | c103169d8f2169516dd216e7ce8768e98ec9266f | [
"MIT"
] | permissive | StHamish/autoppl | da5d6ec50f93e27c6cf60631edc3e480626b4276 | e78f8d229d2e399f86f338e473da5ddc7dbed053 | refs/heads/master | 2022-12-17T00:29:54.216065 | 2020-09-13T20:07:16 | 2020-09-13T20:07:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,991 | cpp | dot_unittest.cpp | #include "gtest/gtest.h"
#include <fastad>
#include <testutil/base_fixture.hpp>
#include <autoppl/expression/variable/dot.hpp>
namespace ppl {
namespace expr {
namespace var {
struct dot_fixture:
base_fixture<double>,
::testing::Test
{
protected:
using mv_dot_t = DotNode<mat_dv_t, vec_pv_t>;
size_t ... |
46cb2297f51c5831c66b6f32dc29c1a1af7d9290 | 9df2486e5d0489f83cc7dcfb3ccc43374ab2500c | /src/overworld/world_sprite_manager.cpp | 0917850ac7c17f96360b79c1d00baf3ae467b25e | [] | no_license | renardchien/Eta-Chronicles | 27ad4ffb68385ecaafae4f12b0db67c096f62ad1 | d77d54184ec916baeb1ab7cc00ac44005d4f5624 | refs/heads/master | 2021-01-10T19:28:28.394781 | 2011-09-05T14:40:38 | 2011-09-05T14:40:38 | 1,914,623 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,732 | cpp | world_sprite_manager.cpp | /***************************************************************************
* world_sprite_manager.cpp - World Sprite Manager
*
* Copyright (C) 2008 - 2009 Florian Richter
***************************************************************************/
/*
This program is free software; you can redistribute ... |
9497a085c0365b8d63bcba26fc2b7e48f5d2b992 | 31063d113776e35dbd80d355dfd24ac7d7f8b451 | /Practicas C++/Clases/Clase Amiga/main.cpp | 0b45e29aa2cbf2e3aa07ccf6249dea4b1ca0783b | [] | no_license | MezaMaximiliano/Practicas_Cplusplus | 8550b3ae8ae1878d2926b86e196528b2c40818e6 | 0388684b4ad54e29fd20cb3e72d8447adc9b8c85 | refs/heads/master | 2023-07-24T19:06:46.133155 | 2021-09-07T22:07:51 | 2021-09-07T22:07:51 | 404,133,431 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 483 | cpp | main.cpp | #include <iostream>
#include "Personaje.h"
int main(int argc, char** argv) {
Personaje *p1=new Personaje(50,60);
p1->mostrarDatos();
modificarDatos(*p1,100,150);
printf("\n");
p1->mostrarDatos();
return 0;
}
void modificarDatos(Personaje &p, int def, int ata){
p.ataque=ata;
p.defensa=def;
}
/*Al d... |
c033e0f750fd21e34896e3eb5a9d238fff386b14 | 7e03f557fc617ca09ce5ebd68c3f05b87866abdf | /DX11Starter/GameEntity.h | 7fceaafbb769d0dd05dcbd7c93ac535ab853895e | [
"MIT"
] | permissive | rimij405/ggp-directx-11 | e00dc4587a3937bbb08a0f8b1217fd5e505e9bf5 | 0589f0853eed8a4c159afe2a40415849f259c815 | refs/heads/master | 2020-04-18T05:56:22.757980 | 2019-02-17T15:52:09 | 2019-02-17T15:52:09 | 167,298,331 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,853 | h | GameEntity.h | #pragma once
// -----------------------------------------------
// Include statements.
// -----------------------------------------------
#include <memory>
#include <queue>
#include <vector>
#include <DirectXMath.h>
#include "Mesh.h"
#include "Transform.h"
#include "TransformBuffer.h"
#include "Material.h"
class Game... |
88ac582416846de0072c26acb024a66504abcff5 | fe61487ee3f22acabae078eba9436553865a9427 | /io_client/kksqgis/kksqgis26/kksgiswidgetbase.cpp | b155c8ee2fc962a5c8b7b91ea85c7adb8a4610de | [] | no_license | YuriyRusinov/reper | f690da37a8dec55de0984b1573e8723fb7420390 | ea3e061becee245212c1803ea4e5837509babcce | refs/heads/master | 2021-01-17T06:51:53.153905 | 2017-02-21T15:48:58 | 2017-02-21T15:48:58 | 47,569,096 | 1 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 24,134 | cpp | kksgiswidgetbase.cpp | #include "kksgiswidgetbase.h"
#include "kksbadlayerhandler.h"
#include <QSplashScreen>
#include <QBitmap>
#include "qgsmaplayerregistry.h"
#include "qgsvectorfilewriter.h"
#include "qgsgeometry.h"
#include "qgsvectordataprovider.h"
#include "qgsmapcanvas.h"
#ifdef WIN32
#include "dn/dnspecbath.h"
#in... |
a94a57eeffbb137676a8d6b3aeb70a18090bf66c | 1fb184d3ec684f2778cdc78b8c84fcc4c523a377 | /373.find-k-pairs-with-smallest-sums.143435058.ac.cpp | b6d466855dd7f5b2363f62cebb6fc65e4af8cea3 | [] | no_license | karangoel16/leetcode | bfc71575ef4a7d265f787240acd719c3cd4751a3 | 46230adcd1e4ef4cee93dac92da6351478476cb5 | refs/heads/master | 2021-04-26T23:40:56.157769 | 2018-05-06T23:30:46 | 2018-05-06T23:30:46 | 123,836,776 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,605 | cpp | 373.find-k-pairs-with-smallest-sums.143435058.ac.cpp | /*
* [373] Find K Pairs with Smallest Sums
*
* https://leetcode.com/problems/find-k-pairs-with-smallest-sums/description/
*
* algorithms
* Medium (31.20%)
* Total Accepted: 38.3K
* Total Submissions: 122.9K
* Testcase Example: '[1,7,11]\n[2,4,6]\n3'
*
*
* You are given two integer arrays nums1 and nums... |
28b25fcf4d4eeb9242aa14e88f23e5554bea7b7a | 0058cec215cb172451e24ae30b40c21aa8f5d5d4 | /qt_miniprogs/Калькулятор/mainwindow.h | 22c88b4d901501802b575988877584837858f210 | [] | no_license | lzv/other | 855da338cd76f8ca48822b967a679e29ae76bca0 | 41e9593a6dd92083456372dc3f8381a6096b47a2 | refs/heads/master | 2021-01-22T09:05:07.373808 | 2013-05-20T12:48:12 | 2013-05-20T12:48:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 428 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QtGui>
class MainWindow : public QWidget {
Q_OBJECT
private:
QLCDNumber * displ;
QStack<QString> stk;
QString dstr;
public:
MainWindow (QWidget * = 0);
QPushButton * createButton (const QString &);
void calculate ();
double calculate_req (... |
d6c62f4d9874ecccf9c43e37ac286896745be21a | e24a366a7ac5dfb5975a468046c8626a9d56fa6d | /Obfuscator/Source/include/llvm/DebugInfo/CodeView/TypeRecordHelpers.h | 389472ed1aeae1c1fefca14614693f7e0deb2ae5 | [
"NCSA",
"MIT"
] | permissive | fengjixuchui/iOS-Reverse | 01e17539bdbff7f2a783821010d3f36b5afba910 | 682a5204407131c29588dd22236babd1f8b2889d | refs/heads/master | 2021-06-26T17:25:41.993771 | 2021-02-11T10:33:32 | 2021-02-11T10:33:32 | 210,527,924 | 0 | 0 | MIT | 2021-02-11T10:33:33 | 2019-09-24T06:26:57 | null | UTF-8 | C++ | false | false | 947 | h | TypeRecordHelpers.h | //===- TypeRecordHelpers.h --------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
dd66bcf70212305c71d65d9b724e12b55f8feadd | b92d156fcd80f3229198fea2829191948a28c885 | /Assignment7.cpp | 8f08cf2bbcea8107e10c849c9915a7a23443ab19 | [] | no_license | DanielVelasco/Assignment7_2015 | 293fa4345ecd236a3e74baa8a3fd0b7af1e14062 | 7de7ad8ab6c7e51569b70237a35c20fca1e34821 | refs/heads/master | 2021-01-16T19:34:21.661044 | 2015-03-13T16:12:08 | 2015-03-13T16:12:08 | 32,166,221 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,971 | cpp | Assignment7.cpp | #include <iostream>
#include <fstream>
#include <string>
//#include <sstream>
#include <cstring>
#include <cstdlib>
#include <json/json.h>
#include <stdio.h>
#include "MovieTree.h"
using namespace std;
int main(int argc, char* argv[])
{
MovieTree* MovieTreeInit = new MovieTree();
MovieTreeInit->InitOutputJsonObject(... |
65eadfd4dcd8a0f8979819a0b9bad2b3f8454f03 | 459fd5d2c4dfa8b9a2001ea6a062d8154e27da10 | /Array_of_objects.cpp | 9c7dafab2e89665f7d13b2379a161e1a3e591c2c | [] | no_license | utkarsh2110/college-projects | d0a3b8ddd217a58ceac24aa0a17da3e7d83a858d | 47713884b74ab130f29776610303a1d5b691c358 | refs/heads/main | 2023-08-22T10:02:06.579083 | 2021-10-29T11:00:18 | 2021-10-29T11:00:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,421 | cpp | Array_of_objects.cpp | #include <iostream>
#include <conio.h>
using namespace std;
class playerDetails
{
string name;
string region;
float battingAvg;
float bowlingAvg;
public:
void readData();
void generateList();
static void sortList(playerDetails List[]);
static void displayList(playerDet... |
3ef3eca2088a8d0ec1b563bbf0c2323e98549379 | 81477493a5faa75ab7c6652740396925903e904e | /1536D.cpp | 19f3f4c0df7bdecd1309f53648f7186c2734271f | [] | no_license | Unknown15082/Codeforces-CP | b883158d5c07e89d009dc6f4cf99b78a70ac7d7a | 468bf8d2d6004996aec12d0456d35f23094f1bb9 | refs/heads/main | 2023-06-07T05:50:11.374058 | 2021-06-16T15:52:13 | 2021-06-16T15:52:13 | 376,083,765 | 0 | 0 | null | 2021-06-12T06:30:08 | 2021-06-11T16:31:05 | null | UTF-8 | C++ | false | false | 3,177 | cpp | 1536D.cpp | #include <bits/stdc++.h>
using namespace std;
// Type
typedef long long ll;
typedef long double ld;
// Pair/Vector
typedef pair<int, int> ii;
typedef pair<ld, ld> dd;
typedef vector<ll> vi;
typedef vector<ld> vd;
typedef vector<ii> vii;
typedef vector<vi> vvi;
typedef vector<vii> vvii;
typedef vector<d... |
d3db73ea9fa00fc3471577d759770adc710bf977 | 7014fecedd9790f7cafea079ed28c72e1fd6180d | /include/RandomChoice.h | 3358b2d816b3aa55e4d1eaac53fcc656d7443909 | [] | no_license | tobias17/NguSolver | 42d39d799b24c26d88de551e4750733edf039a5c | 9c3129a201f651f465362de43e4508605152ed2f | refs/heads/master | 2023-05-05T02:03:49.344323 | 2021-06-04T20:23:00 | 2021-06-04T20:23:00 | 363,934,558 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,072 | h | RandomChoice.h | #include <vector>
#include <random>
#include <cmath>
#define pow2(n) ( 1 << (n) )
// code adapted from: https://stackoverflow.com/questions/57599509/c-random-non-repeated-integers-with-weights
std::vector<int> randomWeightedChoice(int ntake, double* weights, int size) {
/* initialize random sampler */
unsigne... |
638d41a2889bb7e54ed0cc27b6ce76639b61da86 | 0fc63dea7e946528ba52b3c8a81e61e3ea838878 | /include/stl2/detail/algorithm/for_each.hpp | 7d0c9b63bb3da61e206757e26a0e4cc64cf6a3f5 | [
"NCSA",
"MIT",
"BSL-1.0",
"LicenseRef-scancode-mit-old-style",
"LicenseRef-scancode-other-permissive"
] | permissive | mmha/cmcstl2 | 6dbfcbfda68aaf52daf3b2734bbe029e8dfae63d | 0841b662eae48251e10f87116ecee36dee6b30b5 | refs/heads/master | 2021-04-28T05:26:54.823378 | 2018-02-11T17:33:36 | 2018-02-11T17:33:36 | 122,179,229 | 1 | 0 | null | 2018-02-20T09:41:12 | 2018-02-20T09:41:12 | null | UTF-8 | C++ | false | false | 1,524 | hpp | for_each.hpp | // cmcstl2 - A concept-enabled C++ standard library
//
// Copyright Casey Carter 2015
//
// Use, modification and distribution is subject to 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)
//
// Project home: https://github.c... |
3a96f216a2f1bb8bce7d2c05af4003073d36ca12 | 940c64332911665d5e44f7daa540e53a947ce390 | /Userland/Libraries/LibWeb/Page/Frame.h | 49370b86837344fb303e58423e775a929be0d5ef | [
"BSD-2-Clause"
] | permissive | marprok/serenity | 2260d0b97ed365219b7a46ddb5fff0ce17e58c7e | 563cc17a50bda557ccd04d89cade5b4aa4b81e6d | refs/heads/master | 2021-06-22T17:08:39.384341 | 2021-04-26T15:13:04 | 2021-04-26T17:08:40 | 361,833,559 | 1 | 0 | BSD-2-Clause | 2021-04-26T17:18:03 | 2021-04-26T17:18:03 | null | UTF-8 | C++ | false | false | 3,290 | h | Frame.h | /*
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Function.h>
#include <AK/Noncopyable.h>
#include <AK/RefPtr.h>
#include <AK/WeakPtr.h>
#include <LibCore/Timer.h>
#include <LibGfx/Bitmap.h>
#include <LibGfx/Rect.h>
#include <... |
bbe0b04ee299aec6474c5d3c7097bb5e7f181f84 | 6d70357753cba5ccacc9f1fcf6f7276b7d74e6d3 | /internal/insight/minimizer/line_search.h | 143f284eba83eaf3ba22de6aeb7b79c1c176287b | [] | no_license | ngoclinhng/insight | 01cda2350d9760238ed699c92b3cc3e294fecc32 | f8fcd9180359a37207c475ed369e03e24471308d | refs/heads/master | 2020-05-20T15:17:00.159277 | 2019-07-03T17:16:35 | 2019-07-03T17:16:35 | 185,640,897 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,519 | h | line_search.h | // Copyright (C) 2019
//
// Author: mail2ngoclinh@gmail.com (Ngoc Linh)
#ifndef INTERNAL_INSIGHT_LINE_SEARCH_H_
#define INTERNAL_INSIGHT_LINE_SEARCH_H_
#include "insight/linalg/vector.h"
#include "insight/function_sample.h"
namespace insight {
// The type of the objective function used by line search.
class first_o... |
fbe7ab8acb6ae334c93fe50c793b467da9615b0e | b3db6f9a9d0ef7ddde3afd445a550962f522fa49 | /CudaSpMV/brc_spmv_core.h | 2b687b469b98966ce4207f3a16560664bf466a22 | [] | no_license | ysw1912/CudaSpMV | ff8255010fe617852a6d20ab9b0383794420c90b | ccc4e1e116e521fb392e55e376ea81afe0911d77 | refs/heads/master | 2020-04-11T08:03:03.512274 | 2019-02-14T21:36:13 | 2019-02-14T21:36:13 | 161,630,302 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,940 | h | brc_spmv_core.h | #ifndef __BRC_SPMV_CORE__
#define __BRC_SPMV_CORE__
#include "cpu_helper.h"
#include "gpu_helper.h"
#include <cooperative_groups.h>
namespace cg = cooperative_groups;
namespace brcspmv
{
// BrcSpMV
template <class ValueType>
__global__ void brcSpMV(const uint32_t rep,
const uint32_t B1,
const uint32... |
cd03d133c6fce30e14dbe6d239119ba18423eb35 | bd81b71fa21cd96b5eb14f500958cda49683a80a | /main.cpp | 4ae9726f09eb9869d9ebd2bae3b0899ae92437fe | [] | no_license | lumasepa/videovigilancia-server-g04 | f4c014b43c194443293a993804474d66c41f544c | 15b5837e37b2076d0cb497788c8dc3946e091852 | refs/heads/master | 2021-01-23T21:39:20.405644 | 2013-06-18T10:31:47 | 2013-06-18T10:31:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,747 | cpp | main.cpp | #include <QCoreApplication>
#include "consola.h"
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <iostream>
#include <errno.h>
// Open
#include <sys/stat.h>
#include <fcntl.h>
// Syslog
#include <syslog.h>
//ofstream
#include <fstream>
//remove
#include <stdio.h>
int main(int argc, char *... |
205c8964843079ecaa522b611f3b0bbadc783909 | f68f0bbb90c499576195674d372ffef11d83a7d3 | /leetcode/Medium/Divide Two Integers.cpp | 10f85b9c67c7ce5c30f65db526fcb7327a942a27 | [] | no_license | khalilalquraan/Problem_solving | fb1df9948adc43180ad07057a7dc1202193a59fa | f4cee20569fdecc72b1ddb5105eae34695c0768d | refs/heads/main | 2023-08-21T20:12:30.383359 | 2021-10-28T16:39:27 | 2021-10-28T16:39:27 | 380,528,910 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 600 | cpp | Divide Two Integers.cpp | /*
Problem Url : https://leetcode.com/problems/divide-two-integers/
Date : 03-07-2021
*/
class Solution {
public:
int divide(int dividend, int divisor)
{
int sign = (dividend < 0) ^ (divisor < 0) ? -1 : 1;
dividend = abs(dividend);
divisor = abs(divisor);
long long ans ... |
dc11354dee8433e8aa82e15aef21d620bf085add | 6aa3a40f1297756dd263054a9fa0a8b6bb5239da | /src/NDPluginFileXMLAttributes/NDFileXMLAttributes.h | d5fc0f178d1303a7c46f8d05da171a3426bb71af | [] | no_license | jabrnthy/elinac-advs-plugins | 309f7b83ccc9c311bfeb18c4afb2230aa27e087d | 62275e2c444c3841353ec62ad2157171f400de83 | refs/heads/master | 2021-01-20T21:12:21.677538 | 2016-08-25T09:46:10 | 2016-08-25T09:46:10 | 61,098,099 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 994 | h | NDFileXMLAttributes.h | /*
* NDFileXMLAttribute.h
* Writes NDArray attributes to an XML file
* Jason Abernathy
* Mar 2, 2012
*/
#ifndef NDFileXMLAttributes_H
#define NDFileXMLAttributes_H
#include <iostream>
#include <fstream>
/** Writes the attributes from an NDArray into an xml file
*/
class NDFileXMLAttribute : public NDPluginFil... |
6141e24fe0fcaccfb6dd03c825cb53c80ab82c0c | 5a9410e70b3c1907dcf2166fe175e008d7009a46 | /utils/confirmOverwrite.h | 87aef053e0025d0158d593a3b51a4259852b4efb | [
"MIT"
] | permissive | CakeWithSteak/fpf | 81820940075b623ba28bfb6df5d20e4e05a1426c | e3a48478215a5b8623f0df76f730534b545ae9c3 | refs/heads/master | 2023-01-31T00:55:32.436884 | 2020-12-11T18:45:09 | 2020-12-11T18:45:09 | 231,958,377 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 538 | h | confirmOverwrite.h | #pragma once
#include <filesystem>
#include <iostream>
#include <cctype>
// Confirms that the provided file doesn't exist, or that the user agrees to overwrite it.
inline bool confirmOverwrite(const std::filesystem::path& path) {
if(std::filesystem::exists(path)) {
std::cout << "File " << path << " already... |
7544af1cdd64cbd7701eaa82d7d7be8f4cd03a71 | 7dc21141b55c9a99fb76a2502d3f4b36f194f219 | /acpc10a.cpp | c29d26407480614f6ae805aad903621bb314bedb | [
"MIT"
] | permissive | emiliot/spoj | 1c859e5acafb63d30d947d2339667112a0426cc0 | 0898a382a1545893fe00f8d94fafbe1716acd09c | refs/heads/master | 2016-09-13T14:02:14.208173 | 2016-04-29T20:10:52 | 2016-04-29T20:10:52 | 57,408,898 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,240 | cpp | acpc10a.cpp | #pragma warning(disable:4018) // signed/unsigned mistatch
#pragma warning(disable:4244) // w64 to int cast
#pragma warning(disable:4267) // big to small -- possible loss of data
#pragma warning(disable:4786) // long identifiers
#pragma warning(disable:4800) // forcing int to bool
#pragma warning(disable:4996)... |
35ec83d7a992f9ffad073aa872be53a0bc28bf26 | f905a8afb1f51256c0bbd410fac68d629bec4172 | /include/naoqi_driver/recorder/recorder.hpp | a55215982bb91644289b91a0184ea529e7305ed7 | [
"Apache-2.0"
] | permissive | ros-naoqi/naoqi_driver | aa697a56d8263a583c0c91a60bf6cc625735fb5f | 9a8b8517e9cbccbace8ddcfeab385c6ac2e3df8b | refs/heads/master | 2023-07-20T02:05:58.293402 | 2023-07-13T14:03:50 | 2023-07-13T14:03:50 | 34,505,683 | 45 | 84 | Apache-2.0 | 2023-06-16T13:40:46 | 2015-04-24T07:58:19 | C++ | UTF-8 | C++ | false | false | 4,297 | hpp | recorder.hpp | /*
* Copyright 2015 Aldebaran
*
* 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 to in... |
9cf787b9d780abfdb09215a6e0cfc291eb52fdca | 39547c11cc1afde3da77a99d383b61fc52947298 | /SFArchive/Format.h | d0f7df8660d124178bd04b50fb9dd5dcc479e8bb | [
"MIT"
] | permissive | JayhawkZombie/SFArchive | 8fafde8d734c65487c7647cf186923786fb77113 | 625b9c973627bfca79dbbc56244f73a1ed756d6d | refs/heads/master | 2020-08-28T18:54:09.985594 | 2019-10-27T01:48:34 | 2019-10-27T01:48:34 | 217,791,304 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,475 | h | Format.h | #pragma once
#include "Detail/Headers.h"
#include "Detail/Helpers.h"
#include "Detail/Content.h"
/* File format:
* |-------------------------------------|
* | Endianness flag (1 byte) |
* |-------------------------------------|
* | Archive header (88 bytes) |
* |------------... |
cb8153606f9ad931dc50d25b74b279966dcd7760 | 9e90ace48bfda8f9129359bc55dc5891c50e7475 | /src/Surface.cpp | 1c9db8777b7e9f671dcdc608f95da86d4fe2910b | [] | no_license | donbonifacio/tank-tournament | 4bfdbd5485d08944eed3c41a4759af2122306bb1 | 007beafddf7720ba471f4418c539c433c0cb97af | refs/heads/master | 2020-05-30T10:32:52.721139 | 2012-11-25T10:30:28 | 2012-11-25T10:30:28 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 9,350 | cpp | Surface.cpp | #include "../include/Surface.h"
#include "../include/SpriteSequence.h"
#include "../include/Exceptions.h"
#include "../include/Log.h"
using namespace SDL;
using std::endl;
//-----------------------------------------------------------------------------------------------------------------------
// MÉTODOS PUBL... |
264981cd0e719784b5a84b0025b5f2e7404afac9 | c1b03b59b3974058e3dc4e3aa7a46a7ab9cc3b29 | /src/module-wx/Class_wx_ToolBar.h | fda0b7e287c49a0d4757f9f7c555292619cee51a | [] | no_license | gura-lang/gura | 972725895c93c22e0ec87c17166df4d15bdbe338 | 03aff5e2b7fe4f761a16400ae7cc6fa7fec73a47 | refs/heads/master | 2021-01-25T08:04:38.269289 | 2020-05-09T12:42:23 | 2020-05-09T12:42:23 | 7,141,465 | 25 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,675 | h | Class_wx_ToolBar.h | //----------------------------------------------------------------------------
// wxToolBar
// extracted from toolbar.tex
//----------------------------------------------------------------------------
#ifndef __CLASS_WX_TOOLBAR_H__
#define __CLASS_WX_TOOLBAR_H__
Gura_BeginModuleScope(wx)
//---------------------------... |
0f4373fc1814aed62975d12d6ffcf743bd15da4b | 3fe692c3ebf0b16c0a6ae9d8633799abc93bd3bb | /Contests/NOIp Simultaion 2018/E.cpp | de644fb685737c305b347e4fa88862bf56d9cc82 | [] | no_license | kaloronahuang/KaloronaCodebase | f9d297461446e752bdab09ede36584aacd0b3aeb | 4fa071d720e06100f9b577e87a435765ea89f838 | refs/heads/master | 2023-06-01T04:24:11.403154 | 2023-05-23T00:38:07 | 2023-05-23T00:38:07 | 155,797,801 | 14 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 395 | cpp | E.cpp | // E.cpp
#include <iostream>
#include <cstdio>
using namespace std;
const int maxn = 1000200;
int arr[maxn];
int n;
int main()
{
scanf("%d", &n);
for (int i = 1; i <= n; i++)
scanf("%d", &arr[i]);
int min_val = arr[1];
int ans = 0;
for (int i = 2; i <= n; i++)
ans = max(arr[i] - min_... |
a17d032984535ab1b18d43875051585d316c40b2 | 089ea2c057e56517ccac4a4fc5c3080dc7ecb6cb | /13_44_String.cpp | 1539857775e79e707f57846cfa6c166c06e1f7eb | [] | no_license | mmz-zmm/MyCppPrimer | 83b246eb157bd7d3f948d9837b8bb864820aea63 | d7ff2b0b3072b2c5a2d91dcf26fa7ad1c22a1a35 | refs/heads/master | 2022-03-29T05:39:18.245386 | 2019-11-17T15:22:35 | 2019-11-17T15:22:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,979 | cpp | 13_44_String.cpp | #include "include/13_44_String.h"
#include <memory>
#include <cstring>
#include <iostream>
#include <algorithm>
std::allocator<char> String::alloc;
void String::push_back(char s)
{
chk_n_alloc();
alloc.construct(--first_free, s);
alloc.construct(++first_free, '\0');
first_free++;
}
st... |
1819858c1484c8db94f5ea8fb3e18eb9eee67e74 | 0b9bddb4d8faac70752a0ff2bdbc542e393222ca | /main.cpp | 9d0d7c4dc816f004a36db70f3845f554bdfce065 | [] | no_license | briandrichey/POSIX_Consumer-Producer_A4 | bd1a7efb3f5f654e823e2afb187a57aa24097f15 | daf1c9aa2d9362aa39f87f7db8a20bb9b7a1c77d | refs/heads/main | 2023-08-30T10:28:49.570937 | 2021-11-17T20:58:49 | 2021-11-17T20:58:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,740 | cpp | main.cpp | /*
_ _ _ _ _
| |_| |__ __ _ _ __ | | _____ __ _(_)_ _(_)_ __ __ _
| __| '_ \ / _` | '_ \| |/ / __|/ _` | \ \ / / | '_ \ / _` |
| |_| | | | (_| | | | | <\__ \ (_| | |\ V /| | | | | (_| |
\__|_| |_|\__,_|_| |_|_|\_\___/\__, |_| \_/ |_|_| |_|\__, |
... |
c6e9bdb6992ca91bb247640832f10dff8d85ec67 | 17c9d963215bf630b22f1a36e05880c0938719c9 | /BOJ 1453.cpp | 27c5910702847b6ac1987b584149fe8533b2b598 | [] | no_license | Jae-Yeon/ProblemSolving | 5f099ad7546c491f9fc24f828f735727c8aee4ce | 840e7017798cd5d8d9d1a0e96796d526021bbb1f | refs/heads/master | 2023-04-14T00:14:57.288770 | 2023-04-09T14:43:56 | 2023-04-09T14:43:56 | 128,633,772 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 259 | cpp | BOJ 1453.cpp | //백준 온라인 저지 1453번 피시방
#include<stdio.h>
int a[105];
int n, cnt;
int main() {
scanf("%d", &n);
for (int i = 1; i <= n; i++) {
int m;
scanf("%d", &m);
if (a[m] == 1) cnt++;
else a[m] = 1;
}
printf("%d\n", cnt);
return 0;
}
|
3af3e40dcfd5b7098f8cfd9be2a4df3e133d4669 | 536d9f483fa32939209cae370ee4cebefc97faec | /king-of-new-york/InteractivePlayerStrategyBuilder.cpp | 83b23d7e4ae45ef75d3158460dee75a67a458bbf | [] | no_license | guillaumerm/king-of-new-york | c91ad8c44107c27cf2ea2eae04e431fd6b1970f4 | 7b0605e401c191b9933782bf26a01b058ad543e6 | refs/heads/master | 2020-03-29T04:24:06.674071 | 2018-12-03T03:31:07 | 2018-12-03T03:31:07 | 149,529,904 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 628 | cpp | InteractivePlayerStrategyBuilder.cpp | #include "InteractivePlayerStrategyBuilder.h"
void InteractivePlayerStrategyBuilder::buildDiceRollingStrategy() {
this->strategy->setDiceRollingStrategy(new InteractiveDiceRollingStrategy);
}
void InteractivePlayerStrategyBuilder::buildDiceResolvingStrategy() {
this->strategy->setDiceResolvingStrategy(new Interacti... |
6578137f3bf876a84e3d481312995527c45015de | 10cc08c517ec3cb1b1d3e4c86c4896d6a812e706 | /pi/src/sp1s/src/startpwm.h | ac1537a8ab120651884724a7ee97dbe6751f141a | [] | no_license | quhezheng/ros | 74c5d867226892d58c02c7f61de6b589c160f358 | 169bc75f5b46042c8df0b717b71d73451979ca51 | refs/heads/master | 2021-01-22T12:08:23.397904 | 2015-03-28T14:35:47 | 2015-03-28T14:35:47 | 28,339,106 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,386 | h | startpwm.h | #pragma once
#include <wiringPi.h>
#include "veldetect.h"
#include "wheelpwm.h"
#include "dbl_cmp.h"
class CStartPwm
{
public:
CStartPwm(CWheelpwm * leftWheel, CWheelpwm * rightWheel,
CVeldetect * pLinearVel)
{
m_leftWheel = leftWheel;
m_rightWheel = rightWheel;
m_pLinearVel = pLinearVel;
}
void TestStar... |
9e1344fe941216a479dfbbff6e6414a6c7059b93 | 3310525cc8be475159d5f715fd3220a2d88fa02d | /160330_Bullet/enemy.h | 4a790e5c06b105514b2f59312ab2238f33f4766c | [] | no_license | LeeJiu/study_code | f0398ec7fc3609f1e2b351dbafc5dd57bf832ceb | f23e0097569385f1a50e86435035a6e7411196ae | refs/heads/master | 2021-01-17T04:39:42.049563 | 2016-09-07T08:45:47 | 2016-09-07T08:45:47 | 53,474,826 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 729 | h | enemy.h | #pragma once
#include "gameNode.h"
enum tagPattern
{
PATTERN_1,
PATTERN_2
};
class enemy : public gameNode
{
protected:
image* _imageName;
RECT _rc;
tagPattern _pattern;
int _currentFrameX;
int _currentFrameY;
int _count;
int _fireCount;
int _rndFireCount;
bool _isBoss;
public:
enemy();
~enemy();
... |
206e90303f3db866dd9e7ae7cde54ec203470cc0 | 65452ee0ec7ed45cdcca786dcdefd438025aeb4c | /linux-base/libs/share-rt/main.cpp | 68d6e5f429f68217651f3a3303dce97e408d977a | [] | no_license | areshta/cpp-edu | 3c939e1c10cf31a4137fd40171f6f59868a34157 | 54df315c8a6def839e1cb168eac3a02c30f12247 | refs/heads/master | 2023-01-11T11:52:06.318053 | 2023-01-04T14:14:21 | 2023-01-04T14:14:21 | 88,529,055 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 829 | cpp | main.cpp | #include <iostream>
#include <dlfcn.h>
#include "main.h"
using namespace std;
int main()
{
void *lib_handle;
typedef void (*inpType)(int *, int *);
inpType fnInput;
char *error;
lib_handle = dlopen("./lib/libctest.so", RTLD_LAZY);
if (!lib_handle)
{
cerr << dlerror() << endl;
... |
d98079be463edb0ca21d53edaa1afd52fdb968c1 | 5622ad3b3b4e302d283f44fba466dfe04d1d7a0b | /src/server/include/ThreadPool.h | 9f68be47d793386d5fc5b4524a1c71f38073fbba | [] | no_license | giladmadmon/ex7_reversi | 7686ee14ce2e4c4bb9f0b121202b5574819a3024 | 7aeb6d072940c7736e4f04fff46242392251b6b2 | refs/heads/master | 2021-05-10T09:47:32.351123 | 2018-01-25T18:02:40 | 2018-01-25T18:02:40 | 118,937,307 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,074 | h | ThreadPool.h | /**************
* Student name: Gilad Madmon
* Student name: Dafna Magid
* Exercise name: Exercise 7
**************/
#ifndef TASK_07_THREADPOOL_H
#define TASK_07_THREADPOOL_H
#include "Task.h"
#include <queue>
#include <pthread.h>
using namespace std;
class ThreadPool {
public:
/**
* constructor
*
* @para... |
21f7b0290b8ac152c2658f1a342222e26df5338a | 2aa7bec41df19555583353ba5216c05b6ec1f5fa | /Coursework first/Project/Client project/form.cpp | aead7f83b957d727e3b3c745871202fc5d75e5ac | [] | no_license | Mauz33/progworks | c67dc58b4516f5ef60f64cdd425e197f8566781d | 5fdbab5b4a11ac88caf76bf72247c4ed15e4ca88 | refs/heads/master | 2020-07-27T12:42:45.818552 | 2020-06-20T02:23:09 | 2020-06-20T02:23:09 | 209,092,929 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,713 | cpp | form.cpp | #include "form.h"
#include "ui_form.h"
Form::Form(QTcpSocket* socket,QWidget *parent) :
QDialog(parent),
ui(new Ui::Form)
{
this->socket=socket;
ui->setupUi(this);
QRegExp login("^[a-zA-z0-9]{1,16}");
QRegExp password("^[a-zA-z0-9]{1,22}");
QRegExpValidator *validatorLogin = ne... |
a826d10ee63ad605db89aea0105444ca4b61dc11 | 471f29d511854d157accb758fb60a9489765d9c3 | /VivenciaManager3/companypurchasesui.cpp | cdb0956ab53acf37a0ea9c5fe35794a9f5b65f69 | [
"MIT"
] | permissive | vivencia/VivenciaManager3 | fb0c4612e4da65cdea70bcf863b5affe9de9addd | b26e1313febeb2b6e9be102c91afba13c2c609b5 | refs/heads/master | 2020-12-25T17:00:57.396371 | 2018-01-30T12:36:44 | 2018-01-30T12:36:44 | 48,883,737 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,677 | cpp | companypurchasesui.cpp | #include "companypurchasesui.h"
#include "global.h"
#include "ui_companypurchasesui.h"
#include "inventory.h"
#include "companypurchases.h"
#include "vmwidgets.h"
#include "vivenciadb.h"
#include "completers.h"
#include "vmnumberformats.h"
#include "suppliersdlg.h"
#include "vivenciadb.h"
#include "vmnotify.h"
#include... |
0b57796a7697b6e735013dc32b3e41c99afba3e5 | cc30c0038187beef68ac1cf1ae675ddf74e65bd9 | /Hedgehog/Include/Renderer/DirectX12VertexArray.h | c9f0d528abdf6bbadff4692bad5f4d9fef7761ba | [] | no_license | Donione/Hedgehog | a8c786a796d192aa49f48040f8ce00f62a333588 | c33879f231be2e824c46bc9310e561328cca7ea5 | refs/heads/main | 2023-07-18T01:10:06.323520 | 2021-08-20T16:02:42 | 2021-08-20T16:02:42 | 293,284,237 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,637 | h | DirectX12VertexArray.h | #pragma once
#include <Renderer/VertexArray.h>
#include <Renderer/DirectX12Shader.h>
#include <wrl.h>
#include <d3dx12.h>
namespace Hedge
{
// TODO rename to something else, maybe something pipeline-y
class DirectX12VertexArray : public VertexArray
{
public:
DirectX12VertexArray(const std::share... |
316da43c53dbbb688789ca85a1576a9b947cdaf3 | 6ea0e6c929717abb3a6571cfb4deeb731868dc95 | /trunk/ross/models/airport/RegionController.cpp | 851a45ec4fde2f5a806bcdc48cb56f0893d86495 | [] | no_license | chleemobile/rossnet | 364324c46a0d14def5e2b2541cb395a03c51188a | b3d2e9a2a8535d2621ba92717e2fcb47cda23f36 | HEAD | 2016-09-02T03:48:44.143264 | 2012-09-14T23:53:47 | 2012-09-14T23:53:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 577 | cpp | RegionController.cpp | #include "RegionController.hpp"
RegionController::RegionController(int in_max_capacity)
{
m_max_capacity = in_max_capacity;
m_current_capacity = 0;
dummy_test = 1.2345;
}
RegionController::~RegionController()
{
}
void RegionController::handle_incoming(tw_lp *lp)
{
//cout<<"RC handle"<<endl;
m_current_capacity++... |
b050a6f63115051885ada8be2089d941dced99aa | 34db9859b03b6b22d2d91295bfc8ef0b0db7c5d7 | /Graph/Paths/2_negative_cycle/negative_cycle.cpp | a4e5adee70705e5527c06b82c077cc9848a6afe9 | [] | no_license | Anirudhpolawar/Data-Structure-And-Algorithms | 3b90068fe0e276e46c711c6b43efec8b9f53bc7e | 7f5766b23b0a9100ca7d51227d76676aebdd4e50 | refs/heads/master | 2022-11-06T08:43:12.517305 | 2020-06-28T12:20:45 | 2020-06-28T12:20:45 | 267,502,991 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,448 | cpp | negative_cycle.cpp | #include <iostream>
#include <vector>
#include<climits>
#include<unordered_map>
using std::vector;
using std::unordered_map;
int negative_cycle(vector<vector<int> > &adj, vector<vector<int> > &cost) {
//write your code here
unordered_map<int,int> m;
for (int j = 0; j < adj.size() - 1; j++) { //v - 1 iterat... |
0481062e2d80e196919726fc7330c270415a9063 | 1dad64199d0b89ec0c76198f9b6e5d6290e0e0ba | /Basic1/DP1/n16_1149.cpp | ef19ac730e44b94fb665abfb078b0a73615f4bb3 | [] | no_license | NgGyu/BOJ | c2f6c047e3ac5cece18262763024104a02ca565b | 8fea49ab046a598528238d7aedb463d117b80e96 | refs/heads/master | 2021-02-28T05:13:03.844147 | 2020-05-13T18:28:25 | 2020-05-13T18:28:25 | 245,664,651 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,124 | cpp | n16_1149.cpp | #include <iostream>
#define MOD 1000000009LL
#define NUM 1000
using namespace std;
void f(int n);
long long mini(long long n1, long long n2, long long n3);
long long board[NUM +1][3] = { 0 };
long long buf[3] = { 0 };
int main(void)
{
int n;
cin >> n;
f(n);
return 0;
}
void f(int n) {
for (int i = 1; i <= n... |
88d10db93550190b1f424dfa435c3f6523e1cea7 | b6d08bb4e30a066af06d9b83e1b4049b21f8cfea | /movie.cpp | 58bd402a18f4bdc7da66671c29c421b431c51c25 | [] | no_license | Jacykow/Netflox-- | 6ab5711ab7f680fc3b59be1213280a6b8617a864 | 36de7843e059684bcc88681b887e161ae5294b83 | refs/heads/master | 2020-03-31T09:40:29.240184 | 2018-11-11T18:50:39 | 2018-11-11T18:50:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 501 | cpp | movie.cpp | #include "movie.h"
void Movie::fillInfoByTitle(){
Media::fillInfoByTitle();
budget = 1+rand()%20;
setDescription("A wonderful adventure of friendship and magic for the whole family.");
}
string Movie::additionalInfo(){
string info = Media::additionalInfo();
info.append("\nSPECTACLE:\t");
int spectacle = getBudge... |
5b2aebcbc7bb34c42075ea5c0dfb1984d4e4ed0b | f89c78239d48a3bb67ee332bb1e378d843370e89 | /software/crane.h | b325502e3a5ad948a81c39b714f0ec7b43c1a96d | [] | no_license | rustyducks/IOBoard_2020 | 3df7d1f4dfa7c9a4b2256cd0d9e824a4e589beda | 932871dbac6c017511017154797c5cea8d412e14 | refs/heads/master | 2022-05-26T01:00:47.389776 | 2022-05-12T00:15:33 | 2022-05-12T00:15:33 | 245,421,153 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 895 | h | crane.h | #ifndef CRANE_H
#define CRANE_H
#include <ch.h>
#include <hal.h>
#include "DynamixelSerial.h"
#define DELTA_DYN 5
struct CraneConfig {
ioline_t line_pump;
ioline_t line_ev;
ioline_t line_ev_pressure;
uint32_t ev_pressure_state;
uint8_t elev_dyn_id;
uint8_t azim_dyn_id;
};
class Crane {
... |
67f9bd071ea00134fb5a8eaca264f559bc85b103 | c3c09663211a4c16fc3d73c0d3dbb0fd83d67d3c | /src/GameBoard.h | ed0679881e84a81c0ce658d59981699ab77fd228 | [
"MIT"
] | permissive | db4soundman/Vise | b06c979607f4f47145d0f81912f99f5246cfb332 | 35eed37a918617ff6d681e4cc99ab5ebaf4ca2e7 | refs/heads/master | 2021-01-18T12:09:43.855989 | 2013-12-04T06:05:25 | 2013-12-04T06:05:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,061 | h | GameBoard.h | #include <vector>
class GameBoard {
public:
GameBoard ();
class GameNode {
public:
GameNode* east;
GameNode* west;
GameNode* northEast;
GameNode* northWest;
GameNode* southEast;
GameNode* southWest;
int numIdentifier;
bool inVise;
bool curLookAt;
int pieceOn;
bool checked;
GameNode() {p... |
2a2b1ee56a11eadf6dcfad6437c90a45bab0d640 | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/dawn/generator/templates/dawn/native/ChainUtils.cpp | 1600c4104088fbde24b74efaf34e60b677cef1f3 | [
"BSD-3-Clause",
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 3,131 | cpp | ChainUtils.cpp | // Copyright 2021 The Dawn Authors
//
// 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 t... |
ebdb415d865b466e20280047d505b3cb421a2aad | a9e98f7b3a11c659b2332b2cd80623d68c4ef46b | /complete_scripts/esp32_script/main.ino | cc5c01b519e09f4f4077797f1c258e53a35afff5 | [
"MIT"
] | permissive | AY02/Nao-Challenge-2021 | 88bd03073d5735cea5b022565913ffa825c39423 | 5ac0cdab70c15dadd7d6c8d0e383039a80aa7f5e | refs/heads/main | 2023-02-18T12:40:18.641327 | 2021-01-20T06:30:15 | 2021-01-20T06:30:15 | 325,842,829 | 1 | 0 | null | 2021-01-15T08:52:59 | 2020-12-31T17:10:15 | Dart | UTF-8 | C++ | false | false | 4,634 | ino | main.ino | #include <ESP8266WiFi.h>
#include <MQTT.h>
#include <Servo.h>
//WIFI CONFIGURATION******************************************************************************************
WiFiClient wifi_client;
const String SSID_WIFI = "";
const String PASSWORD_WIFI = "";
void connect_to_wifi() {
Serial.print("\n\nConnessione ... |
314a8c8271a3df6c08cd87b4ed47d915fede858d | b82c97174689a86bc49bb2893f6ef2f15964214c | /src/splay.cpp | c1b1b2a5186514c505fa10684cbba1d73be2f216 | [] | no_license | ariofrio/cs130a-fall12-pa2 | fb17a4a645e067519b85a162504afd38e7013ef4 | f53577f9689534c2fcaa2017577937ec577b24ba | refs/heads/master | 2021-01-10T18:31:16.285385 | 2012-12-03T07:05:53 | 2012-12-03T07:05:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,984 | cpp | splay.cpp | #include "splay.h"
#include <iostream>
bool splay::insert(int x) {
return insert(x, root);
}
bool splay::insert(int x, node* &p) {
if(p == NULL) {
p = new struct node(x, 0);
return true;
} else if(p->value == x) {
return false;
} else {
bool ret;
if(x < p->value) ret = insert(x, p->left);
... |
bcb4b9bd2fcba4b6067370277afb7153e5cbd043 | e4f347154205d12124a07f660f5965cc6abc1fc3 | /src/Calque/ListLayers.hpp | 70e1fc6f9ab00e3ef65b5c7728aedf60d3b3145e | [] | no_license | jonike/FriendPaint | 45fb89103b95520e808bc2bf146a52b1338dfbb2 | 2adb49452c2a6734714cd607ab7161fb521c7b37 | refs/heads/master | 2021-06-14T18:20:38.346275 | 2017-01-22T22:01:13 | 2017-01-22T22:01:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 626 | hpp | ListLayers.hpp | #ifndef DEF_LISTLAYERS
#define DEF_LISTLAYERS
#include <iostream>
#include <string>
#include <vector>
#include "Layer.hpp"
class ListLayers {
public:
ListLayers();
void setLockCreate();
bool getLockCreate();
void afficherLesCalques(); // juste pour les tests
void focusByPo... |
8132773ec5ff5fa87eabe761a19425aa80d30308 | f17ace67417acc6c3cf35aa0ed7600e96593f701 | /Source/GASGame/Player/GGPlayerState.h | 40791360d2b711ecade2635d3c11e1a639ded00b | [] | no_license | Kavekanem/GASGameProject | 231c8722565ac76efd29d923077dc928c4b7b315 | 3bc4081e9ae5fe07d3ec8779b4ba73d54f2aa065 | refs/heads/master | 2022-12-22T22:32:03.223543 | 2020-10-04T10:59:02 | 2020-10-04T10:59:02 | 298,634,041 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 593 | h | GGPlayerState.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/PlayerState.h"
#include "AbilitySystemInterface.h"
#include "GGPlayerState.generated.h"
/**
*
*/
UCLASS()
class GASGAME_API AGGPlayerState : public APlayerState, public IAbi... |
472d46bb7f546e6a22165fedc69f0fa05e669328 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-compute-optimizer/include/aws/compute-optimizer/model/RecommendationExportJob.h | 22ca2911a0915d94e7d3c9efed88ebcfcdbb762e | [
"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 | 10,866 | h | RecommendationExportJob.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/compute-optimizer/model/ExportDestination.h>
#include <aws/compu... |
2213f16b4450603ff5b2912e663a85f3a821e8dc | 21bf327d8abd4f3d9fd8cf886861ec3ae90d5299 | /plugins/Keylog/MyKeyboardManager.cpp | 07795e2bcac0730dd38bdbf37feb71f85f908434 | [] | no_license | gmhzxy/Gh0st2.0 | 1c3045cd4f02dd589579d2ff863bf9a4bde7ddf6 | c305f0f9c265005e61285013a598b9754026f0b9 | refs/heads/master | 2018-09-02T04:19:35.441242 | 2017-05-05T16:31:33 | 2017-05-05T16:31:33 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 9,026 | cpp | MyKeyboardManager.cpp | // MyKeyboardManager.cpp: implementation of the CMyKeyboardManager class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "MyKeyboardManager.h"
#pragma comment(lib, "Imm32.lib")
bool g_bSignalHook = true;
HANDLE CMyKeyboardManager::m_hMapping_File = NULL;
HINSTA... |
56b03711410c1ec7235fd4bf58ab100f28810f3c | 0bcd128368e2de959ca648960ffd7944067fcf27 | /src/sksl/ir/SkSLSymbolTable.h | 6e425d786fbc2efe7b1bc897d4d09f55baf3f174 | [
"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 | 6,581 | h | SkSLSymbolTable.h | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SKSL_SYMBOLTABLE
#define SKSL_SYMBOLTABLE
#include "include/core/SkTypes.h"
#include "src/core/SkChecksum.h"
#include "src/core/SkTHash.h"
#include "src/sksl/ir/SkSLS... |
0df93cf51e9e64fabad09bd54f7d4e78a1928048 | c96f97c4ce1776bba00a743200e67dcd3b6a2609 | /street.h | 5e2c622c15eb5e7df2a8df29bf77df6dab30f682 | [] | no_license | kamil-sita/simple-traffic-simulator | fdb6d8ab61c2ee019f6b662c37dcc7a4ce29dc99 | b57c6ea790d557432f077c345a4981d7e7fb141d | refs/heads/master | 2020-04-28T23:56:33.554757 | 2019-03-14T18:10:43 | 2019-03-14T18:10:43 | 175,675,237 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,308 | h | street.h | #ifndef STREET_CL
#define STREET_CL
#include "positional.h"
#include "resizableArray.h"
#include "drawable.h"
#include "settings.h"
#include <SFML/Graphics/RenderWindow.hpp>
class Car;
class Intersection;
/***
* Klasa reprezentująca ulicę. Posiada logikę dotyczącą rysowania oraz poruszania się na niej samochodów.
*... |
e65d93587aefeadcced367cebf7f0fbc453396f9 | 07e11d221dd63f137e3891a58d6f2a2152619072 | /3_trigonometic/TrigonalObj.hpp | 792786b2eca7975e586d55e06150b5e33f12ac94 | [] | no_license | nama-gatsuo/MathPow | 11406d7b24dfc83c7a951c7177a571655a8a635e | 3bf5aecd208e22ca837d7e1699ee4f074c247f96 | refs/heads/master | 2020-05-23T08:17:36.058804 | 2016-10-07T16:02:48 | 2016-10-07T16:02:48 | 70,242,428 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,042 | hpp | TrigonalObj.hpp |
class TrigonalObj {
public:
TrigonalObj() {
calc();
};
void calc() {
vbos.clear();
ps.clear();
r = ofRandom(10, 20);
r0 = ofRandom(30);
zFactor = floor(ofRandom(8));
if (ofRandom(1.0) > 0.5) {
... |
4e562327ac893b59e8fe0ce8de1914cab118fd09 | 1e98b6b167d788a4f06f10de9e9d230ec9ae2c73 | /src/foundation/math/d3dx9/d3dx9_plane.cc | a5e55b5721e67b609c7f17900c882e3070be908a | [] | no_license | myevan/nebulax | 7b6d95e9420dddad1d153062953397f82c15d771 | d50dfc5d933c2892915db9bbb688dffd3618fa52 | refs/heads/master | 2016-09-06T10:50:24.827413 | 2015-03-28T17:20:59 | 2015-03-28T17:20:59 | 33,028,481 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 606 | cc | d3dx9_plane.cc | //------------------------------------------------------------------------------
// plane.cc
// (C) 2007 Radon Labs GmbH
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "math/d3dx9/d3dx9_plane.h"
#include "math/d3dx9/d3dx9_matrix44.h"
namespace Math
{
//... |
b429551778a632af9fd30fe3ab5cd9e981abf368 | 0e5df66c9113eb696e2ecd13e0de662ae806e1da | /main.cpp | d8bb0eb8fca55dabbbdc8b8e7be792cd728a73af | [] | no_license | e-ko8/SOCKS5-Server | 2b9ce5ef8c4c4091729d471faf4be632e13c0de5 | 4feb036faa3d6f23c8fb5e6a343243dfebf384e4 | refs/heads/master | 2023-04-02T18:54:55.355033 | 2021-04-13T10:29:54 | 2021-04-13T10:29:54 | 354,035,854 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,167 | cpp | main.cpp | #include "Server.hpp"
#include "Starter.hpp"
#include <iostream>
int main(int argc, char* argv[])
{
try
{
Starter starter("SOCKS5-Server");
starter.AddArgument("help", "Arguments description");
starter.AddRequiredArgument<std::uint16_t>("port","Listening port");
starter.AddRequi... |
dc70dda4c22615aaaf0e82aaa971342b30d63ba7 | b16d370b74422644e2cc92cb1573f2495bb6c637 | /c/acmp/acmp448.cpp | 79bf4b4acb0e2b26f71e0ab028907a7f3661bb69 | [] | no_license | deniskokarev/practice | 8646a3a29b9e4f9deca554d1a277308bf31be188 | 7e6742b6c24b927f461857a5509c448ab634925c | refs/heads/master | 2023-09-01T03:37:22.286458 | 2023-08-22T13:01:46 | 2023-08-22T13:01:46 | 76,293,257 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,343 | cpp | acmp448.cpp | /* ACMP 448 */
#include <iostream>
#include <vector>
// основаня идея решения базируется на вот такой табличке
// где * означает простую сумму i+j
// 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
// 1 * * * * * * * *
// 2 * * * * *... |
e30bd34f1a3c1837278feaf14e90d2af5a370343 | 7b3899819c46272554c0ab2a584030ad1fc92e79 | /antsupporter/src/antlib/include/Ant_ErrorDef.h | 242413311fd2099e016be36d0b5ee40c2a6c1d97 | [
"Apache-2.0"
] | permissive | summerquiet/NmeaAnalysisTool | 63a303f5fd0b7cb76704b6f74908afe9a0547291 | 73d10e421a5face988444fb04d7d61d3f30333f7 | refs/heads/master | 2020-04-05T08:06:51.994203 | 2018-11-08T12:48:55 | 2018-11-08T12:48:55 | 156,701,514 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,072 | h | Ant_ErrorDef.h | /**
* Copyright @ 2014 - 2017 Personal
* All Rights Reserved.
*/
#ifndef ANT_ERRORDEF_H
#define ANT_ERRORDEF_H
#ifndef __cplusplus
# error ERROR: This file requires C++ compilation (use a .cpp suffix)
#endif
/*---------------------------------------------------------------------------*/
// Include files
#ifndef... |
73e7ba1eca70d7a5df110663381f64d6deeb9477 | bde0ad2a46176dd0523f493b69808c90da6b125b | /d2d_stuff.cpp | 43e15b6217e49611d1582d14294e353045d26b96 | [] | no_license | bustercopley/advent2019 | d4ab325b55486550c871388a593ed79fa605ae75 | 97263d7f442f7dc862caff834966d9ff9f4a5579 | refs/heads/master | 2020-11-25T17:54:10.517921 | 2019-12-23T23:11:25 | 2019-12-23T23:11:25 | 228,781,333 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,496 | cpp | d2d_stuff.cpp | #include "precompiled.h"
#include "d2d_stuff.h"
struct BeginDrawGuard {
BeginDrawGuard(ID2D1RenderTarget *r) : r(r) { r->BeginDraw(); }
~BeginDrawGuard() noexcept(false) { CHECK_HRESULT(r->EndDraw()); }
ID2D1RenderTarget *r;
};
const text_style text_styles[text_style::count] = {
// For animated labe... |
86944cfaaa286cb2b791b632287f5f52dba71301 | e29d4daf35bdf5d6fdc0a2650b5412a5b50c084f | /src/format_convert.cpp | 8e41f6d50e3847b73b359df12dc0bf08f36b9ed4 | [] | no_license | yejingyang/video | f722857ca89d3422f9d3eb4983d43b412679c6c6 | 7b3f55a3dd600dfeee45c9f6b001bf3febb6e7a7 | refs/heads/master | 2020-05-29T08:57:26.815907 | 2013-05-12T14:19:35 | 2013-05-12T14:19:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,167 | cpp | format_convert.cpp | /*
*
*
*
*/
#include <stdio.h>
#include "include/format_convert.h"
void fc_init(int32_t width, int32_t height)
{
format_convert_config *fc_config = &g_format_convert_config;
fc_config->width = width;
fc_config->height = height;
printf("format convert init successfully\n");
}
void fc_yuyv_t... |
9ae1f00aa2bce1164588b7c3993eb081b4e22a0d | dcbc0fbcf689a9a240ce5efe2629ffd607b9ce30 | /FourierTransformation/Convolution.hpp | fda94b9536a8b9fa922f39a2ab6813b240756a32 | [] | no_license | yamada-ryosuke/ProConLibrary | dd1d1184dcc5e09ef84d8051e54d3e354ab92239 | e75cf0ce516abf9392373ea3719711fd533bfc4c | refs/heads/master | 2020-05-24T13:58:50.078014 | 2020-02-21T15:34:52 | 2020-02-21T15:34:52 | 187,298,883 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,017 | hpp | Convolution.hpp | #include <bits/stdc++.h>
//////////////
// 畳み込み //
/////////////
class Convolution {
private:
using Real = long double; // doubleの方が大幅に速い
using Complex = std::complex<Real>;
using Vector = std::vector<Complex>;
int size_{1};
Vector power_;
Vector polynomial1_, polynomial2_;
// signが正ならDFT、負ならIDFT(1/N倍はされない)
... |
fca49881dd3802a346cd2eb83ef59b0df4f770c3 | 0770d356aeac89873722c004dda96cb7497463cd | /Classes/GameTools/AnimateTools.cpp | 04dcfcda1daab2e2dfa9a93e07fce25c21987249 | [] | no_license | 37947538/Young3_7 | 687b0423618e7cd6b71c23d188d0c31d90f7726d | c661a4de162a5d153a737b19d2729991b698486c | refs/heads/master | 2021-01-13T00:37:43.689432 | 2016-02-22T09:53:21 | 2016-02-22T09:53:21 | 52,246,063 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,836 | cpp | AnimateTools.cpp | //
// AnimateTools.cpp
// Zombie3_4
//
// Created by jl on 15/8/19.
//
//
#include "AnimateTools.h"
#include "ActionFileModel.h"
//是否有攻击动画播放
bool AnimateTools::isAttackAnimatePlaying(BaseActionObject *bo)
{
auto actionModel=bo->getActionFileMode();
//连击1
if (bo->getAnimateState(actionModel->Action... |
61f82c648ce4a0d5a0ebe0b6eb1179226901f4e9 | 15410816be3bead66bff0fd86865e99ab6924266 | /For/bintang2.cpp | d74565543ddb6cf548b462b5d9a72cd36039de58 | [] | no_license | fadillaharsa/Algoritma-Pemrograman | a264be7b41a440be0ed0d668db4ee5ad9ceae7dd | fa11f08bff7a380b2fca0c7f34319a2520b94397 | refs/heads/master | 2022-04-14T21:15:28.001401 | 2020-04-14T14:36:09 | 2020-04-14T14:36:09 | 255,634,269 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 612 | cpp | bintang2.cpp | /*
TUGAS 02
Nama Program : Bintang Lancip Bawah
Nama : Muhammad Fadillah Arsa
NPM : 140810170005
Tanggal Pembuatan : 10 Oktober 2017
Deskripsi : Program penampil bintang lancip bawah dengan jumlah kolom sesuai input.
*********************************************************... |
84ec6aa63a9f7e5b57d466a70085a7366e86190c | 7aaf5943f7353925fb2da7fba68a39a3e6968c97 | /lista1q4.cpp | b1aab7ec99355857b59babd972601812d682f550 | [] | no_license | ntsmoura/LAB1 | 24278f90a54ada5525fc3d08f429023889cccfd3 | 4b9cf26e5110268c8ab79ce5380f41f1bc0b9b9c | refs/heads/master | 2022-03-19T04:53:50.431920 | 2019-11-22T18:55:25 | 2019-11-22T18:55:25 | 202,792,190 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 457 | cpp | lista1q4.cpp | #include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main(){
int n,nestatua;
cin >> n;
vector <int> estatuas;
for(int i = 0; i<n;i++){
cin >> nestatua;
estatuas.push_back(nestatua);
}
int somatorio=0;
sort(estatuas.begin(),estatuas.end());
for(... |
22d8597a93cb29b230ff277ed2799e343fe00eae | 60333fc90e15d2666548554b38390964f7be4b8b | /sandbox.cpp | 93391e42ba80f872a3d1df3515b4e0c000940e83 | [] | no_license | jimimvp/problemzzz | a134c4fa15c83489c913772be7c3cf64de879259 | c5bccf5400badae79b4eae5aa66bf0901f16397d | refs/heads/master | 2021-09-11T17:04:38.354660 | 2016-06-24T13:03:16 | 2016-06-24T13:03:16 | 47,264,386 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 240 | cpp | sandbox.cpp | #include <map>
#include <iostream>
int main(int argc, char** argv) {
int bits = 0;
int n = 0b110010001;
while(n != 0) {
if((n & 1) != 0) bits++;
n = n >> 1;
}
std::cout << std::endl << bits;
} |
f53986bfcae13fef54a451c6877cb3dc6d97f395 | 3d036260f2dce2eee70e8d18c6fbab028195d2ef | /C++ sourse files/IAN_LDPC_SIMU.cpp | 039c655cd99f0012eaa52cd5a1c40781eac36068 | [] | no_license | macknever/Interference-Management-Project | def179d3ab119258c325ba66206b7c99ad529af9 | 5c4496c1e1eb895f88e377dc6a92ad2ec012568c | refs/heads/master | 2023-02-12T11:41:55.990545 | 2021-01-11T19:07:53 | 2021-01-11T19:07:53 | 259,426,525 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,500 | cpp | IAN_LDPC_SIMU.cpp | /*This simulation is about 2 regular transmission which will interfere each other
and one always see the other interference as noise
y1 = alpha * x1 + gain2 * bet * x2 + N
y2 = bet * x2 + gain1 * alpha * x1 + N
*/
#include <itpp/itcomm.h>
#include <sstream>
#include "SWSC.h"
using namespace itpp;
using namespace ... |
6b7d39cefddb0b9e3993f47eccc0a62a7ff43845 | df2aa7d8d75687ce17bbaa27a4a74ff03cece415 | /SelectServer.h | 98f5aae2bc1060ff6f52724a127b19c30e106b0a | [] | no_license | iamhatling/WindowsNfs | c8b4c702e38c2ef3fdc4be482c0642a5e71caa7a | 5c1ec5603546366fc4810890d5a2eb3f802a0080 | refs/heads/master | 2022-01-20T00:14:22.779960 | 2019-08-04T16:45:13 | 2019-08-04T16:45:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,720 | h | SelectServer.h | #pragma once
#include <SelectServerParams.h>
// Application can override the socket capacity for a single thread
#ifndef SELECT_THREAD_CAPACITY
#define SELECT_THREAD_CAPACITY 64
#endif
// Application can define this to enable verbose logging
//#define SELECT_THREAD_VERBOSE
// Application can define their own log ca... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.