repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
starmuse/PROJBASEClasses | PROJBASEClasses/Classes/BaseTableViewController/PROJTableViewModel.h | //
// PROJTableViewModel.h
// PROJProjectA
//
// Created by 1 on 10/1/20.
// Copyright © 2020 hausinTec. All rights reserved.
//
// 依赖 YYModel
#import <UIKit/UIKit.h>
#import <YYKit/NSObject+YYModel.h>
@class PROJTableViewSectionModel;
@class PROJTableViewSectionInfoModel;
@class PROJTableViewSectionHeaderFooterMo... |
starmuse/PROJBASEClasses | Example/Pods/Target Support Files/PROJBASEClasses/PROJBASEClasses-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 "PROJBaseTableViewCell.h"
#import "PROJBaseTableViewController.h"
#import "PROJBaseTableViewHeaderFooterView.h"
#impo... |
starmuse/PROJBASEClasses | Example/PROJBASEClasses/PROJViewController.h | //
// PROJViewController.h
// PROJBASEClasses
//
// Created by keith on 12/20/2020.
// Copyright (c) 2020 keith. All rights reserved.
//
@import UIKit;
@interface PROJViewController : UIViewController
@end
|
starmuse/PROJBASEClasses | PROJBASEClasses/Classes/PROJBaseViewController.h | <reponame>starmuse/PROJBASEClasses
//
// PROJBaseViewController.h
// Keith2020FeedsAppN01
//
// Created by 1 on 12/9/20.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface PROJBaseViewController : UIViewController
@end
NS_ASSUME_NONNULL_END
|
chucknthem/Data-structures-algorithms | algorithms/prime_sieve.c | <gh_stars>1-10
#include <stdio.h>
#include <malloc.h>
int nextPrime(int i, char *sieve, int max) {
while(i < max && !sieve[i]) {
i++;
}
return i;
}
void setNotPrime(int i, char *sieve, int max) {
int j;
for(j = i; j < max; j += i) {
sieve[j] = 0;
}
}
int main(int argc, char**argv) {
int n = atoi(argv[1]);
... |
chucknthem/Data-structures-algorithms | algorithms/gcd.c | <reponame>chucknthem/Data-structures-algorithms
#include <stdio.h>
/*
* Eulers algorithm for calculating the greatest common divisor of two numbers.
*
* gcd(a, b) is the largest number that divides both a and b. If that number is 1, then a and b
* are co-prime.
*
* Euler discovered that gcd(a, b) = gcd(a - b, b)... |
chucknthem/Data-structures-algorithms | algorithms/sorting/quicksort.c | <filename>algorithms/sorting/quicksort.c
#include <stdio.h>
#include <malloc.h>
void printArray(int *array, int low, int high) {
while(low <= high) {
printf("%d ", array[low++]);
}
printf("\n");
}
void swap(int *a, int *b) {
int tmp = *a;
*a = *b;
*b = tmp;
}
/*
* * pick a pivot index between low and high inc... |
chucknthem/Data-structures-algorithms | misc/bit_addition.c | #include <stdio.h>
/**
* This function implements the addition operation using only bit operators.
*/
int add(int a, int b) {
int c = a & b;
while (a != 0) {
c = b & a;
b = b ^ a;
c = c << 1;
a = c;
}
return b;
}
int main() {
printf("%d\n", add(51, 152)); // 203
}
|
chucknthem/Data-structures-algorithms | misc/base.c | #include <stdio.h>
#include <malloc.h>
#include <assert.h>
void swap(char *c1, char *c2) {
char tmp = *c1;
*c1 = *c2;
*c2 = tmp;
}
void reverse(char *str, int max) {
int i;
for (i = 0; i <= max/2; i++) {
swap(&str[i], &str[max - i]);
}
}
char *alpha = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
/*
* decimal to bas... |
chucknthem/Data-structures-algorithms | algorithms/reverse_words.c | <reponame>chucknthem/Data-structures-algorithms<gh_stars>1-10
#include <stdio.h>
#include <string.h>
#include <ctype.h>
/*
* Reverse the order of words in a string in place.
*
* 1. Reverse the string.
* 2. Reverse each word in the string.
*/
void reverse(char* str, int i, int j) {
char tmp;
for (; i < j; i++... |
chucknthem/Data-structures-algorithms | structs/linked_list.c | <filename>structs/linked_list.c
#include <stdio.h>
#include <stdlib.h>
#include <malloc/malloc.h>
#define INVALID_VALUE -1
typedef struct NodeT {
struct NodeT* next;
int value;
} Node;
typedef struct ListT {
Node* head;
int length;
} List;
List* createList() {
List* newList = (List*) malloc(sizeof(List));... |
chucknthem/Data-structures-algorithms | algorithms/sorting/bubble.c | <filename>algorithms/sorting/bubble.c
#include <stdio.h>
void swap(int *a, int *b) {
int tmp = *a;
*a = *b;
*b = tmp;
}
/*
* Bubble sort with early exit.
*
* for i from n - 1 to 0 (inclusive)
* for j from 0 to i - 2 (inclusive)
* if(j > j+1) swap(j, j+1)
*/
void bubble(int array[], in... |
chucknthem/Data-structures-algorithms | algorithms/sorting/selection.c | #include <stdio.h>
void swap(int *a, int *b) {
int tmp = *a;
*a = *b;
*b = tmp;
}
/*
* Selection sort.
*
* for i = 0..(n-1)
* min = i
* for j = i+1..(n-1)
* if(a[min] > a[j]) a[min] = a[j]
* swap(a[min], a[j])
*/
void selection(int a[], int length) {
int i, j, min;
f... |
chucknthem/Data-structures-algorithms | structs/binary_search_tree.c | <gh_stars>1-10
#include <stdio.h>
#include <stdlib.h>
#include <malloc/malloc.h>
#include <assert.h>
typedef struct NodeT {
int height;
int size;
int value;
struct NodeT* left;
struct NodeT* right;
} Node;
typedef struct TreeT {
Node* root;
int height;
int size;
} Tree;
Tree* createTree();
void destr... |
chucknthem/Data-structures-algorithms | algorithms/atoi_string_to_integer.c | #include <stdio.h>
#include <string.h>
#include <assert.h>
int main(int argc, char** argv) {
char* str = argv[1];
int sum = 0;
int len = strlen(str);
int i;
for (i = 0; i < len; i++) {
assert(str[i] >= '0' && str[i] <= '9');
sum = sum * 10 + str[i] - '0';
}
printf("%d\n", sum);
return 0;
}
|
b2wads/flamegraph-profiler | src/native/fold_profile.h | <filename>src/native/fold_profile.h
#pragma once
#include <v8-profiler.h>
#include <list>
#include <sstream>
namespace flamegraph_profiler {
void collapse_recursively (std::stringstream& output, const v8::CpuProfileNode* node, std::string function_trace, unsigned chars_to_trim);
std::list<const v8::CpuProfileNode*>... |
b2wads/flamegraph-profiler | src/native/profile_converter.h | <gh_stars>0
#pragma once
#include <string>
#include <v8-profiler.h>
#include <nan.h>
#include <sstream>
namespace flamegraph_profiler {
class profile_converter : public Nan::AsyncWorker {
private:
v8::CpuProfile* profile;
std::string root_script;
std::stringstream folded_profile;
unsigned chars_to_trim... |
b2wads/flamegraph-profiler | src/native/cpu_profiler.h | <reponame>b2wads/flamegraph-profiler
#pragma once
#include <nan.h>
namespace flamegraph_profiler {
void Initialize(v8::Local<v8::Object> exports);
void setSamplingInterval(const Nan::FunctionCallbackInfo<v8::Value>& args);
void start(const Nan::FunctionCallbackInfo<v8::Value>& args);
void stop(const Nan::Functio... |
Reedyuk/realm-kotlin | packages/cinterop/src/jvm/jni/utils.h | /*
* Copyright 2021 Realm Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
Reedyuk/realm-kotlin | packages/jni-swig-stub/src/main/jni/realm_api_helpers.h | /*
* Copyright 2021 Realm Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
Reedyuk/realm-kotlin | packages/cinterop/src/jvm/jni/env_utils.h | /*
* Copyright 2021 Realm Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
Vadim-Yelagin/ETRUtils | Pod/Classes/ETRCategories/NSMutableDictionary+ETRUtils.h | <gh_stars>0
//
// NSMutableDictionary+ETRUtils.h
//
// Created by <NAME> on 15/10/14.
// Copyright (c) 2014 EastBanc Technologies Russia. All rights reserved.
//
@import Foundation;
@interface NSMutableDictionary (ETRUtils)
- (void)etr_safeSetObject:(id)object
forKey:(id<NSCopying>)key;
@end
|
Vadim-Yelagin/ETRUtils | Pod/Classes/ETRCategories/UIActivityIndicatorView+ETRUtils.h | <reponame>Vadim-Yelagin/ETRUtils<gh_stars>0
//
// UIActivityIndicatorView+ETRUtils.h
//
// Created by <NAME> on 15/10/14.
// Copyright (c) 2014 EastBanc Technologies Russia. All rights reserved.
//
@import UIKit;
@interface UIActivityIndicatorView (ETRUtils)
@property (nonatomic, readwrite, getter = isAnimating) ... |
Vadim-Yelagin/ETRUtils | Example/ETRUtils/CPDViewController.h | //
// ETRViewController.h
// ETRUtils
//
// Created by <NAME> on 01/14/2015.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ETRViewController : UIViewController
@end
|
Vadim-Yelagin/ETRUtils | Pod/Classes/ETRCategories/UIColor+ETRUtils.h | <reponame>Vadim-Yelagin/ETRUtils
//
// UIColor+ETRUtils.h
//
// Created by <NAME> on 15/10/14.
// Copyright (c) 2014 EastBanc Technologies Russia. All rights reserved.
//
@import UIKit;
@interface UIColor (ETRUtils)
+ (UIColor *)etr_colorWithHex:(uint32_t)hex;
+ (UIColor *)etr_colorWithHexString:(NSString *)hex;
... |
Vadim-Yelagin/ETRUtils | Example/Pods/Headers/Public/ETRUtils/NSMutableArray+ETRUtils.h | //
// NSMutableArray+ETRUtils.h
//
// Created by <NAME> on 15/10/14.
// Copyright (c) 2014 EastBanc Technologies Russia. All rights reserved.
//
@import Foundation;
@interface NSMutableArray (ETRUtils)
- (void)etr_safeAdd:(id)object;
@end
|
Vadim-Yelagin/ETRUtils | Example/Pods/Headers/Public/ETRUtils/UITableView+ETRUtils.h | <reponame>Vadim-Yelagin/ETRUtils<gh_stars>0
//
// UITableView+ETRUtils.h
//
// Created by <NAME> on 15/10/14.
// Copyright (c) 2014 EastBanc Technologies Russia. All rights reserved.
//
@import UIKit;
@interface UITableView (ETRUtils)
- (void)etr_deselectAllRowsAnimated:(BOOL)animated;
- (void)etr_reloadDataKeepi... |
Vadim-Yelagin/ETRUtils | Example/Pods/Headers/Public/ETRUtils/ETRImagePickerController.h | //
// ETRImagePickerController.h
//
// Created by <NAME> on 27/02/14.
// Copyright (c) 2014 EastBanc Technologies Russia. All rights reserved.
//
@import UIKit;
@interface ETRImagePickerController : UIImagePickerController
+ (void)presentImagePickerWithSourceType:(UIImagePickerControllerSourceType)sourceType
... |
Vadim-Yelagin/ETRUtils | Example/Pods/Headers/Public/ETRUtils/ETRCGUtils.h | <reponame>Vadim-Yelagin/ETRUtils<filename>Example/Pods/Headers/Public/ETRUtils/ETRCGUtils.h<gh_stars>0
//
// ETRCGUtils.h
//
// Created by <NAME> on 03/12/13.
// Copyright (c) 2013 EastBanc Technologies Russia. All rights reserved.
//
@import CoreGraphics;
@import Foundation;
extern CGPoint ETRPointAdd(CGPoint a, ... |
Vadim-Yelagin/ETRUtils | Pod/Classes/ETRCategories/UIImage+ETRUtils.h | <gh_stars>0
//
// UIImage+ETRUtils.h
//
// Created by <NAME> on 15/10/14.
// Copyright (c) 2014 EastBanc Technologies Russia. All rights reserved.
//
@import UIKit;
@interface UIImage (ETRUtils)
- (CGAffineTransform)etr_affineTransformToCGImage;
+ (UIImage*)etr_imageWithSize:(CGSize)size
o... |
Vadim-Yelagin/ETRUtils | Example/Pods/Headers/Public/ETRUtils/ETRActionSheet.h | //
// ETRActionSheet.h
//
// Created by <NAME> on 01/11/13.
// Copyright (c) 2013 EastBanc Technologies Russia. All rights reserved.
//
@import UIKit;
@interface ETRActionSheet : UIActionSheet
+ (instancetype)actionSheet;
- (NSInteger)addButtonWithTitle:(NSString*)title action:(void(^)(void))action;
- (NSInteger... |
Vadim-Yelagin/ETRUtils | Pod/Classes/ETRCategories/NSMutableSet+ETRUtils.h | //
// NSMutableSet+ETRUtils.h
//
// Created by <NAME> on 15/10/14.
// Copyright (c) 2014 EastBanc Technologies Russia. All rights reserved.
//
@import Foundation;
@interface NSMutableSet (ETRUtils)
- (void)etr_safeAdd:(id)object;
@end
|
Vadim-Yelagin/ETRUtils | Example/Pods/Headers/Public/ETRUtils/UIView+ETRUtils.h | <reponame>Vadim-Yelagin/ETRUtils<gh_stars>0
//
// UIView+ETRUtils.h
//
// Created by <NAME> on 15/10/14.
// Copyright (c) 2014 EastBanc Technologies Russia. All rights reserved.
//
@import UIKit;
@interface UIView (ETRUtils)
- (UIView*)etr_findFirstResponder;
@property (nonatomic) CGFloat parallaxAmplitude;
@end... |
Vadim-Yelagin/ETRUtils | Example/Pods/Headers/Public/ETRUtils/UITableViewCell+ETRUtils.h | //
// UITableViewCell+ETRUtils.h
//
// Created by <NAME> on 15/10/14.
// Copyright (c) 2014 EastBanc Technologies Russia. All rights reserved.
//
@import UIKit;
@interface UITableViewCell (ETRUtils)
@property (nonatomic, copy) UIColor* selectionColor;
@property (nonatomic, copy) UIColor* backgroundViewColor;
@en... |
Vadim-Yelagin/ETRUtils | Pod/Classes/ETRCategories/NSBlockOperation+ETRUtils.h | <filename>Pod/Classes/ETRCategories/NSBlockOperation+ETRUtils.h
//
// NSBlockOperation+ETRUtils.h
//
// Created by <NAME> on 15/10/14.
// Copyright (c) 2014 EastBanc Technologies Russia. All rights reserved.
//
@import Foundation;
@interface NSBlockOperation (ETRUtils)
+ (id)etr_blockOperationWithBlock2:(void (^)... |
Vadim-Yelagin/ETRUtils | Example/Pods/Headers/Public/ETRUtils/NSError+ETRUtils.h | <filename>Example/Pods/Headers/Public/ETRUtils/NSError+ETRUtils.h
//
// NSError+ETRUtils.h
//
// Created by <NAME> on 15/10/14.
// Copyright (c) 2014 EastBanc Technologies Russia. All rights reserved.
//
@import Foundation;
@interface NSError (ETRUtils)
- (BOOL)etr_isCancelledError;
- (NSString *)etr_description... |
Vadim-Yelagin/ETRUtils | Pod/Classes/ETRStringDecorator.h | <gh_stars>0
//
// ETRStringDecorator.h
//
// Created by <NAME> on 17/06/14.
// Copyright (c) 2014 EastBanc Technologies. All rights reserved.
//
@import UIKit;
@interface ETRStringDecorator : NSObject <UITextFieldDelegate, UITextViewDelegate>
@property (nonatomic, copy) NSArray* formats;
@property (nonatomic, cop... |
Vadim-Yelagin/ETRUtils | Example/Pods/Headers/Public/ETRUtils/NSString+ETRUtils.h | //
// NSString+ETRUtils.h
//
// Created by <NAME> on 15/10/14.
// Copyright (c) 2014 EastBanc Technologies Russia. All rights reserved.
//
@import Foundation;
@interface NSString (ETRUtils)
- (NSInteger)etr_numberOfWords;
- (NSString*)etr_stringBySafeAppend:(NSString*)string;
- (NSDecimalNumber*)etr_decimalNumber... |
Vadim-Yelagin/ETRUtils | Example/Pods/Headers/Public/ETRUtils/ETRAlertView.h | <reponame>Vadim-Yelagin/ETRUtils
//
// ETRAlertView.h
//
// Created by <NAME> on 9/18/13.
// Copyright (c) 2013 EastBanc Technologies Russia. All rights reserved.
//
@import UIKit;
@interface ETRAlertView : UIAlertView
+ (instancetype)alertView;
- (NSInteger)addButtonWithTitle:(NSString*)title action:(void(^)(vo... |
Vadim-Yelagin/ETRUtils | Example/Pods/Headers/Public/ETRUtils/NSFetchedResultsController+ETRUtils.h | //
// NSFetchedResultsController+ETRUtils.h
//
// Created by <NAME> on 15/10/14.
// Copyright (c) 2014 EastBanc Technologies Russia. All rights reserved.
//
@import CoreData;
@import UIKit;
@interface NSFetchedResultsController (ETRUtils) <UIDataSourceModelAssociation>
@end
|
Vadim-Yelagin/ETRUtils | Pod/Classes/ETRCategories/UICollectionView+ETRUtils.h | <filename>Pod/Classes/ETRCategories/UICollectionView+ETRUtils.h
//
// UICollectionView+ETRUtils.h
//
// Created by <NAME> on 15/10/14.
// Copyright (c) 2014 EastBanc Technologies Russia. All rights reserved.
//
@import UIKit;
@interface UICollectionView (ETRUtils)
- (void)etr_deselectAllItemsAnimated:(BOOL)animat... |
Vadim-Yelagin/ETRUtils | Example/Pods/Headers/Public/ETRUtils/NSArray+ETRUtils.h | <filename>Example/Pods/Headers/Public/ETRUtils/NSArray+ETRUtils.h
//
// NSArray+ETRUtils.h
//
// Created by <NAME> on 15/10/14.
// Copyright (c) 2014 EastBanc Technologies Russia. All rights reserved.
//
@import Foundation;
@interface NSArray (ETRUtils)
- (NSInteger)etr_minimumUsingComparator:(NSComparator)cmptr;... |
Vadim-Yelagin/ETRUtils | Pod/Classes/ETRCategories/UIRefreshControl+ETRUtils.h | //
// UIRefreshControl+ETRUtils.h
//
// Created by <NAME> on 15/10/14.
// Copyright (c) 2014 EastBanc Technologies Russia. All rights reserved.
//
@import UIKit;
@interface UIRefreshControl (ETRUtils)
@property (nonatomic, readwrite, getter = isRefreshing) BOOL refreshing;
@end
|
Vadim-Yelagin/ETRUtils | Pod/Classes/ETRCategories/NSTimer+ETRUtils.h | <filename>Pod/Classes/ETRCategories/NSTimer+ETRUtils.h
//
// NSTimer+ETRUtils.h
//
// Created by <NAME> on 15/10/14.
// Copyright (c) 2014 EastBanc Technologies Russia. All rights reserved.
//
@import Foundation;
@interface NSTimer (ETRUtils)
- (instancetype)initWithFireDate:(NSDate *)date
interval:... |
Vadim-Yelagin/ETRUtils | Pod/Classes/ETRCategories/UIViewController+ETRUtils.h | //
// UIViewController+ETRUtils.h
//
// Created by <NAME> on 15/10/14.
// Copyright (c) 2014 EastBanc Technologies Russia. All rights reserved.
//
@import UIKit;
@interface UIViewController (ETRUtils)
- (void)etr_alertError:(NSError*)error;
@end
|
Vadim-Yelagin/ETRUtils | Example/Pods/Headers/Public/ETRUtils/ETRUtils.h | <filename>Example/Pods/Headers/Public/ETRUtils/ETRUtils.h
//
// ETRUtils.h
//
// Created by <NAME> on 28/10/13.
// Copyright (c) 2013 EastBanc Technologies Russia. All rights reserved.
//
#import "NSArray+ETRUtils.h"
#import "NSBlockOperation+ETRUtils.h"
#import "NSError+ETRUtils.h"
#import "NSFetchedResultsControl... |
leozz37/sputnik | sputnik/vector_utils.h | <filename>sputnik/vector_utils.h<gh_stars>100-1000
// Copyright 2020 The Sputnik Authors.
//
// 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-... |
HubESI/SYC2 | 2020/TP/BELGOUMRI_SIAHMED_1CS1/include/functions.h | <filename>2020/TP/BELGOUMRI_SIAHMED_1CS1/include/functions.h
#ifndef __FUNCTIONS__H__
#define __FUNCTIONS__H__
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <readline/readline.h>
#include <readline/history.h>
#include <getopt.h>
#in... |
HubESI/SYC2 | 2020/TP/BELGOUMRI_SIAHMED_1CS1/source/functions.c | #include"include/functions.h"
void printHelp(int help)
{
if (help)
{
printf("This is search version 1.0.0\n");
// Synopsis
printf("Synopsis:\n");
printf("\tsearch [directory][-a][-d][-h][-m][-n][-p][-s][-t][-v] pattern\n");
// Description
printf("Descri... |
HubESI/SYC2 | 2020/TP/BELGOUMRI_SIAHMED_1CS1/source/main.c | <filename>2020/TP/BELGOUMRI_SIAHMED_1CS1/source/main.c
#include "include/functions.h"
int main(int argc, char *argv[])
{
int c; //To contain getopt() return
static int fall, fdate, fhelp, fmodification, fprotection, fsize, ftype, fversion; //flag returns
int depth = __INT_MAX__;
char path[PATH_LEN];
... |
Kashif-S/Megaman | MegaManKS/Kashif_MegaMan/RedBullet.h | #pragma once
#include "bulletobject.h"
class RedBullet :
public BulletObject
{
public:
RedBullet(void);
void setExplode();
void reset();
~RedBullet(void);
};
|
Kashif-S/Megaman | MegaManKS/Kashif_MegaMan/Global.h | #define GRAVITY 3
#define GROUND 440
extern int mapPosition; |
Kashif-S/Megaman | MegaManKS/Kashif_MegaMan/GroundEnemy.h | #pragma once
#include "BulletObject.h"
#include "EnemyObject.h"
class GroundEnemy :
public EnemyObject
{
public:
GroundEnemy(void);
int prevX;
int prevY;
int health;
void checkCollisionWithBlock(GraphicsObject *block);
void onHit(BulletObject *b);
void move();
~GroundEnemy(void);
};
|
Kashif-S/Megaman | MegaManKS/Kashif_MegaMan/GraphicsObject.h | <reponame>Kashif-S/Megaman
#pragma once
class GraphicsObject
{
public:
GraphicsObject(int i, int m, int posx, int posy, int w = 50, int h = 50);
int ID;
int maskID;
int width;
int height;
int hitHeight;
int hitWidth;
int y;
int x;
int picX;
int picY;
int endcell;
int currcell;
int startcell;
bool loop... |
Kashif-S/Megaman | MegaManKS/Kashif_MegaMan/BackgroundObject.h | #pragma once
#include "GraphicsObject.h"
class BackgroundObject : public GraphicsObject
{
public:
BackgroundObject(int i, int posX, int posY, int h, int w, double ss);
void draw(HDC offscreenDC);
double scrollSpeed;
~BackgroundObject(void);
};
|
Kashif-S/Megaman | MegaManKS/Kashif_MegaMan/MegamanObject.h | #pragma once
#include "WeaponsObject.h"
#include "BulletObject.h"
#define MOVERIGHT 1
#define MOVELEFT 2
#define STANDRIGHT 3
#define STANDLEFT 4
#define JUMPRIGHT 5
#define JUMPLEFT 6
#define SHOOTRIGHT 7
#define SHOOTLEFT 8
class MegamanObject : public WeaponsObject
{
public:
MegamanObject(void);
int prevX;
int p... |
Kashif-S/Megaman | MegaManKS/Kashif_MegaMan/FlyingEnemy.h | <reponame>Kashif-S/Megaman<filename>MegaManKS/Kashif_MegaMan/FlyingEnemy.h<gh_stars>0
#pragma once
#include "enemyobject.h"
#include "MegamanObject.h"
class FlyingEnemy :
public EnemyObject
{
public:
FlyingEnemy(MegamanObject *m, int cx, int cy);
MegamanObject *megaman;
int radius;
int angle;
int centerx;
int ce... |
Kashif-S/Megaman | MegaManKS/Kashif_MegaMan/LifeBar.h | <filename>MegaManKS/Kashif_MegaMan/LifeBar.h
#pragma once
#include"GraphicsObject.h"
#include"MegamanObject.h"
#include"Resource.h"
class LifeBar
{
public:
LifeBar(MegamanObject *m);
MegamanObject *megaman;
void draw(HDC screen);
~LifeBar(void);
};
|
Kashif-S/Megaman | MegaManKS/Kashif_MegaMan/EnemyObject.h | #pragma once
#include "weaponsobject.h"
class EnemyObject :
public WeaponsObject
{
public:
EnemyObject(int i, int m, int posx, int posy) : WeaponsObject(i, m, posx, posy)
{
xspeed = 0;
yspeed = 0;
isDead = false;
}
int xspeed;
int yspeed;
bool isDead;
virtual void move() = 0;
virtual void onHit(BulletOb... |
Kashif-S/Megaman | MegaManKS/Kashif_MegaMan/BulletObject.h | <gh_stars>0
#pragma once
#include "graphicsobject.h"
#include "resource.h"
class BulletObject :
public GraphicsObject
{
public:
BulletObject(int i, int m);
int xspeed;
int yspeed;
int distanceTravelled;
int maxDistance;
bool fired;
bool exploding;
void move();
virtual void setExplode();
virtual void reset();... |
Kashif-S/Megaman | MegaManKS/Kashif_MegaMan/BlueBullet.h | #pragma once
#include "bulletobject.h"
class BlueBullet :
public BulletObject
{
public:
BlueBullet(void);
void setExplode();
void reset();
~BlueBullet(void);
};
|
Kashif-S/Megaman | MegaManKS/Kashif_MegaMan/WeaponsObject.h | #pragma once
#include "graphicsobject.h"
#include "BulletObject.h"
class WeaponsObject :
public GraphicsObject
{
public:
WeaponsObject(int i, int m, int posX, int posY);
int numBullets;
BulletObject *bullets[50];
void fireBullet(int x, int y, int xspeed, int yspeed);
void drawBullets(HDC offscreenDC);
void moveB... |
RyukieSama/RYText | RYText/RYTextView/RYTextView.h | //
// RYTextView.h
// Ryuk
//
// Created by RongqingWang on 2017/5/12.
// Copyright © 2017年 RyukieSama. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface RYTextView : UITextView
@end
|
RyukieSama/RYText | RYText/RYLabel/RYLabel.h | <reponame>RyukieSama/RYText<gh_stars>1-10
//
// RYLabel.h
// Ryuk
//
// Created by RongqingWang on 2017/5/12.
// Copyright © 2017年 RyukieSama. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <CoreText/CoreText.h>
#import "RYTextUnit.h"
typedef void(^textClickHandler)(RYTextUnit *unit);
@interface RYLabel... |
RyukieSama/RYText | RYText/RYTextUnit.h | //
// RYTextUnit.h
// Ryuk
//
// Created by RongqingWang on 2017/5/12.
// Copyright © 2017年 RyukieSama. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, RYTextUnitType) {
RYTextUnitTypeURL = 11,
RYTextUnitTypeAt = 12,
RYTextUnitTypeEmoji = 13,
RYTextUnitTypeShar... |
danielScLima/LeftistHeap | leftistheapnode.h | <reponame>danielScLima/LeftistHeap
#ifndef LEFTISTHEAPNODE_H
#define LEFTISTHEAPNODE_H
#include <iostream>
/*!
* \brief The LeftistHeapNode struct
*/
struct LeftistHeapNode
{
/*!
* \brief LeftistHeapNode
* \param data
* \param father
*/
LeftistHeapNode(int data, LeftistHeapNode* father);... |
danielScLima/LeftistHeap | leftistheap.h | <gh_stars>0
#ifndef LEFTIST_HEAP_H
#define LEFTIST_HEAP_H
#include <iostream>
#include <vector>
#include "leftistheapnode.h"
/*!
* \brief The LeftistHeapDS class
*/
class LeftistHeapDS
{
public:
/*!
* \brief LeftistHeapDS
*/
LeftistHeapDS();
~LeftistHeapDS();
/*!
* \brief getRoot
... |
urbanze/esp32-eth | eth.h | <gh_stars>1-10
#ifndef eth_H
#define eth_H
#include <esp_err.h>
#include <esp_log.h>
#include <stdio.h>
#include <string.h>
#include <sys/param.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "esp_system.h"
#include "esp_event.h"
#include "nvs_flash.h"
#include... |
astrangeguy/libx11-debian-mirror | src/StNColor.c | <reponame>astrangeguy/libx11-debian-mirror
/*
Copyright 1986, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice ... |
astrangeguy/libx11-debian-mirror | src/xkb/XKBExtDev.c | <reponame>astrangeguy/libx11-debian-mirror<filename>src/xkb/XKBExtDev.c<gh_stars>0
/************************************************************
Copyright (c) 1995 by Silicon Graphics Computer Systems, Inc.
Permission to use, copy, modify, and distribute this
software and its documentation for any purpose and without
... |
astrangeguy/libx11-debian-mirror | src/GetRGBCMap.c | <filename>src/GetRGBCMap.c
/*
Copyright 1987, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permis... |
astrangeguy/libx11-debian-mirror | src/xlibi18n/XimTrInt.h | /*
* Copyright 1992 Oracle and/or its affiliates. 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 restriction, including without limitation
* the rights t... |
astrangeguy/libx11-debian-mirror | src/xlibi18n/imKStoUCS.c |
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "Xlibint.h"
#include "Ximint.h"
static unsigned short const keysym_to_unicode_1a1_1ff[] = {
0x0104, 0x02d8, 0x0141, 0x0000, 0x013d, 0x015a, 0x0000, /* 0x01a0-0x01a7 */
0x0000, 0x0160, 0x015e, 0x0164, 0x0179, 0x0000, 0x017d, 0x017b, /* 0x01a8-0x0... |
astrangeguy/libx11-debian-mirror | src/Font.c | /*
Copyright 1986, 1998 The Open Group
Copyright (c) 2000 The XFree86 Project, Inc.
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright noti... |
astrangeguy/libx11-debian-mirror | modules/im/ximcp/imTrX.c | <reponame>astrangeguy/libx11-debian-mirror
/*
* Copyright 1992 Oracle and/or its affiliates. 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 restriction, i... |
astrangeguy/libx11-debian-mirror | src/Cr.h | <gh_stars>0
#ifndef _CR_H_
#define _CR_H_
extern int _XUpdateGCCache(
register GC gc,
register unsigned long mask,
register XGCValues *attr);
extern void _XNoticeCreateBitmap(
Display *dpy,
Pixmap pid,
unsigned int width,
unsigned int height);
extern void _XNoticePut... |
astrangeguy/libx11-debian-mirror | src/RegstFlt.c |
/*
* Copyright 1990, 1991 by OMRON Corporation
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice and this permi... |
astrangeguy/libx11-debian-mirror | src/xlibi18n/XDefaultIMIF.c | /*
Copyright 1985, 1986, 1987, 1991, 1998 The Open Group
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, ... |
astrangeguy/libx11-debian-mirror | src/StrKeysym.c | <reponame>astrangeguy/libx11-debian-mirror
/*
Copyright 1985, 1987, 1990, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyr... |
astrangeguy/libx11-debian-mirror | src/xcms/CvCols.c | <gh_stars>0
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
*
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and oth... |
astrangeguy/libx11-debian-mirror | src/GetStCmap.c |
/***********************************************************
Copyright 1987, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
c... |
astrangeguy/libx11-debian-mirror | src/xkb/XKBCompat.c | /************************************************************
Copyright (c) 1993 by Silicon Graphics Computer Systems, Inc.
Permission to use, copy, modify, and distribute this
software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copie... |
astrangeguy/libx11-debian-mirror | src/xkb/XKBBell.c | /************************************************************
Copyright (c) 1993 by Silicon Graphics Computer Systems, Inc.
Permission to use, copy, modify, and distribute this
software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copie... |
astrangeguy/libx11-debian-mirror | src/GetWAttrs.c | /*
Copyright 1986, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in suppor... |
astrangeguy/libx11-debian-mirror | src/xkb/XKBGetMap.c | <gh_stars>0
/************************************************************
Copyright (c) 1993 by Silicon Graphics Computer Systems, Inc.
Permission to use, copy, modify, and distribute this
software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear ... |
astrangeguy/libx11-debian-mirror | modules/im/ximcp/imLcPrs.c | <filename>modules/im/ximcp/imLcPrs.c
/******************************************************************
Copyright 1992 by Oki Technosystems Laboratory, Inc.
Copyright 1992 by Fuji Xerox Co., Ltd.
Permission to use, copy, modify, distribute, and sell this software
and its documentation for... |
astrangeguy/libx11-debian-mirror | src/xkb/XKBGeom.c | <reponame>astrangeguy/libx11-debian-mirror
/************************************************************
Copyright (c) 1993 by Silicon Graphics Computer Systems, Inc.
Permission to use, copy, modify, and distribute this
software and its documentation for any purpose and without
fee is hereby granted, provided that the... |
astrangeguy/libx11-debian-mirror | src/xkb/XKBlibint.h | /************************************************************
Copyright (c) 1993 by Silicon Graphics Computer Systems, Inc.
Permission to use, copy, modify, and distribute this
software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copie... |
astrangeguy/libx11-debian-mirror | src/xlibi18n/lcUniConv/koi8_c.h |
/*
* KOI8-C
*/
static const unsigned short koi8_c_2uni[128] = {
/* 0x80 */
0x0493, 0x0497, 0x049b, 0x049d, 0x04a3, 0x04af, 0x04b1, 0x04b3,
0x04b7, 0x04b9, 0x04bb, 0x2580, 0x04d9, 0x04e3, 0x04e9, 0x04ef,
/* 0x90 */
0x0492, 0x0496, 0x049a, 0x049c, 0x04a2, 0x04ae, 0x04b0, 0x04b2,
0x04b6, 0x04b8, 0x04ba, 0x... |
astrangeguy/libx11-debian-mirror | src/locking.h | <filename>src/locking.h
/*
Copyright 1992, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission... |
astrangeguy/libx11-debian-mirror | src/ErrHndlr.c | /*
Copyright 1986, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in suppor... |
astrangeguy/libx11-debian-mirror | src/xcms/cmsInt.c |
/*
* Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
* All Rights Reserved
*
* This file is a component of an X Window System-specific implementation
* of Xcms based on the TekColor Color Management System. Permission is
* hereby granted to use, copy, modify, sell, and otherwise distr... |
astrangeguy/libx11-debian-mirror | src/GetNrmHint.c | <filename>src/GetNrmHint.c
/***********************************************************
Copyright 1988 by Wyse Technology, Inc., San Jose, Ca,
Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
All Rights Reserved
Permission to use, copy, modify, and distribute this softw... |
astrangeguy/libx11-debian-mirror | src/Window.c | /*
Copyright 1986, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in suppor... |
astrangeguy/libx11-debian-mirror | src/Xintatom.h | <reponame>astrangeguy/libx11-debian-mirror<filename>src/Xintatom.h
#ifndef _XINTATOM_H_
#define _XINTATOM_H_ 1
#include <X11/Xfuncproto.h>
/* IntAtom.c */
#define TABLESIZE 64
typedef struct _Entry {
unsigned long sig;
Atom atom;
} EntryRec, *Entry;
#define RESERVED ((Entry) 1)
#define EntryName(e) ((cha... |
astrangeguy/libx11-debian-mirror | src/xkb/XKBList.c | /************************************************************
Copyright (c) 1995 by Silicon Graphics Computer Systems, Inc.
Permission to use, copy, modify, and distribute this
software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copie... |
astrangeguy/libx11-debian-mirror | src/GetMoEv.c | /*
Copyright 1986, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in suppor... |
astrangeguy/libx11-debian-mirror | src/ErrDes.c | /*
*/
/***********************************************************
Copyright 1987, 1988, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and tha... |
astrangeguy/libx11-debian-mirror | modules/im/ximcp/imThaiIm.c | <gh_stars>0
/******************************************************************
Copyright 1992, 1993, 1994 by FUJITSU LIMITED
Copyright 1993 by Digital Equipment Corporation
Permission to use, copy, modify, distribute, and sell this software
and its documentation for any purpose is hereby granted ... |
astrangeguy/libx11-debian-mirror | modules/im/ximcp/imDefLkup.c | /******************************************************************
Copyright 1992, 1993, 1994 by FUJITSU LIMITED
Permission to use, copy, modify, distribute, and sell this software
and its documentation for any purpose is hereby granted without fee,
provided that the above copyright notice appear in all c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.