repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
bobby-vandiver/reeltime-ios
ReelTime-iOS/UseCase/FollowUser/Presentation/RTFollowUserErrorCodeToErrorMessageMapping.h
#import <Foundation/Foundation.h> #import "RTErrorCodeToErrorMessageMapping.h" @interface RTFollowUserErrorCodeToErrorMessageMapping : NSObject <RTErrorCodeToErrorMessageMapping> @end
bobby-vandiver/reeltime-ios
ReelTime-iOS/UseCase/UploadVideo/Presentation/RTUploadVideoViewController.h
<reponame>bobby-vandiver/reeltime-ios #import <UIKit/UIKit.h> #import "RTUploadVideoView.h" #import "RTStoryboardViewController.h" @class RTUploadVideoPresenter; @interface RTUploadVideoViewController : UIViewController <RTUploadVideoView, RTStoryboardViewController> @property (weak, nonatomic) IBOutlet UITextField...
bobby-vandiver/reeltime-ios
ReelTime-iOSTests/Common/EXPMatchers+beError.h
<reponame>bobby-vandiver/reeltime-ios #import <Expecta/Expecta.h> EXPMatcherInterface(beError, (NSString *expectedDomain, NSInteger expectedCode)); #define beError beError
bobby-vandiver/reeltime-ios
ReelTime-iOS/UseCase/ChangePassword/Domain/RTChangePasswordInteractor.h
#import <Foundation/Foundation.h> @protocol RTChangePasswordInteractorDelegate; @class RTChangePasswordDataManager; @interface RTChangePasswordInteractor : NSObject - (instancetype)initWithDelegate:(id<RTChangePasswordInteractorDelegate>)delegate dataManager:(RTChangePasswordDataManager *)dataMa...
bobby-vandiver/reeltime-ios
ReelTime-iOS/Common/Model/RTAccountRegistration.h
<reponame>bobby-vandiver/reeltime-ios #import <Foundation/Foundation.h> @interface RTAccountRegistration : NSObject @property (nonatomic, readonly, copy) NSString *username; @property (nonatomic, readonly, copy) NSString *password; @property (nonatomic, readonly, copy) NSString *confirmationPassword; @property (nonat...
bobby-vandiver/reeltime-ios
ReelTime-iOS/UseCase/DeleteVideo/Domain/RTDeleteVideoError.h
#import <Foundation/Foundation.h> extern NSString *const RTDeleteVideoErrorDomain; typedef NS_ENUM(NSInteger, RTDeleteVideoError) { RTDeleteVideoErrorVideoNotFound, RTDeleteVideoErrorUnauthorized, RTDeleteVideoErrorUnknownError };
bobby-vandiver/reeltime-ios
ReelTime-iOS/Common/Presentation/RTFieldValidationErrorView.h
<reponame>bobby-vandiver/reeltime-ios #import <Foundation/Foundation.h> @protocol RTFieldValidationErrorView <NSObject> - (void)showValidationErrorMessage:(NSString *)message forField:(NSInteger)field; @end
bobby-vandiver/reeltime-ios
ReelTime-iOS/UseCase/UploadVideo/Domain/RTUploadVideoError.h
<reponame>bobby-vandiver/reeltime-ios<gh_stars>0 #import <Foundation/Foundation.h> extern NSString *const RTUploadVideoErrorDomain; typedef NS_ENUM(NSInteger, RTUploadVideoError) { RTUploadVideoErrorMissingReelName, RTUploadVideoErrorMissingThumbnail, RTUploadVideoErrorMissingVideo, RTUploadVideoError...
bobby-vandiver/reeltime-ios
ReelTime-iOS/Common/Client/Factory/RTRestAPIMappingFactory.h
<reponame>bobby-vandiver/reeltime-ios #import <Foundation/Foundation.h> #import <RestKit/RestKit.h> @interface RTRestAPIMappingFactory : NSObject + (RKMapping *)tokenMapping; + (RKMapping *)tokenErrorMapping; + (RKMapping *)serverErrorsMapping; + (RKMapping *)clientCredentialsMapping; + (RKMapping *)clientMapping...
bobby-vandiver/reeltime-ios
ReelTime-iOS/Common/Presentation/RTUserDescriptionView.h
<filename>ReelTime-iOS/Common/Presentation/RTUserDescriptionView.h #import <Foundation/Foundation.h> @class RTUserDescription; @protocol RTUserDescriptionView <NSObject> - (void)showUserDescription:(RTUserDescription *)description; @end
bobby-vandiver/reeltime-ios
ReelTime-iOS/Common/Application/RTApplicationWindowHandle.h
<gh_stars>0 #import <UIKit/UIKit.h> @interface RTApplicationWindowHandle : NSObject @property (readonly) UIWindow *window; @end
bobby-vandiver/reeltime-ios
ReelTime-iOS/UseCase/BrowseAll/Persistence/RTBrowseAllVideosDataManagerDelegate.h
<reponame>bobby-vandiver/reeltime-ios<filename>ReelTime-iOS/UseCase/BrowseAll/Persistence/RTBrowseAllVideosDataManagerDelegate.h #import <Foundation/Foundation.h> #import "RTBrowseVideosDataManagerDelegate.h" @interface RTBrowseAllVideosDataManagerDelegate : NSObject <RTBrowseVideosDataManagerDelegate> @end
bobby-vandiver/reeltime-ios
ReelTime-iOS/UseCase/RemoveVideoFromReel/Presentation/RTRemoveVideoFromReelPresenter.h
<reponame>bobby-vandiver/reeltime-ios #import <Foundation/Foundation.h> #import "RTRemoveVideoFromReelInteractorDelegate.h" #import "RTErrorCodeToErrorMessagePresenterDelelgate.h" @protocol RTRemoveVideoFromReelView; @class RTRemoveVideoFromReelInteractor; @interface RTRemoveVideoFromReelPresenter : NSObject <RTRemo...
bobby-vandiver/reeltime-ios
ReelTime-iOS/Common/Client/RTEndpointPathFormatter.h
<reponame>bobby-vandiver/reeltime-ios #import <Foundation/Foundation.h> @interface RTEndpointPathFormatter : NSObject - (NSString *)formatPath:(NSString *)path withClientId:(NSString *)clientId; - (NSString *)formatPath:(NSString *)path withUsername:(NSString *)username; - (NSString *)format...
bobby-vandiver/reeltime-ios
ReelTime-iOS/Common/Service/RTCurrentUserService.h
#import <Foundation/Foundation.h> @class RTClientCredentials; @class RTOAuth2Token; @class RTCurrentUserStore; @class RTClientCredentialsStore; @class RTOAuth2TokenStore; @interface RTCurrentUserService : NSObject - (instancetype)initWithCurrentUserStore:(RTCurrentUserStore *)currentUserStore clie...
bobby-vandiver/reeltime-ios
ReelTime-iOSTests/Common/EXPMatchers+beReel.h
#import <Expecta/Expecta.h> EXPMatcherInterface(beReel, (NSNumber *expectedReelId, NSString *expectedName, NSNumber *expectedAudienceSize, NSNumber *expectedNumberOfVideos, NSNumber *expectedCurrentUserIsAnAudienceMember)); #define beReel beReel
bobby-vandiver/reeltime-ios
ReelTime-iOS/UseCase/BrowseUserFollowers/Assembly/RTBrowseUserFollowersViewControllerFactory.h
<gh_stars>0 #import <Foundation/Foundation.h> @class RTBrowseUserFollowersViewController; @protocol RTBrowseUserFollowersViewControllerFactory <NSObject> - (RTBrowseUserFollowersViewController *)browseUserFollowersViewControllerForUsername:(NSString *)username; @end
bobby-vandiver/reeltime-ios
ReelTime-iOS/UseCase/PagedList/Presentation/RTPagedListPresenter.h
#import <Foundation/Foundation.h> #import "RTPagedListInteractorDelegate.h" @protocol RTPagedListPresenterDelegate; @class RTPagedListInteractor; typedef void (^RefreshCompletedCallback)(); @interface RTPagedListPresenter : NSObject <RTPagedListInteractorDelegate> // TODO: If the need to expose more access to the ...
dflatline/ktrw
ktrw_kext_loader/kernel_call/kernel_call_parameters.c
// // Project: KTRW // Author: <NAME> <<EMAIL>> // // Copyright 2019 Google LLC // // 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 // //...
dflatline/ktrw
ktrw_kext_loader/ktrr/ktrr_bypass_parameters.c
// // Project: KTRW // Author: <NAME> <<EMAIL>> // // Copyright 2019 Google LLC // // 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 // //...
Qiaojuncheng/Repository
singdemo/singdemo/SimpleView/ImagCode/QJCCodeSmallView.h
// // QJCCodeView.h // singdemo // // Created by MYMAc on 2018/7/18. // Copyright © 2018年 ShangYu. All rights reserved. // #import <UIKit/UIKit.h> @interface QJCCodeSmallView : UIView @property (copy ,nonatomic) NSString * CodeStr;// 图形验证码显示的文字 @end
Qiaojuncheng/Repository
singdemo/singdemo/categorykit/UIView+XPKit.h
<filename>singdemo/singdemo/categorykit/UIView+XPKit.h // // UIView+XPKit.h // XPKit // // The MIT License (MIT) // // Copyright (c) 2014 - 2015 <NAME>. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (t...
Qiaojuncheng/Repository
singdemo/singdemo/SimpleView/Base/FirstComeView/GuideViewController.h
<filename>singdemo/singdemo/SimpleView/Base/FirstComeView/GuideViewController.h<gh_stars>0 // // GuideViewController.h // XuanMiLaywer // // Created by MYMAc on 15/7/30. // Copyright (c) 2015年 zhiyou. All rights reserved. // #import <UIKit/UIKit.h> @interface GuideViewController : UIViewController @end
Qiaojuncheng/Repository
singdemo/OrderDetailViewController.h
// // OrderDetailViewController.h // GuKe // // Created by MYMAc on 2018/8/8. // Copyright © 2018年 shangyukeji. All rights reserved. // #import "QJCBaseViewController.h" typedef void (^ realoadDataBlock)(void); @interface OrderDetailViewController : QJCBaseViewController @property (strong ,nonatomic) NSString * ur...
Qiaojuncheng/Repository
singdemo/singdemo/thirdTool/QJCRequestManager.h
<gh_stars>0 // // ZJNNetWorking.h // OfficeAutomationSystem // // Created by 朱佳男 on 2016/10/26. // Copyright © 2016年 ShangYuKeJi. All rights reserved. // #import <Foundation/Foundation.h> #import "AFNetworking.h" @interface QJCRequestManager : NSObject //宏定义请求成功block 回调成功后得到的信息 typedef void (^HttpSuccess)(id data)...
Qiaojuncheng/Repository
singdemo/singdemo/orderViewController.h
// // orderViewController.h // singdemo // // Created by MYMAc on 2018/8/6. // Copyright © 2018年 ShangYu. All rights reserved. // #import <UIKit/UIKit.h> @interface orderViewController : UIViewController @property (copy, nonatomic) NSString * statc; @end
Qiaojuncheng/Repository
singdemo/singdemo/thirdTool/UIViewController+HUD.h
<filename>singdemo/singdemo/thirdTool/UIViewController+HUD.h // // UIViewController+HUD.h // XuanMiLaywer // // Created by MAC on 14-9-23. // Copyright (c) 2014年 许鹏. All rights reserved. // #import <UIKit/UIKit.h> @interface UIViewController (HUD) - (void)showHudInView:(UIView *)view hint:(NSString *)hint; - (v...
Qiaojuncheng/Repository
singdemo/singdemo/SimpleView/ImagCode/QJCCodeView.h
// // QJCCodeView.h // singdemo // // Created by MYMAc on 2018/7/18. // Copyright © 2018年 ShangYu. All rights reserved. // #import <UIKit/UIKit.h> typedef void (^VlaueBlock) (NSString * token ,NSString *code_name ,NSString * code_value); @interface QJCCodeView : UIView <UITextFieldDelegate> @property(copy , nonato...
Qiaojuncheng/Repository
singdemo/singdemo/SimpleView/Base/ZLAdvert/ZLAdManage.h
// // ZLAdManage.h // ZLAdvertDemo // // Created by MYMAc on 2018/7/23. // Copyright © 2018年 YSMX. All rights reserved. // #import <Foundation/Foundation.h> @interface ZLAdManage : NSObject -(void )ShowAdView; @end
Qiaojuncheng/Repository
singdemo/singdemo/QJCOrderModel.h
<filename>singdemo/singdemo/QJCOrderModel.h // // QJCOrderModel.h // singdemo // // Created by MYMAc on 2018/8/6. // Copyright © 2018年 ShangYu. All rights reserved. // #import <Foundation/Foundation.h> @interface QJCOrderModel : NSObject /** userList会议报名人列表(orderUserName姓名,orderUserPhone手机号,orderCode验证码,giveSa...
Qiaojuncheng/Repository
singdemo/singdemo/SimpleView/LoopBanner/YSLoopBanner.h
<filename>singdemo/singdemo/SimpleView/LoopBanner/YSLoopBanner.h // // YSLoopBanner.h // TestLoopScrollView // // Created by zys on 2016/10/13. // Copyright © 2016年 张永帅. All rights reserved. // /** * Infinite loop banner:only use three imageViews */ #import <UIKit/UIKit.h> @interface YSLoopBanner : UIView ...
Qiaojuncheng/Repository
singdemo/singdemo/categorykit/NSString+XPKit.h
// // NSString+XPKit.h // XPKit // // The MIT License (MIT) // // Copyright (c) 2014 - 2015 <NAME>. All rights reserved. // // 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 r...
Qiaojuncheng/Repository
singdemo/singdemo/SimpleView/TagsFrame/QJCItemsScrollerView.h
// // QJCItemsScrollerView.h // singdemo // // Created by MYMAc on 2018/7/30. // Copyright © 2018年 ShangYu. All rights reserved. // #import <UIKit/UIKit.h> #import "TagsFrame.h" @interface QJCItemsScrollerView : UIScrollView // 其他属性在 tagframe 里面设置 /** 标签名字数组 先设置 Tagframe.oneLine 是否多行显示*/ @property (nonatomic, st...
Qiaojuncheng/Repository
singdemo/singdemo/SimpleView/Base/QJCBaseViewController.h
// // QJCBaseViewController.h // singdemo // // Created by MYMAc on 2018/7/21. // Copyright © 2018年 ShangYu. All rights reserved. // #import <UIKit/UIKit.h> @class Model; @interface QJCBaseViewController : UIViewController @property (copy, nonatomic) NSString * showType; // 根据type 显示不同的内容 @end @interface Mod...
Qiaojuncheng/Repository
singdemo/singdemo/SimpleView/MiddleItemView.h
// // MiddleItemView.h // singdemo // // Created by MYMAc on 2018/7/31. // Copyright © 2018年 ShangYu. All rights reserved. // #import <UIKit/UIKit.h> typedef void (^selectBlock) (NSInteger index); @interface MiddleItemView : UIView @property (copy , nonatomic ) selectBlock selectItem; @property (strong , nonatomi...
Qiaojuncheng/Repository
singdemo/singdemo/SimpleView/Base/QJCNavigationViewController.h
<reponame>Qiaojuncheng/Repository // // QJCNavigationViewController.h // singdemo // // Created by MYMAc on 2018/7/21. // Copyright © 2018年 ShangYu. All rights reserved. // #import <UIKit/UIKit.h> @interface QJCNavigationViewController : UINavigationController @end
Qiaojuncheng/Repository
singdemo/singdemo/SimpleView/TagsFrame/TagsFrame.h
// // TagsFrame.h // singdemo // // Created by MYMAc on 2018/7/30. // Copyright © 2018年 ShangYu. All rights reserved. // //标签frame封装 #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #define WIDTH [UIScreen mainScreen].bounds.size.width #define HEIGHT [UIScreen mainScreen].bounds.size.height #define Tags...
Qiaojuncheng/Repository
singdemo/singdemo/SimpleView/shopping/QJCShoppingList.h
<filename>singdemo/singdemo/SimpleView/shopping/QJCShoppingList.h // // QJCShoppingCar.h // singdemo // // Created by MYMAc on 2018/8/1. // Copyright © 2018年 ShangYu. All rights reserved. // #import <UIKit/UIKit.h> @interface QJCShoppingList : UIViewController @end
Qiaojuncheng/Repository
singdemo/singdemo/SimpleView/shopping/QJCShoppingtabbar.h
<reponame>Qiaojuncheng/Repository<gh_stars>0 // // QJCShoppingtabbar.h // singdemo // // Created by MYMAc on 2018/8/1. // Copyright © 2018年 ShangYu. All rights reserved. // #import <UIKit/UIKit.h> @interface QJCShoppingtabbar : UITabBarController @end
Qiaojuncheng/Repository
singdemo/singdemo/SimpleView/shopping/QJCshoppingOrder.h
<filename>singdemo/singdemo/SimpleView/shopping/QJCshoppingOrder.h // // QJCshoppingOrder.h // singdemo // // Created by MYMAc on 2018/8/1. // Copyright © 2018年 ShangYu. All rights reserved. // #import <UIKit/UIKit.h> @interface QJCshoppingOrder : UIViewController @end
Qiaojuncheng/Repository
singdemo/singdemo/categorykit/UIColor+XPKit.h
<filename>singdemo/singdemo/categorykit/UIColor+XPKit.h // // UIColor+XPKit.h // XPKit // // The MIT License (MIT) // // Copyright (c) 2014 - 2015 <NAME>. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files ...
Qiaojuncheng/Repository
singdemo/singdemo/SimpleView/Base/QJCTabBarController.h
<filename>singdemo/singdemo/SimpleView/Base/QJCTabBarController.h // // QJCTabBarController.h // singdemo // // Created by MYMAc on 2018/7/21. // Copyright © 2018年 ShangYu. All rights reserved. // #import <UIKit/UIKit.h> @interface QJCTabBarController : UITabBarController @end
Qiaojuncheng/Repository
singdemo/QjcHeader.h
<reponame>Qiaojuncheng/Repository // // QjcHeader.h // singdemo // // Created by MYMAc on 2018/7/20. // Copyright © 2018年 ShangYu. All rights reserved. // #ifndef QjcHeader_h #define QjcHeader_h #define RequestUrl @"http://dakawl.com/" #define GetImageCode @"app/login/getCode" #pragma mark 尺寸适配 #defin...
Qiaojuncheng/Repository
singdemo/singdemo/tempViewController.h
// // tempViewController.h // singdemo // // Created by MYMAc on 2018/8/6. // Copyright © 2018年 ShangYu. All rights reserved. // #import <UIKit/UIKit.h> @interface tempViewController : UIViewController @end
Qiaojuncheng/Repository
singdemo/singdemo/QJCOrdercell.h
// // QJCOrdercell.h // singdemo // // Created by MYMAc on 2018/8/6. // Copyright © 2018年 ShangYu. All rights reserved. // #import <UIKit/UIKit.h> #import "QJCOrderModel.h" #import "QJCOrderListmodel.h" @interface QJCOrdercell : UITableViewCell @property (strong ,nonatomic) QJCOrderListmodel * modle; @property (...
Qiaojuncheng/Repository
singdemo/singdemo/SimpleView/XYTableViewNoDataView/XYNoDataView.h
<reponame>Qiaojuncheng/Repository<filename>singdemo/singdemo/SimpleView/XYTableViewNoDataView/XYNoDataView.h // // XYNoDataView.h // XYTableViewNoDataViewDemo // // Created by on 2017/11/3. // Copyright © 2017年 . All rights reserved. // #import <UIKit/UIKit.h> extern NSString * const kXYNoDataViewObserveKeyPat...
Qiaojuncheng/Repository
singdemo/singdemo/QJCOrderListmodel.h
<filename>singdemo/singdemo/QJCOrderListmodel.h // // QJCOrderListmodel.h // singdemo // // Created by MYMAc on 2018/8/6. // Copyright © 2018年 ShangYu. All rights reserved. // #import <Foundation/Foundation.h> @interface QJCOrderListmodel : NSObject /** meetPrice = 0; meetSite = "fs\U6c34\U7535\U8d39\U7b2c\U4e0...
peanutfanqie/DIY_projects_base_on_RT-Thread
DIY1/Second_week_mission/RECEIVE(stm32l475-atk-pandora)/applications/main.c
/* * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2018-11-06 SummerGift first version * 2019-07-23 WillianChan DIY Demo2(Second week mission) */ #include <rtthread.h> #include <rtdevice.h> #include...
vishalbelsare/DeepSpeed
csrc/includes/simd.h
#pragma once #if (__x86_64__ || __i386__) #include <cpuid.h> #include <x86intrin.h> #endif #define TILE (128 * 1024 * 1024) #if defined(__AVX512__) or defined(__AVX256__) #define ROUND_DOWN(size, step) ((size) & ~((step)-1)) #if defined(__AVX512__) #define SIMD_STORE(a, d) _mm512_storeu_ps(a, d) #defi...
optiz0r/harvest
cmd/tools/daemonize/daemonize.c
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> #include <sys/stat.h> #include <syslog.h> #include <errno.h> /* Executes command as a daemon process. Unlike what is done usually (two forks and exit), we perform execv after second fork, such that the daemon...
enomis101/vk_raytracing_tutorial_KHR
ray_tracing__advance/hello_vulkan.h
/* * Copyright (c) 2014-2021, NVIDIA CORPORATION. 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 ...
gridgentoo/cuda
c_src/utils.h
#ifndef __UTILS_H__ #define __UTILS_H__ inline int SMVer2Cores(int major, int minor) { // Defines for GPU Architecture types (using the SM version to determine the # of cores per SM typedef struct { int SM; // 0xMm (hexidecimal notation), M = SM Major version, and m = SM minor version int Cores; } SM2Cor...
gridgentoo/cuda
c_src/driver_port.h
#ifndef __DRIVER_PORT_H__ #define __DRIVER_PORT_H__ #include "erlang_port.h" class DriverPort: public ErlangPort { private: Driver *driver = NULL; template <typename T> T Unpack(ETERM *term); protected: virtual ETERM *HandleTermFunction(std::string name, ETERM *arg); virtual ETERM *HandleRawFunction(std::str...
gridgentoo/cuda
c_src/erlang_port.h
<filename>c_src/erlang_port.h #ifndef __ERLANG_PORT_H__ #define __ERLANG_PORT_H__ #include <iostream> #include <algorithm> #include <map> #include <memory> #include <ext/stdio_filebuf.h> #include "common.h" #include "driver.h" #define PORTIN_FILENO 3 #define PORTOUT_FILENO 4 #define MEMORY_LOAD 1 typedef std::sha...
gridgentoo/cuda
c_src/common.h
<reponame>gridgentoo/cuda #ifndef __COMMON_H__ #define __COMMON_H__ #include <stdio.h> #include <string> #include <list> #include <map> #include <cstring> #if GPU_DEBUG > 0 #include <iostream> #endif extern "C" { #include "erl_interface.h" #include "ei.h" } #include "cuda.h" #include "cuda_runtime.h" #define...
gridgentoo/cuda
c_src/commands.h
#ifndef __COMMANDS_H__ #define __COMMANDS_H__ #include <vector> #include <memory> #include "common.h" #include "driver.h" namespace Commands { class Events { public: Events() { DEBUG("Events created"); } ~Events(); CUevent Get(std::string name); private: std::map<std::string, CUevent> events; }; struct Con...
gridgentoo/cuda
c_src/runtime_port.h
#ifndef __RUNTIME_PORT_H__ #define __RUNTIME_PORT_H__ #include "erlang_port.h" class RuntimePort: public ErlangPort { protected: virtual ETERM *HandleTermFunction(std::string name, ETERM *arg); virtual ETERM *HandleRawFunction(std::string name, RawData &data, size_t size); ETERM *Info(ETERM *arg); public: Ru...
gridgentoo/cuda
c_src/driver.h
#ifndef __DRIVER_H__ #define __DRIVER_H__ #include <vector> #include <memory> #include "common.h" #define LINKER_BUFFER_SIZE 8192 struct LinkerOptions { int maxRegisters; int threadsPerBlock; int optimizationLevel; int target; int debug; int verbose; int infoSize; int errorSize; }; class Linker { p...
Durpies/AISBCascadeEffect
RobotC/Main.c
<gh_stars>0 #pragma config(Hubs, S1, HTMotor, none, none, none) #pragma config(Hubs, S2, HTMotor, HTServo, none, none) #pragma config(Sensor, S1, , sensorI2CMuxController) #pragma config(Sensor, S2, , sensorI2CMuxController) #pragma config(Motor, mtr_S1_C1_1, MD...
baresip/baresip
test/call.c
<reponame>baresip/baresip<filename>test/call.c<gh_stars>100-1000 /** * @file test/call.c Baresip selftest -- call * * Copyright (C) 2010 - 2015 <NAME> */ #include <string.h> #include <stdlib.h> #include <re.h> #include <rem.h> #include <baresip.h> #include "test.h" #include "../src/core.h" /* NOTE: temp */ #def...
baresip/baresip
src/core.h
<filename>src/core.h<gh_stars>100-1000 /** * @file core.h Internal API * * Copyright (C) 2010 <NAME> */ #include <limits.h> /* max bytes in pathname */ #if defined (PATH_MAX) #define FS_PATH_MAX PATH_MAX #elif defined (_POSIX_PATH_MAX) #define FS_PATH_MAX _POSIX_PATH_MAX #else #define FS_PATH_MAX 512 #endif ...
jhector/ihv
db.h
#pragma once #include <stdint.h> #include <cstdlib> #include <map> typedef unsigned int snapshot_t; namespace snapshot_reason { enum type_t{ MALLOC = 1, FREE, CALLOC, REALLOC, MEM_WRITE }; }; class Database{ public: Database() {}; ~Database() {}; // Write snapshot, returns the id of ...
jhector/ihv
mysql.h
<gh_stars>1-10 #pragma once #include "db.h" #include <mysql/mysql.h> class MySQL: public Database{ private: MYSQL *db_; MYSQL_STMT *add_snapshot_; MYSQL_STMT *add_reason_malloc_; MYSQL_STMT *add_reason_free_; MYSQL_STMT *add_reason_calloc_; MYSQL_STMT *add_reason_rea...
wenbella/SIGIR18
OfflineIndexing/Hop-2_labeling_undirected/io_udu_r.h
<filename>OfflineIndexing/Hop-2_labeling_undirected/io_udu_r.h<gh_stars>1-10 #include <cstdio> #include <cstring> #include <algorithm> #include <vector> #include <map> #include <sys/time.h> #include <iostream> using namespace std; #define show(x) cout<<#x<<" "<<(x)<<endl //typedef signed char wtype; typedef int wtyp...
wenbella/SIGIR18
OnlineRouteSearch/Index.h
/** Author: <NAME> Description: The Index.h and Index.cpp files are mainly for loading inputs, building offline indices, and retrieving query related subindices and POI candidates in the online phase. **/ #ifndef INDEX_H_INCLUDED #define INDEX_H_INCLUDED #ifdef _MSC_VER #define _CRT_SECURE_NO_WARNINGS #endif #inclu...
wenbella/SIGIR18
OnlineRouteSearch/RouteSearch.h
/** Author: <NAME> Description: The RouteSearch.h and RouteSearch.cpp files are for implementing the route search algorithms, including PACER, PACER_SC and Greedy. **/ #ifndef ROUTESEARCH_H_INCLUDED #define ROUTESEARCH_H_INCLUDED #include <iostream> #include <fstream> #include <string> #include <sys/time.h> #include ...
AdrianoKF/saleae-ppm-analyzer
source/PPMConstants.h
#ifndef PPM_CONSTANTS_H #define PPM_CONSTANTS_H #include <LogicPublicTypes.h> const U16 MAX_PPM_CHANNELS = 8; const U16 PRE_PULSE_TIME = 400; const U16 MIN_FRAME_GAP = 2700; const U16 MIN_CHANNEL_TIME = 900; const U16 MAX_CHANNEL_TIME = 2100; const U16 CENTER_TIME = (MIN_CHANNEL_TIME + MAX_CHANNEL_TIME) / 2; const U1...
AdrianoKF/saleae-ppm-analyzer
source/PPMAnalyzerSettings.h
<reponame>AdrianoKF/saleae-ppm-analyzer<gh_stars>1-10 #ifndef PPM_ANALYZER_SETTINGS #define PPM_ANALYZER_SETTINGS #include <AnalyzerSettings.h> #include <AnalyzerTypes.h> class PPMAnalyzerSettings : public AnalyzerSettings { public: PPMAnalyzerSettings(); virtual ~PPMAnalyzerSettings(); virtual bool SetSettingsFr...
AdrianoKF/saleae-ppm-analyzer
source/PPMSimulationDataGenerator.h
#ifndef PPM_SIMULATION_DATA_GENERATOR #define PPM_SIMULATION_DATA_GENERATOR #include <SimulationChannelDescriptor.h> #include <random> class PPMAnalyzerSettings; class PPMSimulationDataGenerator { public: PPMSimulationDataGenerator(); ~PPMSimulationDataGenerator(); void Initialize( U32 simulation_sample_rate, PPM...
tinrael/banking-system
bank/BankDatabase.h
<reponame>tinrael/banking-system<filename>bank/BankDatabase.h #ifndef BANKDATABASE_H_INCLUDED #define BANKDATABASE_H_INCLUDED #include <stdio.h> #include <stdbool.h> struct tCustomer { int id; char firstName[64]; char lastName[64]; }; struct tCustomerContainer { bool isDeleted; // identify if the rec...
tinrael/banking-system
bank/BankDatabase.c
<gh_stars>0 #include "BankDatabase.h" #include "DoublyLinkedList.h" #include "Stack.h" #include <stdlib.h> FILE* indexesFile = NULL; FILE* customersFile = NULL; FILE* customersEmptyBlocksFile = NULL; FILE* accountsFile = NULL; FILE* accountsEmptyBlocksFile = NULL; const char indexesFilename[] = "customers.ind"; const...
tinrael/banking-system
bank/DoublyLinkedList.h
#ifndef DOUBLYLINKEDLIST_H_INCLUDED #define DOUBLYLINKEDLIST_H_INCLUDED #include "BankDatabase.h" typedef struct tagNode { struct tIndex index; struct tagNode* next; struct tagNode* prev; } tNode; // inserts an element to the beginning void addToBeginning(tNode** head, struct tIndex index); /* inserts ...
tinrael/banking-system
bank/main.c
<reponame>tinrael/banking-system<filename>bank/main.c<gh_stars>0 #include "BankDatabase.h" #include <stdio.h> int main() { int status = initialize(0); if (status == -1) { fprintf(stderr, "The initial setup of the database is failed.\n"); return -1; } printf("-1 - exit\n"); printf("...
tinrael/banking-system
bank/Stack.c
#include "Stack.h" #include <stdlib.h> #include <stdio.h> void push(tElement** top, long int address) { tElement* newOne = (tElement*) malloc(sizeof(tElement)); newOne->address = address; newOne->next = *top; *top = newOne; } long int pop(tElement** top) { long int address = (*top)->address; ...
tinrael/banking-system
bank/Stack.h
<filename>bank/Stack.h #ifndef STACK_H_INCLUDED #define STACK_H_INCLUDED #include <stdbool.h> typedef struct tagElement { long int address; struct tagElement* next; } tElement; // inserts an element at the top void push(tElement** top, long int address); /* Returns the top element and free the memory, occu...
tinrael/banking-system
bank/DoublyLinkedList.c
<filename>bank/DoublyLinkedList.c #include "DoublyLinkedList.h" #include <stdlib.h> void addToBeginning(tNode** head, struct tIndex index) { tNode* newOne = (tNode*) malloc(sizeof(tNode)); newOne->index = index; newOne->next = *head; newOne->prev = NULL; if ((*head) != NULL) { (*head)->pr...
garritfra/crackme-challanges
challenges/reverse-engineering/password-lock/C/login.c
#include <stdio.h> #include <strings.h> const char *cipher(char *str[], int offset) { char *ret = malloc(strlen(str)); for (int i = 0; i < strlen(ret); i++) { ret[i] = str[i] + offset; } return ret; } int main(int argc, char *argv[]) { if (argc != 2) { printf("Usage: %s <password>\n", argv[0])...
GuavTek/MCP2517_ATSAMD_driver
SPI.h
<gh_stars>0 /* * SPI.h * * Created: 01/07/2021 17:50:40 * Author: GuavTek */ #ifndef SPI_H_ #define SPI_H_ #include <sam.h> #include "conf_board.h" #include <port.h> #include <interrupt.h> struct spi_config_t { uint8_t sercomNum; uint8_t dipoVal; uint8_t dopoVal; uint64_t speed; uint8_t pin_cs; uint32...
GuavTek/MCP2517_ATSAMD_driver
MCP2517.h
/* * MCP2517.h * * Created: 01/07/2021 17:36:38 * Author: GuavTek */ #ifndef MCP2517_H_ #define MCP2517_H_ #include "SPI.h" enum class MCP2517_INSTR_E { Reset = 0b0000, Read = 0b0011, Write = 0b0010, Read_CRC = 0b1011, Write_CRC = 0b1010, Write_Safe = 0b1100 }; enum class MCP2517_ICODE_E { ...
raftario/progress.h
progress.h
// https://github.com/raftario/progress.h #include <string.h> #include <stdio.h> /// current: Current progress value /// max: Maximum progress value /// formatL Format string /// left: Character to use as the left progress delimiter /// fill: Character to use to represent completed progress /// head: Ch...
raftario/progress.h
example.c
<gh_stars>1-10 #include <stdlib.h> #include <time.h> #ifdef _WIN32 #include <Windows.h> #else #include <unistd.h> #endif #include "progress.h" // Sleep for n milliseconds, OS independant void cross_sleep(unsigned int delay) { #ifdef _WIN32 Sleep(delay); #else usleep(delay * 1000); #endif } void p...
Dean-Coakley/unit
src/nxt_clone.h
<reponame>Dean-Coakley/unit /* * Copyright (C) <NAME> * Copyright (C) NGINX, Inc. */ #ifndef _NXT_CLONE_INCLUDED_ #define _NXT_CLONE_INCLUDED_ #if (NXT_HAVE_CLONE_NEWUSER) typedef struct { nxt_int_t container; nxt_int_t host; nxt_int_t size; } nxt...
Dean-Coakley/unit
src/nxt_unit.h
<filename>src/nxt_unit.h /* * Copyright (C) NGINX, Inc. */ #ifndef _NXT_UNIT_H_INCLUDED_ #define _NXT_UNIT_H_INCLUDED_ #include <inttypes.h> #include <sys/types.h> #include <sys/uio.h> #include <string.h> #include "nxt_version.h" #include "nxt_unit_typedefs.h" enum { NXT_UNIT_OK = 0, NXT_UNIT_...
Dean-Coakley/unit
src/nxt_http_websocket.c
<filename>src/nxt_http_websocket.c /* * Copyright (C) NGINX, Inc. */ #include <nxt_main.h> #include <nxt_router.h> #include <nxt_http.h> #include <nxt_router_request.h> #include <nxt_port_memory_int.h> #include <nxt_websocket.h> #include <nxt_websocket_header.h> static void nxt_http_websocket_client(nxt_task_t *t...
Dean-Coakley/unit
src/nxt_kqueue_engine.c
<filename>src/nxt_kqueue_engine.c /* * Copyright (C) <NAME> * Copyright (C) NGINX, Inc. */ #include <nxt_main.h> /* * kqueue() has been introduced in FreeBSD 4.1 and then was ported * to OpenBSD 2.9, MacOSX 10.3 (Panther), and NetBSD 2.0. * DragonFlyBSD inherited it with FreeB...
Dean-Coakley/unit
src/nxt_router_request.h
<filename>src/nxt_router_request.h<gh_stars>0 /* * Copyright (C) NGINX, Inc. */ #ifndef _NXT_ROUTER_REQUEST_H_INCLUDED_ #define _NXT_ROUTER_REQUEST_H_INCLUDED_ typedef struct nxt_msg_info_s { nxt_buf_t *buf; nxt_port_mmap_tracking_t tracking; nxt_work_handler_t completion_handl...
Dean-Coakley/unit
src/nxt_h1proto.h
<reponame>Dean-Coakley/unit<filename>src/nxt_h1proto.h /* * Copyright (C) NGINX, Inc. */ #ifndef _NXT_H1PROTO_H_INCLUDED_ #define _NXT_H1PROTO_H_INCLUDED_ #include <nxt_main.h> #include <nxt_http_parse.h> #include <nxt_http.h> #include <nxt_router.h> typedef struct nxt_h1p_websocket_timer_s nxt_h1p_websocket_ti...
Dean-Coakley/unit
src/nxt_process.c
/* * Copyright (C) <NAME> * Copyright (C) NGINX, Inc. */ #include <nxt_main.h> #include <nxt_main_process.h> #if (NXT_HAVE_CLONE) #include <nxt_clone.h> #endif #include <signal.h> static void nxt_process_start(nxt_task_t *task, nxt_process_t *process); static nxt_int_t nxt_process_worker_setup(nxt_task_t *task,...
Dean-Coakley/unit
src/nxt_http_proxy.c
<reponame>Dean-Coakley/unit /* * Copyright (C) <NAME> * Copyright (C) NGINX, Inc. */ #include <nxt_router.h> #include <nxt_http.h> typedef void (*nxt_http_upstream_connect_t)(nxt_task_t *task, nxt_http_upstream_t *upstream, nxt_http_peer_t *peer); struct nxt_http_upstream_s { uint32_t ...
Dean-Coakley/unit
src/nxt_conn_connect.c
<filename>src/nxt_conn_connect.c /* * Copyright (C) <NAME> * Copyright (C) NGINX, Inc. */ #include <nxt_main.h> static nxt_err_t nxt_conn_connect_test_error(nxt_task_t *task, nxt_conn_t *c); void nxt_conn_sys_socket(nxt_task_t *task, void *obj, void *data) { nxt_conn_t *c; nxt_work_handler_t ...
Dean-Coakley/unit
src/nxt_process.h
/* * Copyright (C) <NAME> * Copyright (C) NGINX, Inc. */ #ifndef _NXT_PROCESS_H_INCLUDED_ #define _NXT_PROCESS_H_INCLUDED_ #if (NXT_HAVE_CLONE) #include <nxt_clone.h> #endif typedef pid_t nxt_pid_t; typedef struct nxt_process_init_s nxt_process_init_t; typedef nxt_int_t (*nxt_process_start_t)(nxt_...
Dean-Coakley/unit
src/nxt_conn.h
/* * Copyright (C) <NAME> * Copyright (C) NGINX, Inc. */ #ifndef _NXT_CONN_H_INCLUDED_ #define _NXT_CONN_H_INCLUDED_ typedef ssize_t (*nxt_conn_io_read_t)(nxt_task_t *task, nxt_conn_t *c); typedef nxt_msec_t (*nxt_conn_timer_value_t)(nxt_conn_t *c, uintptr_t data); typedef struct { nxt_work_handler_t ...
Dean-Coakley/unit
src/nxt_lib.c
/* * Copyright (C) <NAME> * Copyright (C) NGINX, Inc. */ #include <nxt_main.h> nxt_uint_t nxt_ncpu = 1; nxt_uint_t nxt_pagesize; nxt_task_t nxt_main_task; nxt_atomic_t nxt_task_ident; nxt_thread_declare_data(nxt_thread_t, nxt_thread_context); #if (NXT_DEBUG && NXT_FREEBSD) /* * Fill memory with 0xA...
Dean-Coakley/unit
src/nxt_epoll_engine.c
<filename>src/nxt_epoll_engine.c /* * Copyright (C) <NAME> * Copyright (C) NGINX, Inc. */ #include <nxt_main.h> /* * The first epoll version has been introduced in Linux 2.5.44. The * interface was changed several times since then and the final version * of epoll_create(), epoll_ctl(), epoll_wait(), and EPOL...
oyesam7/swift
include/swift/AST/ASTScope.h
<reponame>oyesam7/swift<filename>include/swift/AST/ASTScope.h<gh_stars>1-10 //===--- ASTScopeImpl.h - Swift AST Object-Oriented Scope --------*- C++-*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apac...
nscooling/tddc-wsl
project/src/garage_door_controller.c
#include "garage_door_controller.h" #include "winding_motor.h" #include "light.h" static State current_state = UNINITIALIZED; void gdc_init(void) { current_state = CLOSED; } State gdc_process_event(Event e) { switch(e) { case BUTTON_PRESSED: switch(current_state) { case CL...
nscooling/tddc-wsl
project/test/test_garage_door_controller_sm.c
#include "unity.h" #include "garage_door_controller.h" #include "mock_light.h" #include "mock_winding_motor.h" void setUp(void) { gdc_init(); } void tearDown(void) { } static State actual_state; void test_garage_door_controller_Closed_to_Open(void) { light_on_Expect(); motor_on_Expect(CLOCKWISE); ...
nscooling/tddc-wsl
project/src/garage_door_controller_sm.c
<filename>project/src/garage_door_controller_sm.c<gh_stars>0 #include "garage_door_controller_sm.h" #include "winding_motor.h" #include "light.h" typedef void (*Handler)(void); typedef struct { Handler handler; State nextState; } Transition; /**************************************************************...
nscooling/tddc-wsl
project/src/garage_door_controller_sm.h
<filename>project/src/garage_door_controller_sm.h<gh_stars>0 #ifndef _GARAGE_DOOR_CONTROLLER_SM_H #define _GARAGE_DOOR_CONTROLLER_SM_H typedef enum { BUTTON_PRESSED, FULLY_OPEN, FULLY_CLOSED, MOTOR_OVERCURRENT, IR_BREAK, NUM_EVENTS } Event; typedef enum { UNINITIALIZED, CLOSED, RAI...
nscooling/tddc-wsl
project/src/garage_door_controller.h
#ifndef _GARAGE_DOOR_CONTROLLER_H #define _GARAGE_DOOR_CONTROLLER_H typedef enum { BUTTON_PRESSED, FULLY_OPEN, FULLY_CLOSED, MOTOR_OVERCURRENT, IR_BREAK } Event; typedef enum { UNINITIALIZED, CLOSED, RAISING, OPEN, LOWERING, STOPPED_RAISING, STOPPED_LOWERING } State; ...