repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
yangliu-nv/openslam_gmapping | sensor/sensor_odometry/odometryreading.h | #ifndef ODOMETRYREADING_H
#define ODOMETRYREADING_H
#include <string.h>
#include "odometrysensor.h"
#include "sensor/sensor_base/sensorreading.h"
#include "utils/point.h"
namespace GMapping{
class OdometryReading: public SensorReading{
public:
OdometryReading(const OdometrySensor* odo, double time=0);
inline c... |
yangliu-nv/openslam_gmapping | grid/harray2d.h | <reponame>yangliu-nv/openslam_gmapping
#ifndef HARRAY2D_H
#define HARRAY2D_H
#include <set>
#include "array2d.h"
#include "utils/autoptr.h"
#include "utils/point.h"
namespace GMapping {
template <class Cell>
class HierarchicalArray2D : public Array2D<autoptr<Array2D<Cell> > > {
public:
typedef std::set<point<int... |
yangliu-nv/openslam_gmapping | scanmatcher/scanmatcherprocessor.h | <filename>scanmatcher/scanmatcherprocessor.h
#ifndef SCANMATCHERPROCESSOR_H
#define SCANMATCHERPROCESSOR_H
// #include <log/sensorlog.h>
#include "sensor/sensor_range/rangereading.h"
#include "sensor/sensor_range/rangesensor.h"
//#include <gsl/gsl_eigen.h>
#include "scanmatcher.h"
namespace GMapping {
class ScanMatc... |
yangliu-nv/openslam_gmapping | utils/stat.h | #ifndef STAT_H
#define STAT_H
#include <vector>
#include "point.h"
namespace GMapping {
/**stupid utility function for drawing particles form a zero mean, sigma
variance normal distribution probably it should not go there*/
double sampleGaussian(double sigma, unsigned long int S = 0);
double evalGaussian(double si... |
yangliu-nv/openslam_gmapping | grid/accessstate.h | #ifndef ACCESSTATE_H
#define ACCESSTATE_H
namespace GMapping {
enum AccessibilityState { Outside = 0x0, Inside = 0x1, Allocated = 0x2 };
};
#endif
|
yangliu-nv/openslam_gmapping | utils/macro_params.h | #ifndef MACRO_PARAMS_H
#define MACRO_PARAMS_H
#define PARAM_SET_GET(type, name, qualifier, setqualifier, getqualifier) \
qualifier: \
type m_##name; \
getqualifier: ... |
shafeeqr2/Connected-Car | Arduino Code/ConnectedCarTest/services_lock.h | /**
* This file is autogenerated by nRFgo Studio 1.17.1.3252
*/
#ifndef SETUP_MESSAGES_H__
#define SETUP_MESSAGES_H__
#include "hal_platform.h"
#include "aci.h"
// You have now chosen to upload the configuration to OTP on the device.
// This will result in a device that you can not modify afterwards. If this is your... |
hoseec27/minifortune | minifortune.c | /*
* minifortune v2.5 - https://github.com/vsergeev/minifortune
* A minimal fortune-mod clone, dependent on libc only.
* LICENSE: MIT License
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <ti... |
jb32/FanTeApp | SocialProject/SocialProject/Tools/XWPublish/XWPublishBaseController.h | <reponame>jb32/FanTeApp<filename>SocialProject/SocialProject/Tools/XWPublish/XWPublishBaseController.h
//
// XWPublishBaseController.h
// XWPublishDemo
//
// Created by 邱学伟 on 16/4/15.
// Copyright © 2016年 邱学伟. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <AssetsLibrary/AssetsLibrary.h>
#import "XWPhoto... |
jb32/FanTeApp | SocialProject/SocialProject/Tools/XWPublish/XWImagePicker/XWImagePickerSheet.h | //
// XWImagePickerSheet.h
// XWPublishDemo
//
// Created by 邱学伟 on 16/4/15.
// Copyright © 2016年 邱学伟. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "MHeadImaView.h"
#import "MImaLibTool.h"
#import "MShowAllGroup.h"
typedef enum {
selectSend = 1,
selectedCancel ... |
jb32/FanTeApp | SocialProject/SocialProject/Tools/PhotoBrowser/HMPhotoBrowserPhotos.h | //
// HMPhotoBrowserPhotos.h
// HMPhotoBrowser
//
// Created by 刘凡 on 16/3/13.
// Copyright © 2016年 itcast. All rights reserved.
//
@import UIKit;
/// 浏览照片模型
@interface HMPhotoBrowserPhotos : NSObject
/// 选中照片索引
@property (nonatomic) NSInteger selectedIndex;
/// 照片 url 字符串数组
@property (nonatomic) NSArray<NSStrin... |
jb32/FanTeApp | SocialProject/Pods/RongCloudIM/RongCloudIM/RongIMLib.framework/Headers/RCSightMessage.h | <reponame>jb32/FanTeApp<gh_stars>1-10
//
// RCSightMessage.h
// RongIMLib
//
// Created by LiFei on 2016/12/1.
// Copyright © 2016年 RongCloud. All rights reserved.
//
#import <RongIMLib/RongIMLib.h>
#import <UIKit/UIKit.h>
/*!
小视频消息的类型名
*/
#define RCSightMessageTypeIdentifier @"RC:SightMsg"
/**
小视频消息类
@disc... |
jb32/FanTeApp | SocialProject/Pods/RongCloudIM/RongCloudIM/RongIMKit.framework/Headers/RCLocationViewController.h | //
// RCLocationViewController.h
// iOS-IMKit
//
// Created by YangZigang on 14/11/4.
// Copyright (c) 2014年 RongCloud. All rights reserved.
//
#import "RCBaseViewController.h"
#import <CoreLocation/CoreLocation.h>
#import <MapKit/MapKit.h>
/*!
在地图中展示位置消息的ViewController
*/
@interface RCLocationViewController : ... |
jb32/FanTeApp | SocialProject/SocialProject/Tools/XWPublish/XWImagePicker/Lib/CollectionViewInfo/MHeadImaView.h | <gh_stars>10-100
//
// MHeadImaView.h
// QQImagePicker
//
// Created by mark on 15/9/10.
// Copyright (c) 2015年 mark. All rights reserved.
// 仿QQ照片选择器
#import <UIKit/UIKit.h>
typedef enum {
headImaCheckMark = 1,
headImaSelectBig = 2,
headImaCheckCancel = 3
}headImaSelectType;
@protocol MHeadIm... |
jb32/FanTeApp | SocialProject/SocialProject/Common/BridgeHeader.h | //
// BridgeHeader.h
// SocialProject
//
// Created by Mac on 2018/7/23.
// Copyright © 2018年 ZYY. All rights reserved.
//
#import <CommonCrypto/CommonDigest.h>
#import <CommonCrypto/CommonCryptor.h>
#import "NSString+Encoding.h"
#import "XWPublishController.h"
#import <RongIMKit/RongIMKit.h>
#import "HMPhotoBrows... |
jb32/FanTeApp | SocialProject/Pods/RongCloudIM/RongCloudIM/RongIMLib.framework/Headers/RCCustomerServiceConfig.h | //
// RCCustomerServiceConfig.h
// RongIMLib
//
// Created by litao on 16/2/25.
// Copyright © 2016年 RongCloud. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "RCStatusDefine.h"
#import "RCCSLeaveMessageItem.h"
// onResult:(void(^)(int isSuccess, NSString *errMsg))resultBlock
// onBlocked:(void(... |
jb32/FanTeApp | SocialProject/SocialProject/Tools/DES/NSString+Encoding.h | //
// NSString+Encoding.h
// LYFootballLottery
//
// Created by Tsz on 2017/1/11.
// Copyright © 2017年 Tsz. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (Encoding)
- (nonnull NSString *)encodingWithDESKey:(nonnull NSString *)desKey;
+ (nonnull NSArray *)getSignArray:(nonnull NSD... |
jb32/FanTeApp | SocialProject/SocialProject/Tools/XWPublish/XWPhotoCell.h | <filename>SocialProject/SocialProject/Tools/XWPublish/XWPhotoCell.h
//
// XWPhotoCell.h
// XWPublishDemo
//
// Created by 邱学伟 on 16/4/15.
// Copyright © 2016年 邱学伟. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface XWPhotoCell : UICollectionViewCell
@property (strong, nonatomic) IBOutlet UIImageView *pro... |
jb32/FanTeApp | SocialProject/Pods/RongCloudIM/RongCloudIM/RongIMLib.framework/Headers/RCPublicServiceMultiRichContentMessage.h | <reponame>jb32/FanTeApp
/**
* Copyright (c) 2014-2015, RongCloud.
* All rights reserved.
*
* All the contents are the copyright of RongCloud Network Technology Co.Ltd.
* Unless otherwise credited. http://rongcloud.cn
*
*/
// RCPublicServiceMultiRichContentMessage.h
// Created by litao on 15/4/13.
#import "RC... |
VRToxin-AOSP/android_external_mdnsresponder | mDNSPosix/PosixDaemon.c | /* -*- Mode: C; tab-width: 4 -*-
*
* Copyright (c) 2003-2004 Apple Computer, Inc. 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/l... |
VRToxin-AOSP/android_external_mdnsresponder | mDNSPosix/NetMonitor.c | /* -*- Mode: C; tab-width: 4 -*-
*
* Copyright (c) 2002-2004 Apple Computer, Inc. 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/l... |
VRToxin-AOSP/android_external_mdnsresponder | Clients/dns-sd.c | /* -*- Mode: C; tab-width: 4 -*-
*
* Copyright (c) 2002-2008 Apple Inc. All rights reserved.
*
* Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc.
* ("Apple") in consideration of your agreement to the following terms, and your
* use, installation, modification or redistributio... |
VRToxin-AOSP/android_external_mdnsresponder | Clients/ClientCommon.c | <gh_stars>100-1000
/* -*- Mode: C; tab-width: 4 -*-
*
* Copyright (c) 2008 Apple Inc. All rights reserved.
*
* Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc.
* ("Apple") in consideration of your agreement to the following terms, and your
* use, installation, modification or... |
get9/GoBackNProtocol | timer.c | #include <stdio.h>
#include <sys/time.h>
#include <sys/socket.h>
// Sets timeout value for socket 'sock' for 'timeout_val'
// (in seconds)
int set_timeout(int sock, int timeout_val)
{
struct timeval timeout;
timeout.tv_sec = timeout_val;
timeout.tv_usec = 0;
int ret = setsockopt(sock, SOL_SOCKET, SO_R... |
get9/GoBackNProtocol | net.h | #include <sys/types.h>
#include <sys/socket.h>
#include <inttypes.h>
#pragma once
#define MAX_CONNECTIONS 5
#define BUFSIZE 512
enum conn_type {
CONN_TYPE_TCP,
CONN_TYPE_UDP
};
int create_socket(char *port, int num_conn, enum conn_type ct);
int get_addr_sock(struct sockaddr *p, int *sock, char *serverip, c... |
get9/GoBackNProtocol | packet.h | <filename>packet.h
#include <sys/types.h>
#include <inttypes.h>
#include <netdb.h>
#include <stdbool.h>
#pragma once
#define MAXBUFSIZE 512
// Layout of the message being sent
struct packet_t {
int type;
int seq_no;
int len;
char data[MAXBUFSIZE];
};
// Layout of ACKs
struct ack_t {
int type;
... |
get9/GoBackNProtocol | timer.h | <filename>timer.h
#include <time.h>
#pragma once
#define TIMEOUT_SEC 3
int set_timeout(int sock, int timeout_val);
int disable_timeout(int sock);
/*
int create_timer(timer_t *timerid, int sig);
int arm_timer(timer_t *timerid, int sec);
int disarm_timer(timer_t *timerid);
*/
|
get9/GoBackNProtocol | sender.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <limits.h>
#include <errno.h>
#include <math.h>
#include <netdb.h>
#include "data.h"
#include "timer.h"
#include "net.h"
#include "packet.h"
int main(int argc, char **argv)
{
// Verify and parse args
if (argc < 4) {
... |
get9/GoBackNProtocol | net.c | #include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
#include "net.h"
// Gets the addr and port for a given server_ip and server_port
int get_addr_sock(struct sockaddr *addr, int *sock... |
get9/GoBackNProtocol | receiver.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <time.h>
#include <limits.h>
#include <netdb.h>
#include "net.h"
#include "timer.h"
#include "data.h"
#include "packet.h"
int main(int argc, char **argv)
{
if (argc < 2) {
printf("Usage:\n");
printf(" %s p... |
get9/GoBackNProtocol | packet.c | <reponame>get9/GoBackNProtocol
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <errno.h>
#include <stdbool.h>
#include "packet.h"
bool is_lost(double loss_rate)
{
double rv = drand48();
return (rv < loss_rate);
}
// Prints ... |
TaQuangTu/ExpressionTree | ExpressionTree.h | <reponame>TaQuangTu/ExpressionTree
#ifndef IOSTREAM
#include<iostream>
#define IOSTREAM
#endif
#ifndef MAP
#include<map>
#define MAP
#endif
#ifndef MATH
#include<math.h>
#define MATH
#endif
#ifndef STACK
#include<stack>
#define STACK
#endif
#ifndef VECTOR
#include<vector>
#define VECTOR
#endif
#ifnd... |
paulcoley/Fractal-Heightmap-Modeler | Fractal Heightmap Modeler/Camera.h | #pragma once
#include "gMatrix4.h"
class Camera {
private:
gMatrix4 rotation;
gVector4 up;
gVector4 eye;
public:
Camera(float, float, float);
void increasePhi(float);
void increaseTheta(float);
void increaseRad(float);
gVector4 getEye();
gVector4 getUp();
}; |
paulcoley/Fractal-Heightmap-Modeler | Fractal Heightmap Modeler/gVector4.h | /*
* gVector4.h
*/
#pragma once
#include <iostream>
#include <cassert>
#define EPSILON 0.001f
#define PI 3.141592f
class gVector4 {
private:
float data[4];
public:
///----------------------------------------------------------------------
/// Constructors
///---------------------------------------------------... |
paulcoley/Fractal-Heightmap-Modeler | Fractal Heightmap Modeler/Display.h | #pragma once
#include <Fl/Fl_Window.H>
#include <memory>
#include "RenderWindow.h"
#include <Fl/Fl_Button.H>
#include <FL/Fl_Spinner.H>
#include <FL/Fl_Color_Chooser.H>
#include <FL/Fl_Value_Slider.H>
#include <FL/Fl_Float_Input.H>
#include <Fl/Fl_Hold_Browser.H>
#include <string>
class Display : public Fl_Window {
pr... |
paulcoley/Fractal-Heightmap-Modeler | Fractal Heightmap Modeler/DisplayController.h | <filename>Fractal Heightmap Modeler/DisplayController.h<gh_stars>0
#pragma once
#include <memory>
#include "Display.h"
class DisplayController {
private:
Display display;
protected:
public:
DisplayController() : display(10, 10, 1075, 700) {
display.show();
}
}; |
paulcoley/Fractal-Heightmap-Modeler | Fractal Heightmap Modeler/RenderWindow.h | <filename>Fractal Heightmap Modeler/RenderWindow.h<gh_stars>0
#pragma once
#include <memory>
#include <list>
#include <Fl/Fl_Gl_Window.H>
#include <Fl/Gl.H>
#include <GL/glu.h>
#include <Fl/Fl.H>
#include "Camera.h"
#include "MeshController.h"
enum class DisplayMode {
Mesh,
Wire,
WireMesh
};
class RenderWindow : p... |
paulcoley/Fractal-Heightmap-Modeler | Fractal Heightmap Modeler/gMatrix4.h | <reponame>paulcoley/Fractal-Heightmap-Modeler<filename>Fractal Heightmap Modeler/gMatrix4.h
/*
* gMatrix4.h
*/
#pragma once
#include "gVector4.h"
class gMatrix4{
private:
gVector4 data[4];
public:
///----------------------------------------------------------------------
/// Constructors
///------------------... |
paulcoley/Fractal-Heightmap-Modeler | Fractal Heightmap Modeler/Face.h | <gh_stars>0
#pragma once
#include "gMatrix4.h"
#include <memory>
#include <vector>
class Face {
private:
std::vector<std::shared_ptr<gVector4>> verticies;
public:
Face(std::shared_ptr<gVector4> v1, std::shared_ptr<gVector4> v2, std::shared_ptr<gVector4> v3) {
verticies.push_back(v1);
verticies.push_back(v2);
v... |
paulcoley/Fractal-Heightmap-Modeler | Fractal Heightmap Modeler/MeshController.h | #pragma once
#include <memory>
#include <vector>
#include <list>
#include "Face.h"
#include <random>
class MeshController {
private:
std::list<Face> faces;
public:
MeshController() {}
void CreateField(int rows, int columns, int length, int width) {
faces.clear();
std::vector<std::vector<std::shared_ptr<gVector4... |
DigitalInBlue/Federate | include/Federate/Federate.h | #ifndef H_HELLEBORECONSULTING_FEDERATE_H
#define H_HELLEBORECONSULTING_FEDERATE_H
// www.helleboreconsulting.com
///
/// \author <NAME>
///
#include <functional>
#include <vector>
#include <future>
#include <memory>
///
/// A dummy template class which will be used to supporess warnings from unused variables.
/// ... |
lukasmerk/it-sicherheit | ue3/sha1.c | <reponame>lukasmerk/it-sicherheit
#include <stdio.h>
#include <stdlib.h>
#include "sha1.h"
bitBlock *initBitBlock(uint32 wordCount) {
bitBlock *bb = (bitBlock*)calloc(1, sizeof(bitBlock));
bb->data = (uint32*)calloc(wordCount, sizeof(uint32));
bb->wordCount = wordCount;
return bb;
}
void freeBitBlock... |
lukasmerk/it-sicherheit | ue1/largeInt.c | <reponame>lukasmerk/it-sicherheit
#include <stdio.h>
#include <stdlib.h>
#include "largeInt.h"
/**
** Returns the number of leading zeroes of the given argument.
**
** A leading zero is a binary digit of the given arg that is set
** to 0 and to the left of which only appear 0's.
**/
uint8 GetN... |
lukasmerk/it-sicherheit | ue5/a3.c | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
typedef struct {
char name[10];
void (*f)();
} funcRef;
int min(int x, int y) {
if (x < y) return x;
else return y;
}
funcRef *initFuncRef(char* name, void(*g)()) {
int len = strlen(name);
funcRef *r = (funcRef*)ca... |
lukasmerk/it-sicherheit | ue1/largeInt.h | #ifndef LARGEINT_H
#define LARGEINT_H
typedef unsigned int uint32;
typedef signed int sint32;
typedef unsigned int uint16;
typedef signed int sint16;
typedef unsigned int uint8;
typedef signed int sint8;
typedef uint8 boolean;
#define FALSE (uint8)0
#define TRUE (uint8)1
#define BITSPERWORD (uint... |
lukasmerk/it-sicherheit | ue4/ue4.c | #include <stdio.h>
int main(){int z=1;for(int i=0;i++<99;){printf("%d",z);z=z*7%437;}} |
lukasmerk/it-sicherheit | ue5/a1.c | #include <stdio.h>
int g(int x) {
// Bitte ausprogrammieren
// Bitte nichts außerhalb dieser Funktion verändern.
// Auch die Deklaration von g darf nicht verändert werden.
}
void f() {
int y = 7;
int i = 0;
for (i = 0; i < 10; i++) {
printf("i: %d, g(i): %d\n", i, g(i))... |
lukasmerk/it-sicherheit | ue3/crack.c | <reponame>lukasmerk/it-sicherheit
#include "sha1.h"
#include <stdlib.h>
#include <stdio.h>
#define PWLENGTH 10
#define WORDCOUNT 5
typedef struct {
char** words;
// number of words that can be stored in the words array
uint32 capacity;
// number of words that really are stored in the words array
uint... |
lukasmerk/it-sicherheit | ue5/a2.c | <gh_stars>0
#include <stdio.h>
void evil() {
printf("i am evil\n");
}
void q() {
// bitte modifizieren Sie nur im Bereich unterhalb dieser Zeile
// Toben Sie sich hier aus!
// bitte modifizieren Sie nur im Bereich oberhalb dieser Zeile
printf("q is done \n");
}
void harml... |
lukasmerk/it-sicherheit | ue3/sha1.h | <reponame>lukasmerk/it-sicherheit<gh_stars>0
#ifndef SHA1_H
#define SHA1_H
typedef unsigned int uint32;
typedef signed int sint32;
typedef unsigned int uint16;
typedef signed int sint16;
typedef unsigned int uint8;
typedef signed int sint8;
typedef uint8 boolean;
#define FALSE (uint8)0
#define TRUE (uin... |
IT1050-2022-Feb/tutorial-01-it21318634 | Tute01.c | <gh_stars>0
/* Exercise 1 - Calculations
Write a C program to input marks of two subjects. Calculate and print the average of the two marks. */
#include <stdio.h>
int main() {
int mark1,mark2;
float total,average;
printf("Enter your mark:");
scanf("%d",&mark1);
printf("Enter your mark:");
scanf("%d",&... |
hanssea/IWUserMainMoudle | Example/IWUserMainMoudle/IW3.h | //
// IW3.h
// IWUserMainMoudle_Example
//
// Created by maso on 2018/12/17.
// Copyright © 2018年 Hanssea. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface IW3 : UIViewController
@end
NS_ASSUME_NONNULL_END
|
hanssea/IWUserMainMoudle | IWUserMainMoudle/Classes/Controller/IWTabBarCtrl.h | <reponame>hanssea/IWUserMainMoudle
//
// IWTabBarCtrl.h
// IWUserMainModule_Example
//
// Created by maso on 2018/11/30.
// Copyright © 2018年 Hanssea. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface IWTabBarCtrl : UITabBarController
/**
获取单例对象
@return TabBarController
*/
+... |
hanssea/IWUserMainMoudle | IWUserMainMoudle/Classes/view/IWNavigationBar.h | <reponame>hanssea/IWUserMainMoudle
//
// IWNavigationBar.h
// IWUserMainModule_Example
//
// Created by maso on 2018/11/30.
// Copyright © 2018年 Hanssea. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface IWNavigationBar : UINavigationBar
/**
* 设置全局的导航栏背景图片
*
* @param globalI... |
hanssea/IWUserMainMoudle | IWUserMainMoudle/Classes/view/BBGestureBackConst.h |
#import <UIKit/UIKit.h>
#import <objc/message.h>
#ifdef DEBUG
#define BBLog(...) NSLog(__VA_ARGS__)
#else
#define BBLog(...)
#endif
#define BBWeakSelf __weak typeof(self) weakSelf = self;
#define BBDeprecated(instead) NS_DEPRECATED(2_0, 2_0, 2_0, 2_0, instead)
#define BBObjectMsgSend(...) ((void (*)(void *, SEL, ... |
hanssea/IWUserMainMoudle | IWUserMainMoudle/Classes/model/IWMainModuleAPI.h | //
// IWMainModuleAPI.h
// IWUserMainModule_Example
//
// Created by maso on 2018/11/30.
// Copyright © 2018年 Hanssea. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface IWMainModuleAPI : NSObject<UIApplicationDelegate>
/**
获取根控制器
@return ro... |
hanssea/IWUserMainMoudle | Example/IWUserMainMoudle/IW2.h | //
// IW2.h
// IWUserMainMoudle_Example
//
// Created by maso on 2018/12/14.
// Copyright © 2018年 Hanssea. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface IW2 : UIViewController
@end
NS_ASSUME_NONNULL_END
|
hanssea/IWUserMainMoudle | Example/IWUserMainMoudle/IWNav.h | //
// IWNav.h
// IWUserMainMoudle_Example
//
// Created by maso on 2018/12/17.
// Copyright © 2018年 Hanssea. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface IWNav : UINavigationController
@end
NS_ASSUME_NONNULL_END
|
hanssea/IWUserMainMoudle | Example/IWUserMainMoudle/IWViewController.h | //
// IWViewController.h
// IWUserMainMoudle
//
// Created by Hanssea on 12/14/2018.
// Copyright (c) 2018 Hanssea. All rights reserved.
//
@import UIKit;
@interface IWViewController : UIViewController
@end
|
hanssea/IWUserMainMoudle | IWUserMainMoudle/Classes/view/IWTabBar.h | //
// IWTabBar.h
// IWUserMainModule_Example
//
// Created by maso on 2018/11/30.
// Copyright © 2018年 Hanssea. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface IWTabBar : UITabBar
@end
NS_ASSUME_NONNULL_END
|
hanssea/IWUserMainMoudle | Example/IWUserMainMoudle/IWAppDelegate.h | //
// IWAppDelegate.h
// IWUserMainMoudle
//
// Created by Hanssea on 12/14/2018.
// Copyright (c) 2018 Hanssea. All rights reserved.
//
@import UIKit;
@interface IWAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
Bank-of-Memories/bankofmemories-stellar-core | src/transactions/OperationFrame.h | <gh_stars>1-10
#pragma once
// Copyright 2014 Stellar Development Foundation and contributors. Licensed
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0
#include "ledger/LedgerHashUtils.h"
#include "ledger/LedgerManager... |
Nanoteck137/MyLinuxSystem | src/log.h | #pragma once
/* TODO(patrik):
- Configuration from lua?????
- Loggin to file also
- Add some colors
*/
#define PRINT_BUFFER_SIZE 1024 * 10
#define LogInfo(x...) Log::Print(__FILE__, __LINE__, LogType::INFO, x)
#define LogWarning(x...) Log::Print(__FILE__, __LINE__, LogType::WARNING, x)
#define Log... |
Nanoteck137/MyLinuxSystem | src/lua_manager.h | <filename>src/lua_manager.h
#pragma once
/*
TODO(patrik):
- GetGlobal/SetGlobal
- Types
- Tables
- Register Custom Libraries
*/
class LuaManager
{
private:
lua_State* m_State;
public:
LuaManager();
~LuaManager();
void RunScript(const std::string& script);
void SetGlobal(co... |
Nanoteck137/MyLinuxSystem | src/lua_value.h | #pragma once
class LuaValue
{
private:
enum class Type
{
TYPE_UNKNOWN,
TYPE_NUMBER,
TYPE_STRING,
NUM_TYPES,
};
union Data
{
lua_Number number;
char* string;
};
private:
Data m_Data;
Type m_Type;
private:
LuaValue(Type type);
publi... |
WangYng/better_sound_effect | ios/Classes/BetterSoundEffectPlugin.h | #import <Flutter/Flutter.h>
#import "BetterSoundEffectApi.h"
@interface BetterSoundEffectPlugin : NSObject<BetterSoundEffectApiDelegate>
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar;
@end
|
WangYng/better_sound_effect | ios/Classes/BetterSoundEffectApi.h | <reponame>WangYng/better_sound_effect
//
// BetterSoundEffectApi.h
// better_sound_effect
//
// Created by 汪洋 on 2021/5/24.
//
#import <Foundation/Foundation.h>
#import <Flutter/Flutter.h>
@protocol BetterSoundEffectApiDelegate <NSObject>
// 加载音频文件
- (NSInteger)loadAudioFile:(NSString *)path;
// 播放音效
- (void)pla... |
valdisiljuconoks/InjectableGenericCameraSystem | Cameras/AssassinsCreedOdyssey/InjectableGenericCameraSystem/Globals.h | ////////////////////////////////////////////////////////////////////////////////////////////////////////
// Part of Injectable Generic Camera System
// Copyright(c) 2017, <NAME>
// All rights reserved.
// https://github.com/FransBouma/InjectableGenericCameraSystem
//
// Redistribution and use in source and binary forms... |
zhenxu056/SKOpenGLUtils | SKOpenGLUtils/Classes/Category/NSBundle+SKResource.h | //
// NSBundle+SKResource.h
// Pods-SKOpenGLUtilsLib
//
// Created by Sunflower on 2020/4/28.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface NSBundle (SKResource)
+ (NSBundle *)SKBundle;
@end
NS_ASSUME_NONNULL_END
|
zhenxu056/SKOpenGLUtils | SKOpenGLUtils/Classes/Utils/SKShaderHelper.h | <gh_stars>0
//
// SKShaderHelper.h
// SK
//
// Created by <NAME> on 2019/4/18.
// Copyright © 2019年 SK All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SKShaderHelper : NSObject
/// 通过一张图片来创建纹理
/// @param image 图片
+ (GLuint)createTextureWithImage:(UIImage *)image;
/// 将一个顶点着色器和一个片段着色器挂载到一个着色器程序上,并返回程序... |
zhenxu056/SKOpenGLUtils | SKOpenGLUtils/Classes/Utils/SKPixelBufferHelper.h | <reponame>zhenxu056/SKOpenGLUtils<filename>SKOpenGLUtils/Classes/Utils/SKPixelBufferHelper.h
//
// SKPixelBufferHelper.h
//
//
// Created by Sunflower
//
#import <AVFoundation/AVFoundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface SKPixelBufferHelper : NSObject
- (instancetype)initWithContext:(EAGLContext *)context;... |
mengzhihun6/JGNavigationBar | JGNavBarDemo/JGNavBarDemo/Classes/Main/Controller/JGBaseViewController.h | //
// JGBaseViewController.h
// JGNavBarDemo
//
// Created by 郭军 on 2017/8/17.
// Copyright © 2017年 ZJBL. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface JGBaseViewController : UIViewController
@end
|
mengzhihun6/JGNavigationBar | JGNavBarDemo/JGNavBarDemo/Classes/Custom/Controller/JGCustomNavBarController.h | <reponame>mengzhihun6/JGNavigationBar
//
// JGCustomNavBarController.h
// JGNavBarDemo
//
// Created by 郭军 on 2017/8/17.
// Copyright © 2017年 ZJBL. All rights reserved.
//
#import "JGCustomBaseController.h"
@interface JGCustomNavBarController : JGCustomBaseController
@end
|
mengzhihun6/JGNavigationBar | JGNavBarDemo/JGNavBarDemo/Classes/Move/Controller/JGFirstMoveTypeController.h | <gh_stars>1-10
//
// JGFirstMoveTypeController.h
// JGNavBarDemo
//
// Created by 郭军 on 2017/8/18.
// Copyright © 2017年 ZJBL. All rights reserved.
//
#import "JGBaseViewController.h"
@interface JGFirstMoveTypeController : JGBaseViewController
@end
|
mengzhihun6/JGNavigationBar | JGNavBarDemo/JGNavBarDemo/Classes/Normal/Controller/JGQQZoneController.h | //
// JGQQZoneController.h
// JGNavBarDemo
//
// Created by 郭军 on 2017/8/17.
// Copyright © 2017年 ZJBL. All rights reserved.
//
#import "JGBaseViewController.h"
@interface JGQQZoneController : JGBaseViewController
@end
|
mengzhihun6/JGNavigationBar | JGNavBarDemo/JGNavBarDemo/Classes/Move/Controller/JGSecondMoveTypeController.h | //
// JGSecondMoveTypeController.h
// JGNavBarDemo
//
// Created by 郭军 on 2017/8/18.
// Copyright © 2017年 ZJBL. All rights reserved.
//
#import "JGBaseViewController.h"
@interface JGSecondMoveTypeController : JGBaseViewController
@end
|
mengzhihun6/JGNavigationBar | JGNavBarDemo/JGNavBarDemo/Classes/Normal/Controller/JGAntForestController.h | //
// JGAntForestController.h
// JGNavBarDemo
//
// Created by 郭军 on 2017/8/17.
// Copyright © 2017年 ZJBL. All rights reserved.
//
#import "JGBaseViewController.h"
@interface JGAntForestController : JGBaseViewController
@end
|
matom20/tuke | top-secret/playfair.h |
/**
* Funkcia na zašifrovanie textu aplikovaním Playfairovej šifry
* @method playfair_encrypt
* @param key [@1]
* @param text [@2]
* @return [referencia na zašifrovaný reťazec ]
*
* @1: Odkaz na reťazec, ktorý reprezentuje text na zašifrovanie.
Tento text môže pozost... |
matom20/tuke | k/main.c | <filename>k/main.c
//
// main.c
// k-my
// TEST VERSION 2.0
//
// Created by <NAME>. on 7.4.2015.
// Last Edit by <NAME>. on 18.4.2015.
// Copyright (c) 2015 <NAME>. All rights reserved.
// xCode 7.x
//
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include "hof.h"
#include "k.h"
... |
matom20/tuke | hangman/hangman.h | #define WORDLIST_FILENAME "words.txt"
/**
* Function detects, whether player guessed the secret word
* Based on the letters player used for guessing, this function detects,
* if it is possible to construct (and guess) the secret word from this set.
* If it is possible, function returns 1. If not, returns 0.
* @pa... |
matom20/tuke | k/hof_noMalloc.c | #include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include "hof.h"
#define HOF_FILE "score"
// MAGIC FUNCTION from hof.h
int load(PLAYER list[]){
// open the hall of fame file
FILE *fp = fopen(HOF_FILE, "r");
if(fp == NULL){
return -1;
}
// read the content of hall of fame
i... |
matom20/tuke | top-secret/bmp.c | //
// bmp.c
// top-secret-ps5-my
//
// Created by <NAME>. on 7.5.2015.
// Last Edit by <NAME>. on 18.5.2015.
// Copyright (c) 2015 <NAME>. All rights reserved.
// xCode 7.x
//
#include <stdio.h>
#include <stdlib.h>
#include "bmp.h"
#include <ctype.h>
#include <string.h>
/**
* Function change characters to uppe... |
matom20/tuke | top-secret/playfair.c | <reponame>matom20/tuke
//
// playfair.c
// top-secret-ps5-my
//
// Created by <NAME>. on 7.5.2015.
// Last Edit by <NAME>. on 18.5.2015.
// Copyright (c) 2015 <NAME>. All rights reserved.
// xCode 7.x
//
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <stdbool.h>
#include "... |
matom20/tuke | hangman/main.c | <reponame>matom20/tuke
//
// main.c
// hangman-my
//
// Created by <NAME>. on 19.3.2015.
// Last Edit by <NAME>. on 29.3.2015.
// Copyright (c) 2015 <NAME>. All rights reserved.
// xCode 7.x
//
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "hangman.h"
int main(int argc, const char * argv[]) ... |
matom20/tuke | k/hof.c | <filename>k/hof.c
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <stdlib.h>
#include "hof.h"
#define HOF_FILE "score"
// MAGIC FUNCTION from hof.h
int load(PLAYER list[]){
// open the hall of fame file
FILE *fp = fopen(HOF_FILE, "r");
if(fp == NULL){
return -1;
}
... |
matom20/tuke | hangman/figure.h | <gh_stars>0
/**
* Function returns string figure for hangman
* @param guess - actual guess on hangman
*/
void getFigure(int guess);
|
matom20/tuke | k/hof.h | <reponame>matom20/tuke<filename>k/hof.h<gh_stars>0
#include <stdbool.h>
typedef struct Player{
// name of the player (avoid usage of spaces in name)
char name[30];
// player's score
int score;
} PLAYER;
/**
* Loads hall of fame from file
* Function loads hall of fame list from file, which name is d... |
matom20/tuke | k/k.c | <reponame>matom20/tuke
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "k.h"
#define MATRIX 4
// MAGIC FUNCTION from k.h
void add_random_tile(GAME *game){
int row, col;
// find random, but empty tile
do {
row = rand() % 4;
col = rand() % 4;
} while(game->board[row][co... |
matom20/tuke | hangman/figure.c | <gh_stars>0
#include <stdio.h>
#include "figure.h"
/**
* Function returns char for figure
* @param body - actual body for figure
*/
void figurePrint(char body[200]) {
for (int s = 0; s < 5; s++) {
if (body[s] == 't') printf("\t");
else if (body[s] == 'n') printf("\n");
else if (body[s] ... |
matom20/tuke | top-secret/bmp.h | /**
* Funkcia vráti kópiu vstupného reťazca v obrátenom poradí
* @method reverse
* @param text [text]
* @return [text reverse]
*/
char* reverse(const char* text);
/**
* Funkcia na šifrovanie textu pomocou Vénierovej šifry
* @method vigenere_encrypt
* @param {key} [@1]
* @param {text} [reťazec n... |
matom20/tuke | hangman/hangman.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <sys/stat.h>
#include "hangman.h"
#include "figure.h"
#define numGUESSES 8 // MAX GUESS
#define allLetters "abcdefghijklmnopqrstuvwxyz"
#define maxLetter 15 // MAX CHARACTER WORD
#define onFigure true // ON/OFF FIGURE - IF TRUE P... |
matom20/tuke | k/k.h | #include <stdbool.h>
typedef struct Game {
// game board
char board[4][4];
// current score
int score;
} GAME;
/**
* Adds random A or B tile to the game
* This is very dumb function. The board must have at least one empty tile. If
* there is no empty tile, function will end in infinite loop.
* @p... |
matom20/tuke | top-secret/main.c | //
// main.c
// top-secret-ps5-my
//
// Created by <NAME>. on 7.5.2015.
// Last Edit by <NAME>. on 18.5.2015.
// Copyright (c) 2015 <NAME>. All rights reserved.
// xCode 7.x
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "playfair.h"
#include "bmp.h"
int main(int argc, const char * argv[... |
lawnjelly/godot-lsimd | lsimd/type_f32_4.h | <reponame>lawnjelly/godot-lsimd
#pragma once
// Copyright (c) 2019 Lawnjelly
// 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
... |
lawnjelly/godot-lsimd | lsimd/simd_types.h | #pragma once
// Copyright (c) 2019 Lawnjelly
// 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, ... |
lawnjelly/godot-lsimd | lsimd/simd_cpu.h | #pragma once
#include "core/ustring.h"
namespace GSimd
{
// we are specifically only supporting certain platforms
// note that this can potentially be expanded for more x86, but needs testing
#if defined (WINDOWS_ENABLED) || defined (X11_ENABLED)
// X86
#if defined(__x86_64) || defined(__x86_64__) || defined(__amd6... |
lawnjelly/godot-lsimd | lsimd/fastarray_4f32.h | <gh_stars>1-10
#pragma once
// Copyright (c) 2019 Lawnjelly
// 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, ... |
lawnjelly/godot-lsimd | lsimd/simd_f32.h | #pragma once
// Copyright (c) 2019 Lawnjelly
// 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, ... |
lawnjelly/godot-lsimd | lsimd/register_types.h | <gh_stars>1-10
/* register_types.h */
void register_lsimd_types();
void unregister_lsimd_types();
/* yes, the word in the middle must be the same as the module folder name */
|
lawnjelly/godot-lsimd | lsimd/simd_macros.h | <reponame>lawnjelly/godot-lsimd<gh_stars>1-10
#pragma once
// Copyright (c) 2019 Lawnjelly
// 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 limitati... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.