repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
kuumies/rasperi
src/rasperi_lib/rasperi_texture_2d.h
<gh_stars>0 /* ---------------------------------------------------------------- * <NAME> <<EMAIL>> The definition of kuu::rasperi::Texture2D class. * ---------------------------------------------------------------- */ #pragma once #include <array> #include <iostream> #include <memory> #include <QtCore/QDataSt...
kuumies/rasperi
src/rasperi_ext/frustum.h
/* -----------------------------------------------------------------* <NAME> <<EMAIL>> The definition of kuu::Frustum struct. * -----------------------------------------------------------------*/ #pragma once #include <glm/vec3.hpp> #include <glm/vec4.hpp> #include <glm/mat4x4.hpp> #include <memory> #include <...
kuumies/rasperi
src/rasperi_lib/rasperi_material.h
<filename>src/rasperi_lib/rasperi_material.h<gh_stars>0 /* ---------------------------------------------------------------- * <NAME> <<EMAIL>> The definition of kuu::rasperi::Material struct. * ---------------------------------------------------------------- */ #pragma once #include "rasperi_sampler.h" #inclu...
ucpu/qasmint
sources/qasmint/io.h
<reponame>ucpu/qasmint<gh_stars>1-10 #ifndef io_h_s54gse85 #define io_h_s54gse85 #include <cage-core/core.h> using namespace cage; struct Input : private Immovable { bool readLine(string &line); }; Holder<Input> newInput(const string &path); struct Output : private Immovable { bool writeLine(const string &line);...
ucpu/qasmint
sources/tests/main.h
#include <cage-core/debug.h> #include <cage-core/macros.h> #include <cage-core/string.h> #include <qasm/qasm.h> using namespace qasm; #define CAGE_TESTCASE(NAME) CAGE_LOG(SeverityEnum::Info, "testcase", stringizer() + fill(string(), CageTestCase::counter * 4, ' ') + NAME); CageTestCase CAGE_JOIN(cageTestCase_, __LINE...
ucpu/qasmint
sources/include/qasm/qasm.h
<filename>sources/include/qasm/qasm.h #ifndef qasm_h_sd5f4ghsed4rg #define qasm_h_sd5f4ghsed4rg #include "cage-core/core.h" namespace qasm { using namespace cage; struct Program : private Immovable { uint32 instructionsCount() const; detail::StringBase<20> functionName(uint32 index) const; PointerRange<cons...
ucpu/qasmint
sources/libqasm/program.h
<reponame>ucpu/qasmint #include <qasm/qasm.h> namespace qasm { enum class InstructionEnum : uint16 { nop = 0, // // register reset, // R set, // R uint32 iset, // R sint32 fset, // R float copy, // R R condrst, // R condset, // R uint32 condiset, ...
hunglun/hunglun.github.com
projects/stream-adventure/node_modules/serialport-stream/src/find_baud.h
<reponame>hunglun/hunglun.github.com<filename>projects/stream-adventure/node_modules/serialport-stream/src/find_baud.h #include <termios.h> speed_t find_baud(unsigned int baud);
skaji/perl5
patch-5.8.1.h
<gh_stars>0 /* copy from https://metacpan.org/source/MIK/CryptX-0.061/CryptX.xs */ /* assert_not_ROK is broken in 5.8.1 */ #if PERL_VERSION == 8 && PERL_SUBVERSION == 1 # undef assert_not_ROK # if defined(__GNUC__) && !defined(PERL_GCC_BRACE_GROUPS_FORBIDDEN) # define assert_not_ROK(sv) ({assert(!SvROK(sv) || !SvRV(...
Hack-the-North-2021/Builder-V2
Buildr/Source/Game/GameEntities/PlayerEntity.h
#pragma once #include "GameEngine/EntitySystem/Entity.h" #include "GameEngine/EntitySystem/Components/SpriteRenderComponent.h" #include "Game/GameComponents/PlayerMovementComponent.h" namespace Game { class PlayerEntity : public GameEngine::Entity { public: static PlayerEntity* GetInstance() { if (!sm_instance)...
Hack-the-North-2021/Builder-V2
Buildr/Source/Game/GameComponents/CameraFocusComponent.h
<filename>Buildr/Source/Game/GameComponents/CameraFocusComponent.h #pragma once #include "GameEngine/EntitySystem/Component.h" namespace Game { class CameraFocusComponent : public GameEngine::Component { public: CameraFocusComponent(); virtual ~CameraFocusComponent(); virtual void Update() override; virtua...
Hack-the-North-2021/Builder-V2
Buildr/Source/Game/GameEntities/ResourceManagerEntity.h
#pragma once #include "GameEngine/EntitySystem/Entity.h" #include "GameEngine/EntitySystem/Components/SpriteRenderComponent.h" #include "ResourceEntity.h" #include <vector> using std::vector; namespace Game { class ResourceManagerEntity : public GameEngine::Entity { public: ResourceManagerEnti...
Hack-the-North-2021/Builder-V2
Buildr/Source/Game/GameNetwork/NetworkClient.h
#ifndef __NETWORKCLIENT_H__ #define __NETWORKCLIENT_H__ #ifdef linux #include <sys/socket.h> #include <arpa/inet.h> #include <unistd.h> #endif #ifdef _WIN32 #include <winsock2.h> #include <WS2tcpip.h> #pragma comment(lib, "ws2_32.lib") #endif #include <stdio.h> #include <stdlib.h> #include <string> #include <thread...
Hack-the-North-2021/Builder-V2
Buildr/Source/Game/GameEntities/ResourceEntity.h
<filename>Buildr/Source/Game/GameEntities/ResourceEntity.h #pragma once #include "GameEngine/EntitySystem/Entity.h" #include "GameEngine/EntitySystem/Components/SpriteRenderComponent.h" #include "Game/GameComponents/Resource-Component.h" namespace Game { class ResourceEntity : public GameEngine::Entity {...
Hack-the-North-2021/Builder-V2
buildr-network/NetworkServer.h
#ifndef __NETWORKSERVER_H__ #define __NETWORKSERVER_H__ #include <winsock2.h> #include <WS2tcpip.h> #pragma comment(lib, "ws2_32.lib") #include <stdio.h> #include <stdlib.h> #include <thread> #include <map> #include "json.hpp" typedef struct sockaddr Sockaddr; typedef struct sockaddr_in SockaddrIn; typedef void (...
Hack-the-North-2021/Builder-V2
Buildr/Source/Game/GameEntities/Shapes/RectangleEntity.h
<filename>Buildr/Source/Game/GameEntities/Shapes/RectangleEntity.h #pragma once #include "GameEngine/EntitySystem/Entity.h" #include "GameEngine/EntitySystem/Components/SpriteRenderComponent.h" namespace Game { class RectangleEntity : public GameEngine::Entity { public: RectangleEntity(); ~Rectangle...
Hack-the-North-2021/Builder-V2
Buildr/Source/Game/GameComponents/PlayerMovementComponent.h
#pragma once #include "GameEngine/EntitySystem/Component.h" #include "GameEngine/EntitySystem/Components/AnimationComponent.h" #include "GameEngine/Util/SoundManager.h" namespace Game { class PlayerSoundComponent; class PlayerMovementComponent : public GameEngine::Component { public: PlayerMovementComponent(); ...
Hack-the-North-2021/Builder-V2
Buildr/Source/Game/GameComponents/Resource-Component.h
<reponame>Hack-the-North-2021/Builder-V2<gh_stars>0 #pragma once #include "GameEngine/EntitySystem/Entity.h" #include "GameEngine/EntitySystem/Component.h" #include "GameEngine/EntitySystem/Components/SpriteRenderComponent.h" #include "Game/GameComponents/Resource-Component.h" namespace Game { class Resourcec...
Hack-the-North-2021/Builder-V2
Buildr/Source/Game/GameEntities/BuildingEntity.h
<reponame>Hack-the-North-2021/Builder-V2 #pragma once #include "GameEngine/EntitySystem/Entity.h" #include <GameEngine/EntitySystem/Components/SpriteRenderComponent.h> #include <Game/GameComponents/Resource-Component.h> namespace Game { class BuildingEntity : public GameEngine::Entity { public: BuildingEntity(G...
Hack-the-North-2021/Builder-V2
Buildr/Source/Game/GameBoard.h
<gh_stars>0 #pragma once #include "GameEngine/EntitySystem/Entity.h" #include <SFML/System/Vector2.hpp> #include <vector> #include "Game/GameEntities/ResourceManagerEntity.h" #include "Game/GameEntities/BuildingSpawnerEntity.h" #include "Game/GameEntities/MapEntity.h" #include "GameNetwork/NetworkClient.h" namespace ...
Hack-the-North-2021/Builder-V2
Buildr/Source/GameEngine/Util/randgen.h
#ifndef __RANDENG_H___ #define __RANDENG_H___ #include <algorithm> #include <random> #include <vector> using std::vector; class RandGen { // Random Generator static unsigned seed; public: static std::default_random_engine randEng; static int randint(int low, int hi); static void ...
Hack-the-North-2021/Builder-V2
Buildr/Source/Game/GameEntities/ResourceUIEntity.h
<filename>Buildr/Source/Game/GameEntities/ResourceUIEntity.h #pragma once #include "GameEngine/EntitySystem/Entity.h" #include "GameEngine/EntitySystem/Components/SpriteRenderComponent.h" #include "GameEngine/EntitySystem/Components/TextRenderComponent.h" namespace Game { class ResourceUIEntity : public Ga...
Hack-the-North-2021/Builder-V2
Buildr/Source/Game/GameEntities/BuildingSpawnerEntity.h
#pragma once #include "GameEngine/EntitySystem/Entity.h" #include "GameEngine/EntitySystem/Components/SpriteRenderComponent.h" #include "ResourceEntity.h" #include <vector> using std::vector; namespace Game { class BuildingSpawnerEntity : public GameEngine::Entity { public: static BuildingSpawnerEntity* GetIn...
Hack-the-North-2021/Builder-V2
Buildr/Source/GameEngine/Util/TextureManager.h
#pragma once #include <vector> #include <SFML/Graphics/Texture.hpp> #include <SFML/System/Vector2.hpp> namespace GameEngine { //TODO - if needed, move out of Engine part to some sort of loader on the game side of things namespace eTexture { enum type { None = -1, Player = 0, Tileset, MAP, Particl...
Hack-the-North-2021/Builder-V2
Buildr/Source/GameEngine/Util/CameraManager.h
#pragma once #include <SFML/System/Vector2.hpp> #include <SFML/Graphics/View.hpp> namespace GameEngine { class CameraManager { public: ~CameraManager(); static CameraManager* GetInstance() { if (!sm_instance) sm_instance = new CameraManager(); return sm_instance; } static bool IsFollowCameraEnabled() { return...
Hack-the-North-2021/Builder-V2
buildr-network/Logger.h
<reponame>Hack-the-North-2021/Builder-V2 #ifndef __LOGGER_H__ #define __LOGGER_H__ #include <string> namespace Logger { void ErrorDie(const std::string& message); void Network(const std::string& message); void Warning(const std::string& message); void Debug(const std::string& message); } #endif // __...
Hack-the-North-2021/Builder-V2
buildr-network/NetworkManager.h
#pragma once #include "NetworkServer.h" #include "Entities.h" #include <map> #include <vector> struct h_PlayerUpdate { int cmd; float x, y, r; }; NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(h_PlayerUpdate, x, y, r) struct s_PlayerUpdate { int player_id; float x, y, r; }; NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(s_Pla...
Hack-the-North-2021/Builder-V2
buildr-network/Entities.h
<filename>buildr-network/Entities.h struct PlayerResources { int tree; int bronze; int rock; int food; }; struct Player { Player(int player_id) : player_id(player_id), hp(100), x(0), y(0), r(0), resources({ 0,0,0,0 }) {} int player_id; int hp; float x, y, r; PlayerResources resourc...
visualfc/c2go
testdata/struct/struct.c
#include <stdio.h> typedef struct { struct { int a; }; struct { int a; } p, q; struct bar { int a; } x, y; } foo; int main() { struct { int a; } e, f; foo foo; foo.a = 1; foo.p.a = 2; foo.y.a = 3; e.a = 100; f.a = 101; printf(...
visualfc/c2go
testdata/flow/flow.c
<filename>testdata/flow/flow.c #include <stdio.h> int main() { int a = sizeof(1); int *b = &a; switch (a) { case 4: printf("sizeof(int) == 4\n"); break; case 8: printf("sizeof(int) == 8\n"); break; case 0: case 1: default: printf("sizeof(int) == u...
visualfc/c2go
testdata/union/union.c
<reponame>visualfc/c2go<filename>testdata/union/union.c #include <stdio.h> typedef union { int a; unsigned short b; struct bar { unsigned short low, high; } c; struct { unsigned short low; struct { unsigned short high; }; }; } foo; int main() { f...
visualfc/c2go
testdata/bitfield/bitfield.c
<filename>testdata/bitfield/bitfield.c #include <stdio.h> typedef struct { unsigned short a :1, b :2, :3, c :5; short x :1, y :2, :3, z :5; } foo; int main() { foo foo; foo.a = 1; foo.b = 3; foo.c = 15; foo.x = 1; foo.y = 3; foo.z...
visualfc/c2go
testdata/operator/operator.c
<filename>testdata/operator/operator.c<gh_stars>0 #include <stdio.h> #include <string.h> /* shl() need n > 0 */ static inline void shl(size_t p[2], int n) { if(n >= 8 * sizeof(size_t)) { n -= 8 * sizeof(size_t); p[1] = p[0]; p[0] = 0; } p[1] <<= n; p[1] |= p[0] >> (sizeof(size_t) * 8 - n); p[0] <<= n; } st...
visualfc/c2go
testdata/complex/complex.c
<filename>testdata/complex/complex.c<gh_stars>10-100 #include <stdio.h> #include <complex.h> int main() { _Complex double a = 3 + 2*I; printf("%f + %fi\n", creal(a), cimag(a)); return 0; }
visualfc/c2go
testdata/init/init.c
#include <stdio.h> int g_a = 100; int g_arr[100][3]; int (*g_parr)[100][3] = &g_arr; union { int a; unsigned short b; } g_foo = { 1 }; union { short a; char b[10]; } g_bar = { .b = "Hello" }; struct { int a; unsigned short b; } g_x = { 2, 3 }; struct { short a; char b[10]; int c; } g_y = { .b = "Hi", .a = 11 }; st...
visualfc/c2go
testdata/hello/hello.c
<reponame>visualfc/c2go #include <stdio.h> int main() { const int N = 32; char msg[N] = "Hello, world"; printf("%s\n", msg); return 0; }
ThePirateDuck/DS3231
avr/src/ds3231.c
/* MIT License Copyright (c) 2017 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib...
ThePirateDuck/DS3231
avr/src/twi.c
/* MIT License Copyright (c) 2017 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib...
ThePirateDuck/DS3231
avr/src/twi.h
/* MIT License Copyright (c) 2017 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib...
ThePirateDuck/DS3231
avr/src/ds3231.h
<gh_stars>1-10 /* MIT License Copyright (c) 2017 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p...
KinRainModulization/KRLogin
KRLogin/KRLogin/Classes/Login/View/LXCountdownButton.h
<gh_stars>0 // // MYCountdownButton.h // // Created by 希 on 16/5/31. // Copyright © 2016年 xi. All rights reserved. // #import <UIKit/UIKit.h> @interface LXCountdownButton : UIButton // 验证码倒计时的时长 @property (nonatomic, assign) NSInteger durationOfCountDown; // 保存倒计时当前时间 @property (nonatomic, assign) NSInteger tempDu...
KinRainModulization/KRLogin
KRLogin/KRLogin/Classes/Targets/Target_KRLogin.h
// // Target_KRLogin.h // KRLogin // // Created by LX on 2017/12/15. // Copyright © 2017年 Ace. All rights reserved. // #import <Foundation/Foundation.h> @interface Target_KRLogin : NSObject - (UIViewController *)Action_LoginViewController:(NSDictionary *)params; @end
KinRainModulization/KRLogin
KRLogin/KRLogin/KRTestViewController.h
// // KRTestViewController.h // KRLogin // // Created by LX on 2017/12/15. // Copyright © 2017年 Ace. All rights reserved. // #import <UIKit/UIKit.h> @interface KRTestViewController : UIViewController @end
KinRainModulization/KRLogin
KRLogin/KRLogin/Classes/Login/View/KRLoginView.h
// // KRLoginView.h // KRLogin // // Created by LX on 2017/12/13. // Copyright © 2017年 Ace. All rights reserved. // #import <UIKit/UIKit.h> @protocol KRLoginViewDelegate <NSObject> - (void)changePasswordLoginMode; - (void)loginButtonClick; - (void)forgetPasswordButtonClick; @end @interface KRLoginView : UIV...
KinRainModulization/KRLogin
KRLogin/KRLogin/Classes/FindPwd/Controller/KRFindPasswordController.h
<reponame>KinRainModulization/KRLogin<gh_stars>0 // // KRFindPasswordController.h // KRLogin // // Created by LX on 2017/12/15. // Copyright © 2017年 Ace. All rights reserved. // #import <KRPublishLibrary/BaseViewController.h> @interface KRFindPasswordController : BaseViewController @end
KinRainModulization/KRLogin
KRLogin/KRLogin/Classes/Login/Controller/KRLoginController.h
// // KRLoginController.h // KRLogin // // Created by LX on 2017/12/13. // Copyright © 2017年 Ace. All rights reserved. // #import <KRPublishLibrary/BaseViewController.h> @interface KRLoginController : BaseViewController @property (nonatomic, assign) BOOL isPasswordLogin; @end
KinRainModulization/KRLogin
KRLogin/KRLogin/Classes/FindPwd/View/KRFindPasswordView.h
// // KRFindPasswordView.h // KRLogin // // Created by LX on 2017/12/15. // Copyright © 2017年 Ace. All rights reserved. // #import <UIKit/UIKit.h> @interface KRFindPasswordView : UIView @property (nonatomic, copy) void (^smsCodeBlock)(); @property (nonatomic, copy) void (^nextButtonClickBlock)(); @end
KinRainModulization/KRLogin
KRLogin/KRLogin/Classes/FindPwd/View/KRSettingPasswordView.h
<gh_stars>0 // // KRSettingPasswordView.h // KRLogin // // Created by LX on 2017/12/15. // Copyright © 2017年 Ace. All rights reserved. // #import <UIKit/UIKit.h> @interface KRSettingPasswordView : UIView @property (nonatomic, copy) void (^settingPasswordBlock)(); @end
BFAlex/BFSDemoOfPing
BFSDemoOfPing/Common/BFSPingAssistant.h
<filename>BFSDemoOfPing/Common/BFSPingAssistant.h // // BFSPingAssistant.h // BFSDemoOfPing // // Created by 刘玲 on 2019/1/16. // Copyright © 2019年 BFS. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface BFSPingAssistant : NSObject #pragma mark - Class methods + (NSStrin...
yuefengz/tensorflow
tensorflow/lite/experimental/resource/lookup_interfaces.h
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. 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 a...
zypeh/utf8rewind
source/internal/codepoint.h
<reponame>zypeh/utf8rewind<gh_stars>1-10 /* Copyright (C) 2014-2016 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights t...
zypeh/utf8rewind
tools/gyp/test/dependencies/sharedlib-linksettings/sharedlib.c
<reponame>zypeh/utf8rewind /* * Copyright (c) 2013 Google Inc. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifdef _WIN32 __declspec(dllexport) #endif int sharedLibFunc() { /* * This will fail to compile if TEST_DEFINE...
zypeh/utf8rewind
source/internal/casemapping.c
<filename>source/internal/casemapping.c<gh_stars>1-10 /* Copyright (C) 2014-2016 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation...
zypeh/utf8rewind
source/unicodedatabase.h
/* Copyright (C) 2014-2016 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di...
zypeh/utf8rewind
source/internal/seeking.c
/* Copyright (C) 2014-2016 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di...
zypeh/utf8rewind
tools/gyp/test/dependencies/sharedlib-linksettings/program.c
/* * Copyright (c) 2013 Google Inc. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <stdio.h> /* * This will fail to compile if TEST_DEFINE was propagated from sharedlib to * program. */ #ifdef TEST_DEFINE #erro...
zypeh/utf8rewind
tools/gyp/test/dependencies/sharedlib-linksettings/staticlib.c
<reponame>zypeh/utf8rewind<filename>tools/gyp/test/dependencies/sharedlib-linksettings/staticlib.c /* * Copyright (c) 2013 Google Inc. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* * This will fail to compile if TEST_DEFINE ...
zypeh/utf8rewind
source/internal/streaming.h
/* Copyright (C) 2014-2016 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di...
zypeh/utf8rewind
source/internal/decomposition.c
<gh_stars>1-10 /* Copyright (C) 2014-2016 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, mer...
zypeh/utf8rewind
source/internal/streaming.c
<filename>source/internal/streaming.c /* Copyright (C) 2014-2016 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
zypeh/utf8rewind
source/internal/codepoint.c
<filename>source/internal/codepoint.c<gh_stars>1-10 /* Copyright (C) 2014-2016 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation t...
zypeh/utf8rewind
source/internal/database.h
<reponame>zypeh/utf8rewind /* Copyright (C) 2014-2016 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,...
KevinLADLee/LiDARCamOdomCalib
FileFinder.h
#pragma once #include <sys/stat.h> #include <unistd.h> #include <string> #include <fstream> #include <vector> #include <string> #include <stdexcept> #include <sstream> std::vector<std::string> getFileWithNumber(std::string folder, std::string filename, std::string extension);
KevinLADLee/LiDARCamOdomCalib
image_utility.h
#define _USE_MATH_DEFINES #include <math.h> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/video/tracking.hpp> #include "utility.h" using namespace Eigen; #ifndef IMAGEMYUTILITY #define IMAGEMYUTILITY void getGraySubPixel(cv::Mat image,cv::Point2f p,double* ret); void...
KevinLADLee/LiDARCamOdomCalib
BasicPly.h
<gh_stars>0 #define _USE_MATH_DEFINES #include <fstream> #include <iostream> #include <string> #include "utility.h" #include <vector> #include "Eigen/Core" #include "Eigen/Eigen" #include "Eigen/Dense" using namespace std; using namespace Eigen; #ifndef BASICPLY #define BASICPLY class BasicPly{ private: typedef...
KevinLADLee/LiDARCamOdomCalib
Rejector.h
#pragma once #include <vector> #include "Eigen/Core" #include "Eigen/Dense" #include "utility.h" void Reject2D2Dcorrespondence(vector<Vector3d> bvs1, vector<Vector3d> bvs2, _6dof mot, double threshold, vector<int>& inlier); void Reject2D3Dcorrespondence(vector<Vector3d> bvs1, vector<Vector3d> bvs2, _6dof mot, doubl...
KevinLADLee/LiDARCamOdomCalib
utility.h
#define _USE_MATH_DEFINES #include <string> #include <iostream> #include <fstream> #include <vector> #include <Eigen/Eigen> #include <Eigen/Core> #include <time.h> //#include <imagehlp.h> //#pragma comment(lib, "imagehlp.lib") #include <sys/types.h> #include <sys/stat.h> using namespace std; using namespace Eigen; #...
KevinLADLee/LiDARCamOdomCalib
MotionCompute.h
<reponame>KevinLADLee/LiDARCamOdomCalib<filename>MotionCompute.h #pragma once #include <opencv2/opencv.hpp> #include <opengv/relative_pose/CentralRelativeAdapter.hpp> #include <opengv/relative_pose/methods.hpp> #include <opengv/sac/Ransac.hpp> #include <opengv/sac_problems/relative_pose/CentralRelativePoseSacProblem.h...
jiazhenen/ai_amap-master
ios/Classes/AiAmapPlugin.h
#import <Flutter/Flutter.h> @interface AiAmapPlugin : NSObject<FlutterPlugin> @end
MenaceiOS/WMCategoryKit
Example/WMCategoryKit/WMViewController.h
// // WMViewController.h // WMCategoryKit // // Created by MenaceiOS on 11/24/2021. // Copyright (c) 2021 MenaceiOS. All rights reserved. // @import UIKit; @interface WMViewController : UIViewController @end
MenaceiOS/WMCategoryKit
WMCategoryKit/Classes/WMCategoryKit/NSDictionary+Safe.h
// // NSDictionary+Safe.h // LargeScaleTechnology // // Created by Aaron on 2021/7/1. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN #define WMDictionaryOfVariableBindings(...) [NSDictionary _WMDictionaryOfVariableBindings:@"" # __VA_ARGS__, __VA_ARGS__] @interface NSDictionary (Safe) /** 安全获取valu...
MenaceiOS/WMCategoryKit
WMCategoryKit/Classes/WMCategoryKit/UILabel+WMUniformDistribution.h
<gh_stars>1-10 // // UILabel+WMUniformDistribution.h // ShrimpPassengerCarWash // // Created by zmy on 2019/3/28. // Copyright © 2019 Aaron. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UILabel (WMUniformDistribution) //两端对齐 - (void)textAlignmentLeftAndRight; //指定Label以最后的冒...
MenaceiOS/WMCategoryKit
Example/WMCategoryKit/WMAppDelegate.h
<reponame>MenaceiOS/WMCategoryKit // // WMAppDelegate.h // WMCategoryKit // // Created by MenaceiOS on 11/24/2021. // Copyright (c) 2021 MenaceiOS. All rights reserved. // @import UIKit; @interface WMAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
MenaceiOS/WMCategoryKit
WMCategoryKit/Classes/WMCategoryKit/UIView+XibExtend.h
// // UIView+XibExtend.h // TreatHeart_Patient // // Created by Z_x. on 2018/4/28. // Copyright © 2018年 Z_x.. All rights reserved. // #import <UIKit/UIKit.h> //IB_DESIGNABLE @interface UIView (XibExtend) @property (nonatomic, assign)IBInspectable CGFloat cornerRadius; @property (nonatomic, assign)IBInspectable CGF...
ThanosAndr/Home-Climate-Control
IRLib2/IRLib2/IRLibDecodeBase.h
<filename>IRLib2/IRLib2/IRLibDecodeBase.h /* IRLibDecodeBase.h * Part of IRLib Library for Arduino receiving, decoding, and sending * infrared signals. See COPYRIGHT.txt and LICENSE.txt for more information. */ /* * This module contains the base classes for decoding. You will not create instances * of these class...
ThanosAndr/Home-Climate-Control
IRLib2/IRLibRecvPCI/IRLibRecvPCI.h
<filename>IRLib2/IRLibRecvPCI/IRLibRecvPCI.h /* IRLibRecvPCI.h * Part of IRLib Library for Arduino receiving, decoding, and sending * infrared signals. See COPYRIGHT.txt and LICENSE.txt for more information. * * You should include this header in your sketch if you're using the IRLibRecvPCI * receiver class which ...
ThanosAndr/Home-Climate-Control
IRLib2/IRLibProtocols/IRLib_P12_Tutorial.h
/* IRLib_P12_Tutorial.h * Part of IRLib Library for Arduino receiving, decoding, and sending * infrared signals. See COPYRIGHT.txt and LICENSE.txt for more information. */ /* * This is dummy code that you can copy and rename and modify when implementing new protocols. */ #ifndef IRLIB_PROTOCOL_12_H #define IRLIB_...
ThanosAndr/Home-Climate-Control
IRLib2/IRLibProtocols/IRLib_P11_RCMM.h
/* IRLib_P11_RCMM.h * Part of IRLib Library for Arduino receiving, decoding, and sending * infrared signals. See COPYRIGHT.txt and LICENSE.txt for more information. */ /* This module implements the Phillips RC-MM also known as Nokia Protocol. Is used by * AT&T U-Verse cable boxes. There are three different varieti...
ThanosAndr/Home-Climate-Control
IRLib2/IRLibProtocols/IRLibProtocols.h
<filename>IRLib2/IRLibProtocols/IRLibProtocols.h<gh_stars>0 /* IRLibProtocols.h * Part of IRLib Library for Arduino receiving, decoding, and sending * infrared signals. See COPYRIGHT.txt and LICENSE.txt for more information. */ /* * This module enumerates the various supported protocols and defines a program memory...
ThanosAndr/Home-Climate-Control
IRLib2/IRLibProtocols/IRLibSendBase.h
/* IRLibSendBase.h * Part of IRLib Library for Arduino receiving, decoding, and sending * infrared signals. See COPYRIGHT.txt and LICENSE.txt for more information. */ /* * This module contains the base classes for sending. You will not create instances * of these classes, rather you will use them as base classes i...
lee-emqx/nanomq
nanolib/include/hash.h
#ifndef HASH_H #define HASH_H #include <stdint.h> #ifdef __cplusplus extern "C" { #endif struct topic_queue { char *topic; struct topic_queue *next; }; typedef struct topic_queue topic_queue; struct msg_queue { char *msg; struct msg_queue *next; }; typedef struct msg_queue msg_queue...
lee-emqx/nanomq
nng/src/sp/transport/tcp/tcp_test.c
// // Copyright 2020 Staysail Systems, Inc. <<EMAIL>> // Copyright 2018 Capitar IT Group BV <<EMAIL>> // Copyright 2018 Devolutions <<EMAIL>> // Copyright 2018 <NAME> <<EMAIL>> // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this // file...
lee-emqx/nanomq
nanolib/include/mqtt_db.h
#ifndef MQTT_DB_H #define MQTT_DB_H #include <stdbool.h> #include <stdint.h> typedef enum {UNEQUAL = 0, EQUAL = 1 } state; struct client { char *id; void *ctxt; struct client *next; }; struct clients { struct client* sub_client; struct clients* down; int len; }; struct retain_msg_node { str...
lee-emqx/nanomq
nanomq/apps/broker.c
// // Copyright 2020 NanoMQ Team, Inc. <<EMAIL>> // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this // file was obtained (LICENSE.txt). A copy of the license may also be // found online at https://opensource.org/licenses/MIT. // #incl...
lee-emqx/nanomq
nng/src/core/message.h
// // Copyright 2020 Staysail Systems, Inc. <<EMAIL>> // Copyright 2017 Capitar IT Group BV <<EMAIL>> // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this // file was obtained (LICENSE.txt). A copy of the license may also be // found on...
lee-emqx/nanomq
nng/src/sp/protocol/pair1/pair1_test.c
<filename>nng/src/sp/protocol/pair1/pair1_test.c // // Copyright 2020 Staysail Systems, Inc. <<EMAIL>> // Copyright 2017 Capitar IT Group BV <<EMAIL>> // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this // file was obtained (LICENSE.txt...
lee-emqx/nanomq
nanolib/packet_parser/main.c
<reponame>lee-emqx/nanomq #include "test.c" int main(int argc, char *argv[]) { test(); return 0; }
lee-emqx/nanomq
nanomq/include/cmd.h
<reponame>lee-emqx/nanomq<filename>nanomq/include/cmd.h #include <sys/types.h> #define CMD_RUN(cmd) do { \ ret = cmd_run(cmd); \ if (ret < 0) \ goto err; \ } while (0) #define CMD_FRUN(fcmd, arg...) do { \ ret = cmd_frun(fcmd, ## arg); \ if (ret < 0) \ goto err; \ } while (0) #define CMD_BUFF_LEN 1024...
lee-emqx/nanomq
nng/src/supplemental/websocket/wssfile_test.c
<reponame>lee-emqx/nanomq // // Copyright 2020 Staysail Systems, Inc. <<EMAIL>> // Copyright 2018 Capitar IT Group BV <<EMAIL>> // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this // file was obtained (LICENSE.txt). A copy of the licen...
lee-emqx/nanomq
nng/src/core/reconnect_test.c
// // Copyright 2020 Staysail Systems, Inc. <<EMAIL>> // Copyright 2018 Capitar IT Group BV <<EMAIL>> // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this // file was obtained (LICENSE.txt). A copy of the license may also be // found on...
lee-emqx/nanomq
nanomq/include/packet.h
<reponame>lee-emqx/nanomq<filename>nanomq/include/packet.h // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this // file was obtained (LICENSE.txt). A copy of the license may also be // found online at https://opensource.org/licenses/MIT. /...
lee-emqx/nanomq
nanomq/apps/mq.c
// // Copyright 2020 NanoMQ Team, Inc. <<EMAIL>> // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this // file was obtained (LICENSE.txt). A copy of the license may also be // found online at https://opensource.org/licenses/MIT. // #incl...
lee-emqx/nanomq
nanomq/apps.c
// // Copyright 2020 NanoMQ Team, Inc. <<EMAIL>> // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this // file was obtained (LICENSE.txt). A copy of the license may also be // found online at https://opensource.org/licenses/MIT. // #inc...
lee-emqx/nanomq
nanolib/packet_parser/packet_parser.c
#include "packet_parser.h" #include <assert.h> #include <stdio.h> #include <stdlib.h> uint8_t packet_parse_uint8(struct mqtt_packet *packet) { assert(packet && packet->remaining_length >= packet->pos+1); return packet->binary[packet->pos++]; } uint16_t packet_parse_uint16(struct mqtt_packet *packet) { ...
lee-emqx/nanomq
nanolib/packet_parser/test.c
<filename>nanolib/packet_parser/test.c #include "packet_parser.h" #include <stdio.h> #include <stdlib.h> /* ======================================================================= * TEST * =======================================================================*/ static void uint8_write_read(uint8_t input, int remai...
lee-emqx/nanomq
nanomq/include/unsub_handler.h
#ifndef MQTT_UNSUBSCRIBE_HANDLE_H #define MQTT_UNSUBSCRIBE_HANDLE_H #include <nng/nng.h> #include "include/packet.h" #include "apps/broker.h" uint8_t decode_unsub_message(emq_work *); uint8_t encode_unsuback_message(nng_msg *, emq_work *); uint8_t unsub_ctx_handle(emq_work *); void destroy_unsub_ctx(packet_unsubscrib...
lee-emqx/nanomq
nanomq/apps/mq.h
<reponame>lee-emqx/nanomq<filename>nanomq/apps/mq.h extern int mqcreate_debug(int argc, char **argv, char *extra_arg); extern int mqsend_debug(int argc, char **argv, char *extra_arg); extern int mqreceive_debug(int argc, char **argv, char *extra_arg); extern int dashboard_data_sync(int argc, char **argv, char *extra_ar...
lee-emqx/nanomq
nng/include/nng/protocol/mqtt/mqtt_parser.h
<gh_stars>0 #ifndef NNG_MQTT_H #define NNG_MQTT_H #include <stdlib.h> #include <nng/nng.h> //int hex_to_oct(char *str); // //uint32_t htoi(char *str); //MQTT CONNECT int32_t conn_handler(uint8_t *packet, conn_param *conn_param); void destroy_conn_param(conn_param * cparam); int fixed_header_adaptor(uint8_t *packet...
lee-emqx/nanomq
nanomq/sub_handler.c
<reponame>lee-emqx/nanomq // // Copyright 2020 NanoMQ Team, Inc. <<EMAIL>> // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this // file was obtained (LICENSE.txt). A copy of the license may also be // found online at https://opensource....
lee-emqx/nanomq
nanomq/include/sub_handler.h
<filename>nanomq/include/sub_handler.h #ifndef MQTT_SUBSCRIBE_HANDLE_H #define MQTT_SUBSCRIBE_HANDLE_H #include <nng/nng.h> #include "include/packet.h" #include "apps/broker.h" uint8_t decode_sub_message(emq_work *); uint8_t encode_suback_message(nng_msg *, emq_work *); uint8_t sub_ctx_handle(emq_work *, client_ctx *...