repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
Legend1991/monobanksnake
hamiltonsolver.h
#ifndef HAMILTONSOLVER_H #define HAMILTONSOLVER_H #include <QString> #include <QVector> #include "basesolver.h" #include "pathsolver.h" #include "direc.h" class TableCellH { public: TableCellH() { this->reset(); } QString toString() { return QString("{ idx: %1 direc: %1 }") ...
Legend1991/monobanksnake
maprecognizer.h
<reponame>Legend1991/monobanksnake #ifndef MAPRECOGNIZER_H #define MAPRECOGNIZER_H #include <QImage> #include <QList> #include "pos.h" #include "point.h" class MapRecognizer { public: MapRecognizer(QImage img); void recognize(); Pos food; Pos obstacle; QList<Pos> catBodies; DirecType direc; ...
Legend1991/monobanksnake
greedysolver.h
#ifndef GREEDYSOLVER_H #define GREEDYSOLVER_H #include "snake.h" #include "pathsolver.h" #include "direc.h" #include "map.h" #include "pos.h" #include <QList> class GreedySolver { public: GreedySolver(Snake &snake); DirecType next_direc(bool manhattan); Snake &snake; Map &map; }; #endif // GREEDYSO...
Legend1991/monobanksnake
basesolver.h
#ifndef BASESOLVER_H #define BASESOLVER_H #include "map.h" #include "snake.h" #include "direc.h" class BaseSolver { public: BaseSolver(Snake &snake); // virtual ~BaseSolver(); // void setSnake(Snake &snake); // virtual DirecType next_direc() = 0; Snake &snake; Map map; }; #endif // BASESOLVER_H...
Legend1991/monobanksnake
direc.h
#ifndef DIREC_H #define DIREC_H #include <QString> enum DirecType { NONE = 0, LEFT = 1, UP = 2, RIGHT = 3, DOWN = 4 }; const DirecType DIREC_TYPES[] = {DirecType::NONE, DirecType::LEFT, DirecType::UP, DirecType::RIGHT, DirecType::DOWN}; const int DIREC_TYPES_LENGTH = 5; class Direc { public: ...
Legend1991/monobanksnake
pathsolver.h
<filename>pathsolver.h #ifndef PATHSOLVER_H #define PATHSOLVER_H #include <QVector> #include <QList> #include <climits> #include "basesolver.h" #include "snake.h" #include "pos.h" class TableCell { public: TableCell() { this->reset(); } QString toString() { return QString("{ dis...
Legend1991/monobanksnake
customsolver.h
<reponame>Legend1991/monobanksnake<gh_stars>0 #ifndef CUSTOMSOLVER_H #define CUSTOMSOLVER_H #include "snake.h" #include "direc.h" #include "map.h" #include "pos.h" typedef QList<DirecType> BasePath; struct Flag { float x; float y; DirecType direc; }; typedef QList<Flag> Track; class CustomSolver { publ...
Legend1991/monobanksnake
point.h
#ifndef POINT_H #define POINT_H #include <QString> enum PointType { EMPTY = 0, WALL = 1, FOOD = 2, HEAD_L = 100, HEAD_U = 101, HEAD_R = 102, HEAD_D = 103, BODY_LU = 104, BODY_UR = 105, BODY_RD = 106, BODY_DL = 107, BODY_HOR = 108, BODY_VER = 109, }; class PointCust...
Legend1991/monobanksnake
maprecognizertest.h
<reponame>Legend1991/monobanksnake #ifndef MAPRECOGNIZERTEST_H #define MAPRECOGNIZERTEST_H #include <QObject> #include "pos.h" #include "map.h" #include "snake.h" #include "customsolver.h" class MapRecognizerTest : public QObject { Q_OBJECT public: MapRecognizerTest(); void setUp(DirecType init_direc, QL...
Legend1991/monobanksnake
map.h
#ifndef MAP_H #define MAP_H #include <QVector> #include "point.h" #include "pos.h" class Map { public: Map(int num_rows, int num_cols); void reset(); Map *copy(); PointCust &point(const Pos &pos); bool is_inside(const Pos &pos); bool is_empty(const Pos &pos); bool is_safe(const Pos &pos);...
Legend1991/monobanksnake
snake.h
#ifndef SNAKE_H #define SNAKE_H #include <QList> #include "map.h" #include "point.h" #include "pos.h" struct SnakeCopy; struct NewTypes; class Snake { public: Snake(Map &game_map, DirecType init_direc, QList<Pos> init_bodies, QList<PointType> init_types); void reset(bool reset_map = true); SnakeCopy cop...
Legend1991/monobanksnake
pos.h
<gh_stars>0 #ifndef POS_H #define POS_H #include <QString> #include <QList> #include <QDebug> #include "direc.h" class Pos { public: Pos(); Pos(short x, short y); QString toString(); static int manhattan_dist(const Pos &p1, const Pos &p2); DirecType direc_to(const Pos &adj_pos); Pos adj(Direc...
Legend1991/monobanksnake
linearsolver.h
#ifndef LINEARSOLVER_H #define LINEARSOLVER_H #include "snake.h" #include "direc.h" #include "map.h" #include "pos.h" class LinearSolver { public: LinearSolver(Snake &snake); DirecType next_direc(); Snake &snake; Map &map; }; #endif // LINEARSOLVER_H
Legend1991/monobanksnake
monobanksnake.h
<gh_stars>0 #ifndef MONOBANKSNAKE_H #define MONOBANKSNAKE_H #include <QElapsedTimer> #include <QImage> #include <QColor> #include <QDebug> #include <QVector> #include <QString> #include <QHash> #include <QProcess> #include <QObject> #include <QRunnable> #include <stdio.h> #include <stdlib.h> #include "pos.h" class ...
Roiki-design/moveo_ros
moveo_industrial_experimental/simple_message/include/simple_message/byte_array.h
<gh_stars>10-100 /* * Software License Agreement (BSD License) * * Copyright (c) 2015, Southwest Research Institute * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistribu...
JobsKit/JobsGlobleDef
Example/JobsGlobleDef/JobsGlobleDefHeader.h
<reponame>JobsKit/JobsGlobleDef<filename>Example/JobsGlobleDef/JobsGlobleDefHeader.h // // JobsGlobleDefHeader.h // JobsGlobleDef // // Created by Jobs on 03/08/2021. // #ifndef JobsGlobleDefHeader_h #define JobsGlobleDefHeader_h /// MacroDef #import "MacroDefHeader.h" #import "MacroDef_Func.h" #import "MacroDef_S...
JobsKit/JobsGlobleDef
Example/JobsGlobleDef/Pods/JobsGlobleDef/JobsGlobleDefCore/Classes/MacroDef/MacroDef_Func/MacroDef_Func.h
// // MacroDef_Func.h // UBallLive // // Created by Jobs on 2020/10/9. // #ifndef MacroDef_Func_h #define MacroDef_Func_h #import "MacroDef_Sys.h" //#import "DouYinAppDelegate.h" //#import "DouYinSceneDelegate.h" static inline UIWindow * getMainWindow(){ UIWindow *window = nil; //以下方法有时候会拿不到window if ...
JobsKit/JobsGlobleDef
JobsGlobleDefCore/Classes/MacroDef/MacroDef_Func/MacroDef_QUEUE.h
// // MacroDef_QUEUE.h // Casino // // Created by Jobs on 2021/12/3. // #ifndef MacroDef_QUEUE_h #define MacroDef_QUEUE_h #pragma mark ======================================== 队列相关 ============================================== ///异步获取某个队列 #define GET_QUEUE_ASYNC(queue, block)\ if (strcmp(dispatch_queue_get_label(...
JobsKit/JobsGlobleDef
JobsGlobleDefCore/Classes/MacroDef/MacroDef_Func/MacroDef_Func.h
<reponame>JobsKit/JobsGlobleDef // // MacroDef_Func.h // UBallLive // // Created by Jobs on 2020/10/9. // #ifndef MacroDef_Func_h #define MacroDef_Func_h #import <UIKit/UIKit.h> #import "MacroDef_SysWarning.h" #import "MacroDef_Print.h" #import "MacroDef_Notification.h" #import "MacroDef_QUEUE.h" #import "MacroDef...
JobsKit/JobsGlobleDef
Example/JobsGlobleDef/JobsGlobleDef/ViewController.h
// // ViewController.h // JobsGlobleDef // // Created by Jobs on 03/08/2021. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
JobsKit/JobsGlobleDef
JobsGlobleDefCore/Classes/MacroDef/MacroDef_Sys/MacroDef_SysWarning.h
<gh_stars>0 // // MacroDef_SysWarning.h // DouYin // // Created by Jobs on 2021/3/12. // #ifndef MacroDef_SysWarning_h #define MacroDef_SysWarning_h // 封装处理系统宏忽略警告⚠️ // 警告查询网址:http://ww1.fuckingclangwarnings.com/ //#pragma clang diagnostic push //#pragma clang diagnostic ignored "-Wobjc-designated-initializers" //...
JobsKit/JobsGlobleDef
JobsGlobleDefCore/Classes/MacroDef/MacroDef_Func/MacroDef_Print.h
<filename>JobsGlobleDefCore/Classes/MacroDef/MacroDef_Func/MacroDef_Print.h // // MacroDef_Print.h // Casino // // Created by Jobs on 2021/12/3. // #ifndef MacroDef_Print_h #define MacroDef_Print_h #define PrintRetainCount(obj) printf("Retain Count = %ld\n",CFGetRetainCount((__bridge CFTypeRef)(obj)));//打印引用计数器 #...
JobsKit/JobsGlobleDef
JobsGlobleDefCore/Classes/MacroDef/MacroDef_Sys/MacroDef_Sys.h
// // MacroDef_Sys.h // UBallLive // // Created by Jobs on 2020/10/9. // #ifndef MacroDef_Sys_h #define MacroDef_Sys_h #define HDAppVersion [NSBundle.mainBundle.infoDictionary objectForKey:@"CFBundleShortVersionString"]//标识应用程序的发布版本号 #define HDAppBuildVersion [NSBundle.mainBundle.infoDictionary objectForKey:@"CFBu...
JobsKit/JobsGlobleDef
Example/JobsGlobleDef/Pods/JobsGlobleDef/JobsGlobleDefCore/Classes/MacroDef/MacroDef_Sys/MacroDef_Sys.h
<filename>Example/JobsGlobleDef/Pods/JobsGlobleDef/JobsGlobleDefCore/Classes/MacroDef/MacroDef_Sys/MacroDef_Sys.h // // MacroDef_Sys.h // UBallLive // // Created by Jobs on 2020/10/9. // #ifndef MacroDef_Sys_h #define MacroDef_Sys_h #import "MacroDef_SysWarning.h" #pragma mark ====================================...
JobsKit/JobsGlobleDef
JobsGlobleDefCore/Classes/MacroDef/MacroDef_Func/MacroDef_Notification.h
// // MacroDef_Notification.h // Casino // // Created by Jobs on 2021/12/3. // #ifndef MacroDef_Notification_h #define MacroDef_Notification_h /** 在多线程应用中,Notification在哪个线程中post,就在哪个线程中被转发,而不一定是在注册观察者的那个线程中 也就是说Notification的发送与接收处理都是在同一个线程中 【特别注意】 1、对于全局性的通知,不建议在BaseView中监听,而是建议在具体的VC里面,哪怕是BaseVC里面...
JobsKit/JobsGlobleDef
Example/JobsGlobleDef/Pods/JobsGlobleDef/JobsGlobleDefCore/Classes/MacroDef/MacroDef_Size/MacroDef_Size.h
<reponame>JobsKit/JobsGlobleDef // // MacroDef_Size.h // UBallLive // // Created by Jobs on 2020/10/9. // #ifndef MacroDef_Size_h #define MacroDef_Size_h #import <UIKit/UIKit.h> #import "MacroDef_Func.h" #import "MacroDef_AppDeviceScreenSize.h" #define MainScreen UIScreen.mainScreen.bounds.size #define D...
JobsKit/JobsGlobleDef
Example/JobsGlobleDef/Pods/JobsGlobleDef/JobsGlobleDefCore/Classes/OtherGlobleDef/APIKey.h
// // APIKey.h // ShengAi // // Created by 刘赓 on 2018/10/29. // Copyright © 2018年 刘赓. All rights reserved. // /** * 本类放一些第三方常量 */
JobsKit/JobsGlobleDef
Example/JobsGlobleDef/Pods/JobsGlobleDef/JobsGlobleDefCore/Classes/MacroDef/MacroDef_App/MacroDef_App.h
// // MacroDef_App.h // DouYin // // Created by Jobs on 2021/2/2. // #ifndef MacroDef_App_h #define MacroDef_App_h //输入原型图上的宽和高,对外输出App对应的移动设备的真实宽高 #define KWidth(width) (SCREEN_WIDTH / 375) * (width) //375 对应原型图的宽 #define KHeight(height) (SCREEN_HEIGHT / 743) * (height) //743 对应原型图的高 #endif /* MacroDef_App_h */
JobsKit/JobsGlobleDef
JobsGlobleDefCore/Classes/MacroDef/MacroDef_Sys/MacroDef_Log.h
<reponame>JobsKit/JobsGlobleDef // // MacroDef_Log.h // Casino // // Created by Jobs on 2021/12/3. // #ifndef MacroDef_Log_h #define MacroDef_Log_h #pragma mark —— 控制台Log打印格式重写 #ifndef NSLog #define NSLog(FORMAT, ...) fprintf(stderr,"\nfunction:%s line:%d content:%s\n", __FUNCTION__, __LINE__, [[NSString stringWit...
JobsKit/JobsGlobleDef
JobsGlobleDefCore/Classes/MacroDef/MacroDef_Func/MacroDef_String.h
<reponame>JobsKit/JobsGlobleDef<filename>JobsGlobleDefCore/Classes/MacroDef/MacroDef_Func/MacroDef_String.h // // MacroDef_String.h // Casino // // Created by Jobs on 2021/12/3. // #ifndef MacroDef_String_h #define MacroDef_String_h /// 本地化字符串 #define LocalString(x, ...) NSLocalizedString(x, nil)// NSLocalized...
JobsKit/JobsGlobleDef
JobsGlobleDefCore/Classes/OtherGlobleDef/AABlock.h
<filename>JobsGlobleDefCore/Classes/OtherGlobleDef/AABlock.h<gh_stars>0 #pragma mark —— 确定参数Block /// 没有返回值的Block typedef void(^NoResultBlock)(void); typedef void(^MKDataBlock)(id data); /// 没有返回值的Block——单形参 typedef void(^MKIntegerBlock)(NSInteger data);//整数 typedef void(^MKFloatBlock)(CGFloat data);//浮点数 /// 没有返回值的Bl...
JobsKit/JobsGlobleDef
Example/JobsGlobleDef/Pods/JobsGlobleDef/JobsGlobleDefCore/Classes/MacroDef/MacroDef_Cor/MacroDef_Cor.h
<filename>Example/JobsGlobleDef/Pods/JobsGlobleDef/JobsGlobleDefCore/Classes/MacroDef/MacroDef_Cor/MacroDef_Cor.h // // MacroDef_Cor.h // UBallLive // // Created by Jobs on 2020/10/9. // #ifndef MacroDef_Cor_h #define MacroDef_Cor_h #pragma mark ======================================== 色彩相关 =======================...
JobsKit/JobsGlobleDef
JobsGlobleDefCore/Classes/MacroDef/MacroDef_Func/MacroDef_Time.h
// // MacroDef_Time.h // Casino // // Created by Jobs on 2021/12/3. // #ifndef MacroDef_Time_h #define MacroDef_Time_h /// 时间相关 /** 时间间隔 */ #define kHUDDuration (1.f) /** 一天的秒数 */ #define SecondsOfDay (24.f * 60.f * 60.f) /** 秒数 */ #define Seconds(Days) (24.f * 60.f * 60.f * (Days))...
JobsKit/JobsGlobleDef
JobsGlobleDefCore/Classes/MacroDef/MacroDef_Size/MacroDef_Size.h
// // MacroDef_Size.h // UBallLive // // Created by Jobs on 2020/10/9. // #ifndef MacroDef_Size_h #define MacroDef_Size_h #import <UIKit/UIKit.h> #import "MacroDef_Func.h" #import "MacroDef_SysWarning.h" #import "MacroDef_AppDeviceScreenSize.h" #ifndef MainScreen #define MainScreen UIScreen.mainScreen.bounds.size...
JobsKit/JobsGlobleDef
JobsGlobleDefCore/Classes/MacroDef/MacroDef_Size/AppleProductsScreenSize/MacroDef_AppDeviceScreenSize.h
// // MacroDef_AppDeviceScreenSize.h // DouDong-II // // Created by Jobs on 2021/3/20. // #ifndef MacroDef_AppDeviceScreenSize_h #define MacroDef_AppDeviceScreenSize_h #define CurrentModeSize UIScreen.mainScreen.currentMode.size #define CurrentModeRespondSelector CurrentModeRespondSelector #pragma mark —— 判断iPhone...
JobsKit/JobsGlobleDef
JobsGlobleDefCore/Classes/OtherGlobleDef/APIKey.h
<filename>JobsGlobleDefCore/Classes/OtherGlobleDef/APIKey.h // // APIKey.h // ShengAi // // Created by 刘赓 on 2018/10/29. // Copyright © 2018年 刘赓. All rights reserved. // // 本类放一些第三方常量 /** *【网易云盾 SDK地址】 * https://github.com/yidun/NTESVerifyCode *【网易云盾 开发文档地址】 * https://support.dun.163.com/documents/155880621...
JobsKit/JobsGlobleDef
Example/JobsGlobleDef/Pods/JobsGlobleDef/JobsGlobleDefCore/Classes/NotificationManager/NotificationManager.h
// // NotificationManager.h // Created by Aalto on 2018/12/19. // Copyright © 2018 Aalto. All rights reserved. // #import <Foundation/Foundation.h> extern NSString *const kUserAssert; FOUNDATION_EXTERN NSString *const UBLEnterBackgroundStopPlayer; FOUNDATION_EXTERN NSString *const MKAFNReachabilityStatus;
JobsKit/JobsGlobleDef
Example/JobsGlobleDef/Pods/Target Support Files/JobsGlobleDef/JobsGlobleDef-umbrella.h
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "MacroDef_App.h" #import "MacroDef_Cor.h" #import "MacroDef_Func.h" #import "MacroDef_Size.h" #import "MacroDef_AppDe...
JobsKit/JobsGlobleDef
JobsGlobleDefCore/Classes/MacroDef/MacroDef_Func/MacroDef_Strong@Weak.h
<gh_stars>0 // // MacroDef_Strong@Weak.h // Casino // // Created by Jobs on 2021/12/3. // #ifndef MacroDef_Strong_Weak_h #define MacroDef_Strong_Weak_h /** 强弱引用 Uses UIView *view; UIButton *btn; @jobs_weakify(view) weak_view.size; @jobs_weakify(btn) weak_btn.frame */ #i...
JobsKit/JobsGlobleDef
JobsGlobleDefCore/Classes/MacroDef/MacroDef_App/MacroDef_App.h
// // MacroDef_App.h // UBallLive // // Created by Jobs on 2020/10/30. // #ifndef MacroDef_App_h #define MacroDef_App_h #define debug 1//是否显示debug控件 static NSString *userInfoKey = @"userinfoKey"; static NSString *PostDraftURLKey = @"PostDraftURL"; static NSString *authorizationKey = @"Authorization"; static NSStr...
JobsKit/JobsGlobleDef
JobsGlobleDefCore/Classes/MacroDef/MacroDef_Func/MacroDef_Singleton.h
// // MacroDef_Singleton.h // Casino // // Created by Jobs on 2021/12/4. // #ifndef MacroDef_Singleton_h #define MacroDef_Singleton_h /** 【对单例的宏定义】 【资料来源】 1、https://juejin.cn/post/6844904100966957064 2、https://github.com/huberyhx/HXSingleton 3、https://www.jianshu.com/p/5a713295da8d */ // .h...
JobsKit/JobsGlobleDef
JobsGlobleDefCore/Classes/MacroDef/MacroDef_Func/MacroDef_UserDefault.h
// // MacroDef_UserDefault.h // Casino // // Created by Jobs on 2021/12/3. // #ifndef MacroDef_UserDefault_h #define MacroDef_UserDefault_h /// UserDefault #ifndef SetUserDefaultKeyWithValue #define SetUserDefaultKeyWithValue(key,value) [NSUserDefaults.standardUserDefaults setValue:value forKey:key] #endif #ifnde...
kylef/Disclose
Disclose/View Controllers/CCLEntityListViewController.h
#import <UIKit/UIKit.h> #import <CoreData/CoreData.h> @interface EntityListViewController : UINavigationController - (instancetype)initWithManagedObjectContext:(NSManagedObjectContext *)context NS_DESIGNATED_INITIALIZER; @property (nonatomic, strong, readonly) NSManagedObjectContext *managedObjectContext; @end
kylef/Disclose
Disclose/Extensions/NSEntityDescription+Disclose.h
#import <CoreData/CoreData.h> @interface NSEntityDescription (Disclose) - (NSString *)discloseLocalizedName; - (NSArray *)discloseDefaultSortDescriptors; @end
kylef/Disclose
Disclose/Extensions/NSPropertyDescription+Disclose.h
#import <CoreData/CoreData.h> @interface NSPropertyDescription (Disclose) - (NSString *)discloseLocalizedName; @end
kylef/Disclose
Disclose/CCLUtilities.h
#import <Foundation/Foundation.h> /// Splits CamelCase and converts to lower case. Also strips leading and trailing whitespace. NSString *CCLCamelCaseToSpaces(NSString *string);
kylef/Disclose
Disclose/View Controllers/CCLEntityManagedObjectListViewController.h
#import <UIKit/UIKit.h> #import <CoreData/CoreData.h> @interface CCLEntityManagedObjectListViewController : UITableViewController - (instancetype)initWithManagedObjectContext:(NSManagedObjectContext *)managedObjectContext; @property (nonatomic, strong, readonly) NSManagedObjectContext *managedObjectContext; @propert...
kylef/Disclose
Disclose/Extensions/NSManagedObject+Disclose.h
<gh_stars>0 #import <CoreData/CoreData.h> @interface NSManagedObject (Disclose) /*** Returns a string that describes the contents of the receiver. @return A string that describes the contents of the receiver. */ - (NSString *)discloseDescription; /*** Returns a string that describes the contents of a property. @r...
kylef/Disclose
Disclose/View Controllers/CCLEntityManagedObjectDetailViewController.h
<filename>Disclose/View Controllers/CCLEntityManagedObjectDetailViewController.h #import <UIKit/UIKit.h> #import <CoreData/CoreData.h> @interface CCLEntityManagedObjectDetailViewController : UITableViewController @property (nonatomic, strong) NSManagedObject *managedObject; @end
kylef/Disclose
Disclose/Disclose.h
<gh_stars>0 // // Disclose.h // Disclose // // Created by <NAME> on 10/09/2015. // Copyright © 2015 Cocode. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for Disclose. FOUNDATION_EXPORT double DiscloseVersionNumber; //! Project version string for Disclose. FOUNDATION_EXPORT const uns...
salimbraksa/SBSlideMenu
Pods/Target Support Files/Cartography/Cartography-umbrella.h
<gh_stars>100-1000 #import <UIKit/UIKit.h> FOUNDATION_EXPORT double CartographyVersionNumber; FOUNDATION_EXPORT const unsigned char CartographyVersionString[];
salimbraksa/SBSlideMenu
SBSlideMenu/SBSlideMenu.h
// // SBSlideMenu.h // SBSlideMenu // // Created by <NAME> on 12/10/15. // Copyright © 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for SBSlideMenu. FOUNDATION_EXPORT double SBSlideMenuVersionNumber; //! Project version string for SBSlideMenu. FOUNDATION_EXPORT const un...
salimbraksa/SBSlideMenu
Pods/Target Support Files/Pods-SBSlideMenu/Pods-SBSlideMenu-umbrella.h
<filename>Pods/Target Support Files/Pods-SBSlideMenu/Pods-SBSlideMenu-umbrella.h<gh_stars>0 #import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_SBSlideMenuVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_SBSlideMenuVersionString[];
blodely/LYCompLayout
Example/LYCompLayout/LYAppDelegate.h
// // LYAppDelegate.h // LYCOMPLAYOUT // // CREATED BY BLODELY ON 2017-02-14. // COPYRIGHT (C) 2017 BLODELY. ALL RIGHTS RESERVED. // @import UIKit; @interface LYAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
blodely/LYCompLayout
LYCompLayout/Classes/Models/LYLayoutModel.h
<filename>LYCompLayout/Classes/Models/LYLayoutModel.h<gh_stars>0 // // LYLayoutModel.h // LYCOMPLAYOUT // // CREATED BY BLODELY ON 2017-02-15. // COPYRIGHT (C) 2017 BLODELY. ALL RIGHTS RESERVED. // #import <Foundation/Foundation.h> @interface LYLayoutModel : NSObject /** UID, Not null */ @property (nonatomic, ...
blodely/LYCompLayout
LYCompLayout/Classes/LYCompLayout.h
<filename>LYCompLayout/Classes/LYCompLayout.h // // LYCompLayout.h // LYCOMPLAYOUT // // CREATED BY BLODELY ON 2017-02-14. // COPYRIGHT (C) 2017 BLODELY. ALL RIGHTS RESERVED. // #ifndef LYCompLayout_h #define LYCompLayout_h #import <LYCompLayout/LYLayoutModel.h> #import <LYCompLayout/LYLayoutConf.h> #import <LYCo...
blodely/LYCompLayout
LYCompLayout/Classes/Models/LYLayoutItem.h
<reponame>blodely/LYCompLayout // // LYLayoutItem.h // LYCOMPLAYOUT // // CREATED BY BLODELY ON 2017-02-17. // COPYRIGHT (C) 2017 BLODELY. ALL RIGHTS RESERVED. // #import <LYCompLayout/LYCompLayout.h> @interface LYLayoutItem : LYLayoutModel /** Priority in horizontal */ @property (nonatomic, assign) NSUInteger...
blodely/LYCompLayout
Example/LYCompLayout/LYViewController.h
<filename>Example/LYCompLayout/LYViewController.h // // LYViewController.h // LYCOMPLAYOUT // // CREATED BY BLODELY ON 2017-02-14. // COPYRIGHT (C) 2017 BLODELY. ALL RIGHTS RESERVED. // @import UIKit; @interface LYViewController : UIViewController @end
blodely/LYCompLayout
LYCompLayout/Classes/Models/LYLayoutConf.h
// // LYLayoutConf.h // LYCOMPLAYOUT // // CREATED BY BLODELY ON 2017-02-16. // COPYRIGHT (C) 2017 BLODELY. ALL RIGHTS RESERVED. // #import <UIKit/UIKit.h> #import <LYCompLayout/LYLayoutModel.h> #import <LYCompLayout/LYLayoutItem.h> @interface LYLayoutConf : LYLayoutModel /** An unit length in vertical */ @pro...
limoiie/vcpkg-tool
include/vcpkg/cmakevars.h
#pragma once #include <vcpkg/fwd/dependencies.h> #include <vcpkg/fwd/portfileprovider.h> #include <vcpkg/fwd/vcpkgpaths.h> #include <vcpkg/base/optional.h> #include <vcpkg/packagespec.h> namespace vcpkg::CMakeVars { struct CMakeVarProvider { virtual ~CMakeVarProvider() = default; virtual Op...
limoiie/vcpkg-tool
include/vcpkg/commands.buildexternal.h
<filename>include/vcpkg/commands.buildexternal.h<gh_stars>0 #pragma once #include <vcpkg/commands.interface.h> namespace vcpkg::Commands::BuildExternal { void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths, Triplet default_triplet, ...
limoiie/vcpkg-tool
include/vcpkg/compile-triplet.h
#pragma once #include <vcpkg/triplet.h> namespace vcpkg::bin2sth { constexpr StringLiteral DEFAULT_COMPILER_TAG = "default"; constexpr StringLiteral DEFAULT_OPTIMIZATION_TAG = ""; constexpr StringLiteral DEFAULT_OBFUSCATION_TAG = "NONE"; struct CompileTriplet { public: CompileTriplet(...
limoiie/vcpkg-tool
include/vcpkg/base/files.h
#pragma once #include <vcpkg/base/checks.h> #include <vcpkg/base/pragmas.h> #include <vcpkg/base/stringview.h> #include <stdio.h> #include <string.h> #include <memory> #include <system_error> #if defined(_WIN32) #define VCPKG_PREFERRED_SEPARATOR "\\" #else // ^^^ _WIN32 / !_WIN32 vvv #define VCPKG_PREFERRED_SEPARAT...
limoiie/vcpkg-tool
include/vcpkg/vcpkgpaths.h
<gh_stars>0 #pragma once #include <vcpkg/base/fwd/json.h> #include <vcpkg/base/fwd/system.process.h> #include <vcpkg/fwd/configuration.h> #include <vcpkg/fwd/registries.h> #include <vcpkg/fwd/vcpkgcmdarguments.h> #include <vcpkg/fwd/vcpkgpaths.h> #include <vcpkg/base/cache.h> #include <vcpkg/base/files.h> #include <...
limoiie/vcpkg-tool
include/vcpkg/compilation-flags-factory.h
#pragma once #include <vcpkg/compile-triplet.h> #include <map> namespace vcpkg { struct Triplet; struct CompilerInfo; struct VcpkgCmdArguments; struct VcpkgPaths; } namespace vcpkg::bin2sth { struct CompileTriplet; struct ConfigFlags { std::string name; std::string flags...
limoiie/vcpkg-tool
include/vcpkg/compiler-info.h
<gh_stars>0 #pragma once #include <pch.h> namespace vcpkg { struct Filesystem; struct CompilerInfo { std::string name; std::string version; Path c_full_path; Path cxx_full_path; static CompilerInfo load(const Filesystem& filesystem, const Path& path); stat...
limoiie/vcpkg-tool
include/vcpkg/buildenvironment.h
<gh_stars>0 #pragma once #include <vcpkg/fwd/vcpkgpaths.h> #include <vcpkg/base/system.process.h> #include <vcpkg/compile-triplet.h> #include <string> #include <vector> namespace vcpkg { Command make_cmake_cmd(const VcpkgPaths& paths, const Path& cmake_script, ...
csosto-pk/liboqs
src/kem/kyber/pqclean_kyber768_clean/api.h
<reponame>csosto-pk/liboqs #ifndef API_H #define API_H #include "params.h" #define CRYPTO_SECRETKEYBYTES KYBER_SECRETKEYBYTES #define CRYPTO_PUBLICKEYBYTES KYBER_PUBLICKEYBYTES #define CRYPTO_CIPHERTEXTBYTES KYBER_CIPHERTEXTBYTES #define CRYPTO_BYTES KYBER_SYMBYTES #define CRYPTO_ALGNAME "Kyber768" int PQCLEAN_KYBE...
csosto-pk/liboqs
src/kem/frodokem/kem_frodokem640aes.c
#include <stdlib.h> #include <oqs/kem_frodokem.h> #ifdef OQS_ENABLE_KEM_frodokem_640_aes OQS_KEM *OQS_KEM_frodokem_640_aes_new() { OQS_KEM *kem = malloc(sizeof(OQS_KEM)); if (kem == NULL) { return NULL; } kem->method_name = OQS_KEM_alg_frodokem_640_aes; kem->alg_version = "https://github.com/PQClean/PQClean/...
csosto-pk/liboqs
src/kem/sike/kem_sike.c
#include <stdlib.h> #include <oqs/kem_sike.h> #ifdef OQS_ENABLE_KEM_sike_p503 #include "P503/P503_api.h" OQS_KEM *OQS_KEM_sike_p503_new() { OQS_KEM *kem = malloc(sizeof(OQS_KEM)); if (kem == NULL) { return NULL; } kem->method_name = OQS_KEM_alg_sike_p503; kem->alg_version = "https://github.com/Microsoft/PQC...
csosto-pk/liboqs
src/common/pqclean_shims/aes.h
<gh_stars>1-10 #ifndef AES_H #define AES_H #include <stdint.h> #include <stdlib.h> #include <oqs/aes.h> #define AES128_KEYBYTES 16 #define AES192_KEYBYTES 24 #define AES256_KEYBYTES 32 #define AESCTR_NONCEBYTES 12 #define AES_BLOCKBYTES 16 typedef void * aes128ctx; static void aes128_keyexp(aes128ctx *r, const uns...
csosto-pk/liboqs
VisualStudio/winconfig.h
<reponame>csosto-pk/liboqs<gh_stars>0 #ifndef __WINCONFIG_H #define __WINCONFIG_H /* Enable schemes supported on Windows */ #define OQS_ENABLE_KEM_frodokem_640_aes #define OQS_ENABLE_KEM_frodokem_640_shake /* #define OQS_ENABLE_KEM_frodokem_976_aes */ /* #define OQS_ENABLE_KEM_frodokem_976_shake */ /* #define OQS_ENAB...
csosto-pk/liboqs
src/sig/dilithium/sig_dilithium.h
<reponame>csosto-pk/liboqs #ifndef __OQS_SIG_DILITHIUM_H #define __OQS_SIG_DILITHIUM_H #include <oqs/oqs.h> #ifdef OQS_ENABLE_SIG_DILITHIUM_2 #define OQS_SIG_DILITHIUM_2_length_public_key 1184 #define OQS_SIG_DILITHIUM_2_length_secret_key 2800 #define OQS_SIG_DILITHIUM_2_length_signature 2044 OQS_SIG *OQS_SIG_DILITH...
csosto-pk/liboqs
src/kem/kyber/win_kyber768.c
<reponame>csosto-pk/liboqs /* Kyber768 compilation file for Windows */ #include "pqclean_kyber768_clean/cbd.c" #include "pqclean_kyber768_clean/indcpa.c" #include "pqclean_kyber768_clean/kem.c" #include "pqclean_kyber768_clean/ntt.c" #include "pqclean_kyber768_clean/poly.c" #include "pqclean_kyber768_clean/polyvec.c" ...
csosto-pk/liboqs
src/kem/frodokem/kem_frodokem1344aes.c
<reponame>csosto-pk/liboqs<gh_stars>0 #include <stdlib.h> #include <oqs/kem_frodokem.h> #ifdef OQS_ENABLE_KEM_frodokem_1344_aes OQS_KEM *OQS_KEM_frodokem_1344_aes_new() { OQS_KEM *kem = malloc(sizeof(OQS_KEM)); if (kem == NULL) { return NULL; } kem->method_name = OQS_KEM_alg_frodokem_1344_aes; kem->alg_versi...
csosto-pk/liboqs
src/kem/kyber/kem_kyber.c
#include <stdio.h> #include <stdlib.h> #include <oqs/kem_kyber.h> #ifdef OQS_ENABLE_KEM_kyber_512_cca_kem OQS_KEM *OQS_KEM_kyber_512_cca_kem_new() { OQS_KEM *kem = malloc(sizeof(OQS_KEM)); if (kem == NULL) { return NULL; } kem->method_name = OQS_KEM_alg_kyber_512_cca_kem; kem->alg_version = "https://github.c...
csosto-pk/liboqs
src/common/pqclean_shims/fips202.h
#ifndef FIPS202_H #define FIPS202_H #include <oqs/sha3.h> #define SHAKE128_RATE OQS_SHA3_SHAKE128_RATE #define SHAKE256_RATE OQS_SHA3_SHAKE256_RATE #define SHA3_256_RATE OQS_SHA3_SHA3_256_RATE #define SHA3_512_RATE OQS_SHA3_SHA3_512_RATE #define shake128_absorb OQS_SHA3_shake128_absorb #define shake128_squeezeblocks...
csosto-pk/liboqs
src/sig/dilithium/sig_dilithium.c
#include <stdlib.h> #include <oqs/sig_dilithium.h> #ifdef OQS_ENABLE_SIG_DILITHIUM_2 OQS_SIG *OQS_SIG_DILITHIUM_2_new() { OQS_SIG *sig = malloc(sizeof(OQS_SIG)); if (sig == NULL) { return NULL; } sig->method_name = OQS_SIG_alg_DILITHIUM_2; sig->alg_version = "https://github.com/PQClean/PQClean/commit/e56b2e...
csosto-pk/liboqs
src/sig/dilithium/external/dilithium2/clean/symmetric.c
#include "symmetric.h" #include "fips202.h" void PQCLEAN_DILITHIUM2_CLEAN_shake128_stream_init(uint64_t s_inc[25], const unsigned char seed[SEEDBYTES], uint16_t nonce) { unsigned int i; unsigned char buf[SEEDBYTES + 2]; for (i = 0; i < SEEDBYTES; ++i) { buf[i] = seed[i]; } ...
Gogicool-geek/ArduinoTaskManager
src/Collection.h
#ifndef COLLECTION_H #define COLLECTION_H template <class T, int MAX_COLLECTION_SIZE> class Collection { public: // начальные установки коллекции void begin(uint16_t size = MAX_COLLECTION_SIZE) { _size = (size < MAX_COLLECTION_SIZE) ? size : MAX_COLLECTION_SIZE; _index = 0; }; // п...
Gogicool-geek/ArduinoTaskManager
src/TaskManager.h
<reponame>Gogicool-geek/ArduinoTaskManager #ifndef TASK_MANAGER_H #define TASK_MANAGER_H #include <Arduino.h> #include "Collection.h" #define MEASURE_TASKS // флаг измерения временных характеритик задач #ifndef TASK_COUNT_MAX #define TASK_COUNT_MAX 10 // максимальное количество задач #endif #define TASK_NAME_LENGHT...
chenqianhe/HUST-Data-structure-experiment
1/subfunction.h
<filename>1/subfunction.h #include "def.h" //typedef int status; //typedef int ElemType; //数据元素类型定义 status InitList(SqList& L){ // 线性表L不存在,构造一个空的线性表,返回OK,否则返回INFEASIBLE。 if(!L.elem){ L.elem = (ElemType *)malloc( LIST_INIT_SIZE * sizeof (ElemType)); L.length=0; L.listsize=LIST_INIT_SIZE; return OK...
chenqianhe/HUST-Data-structure-experiment
3/op_for_binary_tree.h
status AddList(LISTS &Lists,char ListName[]){ Lists.elem[Lists.length].L=NULL; strcpy(Lists.elem[Lists.length].name,ListName); Lists.length++; if(Lists.elem[Lists.length-1].L==NULL){ return OK; }else{ return ERROR; } } status RemoveList(LISTS &Lists,char ListName[]){ for(int i=0;i<Lists...
OliveriQ/Fractals
src/newton/newton.h
#include <iostream> #include <fstream> #include <complex> #include <cmath> typedef std::complex<double> Complex; class Newton { public: Newton(); private: Complex roots[3]; const double MAX_ITER = 40; const double HEIGHT = 800; const double WIDTH = 800; std::ofstream fout{"output.ppm"...
OliveriQ/Fractals
src/tricorn/tricorn.h
<gh_stars>0 #include <iostream> #include <fstream> #include <complex> #include <cmath> typedef std::complex<double> Complex; class Tricorn { public: Tricorn(); private: const double MAX_ITER = 255; const double HEIGHT = 540; const double WIDTH = 960; std::ofstream fout{"output.ppm"}; int...
davemint/CurecoinSource
src/qt/curecoinaddressvalidator.h
<gh_stars>100-1000 #ifndef curecoinADDRESSVALIDATOR_H #define curecoinADDRESSVALIDATOR_H #include <QRegExpValidator> /** Base48 entry widget validator. Corrects near-miss characters and refuses characters that are no part of base48. */ class curecoinAddressValidator : public QValidator { Q_OBJECT public: ...
davemint/CurecoinSource
src/irc.h
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2013 The curecoin developer // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef curecoin_IRC_H #define curecoin_IRC_H void ThreadIRCSeed(void* parg); extern int nGotIR...
davemint/CurecoinSource
src/qt/qtipcserver.h
#ifndef QTIPCSERVER_H #define QTIPCSERVER_H // Define curecoin-Qt message queue name #define curecoinURI_QUEUE_NAME "curecoinURI" void ipcScanRelay(int argc, char *argv[]); void ipcInit(int argc, char *argv[]); #endif // QTIPCSERVER_H
jetanikalpesh/SupportClasses
Database/Database.h
// // Database.h // DatabaseConnectivity // // Created by <NAME> on 2/10/11. // Copyright 2011 __MyCompanyName__. All rights reserved. // #import <Foundation/Foundation.h> #import <sqlite3.h> #define kDatabaseName @"Database" #define kDatabaseExt @"sqlite" @interface Database : NSObject { sqlite3 *ObjDB; } @p...
George55555/topcoin3-dev
src/obj/build.h
// No build information available #define BUILD_DATE "2020-04-21 13:39:14 -0400"
George55555/topcoin3-dev
build/build.h
// No build information available #define BUILD_DATE "2016-04-21 13:12:44 +1200"
andoriyu/rust
src/grammar/tokens.h
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or ...
blackchena/ZFPlayer
ZFPlayer/Classes/Core/ZFPlayerMediaPlayback.h
<reponame>blackchena/ZFPlayer // // ZFMediaPlayback.h // ZFPlayer // // Copyright (c) 2016年 任子丰 ( http://github.com/renzifeng ) // // 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...
mah0x211/lua-execve
src/syscall.c
/** * Copyright (C) 2022 <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, publis...
Frewacom/dsblocks
blocks/kdeconnect.h
<gh_stars>1-10 void kdeconnectu(char *str, int sigval, BlockData *blockdata); void kdeconnectc(int button, BlockData *blockdata);
Frewacom/dsblocks
blocks/kblayout.h
<filename>blocks/kblayout.h void kblayoutu(char *str, int sigval, BlockData *blockdata); void kblayoutc(int button, BlockData *blockdata);
Frewacom/dsblocks
blocks/cputemp.h
<gh_stars>1-10 void cputempu(char *str, int sigval, BlockData *blockdata); void cputempc(int button, BlockData *blockdata);
Frewacom/dsblocks
shared.h
<gh_stars>1-10 #pragma once #include <limits.h> #include <X11/Xlib.h> #include <X11/Xresource.h> #include <mpd/client.h> #include <gio/gio.h> #define CMDLENGTH 50 #define NILL INT_MIN typedef struct { Display *dpy; char *batteryobj; char *reachableobj; struct m...
Frewacom/dsblocks
blocks/music.h
<filename>blocks/music.h void musicu(char *str, int sigval, BlockData *blockdata); void musicc(int button, BlockData *blockdata);
Frewacom/dsblocks
blocks/battery.h
<reponame>Frewacom/dsblocks void batteryu(char *str, int ac, BlockData *blockdata); void batteryc(int button, BlockData *blockdata);