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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0b62812c6b7f2a9d29fa19f7879e21785ad4d519 | c4c3e721c040abd543fedeb90cf60491a50bbf3f | /if4.cpp | c4971ddfc20543dd9bb41bb1cbe929c6dc0893cd | [] | no_license | kolesnikovaO/C-Ess-KI3 | 6698f6f9bdaa51ecec82b1bea1a847eeacbba6bc | 371ef82ef7e823322d7afbec6110f57124c77329 | refs/heads/master | 2021-08-30T17:33:53.795305 | 2017-12-18T20:29:55 | 2017-12-18T20:29:55 | 106,173,247 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 432 | cpp | if4.cpp | #include <iostream>
using namespace std;
int main(void) {
int year, mounth, day;
cout << "Enter year, mounth,day!" << endl;
cin >> year;
cin >> mounth;
cin >> day;
mounth -= 2;
if (mounth < 0) {mounth +=12; year -= 1;
mounth *=83./32.;
mounth += day+year + year/4. - year/100. + year / 400.;
cout << mounth % 7;}
else{... |
328e588777e629177c7935196070a68d89e9d6d5 | 4bc572d4044736aff16c2a70859e1cf053fdfca5 | /FGGC Framework Semester 2/Shader.h | cd6d561d08059d3f88c7414d75b3c6308c948934 | [] | no_license | AnthonySturdy/DX11-ShipScene-Physics | 77b5eb97cf59f37e1a0efb1a695b4ebd34727217 | 665858bf9dd6a4b20d9f761e1f90b13bfdab3508 | refs/heads/master | 2023-07-11T10:05:38.059270 | 2021-08-21T00:48:09 | 2021-08-21T00:48:09 | 235,552,102 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 740 | h | Shader.h | #pragma once
#include <d3d11_1.h>
#include <d3dcompiler.h>
#include <directxmath.h>
#include <directxcolors.h>
using namespace DirectX;
class Shader {
private:
ID3D11Device* device;
ID3D11DeviceContext* context;
ID3D11VertexShader* vertexShader;
ID3D11PixelShader* pixelShader;
ID3D11InputLayout* vertexLayout;
... |
63c6a641acab2e7212cae082d9ff93b6e7d38d4d | 2758b84e44ea542f42c087d689e847353426e2db | /Tools/Src/MaxTools/ClassDesc.h | cfcd97174e20e624bee3a6d28da943f88e0b6342 | [] | no_license | stravaganza/sgzsourcepack | db8949506f5d68c6ed23bdf2681b67ba4b485ce6 | 20ac3be3c4a9f994c7119030baff3bad216c5a09 | refs/heads/master | 2016-09-05T14:22:55.940388 | 2013-10-16T07:44:33 | 2013-10-16T07:44:33 | 13,604,601 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,940 | h | ClassDesc.h | // ==[ File ]===================================================================================
//
// -Name : ClassDesc.h
// -Proyect : MaxTools
// -Author : Enrique Tromp Maseda A.K.A. Ithaqua^Stravaganza
//
// -Contents : CSGZMaxToolsClassDesc definition
//
// =============================================... |
3010eb933e478dbbf5db26f84dfea8697e929baf | 15a7b4cbf97b803775b26d8a1a7094cea114cff2 | /libraries/protocol/include/RequestFactory.hh | 4a4880f46e0439b14215a5faac7fc0813e8d76f9 | [] | no_license | AGuismo/G-BALLS-Rtype | 5ba71039a5b7c5bc31f950ff5e6f8758f4e963e5 | 75ba8ee5cded3e450c884a1c222699b8415e5973 | refs/heads/master | 2021-01-17T02:34:34.274163 | 2014-12-30T20:46:31 | 2014-12-30T20:46:31 | 13,957,123 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 546 | hh | RequestFactory.hh | #ifndef REQUESTFACTORY_H_
# define REQUESTFACTORY_H_
# include <map>
# include "ARequest.hh"
# include "RequestCode.hh"
class Protocol;
namespace request
{
class Factory
{
typedef std::map<requestCode::CodeID, ARequest *> lnk_type;
private:
Factory();
~Factory();
private:
static Factory &g... |
12116d797f9e07e38fc6d30031848b2273d58364 | 11a5c93ce7ced7ead6c8d2ba9f800c3b279ee00e | /HOOPS/Dev_Tools/hoops_hio/hio_skp/source/GeometryImporter3DF.h | 790035a95c4df233fe8c9902a90219d91d96a715 | [] | no_license | hupech/MyBMConvert | 563c6e3c14f54e52c626deeb012d8ac6e8174920 | 8acb45991c37796d48e67affaab2a46e774b29ee | refs/heads/master | 2021-09-18T18:21:02.667847 | 2018-07-18T06:49:57 | 2018-07-18T06:49:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,545 | h | GeometryImporter3DF.h | // Copyright (c) Tech Soft 3D
//
// The information contained herein is confidential and proprietary to Tech Soft 3D, Inc.,
// and considered a trade secret as defined under civil and criminal statutes.
// Tech Soft 3D, Inc. shall pursue its civil and criminal remedies in the event of
// unauthorized use or misappropri... |
a62773f1ec0f9d40dc9489e8cb338ca57125949c | e5091c3a8477fa12e1adfdb1f3d826eb6e9bb2be | /CSES/weird_algorithm.cpp | ebc9e0fef145bf834d06fc29b27b59d200e66eef | [] | no_license | leonardoAnjos16/Competitive-Programming | 1db3793bfaa7b16fc9a2854c502b788a47f1bbe1 | 4c9390da44b2fa3c9ec4298783bfb3258b34574d | refs/heads/master | 2023-08-14T02:25:31.178582 | 2023-08-06T06:54:52 | 2023-08-06T06:54:52 | 230,381,501 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 236 | cpp | weird_algorithm.cpp | #include <iostream>
using namespace std;
int main() {
long long int n; cin >> n;
while (n > 1LL) {
cout << n << " ";
if (!(n & 1LL)) n >>= 1LL;
else n *= 3LL, n++;
}
cout << "1\n";
} |
be435e0b023b1c18aaa2d12b576908988f76d552 | 1bd91f2299200598859fd9841fe52941397195fa | /sndchecker.cc | 3c2976994c747d7824c1da8f3d5b62a5ea2c57b0 | [
"Apache-2.0"
] | permissive | kevinmarks/sndchecker | 792428e0e8d9538283fcb11dbaf3e4c27c197b00 | 60a6331b9cc1104e1b89c0e62bdcd97412eab3bb | refs/heads/master | 2021-01-18T10:16:18.410773 | 2015-08-16T02:56:41 | 2015-08-16T02:56:41 | 40,801,369 | 0 | 0 | null | 2015-08-16T06:26:47 | 2015-08-16T06:26:47 | null | UTF-8 | C++ | false | false | 3,740 | cc | sndchecker.cc | #include <stdio.h> /* printf */
#include <stdlib.h>
#include <cmath> // std::abs
#include <vector>
#include <sndfile.hh>
/* 8K chunks vs 1K chunks = about a 4x speedup */
#define BUFFER_LEN 8192
float threshold = 0.13; // Anything above this loudness threshold, we consider to be "good"
int bucket_s... |
1368bbd7a014a6cd150f27ca76e76714f00673e7 | 8a28891c592d6b502f12de873d080b42130948b6 | /src/util/eventlist.h | 30c03c00c90a03b4096a3635c0f94478944c67ef | [] | no_license | MGraefe/deferred | 2d12bea544549df46e15a4c06dab05a46a6b6e45 | 92d7b39294195441dcb86254e0dc738561abf184 | refs/heads/master | 2016-09-06T12:37:53.518946 | 2015-08-03T12:27:22 | 2015-08-03T12:27:22 | 40,123,198 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 23,158 | h | eventlist.h | // util/eventlist.h
// util/eventlist.h
// util/eventlist.h
//----------------------------------
// Deferred Source Code
// Copyright (c) 2015 Marius Graefe
// All rights reserved
// Contact: deferred@mgraefe.de
//-----------------------------------
#pragma once
#ifndef deferred__util__eventlist_H__
#defin... |
81704fa66661151976ec5e79569d46751025c065 | 90f1739558df47caefcfdd382eedef744f3602cc | /Classes/ActorManager.cpp | 39df492c45bed4c37d08ccaee425cb428aaaea6f | [] | no_license | sevenzou/cocos2dx_astart | 8c319623483492550bce453376cce6b228aea8b5 | a272aba0f199fced599c7959ae855454fdbe49e8 | refs/heads/master | 2021-01-15T10:18:08.531930 | 2015-08-17T11:28:23 | 2015-08-17T11:28:23 | 40,887,693 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 542 | cpp | ActorManager.cpp | #include "ActorManager.h"
USING_NS_CC;
static ActorManager *s_actorManager = nullptr;
ActorManager* ActorManager::getInstance()
{
if (!s_actorManager)
s_actorManager = new ActorManager();
return s_actorManager;
}
Actor* ActorManager::getActorByTag(int tag)
{
for (Actor* actor : _actorTarget)
if ( tag == act... |
901708119fc19822f98faa0dff95501aff327524 | 4152583d8d19504d25aa2a2b87656028ac6de8d4 | /Source/RollaBall/Game/RollaBallWidget.cpp | 4e65f282017a0e8025ffed8d58562db781e7aa83 | [
"MIT"
] | permissive | UstymUkhman/RollaBall | e849309ebff4af36a47da5aed95b99c117e519dd | 29cf407c88e0cde09b6adcdaa613e8cf00a5a8d2 | refs/heads/main | 2023-07-10T01:47:24.804363 | 2021-08-14T16:39:59 | 2021-08-14T16:39:59 | 391,501,926 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29 | cpp | RollaBallWidget.cpp | #include "RollaBallWidget.h"
|
46f5e2039257f2fc6103683a648e6ddd8959d75d | cadb836d9ac9c9e3b618cf44c936015a0aea24a8 | /ge700/LT0773_Sliding_Puzzle.cpp | 3925302a82feee68afdc89f5abeb3edc54020586 | [] | no_license | checkoutb/LeetCodeCCpp | c6341a9fa5583a69046555a892bb41052624e83c | 38832f7ccadf26b781cd8c9783c50916d1380554 | refs/heads/master | 2023-09-03T22:35:50.266523 | 2023-09-03T06:31:51 | 2023-09-03T06:31:51 | 182,722,336 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,837 | cpp | LT0773_Sliding_Puzzle.cpp |
#include "../header/myheader.h"
class LT0773
{
int target = 123450;
public:
// D D
// 用string,而不是vector<vector>
// 数组保存 当string下标x为0时,它可以和谁交换。
//Runtime: 76 ms, faster than 25.07% of C++ online submissions for Sliding Puzzle.
//Memory Usage: 16.8 MB, less than 16.67% of C++ online submissions for Sliding P... |
d4871e5b5de346b9ff8d50c22fb1cec621416879 | 2df1fc2356d006f9fc066e925c0e53fca2cf3ae3 | /settings.h | 91418af5ad303935d354f7fb1002e8b4ea94806e | [] | no_license | Jogenist/CM-IoT-App-Bestellstation | 4455da44c17cf70b225e923fdf79e73bd4f87f48 | 423b29f4b4805fd612f71e536f970c6a93ef8332 | refs/heads/master | 2021-05-21T14:44:36.290880 | 2020-05-22T10:25:58 | 2020-05-22T10:25:58 | 252,675,484 | 0 | 0 | null | 2020-04-03T09:06:01 | 2020-04-03T08:32:33 | C++ | UTF-8 | C++ | false | false | 4,447 | h | settings.h | /*
Type: HTML Index Page
Date: 14.08.2019
Author: Tim Schanz
Description: This header file stores the static HTML content of the configuration page.
*/
#include <Arduino.h>
#include <string>
using namespace std;
string dynamic_content_settings();
const char SETTINGS_page_Begin[] PROGMEM{ R"=====(
... |
dc54072b458559e6cbdbc3cfaa5cbc35a1807b71 | 658d08b1038973328cf3c6e8f95417114ac63b9e | /Assignment7.cpp | e3b5a5b5c5e1c23e527c27e689bd7b02bbc77c50 | [] | no_license | itsJumaah/Algorithms-and-Data-structure | 8e45c9f39e7179c4e8e72e819e4e187b72b79f52 | 8dd774bb3aabbc9c5660ecc309ca074b1d4a348e | refs/heads/master | 2020-12-11T07:32:47.891581 | 2015-11-13T00:58:35 | 2015-11-13T00:58:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,040 | cpp | Assignment7.cpp | // 159.201 Assignment 7
// Bilal Jumaah
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <iostream>
#include <fstream>
#include <vector>
using namespace std;
vector<int> vector_random;
vector<int> vector_reversed;
vector<int> vector_sorted;
/* Implement a Heap class here (from the ... |
deb969f4c6432f9f5c27b727f3289bc8f0fa4092 | e70abd28dba76d3efe8f0c2f0b708f3c1346a402 | /~11.02까지 푼문제/예전에 푼문제/1926.cpp | d4bec4ec7f532d553935725da4aca99b6c3769dd | [] | no_license | TaeBeomShin/1day-1ps | 3dab86833c1643a5954bfe62cf3de6098e138558 | a362105bd9139e82cbf7a9c896a06d37da10726b | refs/heads/master | 2023-08-20T10:05:04.880960 | 2021-10-15T14:39:58 | 2021-10-15T14:39:58 | 284,451,077 | 4 | 0 | null | null | null | null | UHC | C++ | false | false | 1,282 | cpp | 1926.cpp | #include<bits/stdc++.h>
#define fastio ios::sync_with_stdio(0), cin.tie(0),cout.tie(0)
#define X first
#define Y second //pair에서 first,seoncd를 줄여서 쓰기위해 사용.
using namespace std;
int board[501][501];//1이 파란칸, 0이 빨간칸에 대응.
bool visited[501][501];//해당칸을 방문했는지 저장.
int n,m;
int dx[4]={-1,1,0,0};
int dy[4]={0,0,1,-1};//상우... |
2022f064224c4139aada33d99efe10631772400b | b1a9843381dad4d5f55b1a024d66243d0ec91c2a | /R2/R2Vector.h | 50f2e811c85409a2730c82b0914cbb8d1f545462 | [] | no_license | AntonioJuliano/IW | ce1e0d32cf66dbe86deca407324eb1ebea0706e3 | 4a7a3928ac408dbc4b2f10c3f64702396f37129c | refs/heads/master | 2020-05-06T13:28:46.289973 | 2015-01-08T20:02:27 | 2015-01-08T20:02:27 | 28,818,680 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,998 | h | R2Vector.h | // Include file for the R2 vector class
// Class definition
class R2Vector {
public:
// Constructors
R2Vector(void);
R2Vector(const R2Vector& vector);
R2Vector(double x, double y);
R2Vector(double array[2]);
// Coordinate access
double X(void) const;
double Y(void) const;
doub... |
8d932df57a4053ad81ad3de7f7c98fcf0551dea0 | d689ec745e45d47b9242e682371c76c6f0f88a05 | /test/frameless/item_title.h | 80829b2a775ef55693674c522338f0ec1ada841e | [] | no_license | go-eden/goxui-cbridge | 9f9ba6ef6758629d6897e44a3628f970d07269e8 | 6661aa8bd3ab0d3d95805bcbd0efa4ae12a2867d | refs/heads/master | 2020-05-06T13:37:21.706021 | 2019-12-08T06:30:01 | 2019-12-08T06:30:01 | 180,146,936 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 643 | h | item_title.h | //
// Created by sulin on 2017/9/30.
//
#ifndef UILIB_WINDOWTITLE_H
#define UILIB_WINDOWTITLE_H
#include <QQuickItem>
#include <QQuickWindow>
class TitleItem : public QQuickItem {
Q_OBJECT
private:
bool flag = false;
int fromX, fromY, fromWinX, fromWinY;
public:
explicit TitleItem(QQuickItem *parent ... |
ee0a5256698e96907282b6eccf4de52439726ef4 | faa44c4dd57459ad321969dd1a9c3926980fe4b4 | /generated/gui_generated/include/gui_generated/main_screen/MainViewBase.hpp | 9d098e5e89316e575fd6dbf3cb6121f8dbb35f04 | [] | no_license | sphinxyun/TouchGFXF429 | f699a030fff58266b4717252f07554a0a379631c | 7527f5f80ac0974837e3580d691693cbae1f4be3 | refs/heads/master | 2020-04-18T13:33:03.176011 | 2018-07-19T09:25:37 | 2018-07-19T09:25:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,351 | hpp | MainViewBase.hpp | /*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#ifndef MAIN_VIEW_BASE_HPP
#define MAIN_VIEW_BASE_HPP
#include <gui... |
bfc3a8baf937c89391ec62c3987b972b31021450 | cc3072eb9106b504c40fec5b9b6b4afb24da419a | /computer.h | b27e9a17c7054feb0b30d32bb73c481d612d9de9 | [] | no_license | maggawaage/skil3 | 00023a86528070ddff30dcabe1301dc2981027b3 | 73b94b4e9adc79eef804cf70e5c49104cc6c7566 | refs/heads/master | 2021-01-13T15:06:45.732518 | 2016-12-16T23:32:06 | 2016-12-16T23:32:06 | 76,245,471 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 683 | h | computer.h | #ifndef COMPUTER_H
#define COMPUTER_H
#include <string>
#include <vector>
using namespace std;
class Computer
{
public:
Computer();
Computer(int id, string name, string type, int buildYear);
//GET INFORMATION FOR COMPUTER
int getId() const;
string getName() const;
string getType() const;
... |
493d6e5f82d31a7773c9fce0b60eb25a3daccf11 | c4105e71aa381b4ae874d78ee46af23c5536d97a | /Blastorium recoded/Powerups.h | 3d1b51fd98a878c4c348369b7c303dc1b8ab6027 | [] | no_license | VotBear/BlastoriumRecoded | 73b9cad791bd8d53518e9c1a4d034a8197d95cf2 | c0ff5b061e894e28e259e94a8e2807fa65c0cea9 | refs/heads/master | 2016-09-06T21:54:33.009957 | 2013-09-12T01:03:03 | 2013-09-12T01:03:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,024 | h | Powerups.h | #ifndef _POWERUPS_H
#define _POWERUPS_H
#include <vector>
#include "Level.h"
#include "Player.h"
#include "WpnBomb.h"
#include "WeaponManager.h"
#include "Tilelist.h"
#include "TextureManager.h"
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
//forward reference to globals
clas... |
aaabf0eaeb546180d962f0caf3b4ecda7e78f55c | e3e7ffef42128496e4bac222b60d8751f65c420e | /src/json_proj_transform_grammar.cpp | 882451513f179382de7ea6a2770818e85a02cf48 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | wxdoppler/node-mapnik | 67e1c7cbe36a6a13a6a3f160001c9b759092271c | 40e09ba99922acd4fe923f6e7245c165a9e4036a | refs/heads/master | 2021-01-16T23:08:10.883061 | 2015-04-25T06:42:52 | 2015-04-25T06:42:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 871 | cpp | json_proj_transform_grammar.cpp | #include <mapnik/json/geometry_generator_grammar_impl.hpp>
#include "proj_transform_adapter.hpp"
#include <string>
namespace mapnik { namespace json { namespace detail {
// adapt mapnik::vertex_adapter get_first
template <>
struct get_first<node_mapnik::proj_transform_path_type>
{
using geometry_type = node_mapni... |
0c589b3f69fcf65871cb91db57743639b781a28b | 65584d97384b1cdcaf370f61abb365063e256e02 | /main(33).cpp | eb2653499de63c1467c4c489c85dc932f0675d50 | [] | no_license | danielnzlz01/superclasses-and-subclasses-oop | 43ab867671a8c7aa7ce57f65e39a0e8d166239d1 | 5ad88340cd6a06ae22e58753eb47860461fec1f2 | refs/heads/main | 2023-07-18T02:12:40.920740 | 2021-09-01T02:12:19 | 2021-09-01T02:12:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,432 | cpp | main(33).cpp | #include <iostream>
#include <string>
#include "Person.h"
#include "Student.h"
#include "Instructor.h"
#include "Book.h"
#include "Faculty.h"
using namespace std;
int main()
{
Person *p1 = new Person("Rolando", 32);
cout << p1->getName() << endl;
cout << p1->getYearOfBirth() << endl;
Student *s1 = new Student... |
7c2366ccf756da1092220490f61eb0ad0ac04229 | e255f442c5c65dd8624ec370594cb33c1e78f887 | /sketchbook/libraries/Conceptinetics/examples/RDM_Slave/RDM_Slave.ino | b02bfd576a099f6c69dba523e6696a47e4f5ade7 | [
"MIT",
"LGPL-3.0-or-later",
"LGPL-2.1-or-later",
"LicenseRef-scancode-other-copyleft"
] | permissive | NERDDISCO/webusb-dmx512-controller | 4aa7a2db14bcedb9db1dc2f810ae85f84f3f5c6b | 21a1cfec9bdb9dfbed09d533417c3942a9e78cca | refs/heads/master | 2020-03-08T01:08:03.941892 | 2018-09-15T04:21:58 | 2018-09-15T04:21:58 | 127,822,405 | 21 | 0 | MIT | 2018-05-02T09:31:57 | 2018-04-02T23:06:32 | C++ | UTF-8 | C++ | false | false | 3,791 | ino | RDM_Slave.ino | /*
RDM_Responder.ino - Example code for using the Conceptinetics DMX library
Copyright (c) 2013 W.A. van der Meeren <danny@illogic.nl>. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Fre... |
e43bcebcbed115977c5a3d04d652c357af9a8bac | 18d823af32ad20288114b531d3fae7183a6b8c5b | /epoll_work_thread.hpp | 0fb7992a3680e07358dfc6873e077aa5fc3525b2 | [] | no_license | iamcxl-tools/socket5_based_on_epoll | e4ab5851df41a26d1c55f4c445bad4782911a056 | 7756d9d2a1171bce0749bf1141787b8ca2b1ec53 | refs/heads/master | 2021-10-09T04:22:07.628185 | 2018-12-21T03:59:46 | 2018-12-21T03:59:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,895 | hpp | epoll_work_thread.hpp | #ifndef EPOLLWORKTHREAD_HPP
#define EPOLLWORKTHREAD_HPP
#include "epoll_common.hpp"
#include "memory_pool.hpp"
class EpollWorkThread {
public:
struct Client {
struct sockaddr_in client_address;
int clinet_fd;
uint32_t event;
void* data = nullptr;
};
public:
EpollWorkThread(... |
d653156e63965103c375cfd5dc535695ab470aeb | 16227d41a059915dcf3d1a2b3e241e33fe795eb9 | /patsolve/golfsolver.cpp | 3ac52d38b462b7251f4683b191fe1af5a607a38e | [] | no_license | ofelt/klondikebattle | dce00ded7f28473a055cb7abeb7b6caa7faae301 | ebda314b06ba75a6d07719144d0f4bcb05066e80 | refs/heads/master | 2020-04-09T19:26:56.212686 | 2018-12-05T16:30:06 | 2018-12-05T16:30:06 | 160,543,945 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,781 | cpp | golfsolver.cpp | /*
* Copyright (C) 2006-2009 Stephan Kulow <coolo@kde.org>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
... |
49987a9dafb347547508a3d72cc8be47089adf47 | 3e7173b24eddc5decbbb1f9f77f6ca77f5919df5 | /Coursera_C++/chears/src/chears.cpp | e3bdbaf60bff23724b53732f805448134832c852 | [] | no_license | IlyaKK/Coursera-C- | 710b9a2c5378a3b8b6b5b2cc12a79e251ee1c37f | 7433a159ba290ad0f073699490ea0787ca65905e | refs/heads/master | 2022-02-28T10:28:47.917997 | 2019-10-03T21:40:42 | 2019-10-03T21:40:42 | 211,727,782 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,324 | cpp | chears.cpp | #include <iostream>
#include <vector>
#include <iomanip>
#include <algorithm>
using namespace std;
int main() {
int n, m;
cin >> n >> m;
vector<vector<int>> matrix(n, vector<int>(n, 0));
for(int i = 0; i < m; i++){
int x,y = 0;
cin>>x>>y;
matrix[x-1][y-1] = 1;
if(x-1+1 >= 0 && x-1+1 <=... |
e7ab0e29648320e5be00d18a87597e222651eadc | 1ac2dcee9d3acf53f93b7a750c256c22ff574e6d | /admin.h | bcdba68647f6100ac33c9e31d4741fd55c0af96b | [] | no_license | horbalesz/Szofttech | e34690557010e275b8767d2db40628bb2ed8b927 | a095dbc9966473f2d63a6d8c08a15810dfe3353f | refs/heads/version2 | 2021-08-24T07:13:57.945832 | 2017-12-08T15:43:07 | 2017-12-08T15:43:07 | 112,667,247 | 0 | 1 | null | 2017-12-08T15:43:16 | 2017-11-30T22:20:27 | C++ | UTF-8 | C++ | false | false | 526 | h | admin.h | #ifndef ADMIN_H
#define ADMIN_H
#include <vector>
#include "orarend.h"
#include "felhasznalo.h"
#include "edzo.h"
using namespace std;
class Admin: public Felhasznalo
{
public:
Admin(int jelszo, string nev);
Admin(int id, int jelszo, string nev);
void menu();
void edzoRegisztralasa(vector<Felhasznal... |
bdae3a7da0f8e922f23bb87f261c6100b025322e | 7a965273aca7261a287ca1b65cc148a8881d8c46 | /src/particle.h | 12d4464068cd0b1d3983750d83d8bdd6e0db8083 | [] | no_license | nzhao95/tornado | c07fc9c83acc23f900031c801d2bc107e66e7b4d | 79aee3c8490b9e6f48aae66d429054f3444fce97 | refs/heads/master | 2021-02-28T04:24:42.066591 | 2020-06-19T13:57:59 | 2020-06-19T13:57:59 | 245,661,846 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 617 | h | particle.h | #ifndef PARTICLE_H
#define PARTICLE_H
#include "point3.h"
#include <math.h>
#include <QGLViewer/qglviewer.h>
#include <stdlib.h> // RAND_MAX
using namespace qglviewer;
using namespace std;
class particle {
public :
point3d pos;
point3d color;
point3d advectedTrajectory;
float life_span;
void init() {
... |
9acf3acd9134af2fd69524eab68f1bb1717bc9f3 | 6634dc06e2293f1bf36ef4a6d2959adcb4b22c63 | /BingoCasaLinuxGui/BingoCasaLinuxGui/BingoGame/BingoParameters.h | efa791fdc7d53f7e21d01692502f9546fbee8a2c | [] | no_license | ESORIANOGIRON/ESORIANOGIRON | 639bc7191ba30f92658a4de147c4a931c691d09b | 4f2d5f9bbd854a0205cef9456abc3c25b3b78aa4 | refs/heads/main | 2023-06-12T23:55:23.708408 | 2021-07-11T18:53:25 | 2021-07-11T18:53:25 | 384,936,583 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 658 | h | BingoParameters.h | #ifndef BINGOPARAMETERS_H
#define BINGOPARAMETERS_H
#include <string>
//Definition of the whole bunch of parameters
using namespace std;
//Definition of Image and Sound File names for each ball
const string BALL_IMAGE_OPEN_INSTRUCTION = "gpicview ";
const string BALL_SOUND_OPEN_INSTRUCTION = "cvlc --play-and-exit "... |
974575368c65dd46ada9346cd193669df9e0ff1d | 981fea877995553790b9b6c25cba160285ba9ea0 | /samples/ocl/surf_matcher.cpp | e938a77c273bfb72f59fbfaf4f9bf3e3e54de507 | [] | no_license | ice-pice/opencv_bar | d7b1cc616f3624bd7c7a6cb28406b9820dfac267 | 0d8a171a1bd18c36d3b158e5bda330c9fa7bf722 | refs/heads/master | 2021-01-25T05:16:02.716701 | 2013-09-22T10:28:33 | 2013-09-22T10:28:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,492 | cpp | surf_matcher.cpp | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
803901007d9b578214e5090e4c7cdb0508c224d3 | ac5442020a5247231ede042926530e500b16b501 | /compilers/multicore-backend/src/syntax/logical_expr.cc | 69c7da553770568f85390bbd49b5011bbe731cd1 | [] | no_license | MuhammadNurYanhaona/ITandPCubeS | e8a42d8d50f56eb76954bdf2cb786377cb5a8ee5 | 8928c56587db8293f0ec02c7cb030cfb540ce2b4 | refs/heads/master | 2021-01-24T06:22:37.089569 | 2017-04-22T15:57:04 | 2017-04-22T15:57:04 | 15,794,818 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 20,537 | cc | logical_expr.cc | #include "ast.h"
#include "ast_stmt.h"
#include "ast_expr.h"
#include "ast_type.h"
#include "../utils/list.h"
#include "string.h"
#include "../semantics/symbol.h"
#include "../semantics/task_space.h"
#include "errors.h"
#include "../utils/hashtable.h"
#include "../static-analysis/data_access.h"
#include "../static-an... |
84c9544cedcf0a788178a2b8b80b1e8e8da80442 | 00bc38fca3165a85c3a4e040bbd2c55162ff917b | /PipesPlatforms/Plugins/ObsEvent2.5-4.22/Source/ObsEvent/Public/ObsEvent.h | 1f0273da28400454de0c44490906f05ec5e7473d | [] | no_license | WookieeMatt/RestaurantWars | 6d3c27d512a42db408d125facec4edfeb4a1aff3 | cdc1a8d644873321c90342f20c62dc56fbdf7b4c | refs/heads/master | 2020-06-16T02:50:42.583418 | 2019-10-06T18:39:56 | 2019-10-06T18:39:56 | 195,458,115 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,945 | h | ObsEvent.h | // Copyright Out-of-the-Box Plugins 2018-2019. All Rights Reserved.
#pragma once
#include "Internationalization/Text.h"
#include "UObject/Object.h"
#include "UObject/ObjectMacros.h"
#include "ObsEvent.generated.h"
class IObsInterfaceListener;
class AActor;
class UObsPayload;
/**
* Event holding all the listeners a... |
9caf42d1f59eb8721de0364848bad4238fc0eebd | 0797799496daa46f8fc10d4343dc9fdd5aa2af88 | /src/render/render_circle_2.cpp | 73ddfa8966f843df0790788e0f1cc4d48c755591 | [] | no_license | fearlessfollowing/titan | 597cdf055d4a608ac37e6b97b40b5ecfa8969fb9 | b63d82efb949f512bae16a443405c963c582735d | refs/heads/master | 2020-04-24T09:17:43.499817 | 2019-05-11T10:42:15 | 2019-05-11T10:42:15 | 171,858,309 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 29,777 | cpp | render_circle_2.cpp | #include "render.h"
#include "inslog.h"
#include "common.h"
#include "Dewarp/Dewarp.h"
#include "xml_config.h"
#include "sharder.h"
#define FLAT_WIDTH 100
#define FLAT_HEIGHT 50
#define CUBE_WIDTH 32
#define CUBE_HEIGHT 32
void render::release_render_cicle()
{
if (vao_[0] != 0)
{
glDeleteVertexArraysOES... |
0a4f14d9a4e0675d6ed8dda658e79ffbf45453e6 | b23618e118013a752ebd345b83a72786dd90d776 | /Classes/Main.h | 1f43c8712c28e6f6991193ddae01d5d82793adec | [] | no_license | alec-hewitt/SpacePace | 5be4a470b222f90c1787e413e75e8d9cd18a2dd7 | c4e59adb2eb0c845f2d006d27622f38239492754 | refs/heads/master | 2016-09-06T09:39:22.840716 | 2014-10-08T01:49:58 | 2014-10-08T01:49:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,068 | h | Main.h | #ifndef __MAIN_H__
#define __MAIN_H__
#include "cocos2d.h"
#include <base/CCUserDefault.h>
class Main : public cocos2d::Layer
{
public:
// there's no 'id' in cpp, so we recommend returning the class instance pointer
static cocos2d::Scene* createScene();
// Here's a difference. Method 'init' in cocos2d-x ... |
bb8b966c6e15b7d0f99e8d8d3f2cb05daf187180 | 1bd7c74e8c7ad1ce23ea8b62a012cf1ace832e32 | /A_Orac_and_Factors.cpp | 67d35d35b2af93f9b60fc16fa6d03c5f3eb33f0d | [] | no_license | Harshit-Kumar-Singh/Code-Forces | 3962b004fed8a35fe41d3a2a83f1b7af1054e34c | 04be6f85d0ef5fa66ae0e85a2cce07053a8ac810 | refs/heads/master | 2023-04-10T03:36:52.467749 | 2021-04-24T11:40:10 | 2021-04-24T11:40:10 | 361,119,577 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 517 | cpp | A_Orac_and_Factors.cpp | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long int ll;
void solve(){
ll n,k;
cin >> n >> k;
ll temp =-1;
for(int i=2;i<=n;i++){
if(n%i==0){
temp=i;
break;
}
}
// cout<<n<<endl;
if(n&1)
{
n = n+temp;
k--;
... |
b1346efc948cad564e7d219a2693053ba814c38b | 464e9284f54febf639d04fd4f98e11c04dc03795 | /gamepad.h | b9d87db428996eaffb7cbae0be3e8c198b75b412 | [
"BSD-2-Clause"
] | permissive | ElectricToy/gamepad | 283611c1b581f76086728f4dbf6b0231fe7687ea | 9de4529cf5522a979064f1e276ecd1267e7bb7c7 | refs/heads/master | 2021-09-24T00:04:46.173997 | 2018-09-29T19:25:22 | 2018-09-29T19:25:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,401 | h | gamepad.h | /*
* Written by Simon Fuhrmann.
* See LICENSE file for details.
*/
#ifndef GAMEPAD_HEADER
#define GAMEPAD_HEADER
#include <functional>
#include <memory>
#include <string>
#include <vector>
namespace gamepad {
struct Device {
unsigned int device_id = 0;
int vendor_id = 0;
int product_id = 0;
std::string de... |
784d8e1dba3594402917380f975b08d44af73aa3 | 2483735d584c7f3e88d0c387883e8e51db525c9f | /src/test/LOGL/1/2_tri/main.cpp | 9f2b73f3d3145c8e8f6e93f43aedc2bc0fa1a0d6 | [
"MIT"
] | permissive | Ubpa/UGL | 72edbecbee38804f651b3249b9c942fd25910038 | 4db5b8a090ffa1018e52e77209b8723289798531 | refs/heads/master | 2021-05-18T03:14:22.660298 | 2020-05-02T17:19:00 | 2020-05-02T17:19:00 | 251,078,873 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,747 | cpp | main.cpp | #include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <UGL/UGL.h>
using namespace Ubpa;
void framebuffer_size_callback(GLFWwindow* window, int width, int height);
void processInput(GLFWwindow* window);
// settings
const unsigned int SCR_WIDTH = 800;
const unsigned int SCR_HEIGHT = 600;
const... |
b54cea052d0d68129e6c202d3080f504730f0f37 | ed7e1851605dc417f471b24bceaa4efe3ebd577e | /Export/mac64/cpp/release/obj/src/lime/app/Future.cpp | 48fa9ae52f2ee14d2099baa33a3ba72198e8cb49 | [] | no_license | matthewswallace/StableUITest | 60d88c31540b07b68fc5867cb42901676012cf31 | 8ad46db8245bb8a9bc38b3525dfcdfe90c78b845 | refs/heads/master | 2021-01-12T14:41:07.354460 | 2016-10-26T23:13:43 | 2016-10-26T23:13:43 | 72,050,029 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 15,621 | cpp | Future.cpp | // Generated by Haxe 3.3.0
#include <hxcpp.h>
#ifndef INCLUDED_Sys
#include <Sys.h>
#endif
#ifndef INCLUDED_lime_app_Future
#include <lime/app/Future.h>
#endif
#ifndef INCLUDED_lime_app_Promise
#include <lime/app/Promise.h>
#endif
#ifndef INCLUDED_lime_app__Future_FutureWork
#include <lime/app/_Future/FutureWork.h>
#e... |
f628d00defe44e4c0f3412c86ec608aa6dc94bd3 | 215111e92a3dfc535ce1c1ce25a35fb6003ab575 | /cf/petrozavodsk_15_winter/l.cpp | 6e16fe0366fff38c85036d1c65f9eee6201a21ac | [] | no_license | emanueljuliano/Competitive_Programming | 6e65aa696fb2bb0e2251e5a68657f4c79cd8f803 | 86fefe4d0e3ee09b5766acddc8c78ed8b60402d6 | refs/heads/master | 2023-06-23T04:52:43.910062 | 2021-06-26T11:34:42 | 2021-06-26T11:34:42 | 299,115,304 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 939 | cpp | l.cpp | #include <bits/stdc++.h>
using namespace std;
#define _ ios_base::sync_with_stdio(0);cin.tie(0);
#define endl '\n'
#define f first
#define s second
#define pb push_back
typedef long long ll;
typedef pair<int, int> ii;
const int INF = 0x3f3f3f3f;
const ll LINF = 0x3f3f3f3f3f3f3f3fll;
const int MAX = 5e3+10;
char d... |
a399d55226bacabdc9a02b64bb0b004a268cd246 | 66241ef9f388e58f3a2c0fe258ef8858c39078a2 | /cat.cpp | d5183852bae11a1d57c1406fbd9751a0f7303e86 | [] | no_license | MaximMatrosov/Animals | 943fd8e904bbb5d277e9f34f66186c213397cd8c | 00e46aa547f3ae809ee43902f9f4e6e9de58645c | refs/heads/master | 2021-01-12T18:05:35.850666 | 2016-10-03T19:50:54 | 2016-10-03T19:50:54 | 69,902,551 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 432 | cpp | cat.cpp | #include "cat.h"
#include <iostream>
#include <fstream>
using namespace std;
Cat::Cat()
{
}
bool Cat::writeToBase(){
try{
ofstream F;
F.open("cats.txt", ios::app);
F<<Moniker+","
+BirthYear.toString("dd.MM.yyyy").toLocal8Bit().constData()+","
+Color+"\n";
... |
1d91b138b7ad767bad6c6b89fb0eef8bd042c83f | c29bc50118414d51277441e35f73aafc2b6caf31 | /lib/FileHashNode.cpp | 5fdca9c10dacdd999de8b7887d9a82170c3677c3 | [] | no_license | zhenyouluo/Hash-Tree | bf13a200393f834f61e299f6170254cea3311a6c | 7a54d980de9a180d793be62d7c1a70e8d8f0420d | refs/heads/master | 2021-01-14T12:35:51.285800 | 2011-04-25T10:01:09 | 2011-04-25T10:01:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,351 | cpp | FileHashNode.cpp | // @(#)FileHashNode.cpp
// Time-stamp: <Julian Qian 2011-04-20 17:34:25>
// Copyright 2011 Julian Qian
// Version: $Id: FileHashNode.cpp,v 0.0 2011/03/11 05:22:50 jqian Exp $
#include <stdlib.h>
#include "Errors.h"
#include "util_marshal.h"
#include "FileHashNode.h"
using std::string;
void
DTLeaf::init(const char* f... |
032f5d3a621338ed26d60d7aaba016f228b08888 | 04f52c481c7d6eb1b4156b296fe5d81ddccfb161 | /utils/config/ConfigUtils.cpp | de4e4227684e7749a0982d5159cf88b9f6704316 | [] | no_license | starand/cpp_fw | 39c9d78439602b43498310e86f8bf704b4feceb2 | 5d2ebfe7dc3aef61558ed9f6f49293746499492c | refs/heads/master | 2021-01-11T23:59:05.013523 | 2017-02-20T09:36:05 | 2017-02-20T09:36:05 | 78,653,984 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 660 | cpp | ConfigUtils.cpp | #include "StdAfx.h"
#include "ConfigUtils.h"
#include "ConfigStorage.h"
#include "fileutils.h"
/*extern */
CConfigStorage g_csConfigStorage;
void AddConfigString(ECONFIGOPTION coConfigOption, const string &sOptionValue)
{
g_csConfigStorage.StoreOptionValue(coConfigOption, sOptionValue);
}
bool GetConfigString(... |
b30734bfb028c403ed012044ebcc3a44358bd6ba | c0ff084bb7a82b1ac14303717b3e64b01d556074 | /daemon/model-dbus-impl.cc | e1171996b8afe508d0c460860240b01ea2e8b4af | [
"Apache-2.0"
] | permissive | wooksong/api | b1d40c7927abc77c68a798c5d828a6e90d533adb | 66f31272694e203147907005cc67ac320d8125b5 | refs/heads/main | 2023-07-06T05:09:28.569288 | 2023-06-27T07:00:28 | 2023-06-27T07:03:53 | 341,819,071 | 0 | 0 | Apache-2.0 | 2023-04-19T05:14:15 | 2021-02-24T07:43:09 | C | UTF-8 | C++ | false | false | 10,617 | cc | model-dbus-impl.cc | /* SPDX-License-Identifier: Apache-2.0 */
/**
* Copyright (c) 2022 Samsung Electronics Co., Ltd. All Rights Reserved.
*
* @file model-dbus-impl.cc
* @date 29 Jul 2022
* @brief DBus implementation for Model Interface
* @see https://github.com/nnstreamer/api
* @author Sangjung Woo <sangjung.woo@samsung.com>
* @bu... |
a955e559ab89bbc1623b0d8692e10aaa361d11ea | 28df98a6c9e0c23adc082465a9b438a76a71698f | /Pointers.cpp | e771bb13f319406a278c863a5e66bb972fb83816 | [] | no_license | sbarbera4/CIS2013_Week10_Lab1 | fa1c67b1efaa9927058cbac6fe5a3bc00d0ddf8c | 25c01fe96a8aa3ab9aa7594560a63aa6694949af | refs/heads/master | 2020-03-07T02:52:48.559856 | 2018-03-29T01:35:31 | 2018-03-29T01:35:31 | 127,220,038 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 829 | cpp | Pointers.cpp | #include <iostream>
#include <cstring>
using namespace std;
int main()
{
int len;
int cont = 1;
while (cont == true)
{
cout << "how long do you want your array?" << endl;
cin >> len;
int *a;
a = new int[len];
for (int i = 0, i < len; i++)
{
cout << "int number " << i << " should be: ";
cin >... |
abca5a63b80ddf31ecbb51731c74c1f7858b13f1 | f1669fb90f1e2fb01d709d7ffa0dee13d43af8ef | /src/iqrf/request/DPAOSRestartRequest.cpp | 055f74aa4dbf51e9bb5a8a77553e8398a5149d97 | [
"BSD-3-Clause"
] | permissive | BeeeOn/gateway | 9f6305acdff8fb59dd58f878e2634814be6dc296 | 6f737dc6a979242494b63ce3603aabe6f1ca9005 | refs/heads/master | 2021-01-19T22:08:15.406357 | 2020-03-26T09:01:26 | 2020-03-26T09:01:26 | 88,623,513 | 8 | 11 | BSD-3-Clause | 2020-03-26T09:11:11 | 2017-04-18T12:39:47 | C++ | UTF-8 | C++ | false | false | 227 | cpp | DPAOSRestartRequest.cpp | #include "iqrf/request/DPAOSRestartRequest.h"
using namespace BeeeOn;
static const uint8_t RESTART_CMD = 0x08;
DPAOSRestartRequest::DPAOSRestartRequest(uint8_t node):
DPARequest(
node,
DPA_OS_PNUM,
RESTART_CMD
)
{
}
|
5c8b14257dac13d07dbc3dec80f4b9be902b8fa1 | 7d782dbdb3c36fd9591a21da3b04f137cece056d | /otus.lessons.05.01/scene.h | 20c1ef8ff447c538b06763961179f391acd870d4 | [] | no_license | madmazoku/otus.lessons.05.01 | 1fe3024776a2100ef51c4d17ec4b61dff8cba8e5 | ccad210f5137c9da19ade78cd8abc52e9357f396 | refs/heads/master | 2021-08-31T14:46:31.090419 | 2017-12-21T19:05:59 | 2017-12-21T19:05:59 | 114,666,889 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,238 | h | scene.h | #pragma once
#include <vector>
#define _USE_MATH_DEFINES
#include <cmath>
#include <math.h>
#include <SDL2/SDL.h>
#include "global.h"
#include "queue_processor.h"
Uint8 lum(const double &d)
{
return d < 0.0 ? 0 : d > 1.0 ? 255 : (Uint8)(255 * d);
}
double inv(const double &d)
{
return d < 1e-4 ? 1e4 : 1.0/... |
12e1625b1b2bf043817400a4ae7ae224f23f4c38 | d027fce4698eee1e2b7123964d926e0d5fd33e38 | /Emulator.h | a7d348bf52e12ddaf028f8140b936a642b1cba4e | [] | no_license | janwilmans/nowindnextgen | 6958f1bb3a515a1da7335ea579f1af98e6d79a8f | c0843be5251d5af53e1cd4f9a70d5ceac11b6785 | refs/heads/master | 2021-01-10T08:53:37.377540 | 2012-05-12T17:35:17 | 2012-05-12T17:35:17 | 43,647,567 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 647 | h | Emulator.h | //! Emulator.h
#ifndef EMULATOR_H
#define EMULATOR_H
#include <list>
#include "Event.h"
#include "Component.h"
namespace nowind {
class Bus;
class Scheduler;
class SlotSelector;
class Emulator
{
public:
Emulator(void);
virtual ~Emulator(void);
static Emulator* Instance();
static emuTimeType emuTime;... |
e176b1692ed93331c2bfc50eeefc2913c2832311 | 6f37f529bae8bbcc99244468477f14e9f96ff95c | /wxWidgets-2.8.12/contrib/src/fl/frmview.cpp | 2cb72c0a26d5a285945a7cfb33cf79fdeeaf01e9 | [] | no_license | darknebuli/darknebuli-RM-graph | 13326ddbc9a210605926f7ad4b70672a48b1b2f2 | bf169c01f787fdd144e19fae6732a5b58fdbdafd | refs/heads/master | 2020-05-16T23:40:56.853727 | 2012-04-30T22:14:24 | 2012-04-30T22:14:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,570 | cpp | frmview.cpp | U2FsdGVkX19fTms3OENxUoetnOKy1AyJ49jWWmkNc76HrZzistQMiePY1lppDXO+
h62c4rLUDInj2NZaaQ1zvoetnOKy1AyJ49jWWmkNc758g4KpHaB8LwCS1iqVEAa/
2E2RTCnixhyZluJbEVjFBN/Ek6Q7gPlL8WDb4ZWj54kqwUXB2CEHyunB5U8gIWGx
6w3Y9bODPsxDiA3n54GvXeiDAnrxR6LAq/wv4g/w/BrOZvHrzSJIbtAPoRwfni1z
ZYcANdHJI5y9ZiILdCcFZnJ0fpPCAoMBbyDOqdXgrANOC2LEIe/ujrDqQENy... |
e27b9246a72830db5f55bd2180172a0b1c85ab50 | 0be229862c222d7eaed54557954c732b2304ee32 | /sdchx_config.h | 987e233f9b3aef1c78daf9cc8b3b9c8bbe5b7c55 | [
"MIT"
] | permissive | bacek/sdchx_module | cf216d0536b2754320b0794d9b59dee5671c8eb0 | d6687ec5e92341eb9800344b39d3f6158cd34bab | refs/heads/master | 2020-02-26T15:28:37.615037 | 2016-07-28T10:59:27 | 2016-07-28T10:59:27 | 62,856,438 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 957 | h | sdchx_config.h | // Copyright (c) 2015 Yandex LLC. All rights reserved.
// Author: Vasily Chekalkin <bacek@yandex-team.ru>
#ifndef SDCHX_CONFIG_H_
#define SDCHX_CONFIG_H_
extern "C" {
#include <ngx_core.h>
#include <ngx_http.h>
#include <ngx_config.h>
}
#include <vector>
#include "sdchx_pool_alloc.h"
#include "sdchx_dictionary_fact... |
6c24751f4b28c7e227b53c8387cd2fb454b9e3ed | 601c912e34a4f70f06c1fd45d2eee3d06ba18c29 | /Console Map Engine/Plate.cpp | fb7e53892df18c7b828682e387dfee3cddcdeb67 | [] | no_license | Salaramon/Console-Map-Engine | b66b15206a930b7d63e7f561e82db4d453e84acb | 203468d607070006c3eaf0a5df51029dc424fa11 | refs/heads/main | 2023-02-03T23:10:28.645598 | 2020-12-22T17:38:51 | 2020-12-22T17:38:51 | 316,747,805 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19 | cpp | Plate.cpp | #include "Plate.h"
|
cfa24b96ea61b6f6ba9d942f3e0ea3946a7e207b | 30d12cd0c83cecbcf6187d7a9b2bbebd220b7d86 | /gameEngProj/src/gameEngine/Model.cpp | db94e5d90badfaea86af6b07cc3a83832664b98e | [] | no_license | jishansingh/myGameEngine | c283f43d13591f042be6de955af8cace057cf97a | 58489c74407ff68e490245937d14ba23fc356738 | refs/heads/master | 2023-07-15T21:42:17.079556 | 2021-09-02T08:23:25 | 2021-09-02T08:23:25 | 285,021,579 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,328 | cpp | Model.cpp | #pragma once
#include"Model.h"
gameEngine::modelLoader* gameEngine::modelLoader::modelLoaderObj;
gameEngine::MeshInstance::MeshInstance(std::shared_ptr<Mesh> mes, std::shared_ptr<Material> som) {
objMesh = mes;
meshInsData = new MeshDataInstance();
meshInsData->objMaterial = som;
}
gameEngine::MeshInstance::MeshI... |
d3cf058bc629fd72a91e476506faa44ed33f68e8 | 2e4ddf3e20f5fbd4285f73530000a4a8f54e1ca3 | /ImageGenerator.h | aaaf358f3c9f3801039af89db1a8d42d4d942076 | [] | no_license | as2388/Video-Synthesiser | 68d560301f01232c8e75c008149c991c73adb1db | 0e7610682cba492ed7f13e3ad2d16d2c5090e63f | refs/heads/master | 2020-04-06T07:05:04.174573 | 2016-05-13T09:30:00 | 2016-05-13T09:33:50 | 45,188,577 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 510 | h | ImageGenerator.h | //
// Created by Alexander Simpson on 2016-02-22.
//
#ifndef VIDEOSYNTH_IMAGEGENERATOR_H
#define VIDEOSYNTH_IMAGEGENERATOR_H
#include <qthread.h>
#include <boost/lockfree/queue.hpp>
#include <World/World.h>
class ImageGenerator : public QObject {
Q_OBJECT
private:
boost::lockfree::queue<QImage*> *queue;
pub... |
f7894a920570ba119f681628980a8d67b4e748dc | 7315e9f30f1b65fbffb69dbb112b59e3d7a220f3 | /04_Code/adtv/tvcore/include/psisi_parse/diitest.h | f9e7c017089715979b02e05c1686e7cc64db5bca | [] | no_license | cg8530/WorkSplace | 159fb97b9c953939bcdd7be0902875cb1316b801 | b4a6f7e952525919b7eeef94507d457aa6962380 | refs/heads/master | 2021-01-21T23:53:34.000297 | 2013-04-10T05:21:13 | 2013-04-10T05:21:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,548 | h | diitest.h | //ZhaoQuanjun 2005-8-2
#ifndef NOVELSUPER_PSISI_PARSE_DIITEST_H_
#define NOVELSUPER_PSISI_PARSE_DIITEST_H_
#include "dii.h"
#include "imp/pretest.h"
namespace novelsuper
{
namespace psisi_parse
{
inline std::ostream& operator << ( std::ostream& os, DiiSectionLoop const& d )
{
return os
<< "{dii_sec... |
f8a914a5084cd73f84a43f72ed61d311f2ea7c95 | 54d2887e3c910f68366bd0aab3c692d54245e22a | /abc/abc_042_125/abc113/c.cpp | ff10f90e5d2b7dd08c37fe3d94b936c7fb8169c0 | [] | no_license | Kevinrobot34/atcoder | 7aec367fd2c6b589e9d583dae7b3c7520ce9fa12 | 482ea508f098f81e4f19522fe518dd22c781aca9 | refs/heads/master | 2022-07-10T23:44:45.290022 | 2022-06-29T11:30:26 | 2022-06-29T11:30:26 | 158,081,477 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 922 | cpp | c.cpp | #include <cstdio>
#include <vector>
#include <algorithm>
using namespace std;
struct Town {
int p, y, i;
};
bool cmp1(const Town &a, const Town &b) {
if (a.p == b.p) return (a.y < b.y);
else return (a.p < b.p);
}
bool cmp2(const Town &a, const Town &b) {
return (a.i < b.i);
}
int main() {
int n, m... |
5dca32eb7531843315c13b75325988d3e93bc683 | eb47bf8011f957e95a84ac64aab29598c59081a1 | /src/BodyPlugin/SplineFilterDialog.h | 6b6bf1416dee83aa93148996c027ce24b755b3a9 | [
"Zlib",
"MIT"
] | permissive | choreonoid/choreonoid | fd776aaab99d9ec544e5ceec04fbc283b8a3aee3 | 94b353722d5b9ff10e9c0ca8982e549f85b5f59f | refs/heads/master | 2023-09-01T12:27:17.849641 | 2023-08-04T13:54:12 | 2023-08-04T13:54:12 | 274,977,786 | 117 | 30 | NOASSERTION | 2023-05-23T08:25:33 | 2020-06-25T17:36:56 | C++ | UTF-8 | C++ | false | false | 218 | h | SplineFilterDialog.h | #ifndef CNOID_BODY_PLUGIN_SPLINE_FILETER_DIALOG_H
#define CNOID_BODY_PLUGIN_SPLINE_FILETER_DIALOG_H
namespace cnoid {
class ExtensionManager;
void initializeSplineFilterDialog(ExtensionManager* ext);
}
#endif
|
6655b60cbef3a77040f0a95e76e09f53ad6a5904 | 97249d2f7af6bf5846a3905f57440878c27b2713 | /main.cpp | cf7953592ff0d619f96a59805d50a6f140451cff | [] | no_license | LayoutXML/Conway-s-Game-of-Life | 52cd5a1f99621d8c0592cd667ae632b3ce647bc1 | b03d11bd0a7f3dba1d39399ad0f4551b300678dd | refs/heads/master | 2022-11-18T06:01:26.796044 | 2020-07-16T19:20:43 | 2020-07-16T19:20:43 | 217,279,723 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,367 | cpp | main.cpp | //include statements
#include <iostream>
#include <fstream>
#include <vector>
#include <ctime>
//declare name space
using namespace std;
//declare file names
const string outputFileName = "output.txt";
const string inputFileName = "input.txt";
const string patternFileName = "pattern.txt";
//declare global variables
... |
518803b2d1ad14f384a92a3c41cc267aa52561dc | 4bb6fd3fbe9e6c59ddd9b6c9f7df638a33d3f2bf | /src/gpu/GrUniformAggregator.h | af4f7fd8b7ebcbcc12914f29df6bf8d2a18fa226 | [
"BSD-3-Clause"
] | permissive | roylanceMichael/skia | 913900cb5e0be9c780492e8c09afa1e97cafae80 | 68a09699e94237b4b4d3376de620c3cc3c141177 | refs/heads/master | 2021-09-24T15:16:42.748442 | 2021-09-19T06:36:48 | 2021-09-19T07:14:37 | 190,129,968 | 0 | 0 | NOASSERTION | 2019-06-04T04:38:33 | 2019-06-04T04:38:33 | null | UTF-8 | C++ | false | false | 3,515 | h | GrUniformAggregator.h | /*
* Copyright 2021 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrUniformAggregator_DEFINED
#define GrUniformAggregator_DEFINED
#include "include/core/SkString.h"
#include "include/private/SkChecksum.h"
#include "src/gpu/GrProcesso... |
b0dec1546cec38181e58e006007c75f8e2a3c27c | 8fd5be0d584d22c62c855cbf8dbd23084b2dab49 | /semaine-07/lightingShadow_Durigneux/src/p3d/render/DebugTool.h | 8c37ab3ba06f83a3cf9cb19bbaf4451f0bf3803a | [] | no_license | adurigneux/M3DS | 5c2a5a376dd36d7b68fa317b5d00627ff219f26b | b42a0fdc15aae253993898d2bfb3462445ec24d0 | refs/heads/master | 2016-08-06T22:49:23.785931 | 2015-05-06T16:09:50 | 2015-05-06T16:09:50 | 34,208,273 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,353 | h | DebugTool.h | #ifndef DEBUGTOOL_H
#define DEBUGTOOL_H
#include "GLTool.h"
namespace p3d {
class DebugTool {
public:
virtual ~DebugTool();
DebugTool();
void point(const p3d::Vector3 &p, const std::string &label, const p3d::Vector3 color=p3d::Vector3(0,0,0));
void line(const p3d::Line &l,const p3d::Vector3 &color);
void... |
8169dec235e32e4c3b1ae87c431cbbe53e07da11 | 1708d21694731d2bf735110d225190c8c8b7bc9f | /Hollow_Apollo/Hollow_Apollo_With_Internet_Access/Atm_Relay.cpp | 1a0361749275fc351e6f6a9e8c110a6dd11c8ee2 | [] | no_license | pdailey/Arduino | b97c74285e5543a34a65e7872c1f4b29a82597f3 | d8c76b4c57226aabf1afe209e0b791c811fc265c | refs/heads/master | 2021-03-27T09:09:11.795061 | 2017-07-21T21:00:07 | 2017-07-21T21:00:07 | 47,657,489 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,086 | cpp | Atm_Relay.cpp | #include "Atm_Relay.h"
/* Add optional parameters for the state machine to begin()
Add extra initialization code
*/
#define RELAY_ON 0
#define RELAY_OFF 1
Atm_Relay& Atm_Relay::begin(int pin_hp, int pin_hv) {
// clang-format off
const static state_t state_table[] PROGMEM = {
/* ON_ENTER ON_LO... |
4d5d45b853f58356cb53987002e5795a88ad398c | dc75245d9a793e454a1ab91de99884511272d98f | /cpp-grade1.2/数据结构/实验六/8645归并排序(非递归算法).cpp | 9e4c86c71f3e530192d664eee7d62be2c4a5e756 | [] | no_license | DumbZarro/SCAU-OJ | b1a66efdeb913cb89ff53c6fc049d98e058258d4 | 50d883adf1f5cbdc12bd44f355f442b018bdafdc | refs/heads/main | 2023-02-05T19:52:35.578472 | 2020-12-25T12:25:48 | 2020-12-25T12:25:48 | 307,070,270 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 2,584 | cpp | 8645归并排序(非递归算法).cpp | #include<iostream>
using namespace std;
void Process(int n);
void MergeSort(int ori[],int n);
void newMerge(int ori[],int tmpArray[],int s,int n);
//没有完成整个归并时,用这个函数归并两个相邻的已排序的数组
void Merge(int ori[],int tmpArray[],int left,int mid,int right);
//归并两个已排好序的数组到tmpArray中
void Output(int op[],int n);//用来输出数组
int main(){
... |
dd254690dd23849af5ce16caad6d9bb00958de53 | 0e9931a5b96a6f2961662c5e82a82a4bef8021cf | /UnscopedEngine-Demo/Demo/Scenes/DX11/Color/Models/TriangleModel.h | 393a45e03987a4dd24caed1e217eaf9bebcbd009 | [] | no_license | waty2246/UnscopedEngine | 1844c19e7a496d24a5e737749bd7bd106bc2fc16 | ef0d694b7e5eda27979cae6a16925100258d75dd | refs/heads/master | 2023-02-12T03:17:08.927388 | 2020-12-29T14:57:35 | 2020-12-29T14:57:35 | 320,793,162 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 184 | h | TriangleModel.h | #pragma once
#include"PolygonModel.h"
namespace ue
{
class TriangleModel :public PolygonModel
{
public:
void Init(uintptr_t state = InitializeState::UNSPECIFIED) override;
};
} |
09088e92295737b33c3b666f0350fe35751f22de | 9f3cbb11bc2c4fd98745e1bbe7e05c5172dcdcf1 | /deploy/android_demo/app/src/main/cpp/ppredictor.cpp | a9086bc6c0d4f6af29ee691ca3ffa279c8850c74 | [
"Apache-2.0"
] | permissive | jm12138/License_plate_recognition | 35283556d4c1bb0b8eef62159a0e68d153aedd76 | 8c2c9de8b209c6c65dbec0289ada21b8a69f091b | refs/heads/main | 2023-04-23T10:01:47.291175 | 2021-05-13T14:57:18 | 2021-05-13T14:57:18 | 305,663,631 | 34 | 4 | Apache-2.0 | 2021-03-09T02:43:39 | 2020-10-20T09:55:45 | C++ | UTF-8 | C++ | false | false | 2,034 | cpp | ppredictor.cpp | #include "ppredictor.h"
#include "common.h"
namespace ppredictor {
PPredictor::PPredictor(int thread_num, int net_flag, paddle::lite_api::PowerMode mode) :
_thread_num(thread_num), _net_flag(net_flag), _mode(mode) {
}
int PPredictor::init_nb(const std::string &model_content) {
paddle::lite_api::MobileConfig c... |
914239c45e5cc0497baff810ebd416c132c6c503 | e7e497b20442a4220296dea1550091a457df5a38 | /main_project/Journey/test/JourneyLogicAdapter.cpp | 37594d1e7c439f1bf0ba24d3f8b4942dfc9b7a6e | [] | no_license | gunner14/old_rr_code | cf17a2dedf8dfcdcf441d49139adaadc770c0eea | bb047dc88fa7243ded61d840af0f8bad22d68dee | refs/heads/master | 2021-01-17T18:23:28.154228 | 2013-12-02T23:45:33 | 2013-12-02T23:45:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,341 | cpp | JourneyLogicAdapter.cpp | #include "JourneyLogicAdapter.h"
#include "boost/lexical_cast.hpp"
#include "Journey/IntSerialize.h"
#include <iostream>
using namespace std;
using namespace MyUtil;
using namespace xce::tripod;
using namespace boost;
using namespace xce::journey::util;
void JourneyLogicAdapter::invote(long key, int guestId) {
xc... |
d706a6e3cdb24a2d4ecde3c607d68c86e0f01f86 | c6d763361bd1102dc1a9485a2023b5304a6b56bf | /LaunchTimes - RSlipetz/Results.cpp | 47e7cdf825c416b86ddadfc696317ce03c8ef009 | [] | no_license | Slipetz/ProcessLaunch | 2e33e37774df24e3bbcc627769a57ac9c2f3528b | e1a75388358b2bba4e2f040a42bf0938d282dd40 | refs/heads/master | 2021-01-10T15:47:17.219021 | 2015-10-11T01:25:11 | 2015-10-11T01:25:11 | 44,392,001 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,336 | cpp | Results.cpp | #include <string>
#include <iomanip>
#include "Results.h"
Results::Results(LauncherCommand & command) : results(command)
{
GetExitCodeProcess(results.getProcInfo().hProcess, &exitCode);
FILETIME creationTime, exitTime, kernelTime, userTime;
GetProcessTimes(results.getProcInfo().hProcess, &creationTime, &exitTime, &... |
0ad32e95ee402a41b1e9f427973777134b4ff733 | c2bc157f3c1af2c6d03bb0bbdd81deaa1b6b28af | /chapter_2/2.8.cpp | f1857c299c1bb2cb2d509d4f7cda5447bbada1c1 | [] | no_license | cmw9957/C-Primer | 6ddc213b0e76bc6053162609b3e254c6ccfd0cbd | 4823f29233eaee97d17c5cb1e39a1dbd8ff05964 | refs/heads/master | 2023-03-02T13:27:12.421150 | 2021-02-02T15:00:48 | 2021-02-02T15:00:48 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 333 | cpp | 2.8.cpp | //확장 문자열을 사용해 2M과 줄바꿈 문자를 출력하는 프로그램을 만든다. 이 프로그램을 수정해 2, 탭, M, 줄바꿈 문자를 출력하게 한다.
#include <iostream>
int main() {
std::cout << ">" << "2M\n" << "<" << std::endl;
std::cout << ">" << "2\tM\n" << "<" << std::endl;
return 0;
}
|
76f9bb25c5e970e12da61db8ba7b16fc561cab14 | da7dff2101a6af25d2a6070e8e1944ae069a8a69 | /tools/extractors/common/crew.h | 5307175ff2cafcda369ad1ee8ef4a25c8dc7ed13 | [
"GPL-3.0-only"
] | permissive | idshibanov/OpenApoc | 2983c72bd07ac1e964fc7a0ba16375834c0ed673 | 50bffd4d7fcfc58bb27f9983d0a9cdcdf43e09f3 | refs/heads/master | 2021-05-20T17:15:18.505076 | 2021-02-20T13:02:06 | 2021-02-20T13:02:06 | 61,973,803 | 2 | 0 | MIT | 2020-07-22T13:39:57 | 2016-06-26T04:35:55 | C++ | UTF-8 | C++ | false | false | 742 | h | crew.h | #pragma once
#include <cstdint>
// These are offsets into UFO2P.EXE
#define CREW_UFO_DOWNED_OFFSET_START 1303904
#define CREW_UFO_DOWNED_OFFSET_END 1304464
#define CREW_UFO_DEPOSIT_OFFSET_START 1304464
#define CREW_UFO_DEPOSIT_OFFSET_END 1305024
#define CREW_ALIEN_BUILDING_OFFSET_START 1645476
#define CREW_ALIEN_BUI... |
e1105fb390cab79a005a7fa149f515ceb06376ca | a9ed1b28c5519cfd3f71c33aa381767544eda221 | /casting.cpp | cf919525a8e0ab428ed201596b50643b70e29ccb | [] | no_license | lmontigny/Practice_Cpp | 3e4974eb68d7ae3fcbace1f1534af4765f4d63bb | d3fb234ee8c70255c93582f7176c431e4085e454 | refs/heads/master | 2021-03-19T06:42:27.869250 | 2020-07-08T17:50:39 | 2020-07-08T17:50:39 | 105,009,126 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,567 | cpp | casting.cpp | // ImplicitCasting.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <string>
#include <iostream>
using namespace std;
// Standart Type COnversion
// Defined Type conversion
// Both implicit and explicit=casting possible
class Entity {
private:
string m_Name;
int m_Age;
pub... |
e41fa713307bbb6ec30a7fef2c96092b42aa61b0 | 1fe7d86ef39ec05eefadfb3d59266fdae90f0a92 | /edu_examples/maze.h | a0c6b31da77ed2934d59d63b7252e05eeb018ee5 | [] | no_license | sdmace1110/portfolio | c3c23140b00dc9981a2a73bdbbd76e9f335a589c | f9db76791b9c33430102f2c00c1a5e0494e32e57 | refs/heads/master | 2023-08-07T12:12:59.006065 | 2021-09-22T01:34:08 | 2021-09-22T01:34:08 | 401,176,602 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 724 | h | maze.h | /*
Shawn Mace
CSCI 3110-001
Project #5
Due Date October 31, 2018
This is the header file. If supplies header information for functions
to recursive call a function to find the solution to a given maze,
printing out the results and cell tested as it goes.
*/
#ifndef MAZE_H
#define MAZE_H
#include <fstream>
#include <v... |
b82e97d0ca8be975859955faacfdbe46db8dde93 | e71d766917e0c0fb6a6afbe4f84711e9e051b5e1 | /LOBPCG-GPU/lib_csr_openmp_cpu/lib_csr.h | 1f94c810a0217c88d008979e8b5f92c0d6b3217a | [] | no_license | fazlay-rabbi/WACCPD_2019_Artifact | ece29f8a5808c544f9a1c3fb929c3bcc1deecc74 | a455b82f2c0b169d06cb8d631ed4b923cbeba3ec | refs/heads/master | 2020-12-13T20:01:03.685534 | 2020-03-03T21:24:03 | 2020-03-03T21:24:03 | 234,516,885 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,622 | h | lib_csr.h | #ifndef LIB_CSR_H
#define LIB_CSR_H
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <cstdio>
#include <iomanip>
#include <cmath>
#include <algorithm>
#include <sstream>
#include <cstring>
#include <fstream>
using namespace std;
#if defined(USE_MKL)
#include <mkl.h>
#endif
#if defined(USE_LAPACK)
#in... |
47220a543c6e5aef772c01081857f1d43ae409a1 | e1ecd3146b56dcd9b4ffaf1d343ef64e8c42dc64 | /Codejam/Round_Qualification_2018/codejam2018_Q3/main.cpp | fd0107aabee1fa9a89324f5d9b90ca52a522a0f4 | [] | no_license | wjddlsy/Algorithm | 7bbeca6b5d21867355c88de8b4218bcfe8eeea75 | 385247c63337cae1cf3d9adbf8be38d6f62f2945 | refs/heads/master | 2022-12-04T19:35:48.763646 | 2020-08-23T08:14:29 | 2020-08-23T08:14:29 | 198,079,854 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 451 | cpp | main.cpp | #include <iostream>
#include <vector>
using namespace std;
int main() {
int T;
cin>>T;
for(int t=1; t<=T; ++t){
int A;
cin>>A;
int cnt=0;
int I, J;
while(cnt<1000){
cout<<2<<2;
cin>>I>>J;
if(I==0 && J==0)
break;
... |
b8a3f7deb684ee8429ea6ba2f8e85f5fb3e3d20b | de97899cfe3a78a2d6fa45f394ae932dae51d01f | /software/Firmware/applications/params.cpp | 86e7cfcde05de35d5045b3f09315c6a0af10c337 | [] | no_license | nongxiaoming/Hexacopter_LPC1549 | f1a66ddba78acd95e3641dbc734bf4cf6b8791d3 | 1fd2434b39fd2cf7b54eea89b012056d1d62c176 | refs/heads/master | 2020-06-04T05:48:34.529703 | 2015-06-03T13:41:36 | 2015-06-03T13:41:36 | 31,605,217 | 0 | 3 | null | null | null | null | GB18030 | C++ | false | false | 4,269 | cpp | params.cpp | /******************** (C) COPYRIGHT 2014 ANO Tech ***************************
* 作者 :匿名科创
* 文件名 :ANO_Param.cpp
* 描述 :参数读取和保存
* 官网 :www.anotc.com
* 淘宝 :anotc.taobao.com
* 技术Q群 :190169595
**********************************************************************************/
#include "params.h"
#include "pid... |
9de02270445520f8de96064d246da572ef8f9433 | bcc28c9b94dbc910eb3813466af3477dd9761eb8 | /projects/Zumo32U4/IR3Calibrate/IR3Calibrate.ino | 37f9a2ad6bd082a5d70e11b09ef2b919116cc2f7 | [] | no_license | OliviliK/Zumo-Robot | fca3b2eb913bd4f685f24b3b9e6337cf9b734c8c | d9daf655476eb9a191af7b6d08b06b9ebc6a4ab8 | refs/heads/master | 2020-02-26T14:25:38.359134 | 2017-07-26T03:39:51 | 2017-07-26T03:39:51 | 95,600,690 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,159 | ino | IR3Calibrate.ino | /**
* Created by Olavi Kamppari on 7/4/2017.
*/
/**
* Used to calibrate Zumo32U4 line sensor values. This program uses line monitor
* to print program lines for ZumoIR3.cpp. By default, these lines are commented
* out. The active calibration values are selected by uncommenting them
*/
#include <Zumo32U4.h>
#... |
f9406c70f756211c7b0b4e643cc46eee250b1ae8 | 8750a99e3d6fec5e010fe47f85e1e8ae6986f515 | /editor/CounterStrikeStyle.cpp | b16d46aa1a0a058d51d8985cf4ebfa4548330228 | [
"MIT"
] | permissive | fvazquezf/7542_TpFinal | 616146ace08a795b166325f117aedae367f50323 | 1699d9cf97794186f7e41d3bb2d33ba9239eaa3f | refs/heads/main | 2023-07-17T02:24:13.657946 | 2021-08-19T16:46:36 | 2021-08-19T16:46:36 | 373,550,516 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 625 | cpp | CounterStrikeStyle.cpp | #include "CounterStrikeStyle.h"
#include <QFontDatabase>
CounterStrikeStyle::CounterStrikeStyle() {
font_path = PATH_TO_COUNTER_STRIKE_FONT;
}
void CounterStrikeStyle::setCounterStrikeFont(QDialog* qDialog, int size) {
QFontDatabase::addApplicationFont(font_path);
QFont CounterStrikeFont("Counter-Strike",... |
b5bb2a3289b4eb47b35f2e7f2b7fddf88920ebf1 | 644238c5c44aae2fcf9aeec03f23aa2cf0e1a462 | /788_Rotated_Digits.cpp | 637c7c14d6cd4b74f238d3f730d35736dbb18d75 | [] | no_license | DenisDesimon/LeetCode | 1775db8b13f08f931ed4f498e47b2b3fe32c3fda | af93d1ac640226e4ac343bdc289b971feaa527a1 | refs/heads/master | 2022-06-01T19:55:29.979515 | 2022-05-23T19:41:45 | 2022-05-23T19:41:45 | 169,120,968 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,160 | cpp | 788_Rotated_Digits.cpp | //#788 Rotated Digits - https://leetcode.com/problems/rotated-digits/
#include <iostream>
#include <unordered_set>
#include <cassert>
using namespace std;
class Solution {
public:
int rotatedDigits(int N) {
int result = 0;
for(int i = 1; i <= N; i++)
{
bool has_chang... |
2f36aa0aa61773861cb1e82073f21913a4d6eb2f | fda024414036e689368297633756badb78f2a4de | /engine/IO/callbacks.h | fed3062347231e52853cc357cf3a8df05031a91b | [
"BSD-2-Clause"
] | permissive | fLindahl/vortex | c830daf9de0dfe7e9d6e1df1a11419d7f7a4a0f6 | 17c98ae4bf54b1dce4f693815339e1006d5275a0 | refs/heads/master | 2021-09-12T13:23:35.107784 | 2018-04-17T07:58:19 | 2018-04-17T07:58:19 | 84,658,615 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,169 | h | callbacks.h |
namespace IO
{
/*
int TextEditCallback(ImGuiTextEditCallbackData* data)
{
//AddLog("cursor: %d, selection: %d-%d", data->CursorPos, data->SelectionStart, data->SelectionEnd);
switch (data->EventFlag)
{
case ImGuiInputTextFlags_CallbackCompletion:
{
// Example of TEXT COMPLETION
// Lo... |
16b8c50abcada989224727e19f7ed1bc383d9e36 | 670200db52a9b659d777cb7636edd623c41fef78 | /source/main/Main.cpp | 8987964a1397d2e59781c0c06d239c25a7b46e3c | [] | no_license | Skipper89rus/EarsExApp_WinQt | 84f1e25848fe105451eb63927c8b98c8b00ceaf2 | caa038af6aab203b4693da1ee3c803281055a295 | refs/heads/master | 2021-01-10T15:42:10.374991 | 2016-09-15T17:30:30 | 2016-09-15T17:30:54 | 49,210,673 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 382 | cpp | Main.cpp | #include <QApplication>
#include "GUI/MainWindow.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
EarsExApp::GUI::Desktop::MainWindow mainWnd;
// MainWindow не должен знать о менеджере!
// TODO: их общение должно происходить через сигналы/слоты
mainWnd.show();
return a.exec();
}
|
4a92cbd2650455ba182439fda45b0ae9c11b42ea | 738255b3e645e692bf45d8643b417405f7732681 | /src/mybench-test.cpp | f3a5586b08f486860056aaa1149cad97d684b849 | [] | no_license | Hokanos/bench-test | b13d6e0061c705f4b474b0de0167537183accb8b | 651d4fc6633426d373024305daa4362aa07cb9eb | refs/heads/master | 2020-12-27T21:30:33.204674 | 2016-09-19T12:04:10 | 2016-09-19T12:04:10 | 68,598,176 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 974 | cpp | mybench-test.cpp | //
// Created by lzaleski on 19.09.16.
//
#include "Fibonacci.h"
#include <vector>
#include <chrono>
#include <iostream>
enum {ITERATIONS = 1000000};
void doBenchmark(unsigned int n);
void workFunction(unsigned int n);
int main() {
//>Arg(10)->Arg(100)->Arg(1000)->Arg(100000)->Arg(10000000);
std::vector<unsigne... |
f5b409d204b9358b64ac01cb5e3e6d2e96e80a7d | bb13d5950b8810d283504ea0fb3a199cec1d0824 | /include/cinolib/gui/qt/surface_mesh_control_panel.h | ca968197ed3cf7e3edb1adbc9cdaba8d4d782dcb | [
"MIT"
] | permissive | snowfox1939/cinolib | 606520af9d8f8f05e66ed4ab520dd07d611a94a0 | 6017d9dd7461e7008df8198563d63526db3ed86a | refs/heads/master | 2020-05-20T21:01:16.566653 | 2019-05-04T18:12:39 | 2019-05-04T18:12:39 | 185,753,889 | 1 | 0 | MIT | 2019-05-09T08:01:26 | 2019-05-09T08:01:20 | C++ | UTF-8 | C++ | false | false | 7,447 | h | surface_mesh_control_panel.h | /********************************************************************************
* This file is part of CinoLib *
* Copyright(C) 2016: Marco Livesu *
* ... |
7ae950c6a6fc7d3c1c8b60db70f1c9dd6a53b0fd | bb651b604f29be27e65ece0f148ee84586ba75b2 | /Move Even numbers before Odd/C++/exchangeevenodd.cpp | 2df7e0376a2bdff21cd152e86bfc118821f8e055 | [] | no_license | maryada6/Algo-Data-Structure | 1b76b921b6789cf3361b9d307e2ab02633cf1a29 | c6cf58dac18ed618a30bf894a683455b86777e50 | refs/heads/master | 2022-12-27T04:43:19.238934 | 2020-09-30T18:33:49 | 2020-09-30T18:33:49 | 300,017,394 | 0 | 1 | null | 2020-09-30T18:32:50 | 2020-09-30T18:32:49 | null | UTF-8 | C++ | false | false | 2,840 | cpp | exchangeevenodd.cpp | #include <iostream>
#include <utility>
#include <cassert>
class LinkedList
{
struct Node
{
int data;
Node * next = nullptr;
Node(int value) : data(std::move(value)), next(nullptr) {}
};
Node *head;
public:
LinkedList() : head(nullptr) {}
~LinkedList()
{
... |
cfc57eb764e1f92973d3ce1bc81e7f1b9993a056 | f5ec6ba1baf301e08728d8892d2a35e59f20b718 | /src/crosschain/interblockchain.cpp | 679c1a46cdc569c46ee03ea346af6bcee1c90941 | [
"MIT"
] | permissive | bitcointalkcoin/bitcointalkcoin | 26434eb812e9cedaf174fcafe0409fc4ed5a4c76 | c9112c3b8ce05ee78fe69822035cc3d8bdbca903 | refs/heads/master | 2020-06-26T14:37:43.515919 | 2019-12-02T17:46:15 | 2019-12-02T17:46:15 | 199,659,333 | 0 | 1 | MIT | 2019-12-02T17:46:17 | 2019-07-30T13:41:31 | C++ | UTF-8 | C++ | false | false | 1,314 | cpp | interblockchain.cpp | // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <crosschain/interblockchain.h>
#include <protocol.h>
#include <chainparams.h>
#include <util/strencodings.h>
#include <boost/foreach.hpp>
void CIbtp::LoadMsgStart()
... |
4d1908ae4f139490222bb1ca39c6697b7f0ad081 | 6756df0e808c1c0a110ca39a4cd6ebc1b435ca70 | /抽象类型/未命名6.cpp | 70fccfae464c98a1b82246b664cd3aec03f84dc6 | [] | no_license | wangrangzhi/thinkincplusplus | 23ae35f984f33196460af83a1dc6eaea30197fe0 | 7f54e70e415d1ce49d01bf290408a0cc25340a7e | refs/heads/master | 2021-01-01T15:30:49.198771 | 2014-05-21T10:47:52 | 2014-05-21T10:48:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 453 | cpp | 未命名6.cpp | #include <iostream>
#include <cstring>
#include <cstddef>
using namespace std;
char* copy(char* s1)
{
size_t len = strlen(s1);
char* s2 = new char[len + 1];
strcpy(s1, s1);
return s2;
}
int main(){
char* first = "read my lips";
char* second = copy(first);
cout << "first == \"" << first << "\" at " << static_ca... |
c4e0d56a065da6b5024481015919b74192a31f19 | a679dba6ef0364962b94ed65d0caad1a88da6c43 | /OrginalServerCode/OrginalCode/labixiaoxin/server/ServerEngine/Base/Log/LogBase.cpp | 430feb7bb849e74cefd2d5ccab74d0ff00294cc8 | [] | no_license | w5762847/Learn | 7f84933fe664e6cf52089a9f4b9140fca8b9a783 | a5494181ea791fd712283fa8e78ca0287bf05318 | refs/heads/master | 2020-08-27T05:43:35.496579 | 2016-12-02T12:16:12 | 2016-12-02T12:16:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,799 | cpp | LogBase.cpp | #include "LogBase.h"
#include <time.h>
#include "ace\Condition_Thread_Mutex.h"
#include "ace\Null_Condition.h"
#include "ace\Guard_T.h"
#include "../../GameBase/Common/GameUtils.h"
int CLogBase::RecordLog(E_Log_Type eType, const std::string &strLog)
{
if (eType > Log_Type_Others)
{
return -1;
}
//... |
ad323eb9ff4aa8de7812d1c4909406f8999be925 | fd650e01666d05941b2a0477adf764b643d35da4 | /src/CompassTests.ino | dfbf490d6631b4b53737106aab746f61666a7235 | [] | no_license | stupsi99/00-Antenna-Tracker-Main | 36bc6a207df77bcdf710432c31f9d7864621380b | ee590c13a6f6900f3693fd2847d58f0ac255682c | refs/heads/master | 2020-04-06T07:08:59.802504 | 2016-06-21T14:07:48 | 2016-06-21T14:07:48 | 61,573,907 | 0 | 0 | null | 2016-06-21T14:07:48 | 2016-06-20T19:18:44 | Arduino | UTF-8 | C++ | false | false | 666 | ino | CompassTests.ino | #include <Arduino.h>
void runHeadings(){
Magnetometer.readHeading();
float magnetometerHeading = Magnetometer.heading/10.0;
//Move to zero degrees
while (magnetometerHeading >= 10) {
digitalWrite(eleDriverEnable, LOW); //Low = enabled
digitalWrite(eleDriverDirection, LOW);
digitalWrite(eleDriver... |
9130bc5fb159e0940496403a7974d86363066d43 | f29a533b629548b4b4b98703643b1d6b9d7f8ee7 | /ch09/golf.cpp | c750340095bd6ae1414b05272edace8d2db91077 | [] | no_license | ZhaoPeixiao/CPlusPrimerPlus | 9dc8fb799aca4f0e3f03dce3ba480dc59d03432b | 579e027f0d3157892212f5feefcc2ed1649f1dd1 | refs/heads/master | 2023-03-10T22:17:52.023717 | 2021-02-22T09:39:51 | 2021-02-22T09:39:51 | 335,290,278 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 588 | cpp | golf.cpp | #include"golf.h"
void setgolf(golf& g, const char* name, int hc)
{
strcpy_s(g.fullname, name);
g.handicap = hc;
}
int setgolf(golf& g)
{
cout << "Please enter the full name of golf player: ";
cin.getline(g.fullname, Len);
if (strcmp(g.fullname, "") == 0)
{
return 0;
}
cout << "Please enter the hanicap of go... |
ba69d7078c1e47a2e670521d35be40a37d3c6238 | 4f21c0153b91cc6fd1ece9c612bd93160a9e38be | /SFMLConsoleApplication/Entity.cpp | aed6b2a8eb22e856d1fea60a58d40dda9e787c1c | [] | no_license | HyperActiveHub/Invaders | d487b86e1a622ea81de99587ce4907f4a31666da | bbe20e5121d3fb667f62cf070bdb2f8f287800c8 | refs/heads/master | 2020-08-11T23:45:39.809167 | 2019-10-31T08:41:17 | 2019-10-31T08:41:17 | 214,648,812 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 885 | cpp | Entity.cpp | #include "Entity.h"
#include <iostream>
using namespace std;
Entity::Entity(Game* game, string filename, Vector2f position, float radius, EntityType type, EntityFaction faction) :
mGame(game),
mSprite(game->getTexture(filename)),
mRadius(radius),
mType(type),
mFaction(faction)
{
centerSprite();
mSprite.setPosi... |
4a9805b125b6cd3e15f53bbc9bc90b1f8e7dbaf9 | fba68e03d5f2861be45491fef6f025de73384b2e | /Tạo webclient kết nối wifi.ino | 55d0a0cfcc4ad844ca8501930036e1dae46c54d9 | [] | no_license | wolf79/esp8266 | 046c6ae23e5ffeec860a7edc654ab4ed74213edd | 89e27ba2e09ef846739290e1d8c18ca35f23f1ad | refs/heads/master | 2021-09-26T16:20:58.385449 | 2018-10-31T14:56:15 | 2018-10-31T14:56:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,932 | ino | Tạo webclient kết nối wifi.ino | #include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <EEPROM.h>
//https://khoinghiepiot.com/05-05-2018-WebClient-ESP8266/
ESP8266WebServer server(80);
const char* ssid = "khoitao";
const char* passphrase = "khoitao";
String st;
String content;
int statusCode;
void setup() {
Serial.begin(115... |
9916048f1b5410bcf4cd6027e0aa4ca3d1511c85 | de1b6f42bc9d7b3546ffc0812f113bbdcdbad606 | /TEALDemo/Player_Manager.h | f2ff681984b5c3d9da29c301ad29f7b9f95a07a2 | [] | no_license | Cschnur/Centipede_1980 | e298d4b549498d39ef77abbb69a7a3afa3332271 | d69a4031a7b6b4f88744c5c46b82b91cdec2d35e | refs/heads/master | 2022-03-20T15:01:33.376364 | 2019-12-09T23:36:24 | 2019-12-09T23:36:24 | 226,973,775 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,309 | h | Player_Manager.h | #ifndef _PLAYER_MANAGER
#define _PLAYER_MANAGER
#include "Game Components\TEAL\CommonElements.h"
struct PlayerData;
class BlasterKB;
class BlasterAI;
const int NUM_PLAYERS = 3;
class Player_Manager
{
public:
static PlayerData* CurrentPlayer();
//static functions
static void setPlayer(int num);
static void Initi... |
fc5a67d97e4b088c3a20ed11b3bd5c29f6320a95 | b27d103a385d2e90fec4dcd8edb82f136c93ec17 | /test/numeric/str.cpp | 94ccde9971b3b1d8fd742bb7fb7aad577a4550c7 | [
"Apache-2.0"
] | permissive | openbmc/stdplus | 92ce136460879754fb1697467edd74aeebe99c84 | e6fda4501899d9d886f9d5c035f4cf759b459861 | refs/heads/master | 2023-08-16T17:48:27.261586 | 2023-07-26T22:12:12 | 2023-07-26T22:15:16 | 153,646,995 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 6,061 | cpp | str.cpp | #include <stdplus/numeric/str.hpp>
#include <string_view>
#include <gtest/gtest.h>
using std::literals::string_view_literals::operator""sv;
namespace stdplus
{
TEST(IntToStr, Uint8_10)
{
IntToStr<10, uint8_t> enc;
static_assert(enc.buf_size == 4);
char buf[enc.buf_size];
EXPECT_EQ("0", std::string_... |
da8a6e3ac804972f5bdb4c90149cde5ddb3c7e40 | e94cfcfc764861331ca2ee1568c2d927e578531a | /Hydroponics/Hydroponics.ino | c27a1ea607cb8d75008b76daa4b827fe512d385c | [] | no_license | nattasamphoangoen/Hydroponics | 8a7aeb6212084d52a2de57e8511d73902fb63e25 | 5e350e24dcfa88206cd56065cca54c6ca033498f | refs/heads/master | 2021-05-13T20:10:55.706600 | 2018-01-10T11:23:19 | 2018-01-10T11:23:19 | 116,906,674 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,282 | ino | Hydroponics.ino | //ส่วนที่เชื่อมต่ออินเทอร์เน็ต
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
const char* ssid = "BANK";
const char* password = "bank4227";
String apiKey = "H41MV1K5IN3NRPD4";
const char* server = "api.thingspeak.com";
char auth[] = "dd54e26f8833408fb8cbc1bc48fc3ee7";
WiFiClient client;
#define... |
ed11a4118fe3c4cbfabffcbbc1a6638bd54b18b0 | 4970e3670d4fe22f6425374e590e0c8dce641618 | /lexer.cpp | 606c3d59817cd3a575e049908c8676d84abd1ad9 | [] | no_license | voidzer0-development/Stinger-Compiler | 6b634c5837f83001f13b852ecdbb9cae655ae813 | 6ea88792101e2c0afe94f717bef0c57beae07ce5 | refs/heads/master | 2022-04-26T21:15:38.184077 | 2020-04-18T20:04:24 | 2020-04-18T20:04:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,304 | cpp | lexer.cpp | #include "llvm/ADT/STLExtras.h"
#include <algorithm>
#include <cctype>
#include <cstdio>
#include <cstdlib>
#include <map>
#include <memory>
#include <string>
#include <vector>
// Scanner aka. lexer
enum currentToken {
token_fileEnd = -1,
token_definition = -2,
token_number = -3,
token_extern = -4,
... |
823e05d6c38fb9c27017df1f218c18eb799389ab | 8f1d2070a11df5cc7f37e45204b12eb5b318289b | /代码/Slicer插件/源代码/slicervmtk/VMTKStenosisDetector/StenosisDetector/vtkVmtk/Misc/vtkvmtkImageBoxPainter.cxx | a9894c722c71a2039e0cf7fd01959417185de3b6 | [
"BSD-3-Clause"
] | permissive | Inlinebool/CoronaryArteryPathologyRatingSystem | 8c10221e16eba2d9555155fa326432c9471609aa | 928ca985b8e6fcb8cbd9bbaa078f130c1713bd91 | refs/heads/master | 2022-05-12T22:15:26.700018 | 2022-05-07T01:54:52 | 2022-05-07T01:54:52 | 42,735,746 | 10 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 4,617 | cxx | vtkvmtkImageBoxPainter.cxx | /*=========================================================================
Program: VMTK
Module: $RCSfile: vtkvmtkImageBoxPainter.cxx,v $
Language: C++
Date: $Date: 2005/03/04 11:13:24 $
Version: $Revision: 1.2 $
Copyright (c) Luca Antiga, David Steinman. All rights reserved.
See LICENCE f... |
b85eebde2946c2384a54a6e36e7d9d67a0245fb3 | a0fe177af49d8b3c4d31b446f49f71979f3ba946 | /Lab6-dynamic order statistic/Lab6-dynamic order statistic/Source.cpp | 00a2d0e81f3b181b9d7c35099251bbde31164ce0 | [] | no_license | biavr/FA_2019 | 8b87ab7fa119c44c2b32a765da046c7ddb7ba842 | 6112b31a748c064b025a157a745088e937840f0d | refs/heads/main | 2023-08-18T07:15:25.502149 | 2021-10-02T11:45:18 | 2021-10-02T11:45:18 | 412,779,179 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,790 | cpp | Source.cpp | /*
Author: Bianca Avram
Group: 30421
Problem: Dynamic Order Statistic
This problem is based on 3 main functions: buildTree, OS_select and OS_delete
BuildTree
->is the function that takes a sorted array, which is equivalent to inorder traversal for a tree,
and obtains the ADS reptesentation of a perfect balanced bina... |
1a2fd30cbe56e25c561bb326a60f06b623886c9e | 8f021f68cd0949afa8d119582c0b419b014919d8 | /URIOJ/uri2217.cpp | 6d48365e1813616219ce505409dfeb96ec4c782f | [] | no_license | Jonatankk/codigos | b9c8426c2f33b5142460a84337480b147169b3e6 | 233ae668bdf6cdd12dbc9ef243fb4ccdab49c933 | refs/heads/master | 2022-07-22T11:09:27.271029 | 2020-05-09T20:57:42 | 2020-05-09T20:57:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 229 | cpp | uri2217.cpp | /*
* Leonardo Deliyannis Constantin
* URI 2217 - Nove
*/
#include <stdio.h>
int main(){
int T, N;
scanf("%d", &T);
while(T--){
scanf("%d", &N);
printf("%d\n", (N&1) ? 9 : 1);
}
return 0;
}
|
7d68018339c8ebe1308ecfeecb4e883fe6dabe67 | 054454a3033bd65763dbe1f81535138712c47952 | /w2/d1/d1_19.cpp | 49c1282a8decd0bfa20179f208b00428c5e00837 | [] | no_license | greenfox-zerda-sparta/szaboattus | 8e6cec0bdde81f7942ce5d451ed20826d7994a4d | 7eee9c38361895b96eb3612fa5242f821c50526e | refs/heads/master | 2021-01-17T18:18:13.841031 | 2017-02-17T09:19:32 | 2017-02-17T09:19:32 | 71,350,874 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 186 | cpp | d1_19.cpp | #include <iostream>
#include <string>
using namespace std;
int main() {
for (int i = 1 ; i<=20 ; i++){
if (i%2 ==0)
cout << i;
}
// print the even numbers till 20
return 0;
}
|
dc8cc663738c570927ae69709717daff33c97586 | 5d24c201bc31e8cac61fae466e1c80be5d38b631 | /saga/saga/adaptors/task_impl.hpp | d5994ab6e5a9447397345fce03b944d770b761ab | [
"BSL-1.0"
] | permissive | Fooway/saga-cpp | 330196aec55642630eb1853363bc3cf8d53336db | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | refs/heads/master | 2020-07-12T02:31:44.485713 | 2012-12-13T11:39:22 | 2012-12-13T11:39:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,924 | hpp | task_impl.hpp | // Copyright (c) 2005-2009 Hartmut Kaiser
// Copyright (c) 2005-2006 Stephan Hirmer (shirmer@cct.lsu.edu)
//
// 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)
#if !defined(BOOST_PP_IS_ITERATING)
#if !defined(S... |
b4c9192155433b03467ddb9dd92a3c74ddd7daad | 226d9743bc687bf4f6f7ec4461df8322112c45ae | /Basic Programing/Implementation/Arania Exumai Blast !!.cpp | 7112f145be3fcadaadce2a37e1d36b93ea354dcd | [] | no_license | ik07onkar/HackerEarth | 1500209baf81e02766fd94bdf99b8d9d777f6327 | d400c97c9276c33d529a8d50fefc20e895ed01d7 | refs/heads/main | 2023-04-12T23:53:16.435750 | 2021-04-26T15:00:21 | 2021-04-26T15:00:21 | 361,787,696 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 660 | cpp | Arania Exumai Blast !!.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
string a;
getline(cin,a);
int n = a.size(), cnt = 0;
int h[26];
memset(h,0,sizeof(h));
for(int i=0; i<n; i++)
{
if(a[i] == ' ')
{
for(int j=0; j<26; j++)
{
... |
263bf0657b2613f229ee632d3f8b041a7dbd8a08 | 88fd23eb2748bfbdd0899d62fc01358f627c56a7 | /AppleOnboardAudio/PlatformInterfaceI2C.cpp | 2cf46c604eb042fceae9ded308a98762022e4ed0 | [] | no_license | Quantum-Platinum-Cloud/AppleOnboardAudio | db16d427cbfc8da49dcb0683d27fe031056294d5 | 46f2f8a643cc36e1332feece6e39dd42a37302ab | refs/heads/main | 2023-08-17T19:25:20.473202 | 2009-05-11T20:29:13 | 2021-10-06T04:40:39 | 589,301,255 | 1 | 0 | null | 2023-01-15T18:23:51 | 2023-01-15T18:23:51 | null | UTF-8 | C++ | false | false | 1,580 | cpp | PlatformInterfaceI2C.cpp | /*
* PlatformInterfaceI2C.h
*
* Defines base class for I2C support within the context of PlatformInterface derived classes.
*
* Created by Ray Montagne on Tuesday August 24 2004.
* Copyright (c) 2004 AppleComputer. All rights reserved.
*
*/
#include "PlatformInterfaceI2C.h"
#define super OSObject
OSDefin... |
bc49bb450c0655bd7feb5269a6f5e250cef79649 | 49c05d8581abe80c0294c957c288664e8d960f7a | /Algorithm/TeachNNF.h | eceedcff886d061fb47c17064850cc1ceda8e79e | [] | no_license | suto05/C-_NMF | 41d45c2a2b92b2b21768e03e73155f444eee9ff6 | cb36eb7af6503f706faf19a669de3abf9b68ce77 | refs/heads/master | 2021-01-18T02:21:20.051168 | 2015-09-06T13:23:17 | 2015-09-06T13:23:17 | 36,359,141 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 950 | h | TeachNNF.h | #ifndef _TEACHNMF
#define _TEACHNMF
#include <math.h>
#include <map>
#include "Array2D.h"
using namespace std;
template <class T> class TeachNMF
{
private:
int _class_Total;
map<int,int> _labelMap;
int _vector_length;
Array2D<T> _dictionary;
T* _excitation;
T _beta;
public:
TeachNMF()
{
}
... |
31e327354682e4ac07ab9778ee4d9e7a6eb5b065 | f2b6093a7da19e3375db147c9b1e55794b9fe216 | /Project3D/src/utils/Color.cpp | 7ef83a302171be3998dc892016cc230de133a626 | [
"MIT"
] | permissive | HalalaiMircea/CG-Course | 91b6feaa551c903fa564f79a5f5597d40c66f87e | ec53ec54be78d20740efe90851e00c7a7481caa1 | refs/heads/master | 2021-02-08T22:55:04.272578 | 2020-06-13T00:42:13 | 2020-06-13T00:42:13 | 244,204,912 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,014 | cpp | Color.cpp | #include "Color.hpp"
Color::Color()
: Color(0.f, 0.f, 0.f) {}
Color::Color(float r, float g, float b, float a)
: r(r), g(g), b(b), a(a) {}
Color::Color(uint8_t r, uint8_t g, uint8_t b, float a)
: Color(static_cast<float>(r) / 255, static_cast<float>(g) / 255, static_cast<float>(b) ... |
b82f6e23426d16f62986fb84fc33805081c5c6e9 | fe700e4049e166dda741d3008d3f087720fa64be | /1st term/Homework 4/order.h | 21debd74499bedea4f8054a3244baf56db6ef85a | [] | no_license | SashoStoichkovArchive/TUES_11_OOP | cbb5528166a2565685687313a0919eb3865ff9e7 | bc3721bc410175c34d5d49297e53e54444751c46 | refs/heads/master | 2022-11-12T23:33:06.457340 | 2020-06-30T11:10:54 | 2020-06-30T11:10:54 | 209,707,087 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 790 | h | order.h | #ifndef ORDER_H
#define ORDER_H
#include <string>
#include <list>
#include "user.h"
#include "item.h"
class Order{
protected:
unsigned int order_id;
User user;
std::list<Item> ordered_items;
std::list<int> quantities;
public:
std::string order_status;
Order(){}... |
c7843620f5ffdb1242929d03b060cdd524bccd10 | 65321a1d525c3e3d555ec9f114d8d9c98226e850 | /Server/Server/Session.cpp | b2fea2cd82def2eed4fe06c5eab7226ece17fa44 | [] | no_license | tavilad/Ser2Net | e1a49919bae94590f7c1884d68a4cf56b54a132d | c854aa286397277b48006f81cd463d3f0cd1a8cb | refs/heads/master | 2021-07-04T10:57:31.770026 | 2017-09-27T13:50:25 | 2017-09-27T13:50:25 | 103,752,820 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,391 | cpp | Session.cpp | #define _CRT_SECURE_NO_WARNINGS
#include "Session.h"
#include "Serial.h"
#include <cstdlib>
#include <iostream>
#include <boost/bind.hpp>
#include <boost/asio.hpp>
#include <boost/array.hpp>
#include <boost/foreach.hpp>
#include <string>
#include <set>
using boost::asio::ip::tcp;
std::vector<Session*> p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.