repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
stsaz/alphahttpd
src/cmdline.h
<filename>src/cmdline.h /** alphahttpd: process command-line arguments 2022, <NAME> */ #include <util/cmdarg-scheme.h> #include <util/ipaddr.h> #include <FFOS/sysconf.h> #include <FFOS/process.h> #include <FFOS/path.h> #define R_DONE 100 #define R_BADVAL 101 static int ip_port_split(ffstr s, void *ip6, ffushort *p...
stsaz/alphahttpd
src/util/http1-status.h
<reponame>stsaz/alphahttpd /** alphahttpd: HTTP status codes and messages 2022, <NAME> */ enum HTTP_STATUS { HTTP_200_OK, HTTP_206_PARTIAL, HTTP_301_MOVED_PERMANENTLY, HTTP_302_FOUND, HTTP_304_NOT_MODIFIED, HTTP_400_BAD_REQUEST, HTTP_403_FORBIDDEN, HTTP_404_NOT_FOUND, HTTP_405_METHOD_NOT_ALLOWED, HTTP_413_...
stsaz/alphahttpd
src/http/client.c
<gh_stars>0 /** alphahttpd: client 2022, <NAME> */ /* Modules chain when serving a file: request -> index -> file/error <-> content-length <-> response -> access-log */ #include <alphahttpd.h> #include <util/http1.h> #include <util/http1-status.h> #include <util/ipaddr.h> #include <util/range.h> #include <FFOS/socket...
stsaz/alphahttpd
src/main.c
/** alphahttpd: startup 2022, <NAME> */ #include <alphahttpd.h> #include <log.h> #include <cmdline.h> #include <FFOS/signal.h> #include <FFOS/ffos-extern.h> #ifdef FF_UNIX #include <sys/resource.h> #endif int _ffcpu_features; struct ahd_conf *ahd_conf; static struct ahd_boss *boss; static int FFTHREAD_PROCCALL kcq_...
stsaz/alphahttpd
src/util/ltconf.h
<reponame>stsaz/alphahttpd /** Light config parser 2022, <NAME> */ /* Format: [SPACE] KEY [SPACE VAL]... [SPACE #COMMENT] LF SPACE: tab, space or CR characters KEY, VAL: word consisting of printable characters */ #pragma once #include <ffbase/string.h> struct ltconf { ffuint line, line_char; // line# and charac...
stsaz/alphahttpd
src/http/file.h
<reponame>stsaz/alphahttpd<gh_stars>0 /** alphahttpd: static file filter/module 2022, <NAME> */ #include <util/ltconf.h> #include <ffbase/map.h> static int file_open(struct client *c) { if (c->resp_err) return CHAIN_SKIP; c->file.f = FFFILE_NULL; ffstr method = range16_tostr(&c->req.method, c->req.buf.ptr); i...
stsaz/alphahttpd
src/http/index.h
/** alphahttpd: index document 2022, <NAME> */ static int index_open(struct client *c) { if (c->resp_err || c->req.unescaped_path.ptr[c->req.unescaped_path.len-1] != '/') return CHAIN_SKIP; return CHAIN_FWD; } void index_close(struct client *c) { ffvec_free(&c->index.buf); } /** ".../" -> ".../index.html" */...
ilap/MaterialComponentsXamarin
references/MotionTransitioning.framework/Headers/UIViewController+TransitionController.h
/* Copyright 2017-present The Material Motion Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
ilap/MaterialComponentsXamarin
references/MotionAnimator.framework/Headers/MDMAnimatableKeyPaths.h
/* Copyright 2017-present The Material Motion Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
ilap/MaterialComponentsXamarin
references/MaterialComponents.framework/Headers/MDCTextInputControllerDefault.h
/* Copyright 2017-present the Material Components for iOS authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless requ...
ilap/MaterialComponentsXamarin
references/MotionInterchange.framework/Headers/MotionInterchange-umbrella.h
<filename>references/MotionInterchange.framework/Headers/MotionInterchange-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 "MDMMotionCurve.h" #import "MDM...
ilap/MaterialComponentsXamarin
references/MotionAnimator.framework/Headers/MDMMotionAnimator.h
/* Copyright 2017-present The Material Motion Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
lbussy/bee-snuggler
src/pidchambertemp.h
<filename>src/pidchambertemp.h /* Copyright (C) 2021 <NAME> (@LBussy) This file is part of Lee Bussy's Bee Snuggler (bee-snuggler). 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 restric...
lbussy/bee-snuggler
src/pwmheat.h
<filename>src/pwmheat.h<gh_stars>0 /* Copyright (C) 2021 <NAME> (@LBussy) This file is part of Lee Bussy's Bee Snuggler (bee-snuggler). 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 res...
lbussy/bee-snuggler
src/ntphandler.h
/* Copyright (C) 2021 <NAME> (@LBussy) This file is part of Lee Bussy's Bee Snuggler (bee-snuggler). 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 limitat...
lbussy/bee-snuggler
src/tools.h
/* Copyright (C) 2021 <NAME> (@LBussy) This file is part of Lee Bussy's Bee Snuggler (bee-snuggler). 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 limitat...
lbussy/bee-snuggler
src/jsonconfig.h
<reponame>lbussy/bee-snuggler /* Copyright (C) 2021 <NAME> (@LBussy) This file is part of Lee Bussy's Bee Snuggler (bee-snuggler). 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 restrict...
lbussy/bee-snuggler
research/sta-ap/mdnshandler.h
<reponame>lbussy/bee-snuggler<filename>research/sta-ap/mdnshandler.h<gh_stars>0 #pragma once #ifndef _MDNSHANDLER_H #define _MDNSHANDLER_H #ifdef ESP32 #include <ESPmDNS.h> #include <WiFi.h> #elif ESP8266 #include <ESP8266mDNS.h> #include <ESP8266WiFi.h> #else #error Platform not supported #endif #include "secret.h" ...
lbussy/bee-snuggler
research/sta-ap/webhandler.h
<reponame>lbussy/bee-snuggler<filename>research/sta-ap/webhandler.h<gh_stars>0 #pragma once #ifndef _CAPTIVE_H #define _CAPTIVE_H #ifdef ESP32 #include <WiFi.h> #include <AsyncTCP.h> #include <SPIFFS.h> #elif ESP8266 #include <ESP8266WiFi.h> #include <ESPAsyncTCP.h> #include <LittleFS.h> #endif #include "secret.h" #i...
lbussy/bee-snuggler
research/sta-ap/wifihandler.h
<gh_stars>0 #pragma once #ifndef _WIFIHANDLER_H #define _WIFIHANDLER_H #ifdef ESP32 #include <WiFi.h> #elif ESP8266 #include <ESP8266WiFi.h> #else #error Platform not supported #endif #include "secret.h" #include "mdnshandler.h" #include "webhandler.h" #include "setserial.h" #include <ArduinoLog.h> #include <DNSServe...
lbussy/bee-snuggler
src/config.h
<filename>src/config.h<gh_stars>0 /* Copyright (C) 2021 <NAME> (@LBussy) This file is part of Lee Bussy's Bee Snuggler (bee-snuggler.) 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 rest...
lbussy/bee-snuggler
src/api.h
<filename>src/api.h<gh_stars>0 /* Copyright (C) 2021 <NAME> (@LBussy) This file is part of Lee Bussy's Bee Snuggler (bee-snuggler). 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 restric...
lbussy/bee-snuggler
src/tempsensors.h
/* Copyright (C) 2021 <NAME> (@LBussy) This file is part of Lee Bussy's Bee Snuggler (bee-snuggler). 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 limitat...
lbussy/bee-snuggler
research/sta-ap/main.h
#pragma once #ifndef _MAIN_H #define _MAIN_H #include <ArduinoLog.h> #include <Ticker.h> #include "secret.h" #include "setserial.h" #include "webhandler.h" #include "mdnshandler.h" #include "wifihandler.h" #endif // _MAIN_H
lbussy/bee-snuggler
src/webpagehandler.h
<gh_stars>0 /* Copyright (C) 2021 <NAME> (@LBussy) This file is part of Lee Bussy's Bee Snuggler (bee-snuggler). 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 wit...
lbussy/bee-snuggler
research/sta-ap/setserial.h
#pragma once #ifndef _SETSERIAL_H #define _SETSERIAL_H #include <Arduino.h> #include <ArduinoLog.h> void printTimestamp(Print *_logOutput); void printLogLevel(Print *_logOutput, int logLevel); void printPrefix(Print *_logOutput, int logLevel); void printSuffix(Print *_logOutput, int logLevel); void setSerial(); #end...
mumabinggan/JHKit
JHKit/Common/Manager/JHXMLParserManager.h
<filename>JHKit/Common/Manager/JHXMLParserManager.h // // JHXMLParserManager.h // JHKit // // Created by muma on 2017/2/1. // Copyright © 2017年 <EMAIL>. All rights reserved. // #import <Foundation/Foundation.h> typedef void (^JHXMLParserCompletion)(id result, NSError *error); @interface JHXMLParserManager : NSOb...
mumabinggan/JHKit
JHKit/Common/UI/JHTableViewHeaderFooterView.h
<gh_stars>0 // // JHTableViewHeaderFooterView.h // JHKit // // Created by muma on 2017/2/8. // Copyright © 2017年 <EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> @interface JHTableViewHeaderFooterView : UITableViewHeaderFooterView - (void)loadSubviews; - (void)showWithData:(JHObject *)data; @end
mumabinggan/JHKit
JHKit/Common/Manager/JHLocalSettings.h
// // JHLocalSettings.h // JHKit // // Created by muma on 2016/10/16. // Copyright © 2016年 mumuxinxinCompany. All rights reserved. // #import "JHObject.h" @interface JHLocalSettings : JHObject + (JHLocalSettings *)sharedSettings; - (id)getSettingsForKey:(NSString *)key; - (void)setSettings:(id)settings forKey:...
mumabinggan/JHKit
JHKit/JHKit.h
// // JHKit.h // JHKit // // Created by muma on 2016/10/21. // Copyright © 2016年 <EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> #import "JHMacro.h" #import "JHCategorys.h" #import "JHBases.h" #import "JHWidgets.h" #import "JHManager.h" #import "Masonry.h" #define MAS_SHORTHAND #define MAS_SHORTHAND_GLO...
mumabinggan/JHKit
JHKit/Common/Manager/JHNetworkManager.h
<reponame>mumabinggan/JHKit // // JHNetworkManager.h // JHKit // // Created by muma on 2016/10/16. // Copyright © 2016年 mumuxinxinCompany. All rights reserved. // #import "JHObject.h" @class JHRequest, JHResponse; @interface JHLogin : JHObject @property (nonatomic, assign) long long code; @property (nonatomic, ...
mumabinggan/JHKit
JHKit/Common/UI/JHRefreshTableView.h
// // JHRefreshTableView.h // JHKit // // Created by muma on 2017/1/4. // Copyright © 2017年 <EMAIL>. All rights reserved. // #import "TWRefreshTableView.h" @interface JHRefreshTableView : TWRefreshTableView @end
mumabinggan/JHKit
JHKit/Common/UI/JHScrollView.h
// // JHScrollView.h // JHKit // // Created by muma on 2016/12/10. // Copyright © 2016年 <EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> @interface JHScrollView : UIScrollView @end
mumabinggan/JHKit
JHKit/Category/UI/UIImageView+JHKit.h
// // UIImageView+JHWebImage.h // JHKit // // Created by muma on 16/10/6. // Copyright © 2016年 mumuxinxinCompany. All rights reserved. // #import <UIKit/UIKit.h> #import "UIImageView+WebCache.h" typedef NS_ENUM(NSInteger, JHWebImageOptions) { //if download error, try again JHWebImageOptionsRetryFailed = 1...
mumabinggan/JHKit
JHKit/Common/Base/JHWebViewController.h
// // Copyright 2016 Chris. // // 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...
mumabinggan/JHKit
JHKit/Category/UI/UIColor+JHKit.h
<filename>JHKit/Category/UI/UIColor+JHKit.h // // UIColor+RGB.h // JHKit // // Created by muma on 16/10/4. // Copyright © 2016年 mumuxinxinCompany. All rights reserved. // #import <UIKit/UIKit.h> @interface UIColor (JHRGB) - (CGFloat)redFloat; - (CGFloat)greenFloat; - (CGFloat)blueFloat; - (CGFloat)alphaFloat;...
mumabinggan/JHKit
JHKit/Common/UI/JHTableViewCell.h
// // JHTableViewCell.h // JHKit // // Created by muma on 2016/10/16. // Copyright © 2016年 mumuxinxinCompany. All rights reserved. // #import <UIKit/UIKit.h> @class JHObject; @interface JHTableViewCell : UITableViewCell { //JHObject *_data; JHView *_contentView; } - (void)loadSubviews; - (void)...
mumabinggan/JHKit
JHKit/Common/JHBases.h
<gh_stars>0 // // JHBases.h // JHKit // // Created by muma on 16/10/7. // Copyright © 2016年 mumuxinxinCompany. All rights reserved. // #ifndef JHBases_h #define JHBases_h #import "JHObject.h" #import "JHRequest.h" #import "JHResponse.h" #import "JHViewController.h" #import "JHNavigationController.h" #import "JHAn...
mumabinggan/JHKit
JHKit/Common/UI/JHPageControl.h
// // JHPageControl.h // JHKit // // Created by muma on 2017/3/28. // Copyright © 2017年 <EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> @interface JHPageControl : UIPageControl @property (nonatomic, strong) UIImage *activeImage; @property (nonatomic, strong) UIImage *deactiveImage; @end
mumabinggan/JHKit
JHKit/Common/JHWidgets.h
// // JHWidgets.h // JHKit // // Created by muma on 16/10/7. // Copyright © 2016年 mumuxinxinCompany. All rights reserved. // #ifndef JHWidgets_h #define JHWidgets_h #import "JHView.h" #import "JHImageView.h" #import "JHLabel.h" #import "JHButton.h" #import "JHActionSheet.h" #import "JHAlert.h" #import "JHBadgeVie...
mumabinggan/JHKit
JHKit/Common/UI/TWLoadingView.h
// // TWLoadingView.h // EasyBaking // // Created by Chris on 1/21/15. // Copyright (c) 2015 iEasyNote. All rights reserved. // #import "JHPopoverView.h" @interface TWLoadingView : JHPopoverView @property (nonatomic, strong) NSString *message; @property (nonatomic, strong) JHImageView *gifImageView; - (void) st...
mumabinggan/JHKit
JHKit/Category/UI/UIView+JHKit.h
// // UIView+Frame.h // JHKit // // Created by muma on 16/9/30. // Copyright © 2016年 mumuxinxinCompany. All rights reserved. // #import <UIKit/UIKit.h> @interface UIView (Frame) @property (nonatomic, assign) CGFloat x; @property (nonatomic, assign) CGFloat y; @property (nonatomic, assign) CGFloat width; @prop...
mumabinggan/JHKit
JHKit/Common/Base/JHResponse.h
<reponame>mumabinggan/JHKit // // JHResponse.h // JHKit // // Created by muma on 16/10/7. // Copyright © 2016年 mumuxinxinCompany. All rights reserved. // #import "JHObject.h" @interface JHResponse : JHObject //@property (nonatomic, strong) NSString *code; @property (nonatomic, assign) NSInteger code; @property ...
mumabinggan/JHKit
JHKit/Common/UI/JHAnimatedImageView.h
<filename>JHKit/Common/UI/JHAnimatedImageView.h // // JHAnimatedImageView.h // JHKit // // Created by muma on 2017/1/20. // Copyright © 2017年 <EMAIL>. All rights reserved. // #import "FLAnimatedImageView.h" @interface JHAnimatedImageView : FLAnimatedImageView @end
mumabinggan/JHKit
JHKit/Common/UI/JHView.h
<reponame>mumabinggan/JHKit<filename>JHKit/Common/UI/JHView.h // // JHView.h // JHKit // // Created by muma on 16/10/1. // Copyright © 2016年 mumuxinxinCompany. All rights reserved. // #import <UIKit/UIKit.h> #import "JHMacro.h" @interface JHView : UIView { JHRadius _difRadius; CGFloat _radius; } @property...
mumabinggan/JHKit
JHKit/BaseMacro/Constants/JHConstants_Device.h
<filename>JHKit/BaseMacro/Constants/JHConstants_Device.h // // JHConstants_Device.h // JHKit // // Created by muma on 16/10/4. // Copyright © 2016年 mumuxinxinCompany. All rights reserved. // #ifndef JHConstants_Device_h #define JHConstants_Device_h #define kMainScreenScale (UIScreen.mainScreen().scale) #ifndef k...
mumabinggan/JHKit
JHKit/Category/UI/UILabel+JHKit.h
// // UILabel+JHKit.h // JHKit // // Created by muma on 2017/3/17. // Copyright © 2017年 <EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> @interface UILabel (JHKit) - (void)setPartString:(NSString *)str attributes:(NSDictionary *)attrs; - (void)addPrefixString:(NSString *)str attributes:(NSDictionary *...
mumabinggan/JHKit
JHKit/Common/UI/JHAnimatedImage.h
// // JHAnimatedImage.h // JHKit // // Created by muma on 2017/1/20. // Copyright © 2017年 <EMAIL>. All rights reserved. // #import "FLAnimatedImage.h" @interface JHAnimatedImage : FLAnimatedImage @end
mumabinggan/JHKit
JHKit/Category/UI/UIButton+JHKit.h
// // UIButton+JHKit.h // JHKit // // Created by muma on 2016/12/10. // Copyright © 2016年 <EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> @interface UIButton (JHKit) - (void)setImageWithURL:(nullable NSURL *)url forState:(UIControlState)state placeholderImage:(nullable UIImage *)pl...
mumabinggan/JHKit
JHKit/Category/NS/NSArray+JHKit.h
<reponame>mumabinggan/JHKit // // NSArray+Utilities.h // JHKit // // Created by muma on 16/10/4. // Copyright © 2016年 mumuxinxinCompany. All rights reserved. // #import <Foundation/Foundation.h> @interface NSArray (JHUtilities) - (NSString *)join:(NSString *)string; @end
mumabinggan/JHKit
JHKit/Common/UI/JHCollectionViewLayout.h
// // JHCollectionViewLayout.h // JHKit // // Created by muma on 2017/1/9. // Copyright © 2017年 <EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> @interface JHCollectionViewLayout : UICollectionViewLayout @end
mumabinggan/JHKit
JHKit/BaseMacro/Constants/JHConstants_Other.h
<gh_stars>0 // // JHConstants_Other.h // JHKit // // Created by muma on 2017/3/27. // Copyright © 2017年 <EMAIL>. All rights reserved. // #ifndef JHConstants_Other_h #define JHConstants_Other_h #define WeakSelf __weak typeof(self) weakSelf = self; //Notification static NSString *kNotificationReLoginRequired = @"k...
mumabinggan/JHKit
JHKit/Common/Manager/JHCacheManager.h
<reponame>mumabinggan/JHKit<filename>JHKit/Common/Manager/JHCacheManager.h // // JHCacheManager.h // JHKit // // Created by muma on 2017/1/20. // Copyright © 2017年 <EMAIL>. All rights reserved. // #import <Foundation/Foundation.h> @interface JHCacheManager : NSObject + (JHCacheManager *)sharedCacheManager; - (v...
mumabinggan/JHKit
JHKit/Common/UI/JHCollectionViewCell.h
<filename>JHKit/Common/UI/JHCollectionViewCell.h // // JHCollectionViewCell.h // JHKit // // Created by muma on 2016/10/16. // Copyright © 2016年 mumuxinxinCompany. All rights reserved. // #import <UIKit/UIKit.h> @class JHObject; @interface JHCollectionViewCell : UICollectionViewCell { JHObject *_data; } - (...
mumabinggan/JHKit
JHKit/Common/Manager/JHManager.h
// // JHManager.h // JHKit // // Created by muma on 2017/2/5. // Copyright © 2017年 <EMAIL>. All rights reserved. // #ifndef JHManager_h #define JHManager_h #import "JHAddressBookReader.h" #import "JHContact.h" #import "JHLocalSettings.h" #import "JHNetworkManager.h" #import "JHCacheManager.h" #import "JHXMLParser...
Rebirator/GLadiators.technology-v2-Rifk7
sdk/c_anim_overlays.h
<gh_stars>1-10 #pragma once class c_anim_overlays { public: char pad_0000[20]; // These should also be present in the padding, don't see the use for it though //float m_flLayerAnimtime; //float m_flLayerFadeOuttime; unsigned int m_nOrder; //0x0014 unsigned int m_nSequence; //0x0018 float m_flPrevCycle; //0x001...
Rebirator/GLadiators.technology-v2-Rifk7
hacks/c_aimhelper.h
#pragma once #include "../sdk/c_vector3d.h" #include "../sdk/c_cs_player.h" #include "c_animation_system.h" #include <optional> #include "../utils/c_config.h" class c_aimhelper : public singleton<c_aimhelper> // singleton ftw { static constexpr auto total_seeds = 255; static constexpr auto pi_2 = 6.283186f; public...
Rebirator/GLadiators.technology-v2-Rifk7
utils/c_log.h
<gh_stars>1-10 #pragma once #include "c_singleton.h" #include <string> class c_log : public c_singleton<c_log> { enum class logtype { debug, info, warning, error }; public: c_log(); static void debug(const std::string& message); static void info(const std::string& message); static void warning(const std::strin...
Rebirator/GLadiators.technology-v2-Rifk7
hacks/c_trace_system.h
<reponame>Rebirator/GLadiators.technology-v2-Rifk7 #pragma once #include <optional> #include "../utils/c_singleton.h" #include "../sdk/c_cs_player.h" #include "../sdk/c_engine_trace.h" #include "c_animation_system.h" class c_trace_system : public c_singleton<c_trace_system> { public: struct wall_pen { float damag...
Rebirator/GLadiators.technology-v2-Rifk7
hooks/c_client.h
<gh_stars>1-10 #pragma once #include "../sdk/c_base_client.h" class c_client { typedef void(__thiscall* shutdown_t)(c_base_client*); typedef void(__thiscall* level_init_pre_entity_t)(c_base_client*, const char*); typedef void(__thiscall* create_move_t)(c_base_client*, int, float, bool); typedef void(__thiscall* f...
Rebirator/GLadiators.technology-v2-Rifk7
hooks/idirect3ddevice9.h
#pragma once #include "../includes.h" #include "../renderer/c_renderer.h" class idirect3ddevice9 : public c_singleton<idirect3ddevice9> { typedef HRESULT(__stdcall* reset_t)(IDirect3DDevice9*, D3DPRESENT_PARAMETERS*); typedef HRESULT(__stdcall* end_scene_t)(IDirect3DDevice9*); public: idirect3ddevice9(); c_r...
Rebirator/GLadiators.technology-v2-Rifk7
utils/math.h
<reponame>Rebirator/GLadiators.technology-v2-Rifk7 #pragma once #include "../sdk/c_vector3d.h" #include "../sdk/c_vector2d.h" #include "../sdk/matrix.h" #include "c_memory.h" constexpr auto rad_pi = 57.295779513082f; #define rad2deg(x) ((float)(x) * (float)(180.f / pi)) #define deg2rad(x) ((float)(x) * (float)(pi / ...
Rebirator/GLadiators.technology-v2-Rifk7
hacks/c_hitmarker.h
#pragma once #include "../sdk/c_game_event_manager.h" class c_hitmarker { public: static void draw(); static void on_player_hurt(c_game_event* event); private: static int hit_alpha; };
Rebirator/GLadiators.technology-v2-Rifk7
sdk/c_vector3d.h
#pragma once #ifdef NDEBUG #define Assert( _exp ) ((void)0) #else #define Assert(x) #endif #include "class_id.h" #include <sstream> #define CHECK_VALID( _v ) 0 #define FastSqrt(x) (sqrt)(x) #define deg(a) a * 57.295779513082 #define M_PI 3.14159265358979323846 // matches value in gcc v2 math.h #define M_PI_2 ...
Rebirator/GLadiators.technology-v2-Rifk7
hacks/c_ragebot.h
#pragma once #include "../includes.h" #include "c_animation_system.h" #include "c_aimhelper.h" class c_ragebot { using aim_info = c_aimhelper::aim_info; struct autostop_info { float call_time; bool did_stop; }; public: static void aim(c_cs_player* local, c_user_cmd* cmd, bool& send_packet); static void au...
Rebirator/GLadiators.technology-v2-Rifk7
utils/welcome_message.h
<gh_stars>1-10 #pragma once #include <sstream> #include "../security/string_obfuscation.h" static const auto welcome_message = []() -> std::pair<std::string, char> { std::stringstream str; str << _( " _______ ___ __ _ \n" " / ___/ / ___ ____/ (_)_...
Rebirator/GLadiators.technology-v2-Rifk7
hacks/c_animation_system.h
#pragma once #include <deque> #include <utility> #include <mutex> #include "../sdk/c_cs_player.h" #include "../sdk/c_client_state.h" #include "../sdk/c_global_vars_base.h" #include "../sdk/c_cvar.h" enum resolver_state { resolver_start, resolver_brute1, resolver_brute2, resolver_brute3, resolver_brute4, resolve...
Rebirator/GLadiators.technology-v2-Rifk7
fonts/visitor_tt2_brk.h
<reponame>Rebirator/GLadiators.technology-v2-Rifk7<gh_stars>1-10 #pragma once //File size: 37388 static unsigned char visitor_tt2_brk[] = { 0x00, 0x01, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x80, 0x00, 0x03, 0x00, 0x70, 0x4C, 0x54, 0x53, 0x48, 0x96, 0x4E, 0x7F, 0x5B, 0x00, 0x00, 0x00, 0xFC, 0x00, 0x00, 0x00, 0xE7, 0x4F, 0x5...
Rebirator/GLadiators.technology-v2-Rifk7
sounds/sounds.h
#pragma once extern const unsigned char cod[3012]; extern const unsigned char doublekill[37558]; extern const unsigned char headshot[2827]; extern const unsigned char laser[4852]; extern const unsigned char quadkill[143452]; extern const unsigned char quake[6120]; extern const unsigned char roblox[15114]; extern const...
Rebirator/GLadiators.technology-v2-Rifk7
utils/c_config.h
#pragma once #include "c_singleton.h" #include "../security/fnv1a.h" #include "../security/string_obfuscation.h" #include "../sdk/c_color.h" #include "base64.h" #include <fstream> using json = nlohmann::json; #define make_key(var) std::to_string(fnv1a(var)) class c_config : public c_singleton<c_config> { public: s...
Rebirator/GLadiators.technology-v2-Rifk7
menu/c_menu.h
<filename>menu/c_menu.h #pragma once #include "../includes.h" #include "framework/c_flow_layout.h" class c_menu : public c_singleton<c_menu>, public c_flow_layout { public: c_menu(); void draw(c_vector2d position = c_vector2d()) override; std::optional<c_drawable*> get_foreground_element_by_position(c_vector2d po...
Rebirator/GLadiators.technology-v2-Rifk7
hacks/c_esp.h
<reponame>Rebirator/GLadiators.technology-v2-Rifk7<filename>hacks/c_esp.h #pragma once #include "../includes.h" #include "../hooks/idirect3ddevice9.h" #include <mutex> class c_esp { struct player_info { c_base_handle handle{}; c_cs_player* player{}; int32_t index{}; char name[16]{}; c_vector3d origin; c...
Rebirator/GLadiators.technology-v2-Rifk7
hooks/c_client_mode_shared.h
#pragma once #include "../includes.h" #include "../sdk/misc.h" class c_client_mode_shared { typedef void(__thiscall* override_view_t)(uintptr_t*, c_view_setup*); typedef void(__thiscall* override_mouse_input_t)(uintptr_t*, float*, float*); typedef bool(__thiscall* should_draw_fog_t)(uintptr_t*); typedef bool(__th...
Rebirator/GLadiators.technology-v2-Rifk7
hooks/c_net_channel_.h
#pragma once #include "../includes.h" #include "../sdk/c_client_state.h" class c_net_channel_ { typedef void(__thiscall* process_packet_t)(c_net_channel*, void*, bool); typedef bool(__thiscall* send_netmsg_t)(c_net_channel*, c_net_msg*, bool, bool); typedef int(__thiscall* send_datagram_t)(c_net_channel*, void*); ...
Rebirator/GLadiators.technology-v2-Rifk7
sdk/c_view_beams.h
#pragma once #include "macros.h" enum { TE_BEAMPOINTS = 0x00, // beam effect between two points TE_SPRITE = 0x01, // additive sprite, plays 1 cycle TE_BEAMDISK = 0x02, // disk that expands to max radius over lifetime TE_BEAMCYLINDER = 0x03, // cylinder that expands to max radius over lifetime TE_BEAMFOLLOW = 0...
Rebirator/GLadiators.technology-v2-Rifk7
hacks/c_miscellaneous.h
#pragma once #include "../hooks/c_view_render_.h" #include "../sdk/c_user_cmd.h" class c_miscellaneous { public: static void disable_post_processing(); static void unlock_client_command_buffer(); static void remove_visual_recoil(c_view_setup& view); static void change_fov(c_view_setup& view); static void set_view...
Rebirator/GLadiators.technology-v2-Rifk7
sdk/c_base_combat_weapon.h
<gh_stars>1-10 #pragma once #include "c_base_attributable_item.h" enum weapon_type { weapontype_knife = 1, weapontype_pistol, weapontype_submachinegun, weapontype_rifle, weapontype_shotgun, weapontype_sniper_rifle, weapontype_machinegun, weapontype_c4, weapontype_grenade, weapontype_unknown }; class c_base...
Rebirator/GLadiators.technology-v2-Rifk7
hacks/c_movement.h
#pragma once #include "../includes.h" class c_movement { public: static void run(c_cs_player* local, c_user_cmd* cmd); private: static void bhop( c_cs_player* local, c_user_cmd* cmd ); static void autostrafe( c_cs_player* local, c_user_cmd* cmd ); };
Rebirator/GLadiators.technology-v2-Rifk7
utils/c_memory.h
<gh_stars>1-10 #pragma once #include <Windows.h> #include <TlHelp32.h> #include <cstdint> #include <vector> #include <algorithm> #include <string> #include <fstream> #include <wintrust.h> #include <softpub.h> #include "defs.h" #include "../security/fnv1a.h" #include "../security/string_obfuscation.h" #include <Psapi.h...
Rebirator/GLadiators.technology-v2-Rifk7
fonts/profont.h
#pragma once static unsigned char profont[] = { 0x00, 0x01, 0x00, 0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x04, 0x00, 0x00, 0x46, 0x46, 0x54, 0x4D, 0x65, 0x58, 0x7E, 0x4F, 0x00, 0x00, 0xB6, 0x08, 0x00, 0x00, 0x00, 0x1C, 0x47, 0x44, 0x45, 0x46, 0x00, 0x27, 0x01, 0x43, 0x00, 0x00, 0xB5, 0xE0, 0x00, 0x00, 0x00, 0x26, 0x...
Rebirator/GLadiators.technology-v2-Rifk7
hacks/c_chams.h
#pragma once #include <functional> #include "../utils/c_config.h" #include "../sdk/c_cs_player.h" class c_chams : public c_singleton<c_chams> { public: c_chams(); void latch_timer(); static void draw_players(); static bool get_backtrack_matrix(c_cs_player* player, matrix3x4* out); static void player_chams(std...
Rebirator/GLadiators.technology-v2-Rifk7
utils/c_singleton.h
<reponame>Rebirator/GLadiators.technology-v2-Rifk7<gh_stars>1-10 #pragma once template<typename t> class c_singleton { public: template<typename... Args> static t* instance(Args&&... args); protected: c_singleton() = default; ~c_singleton() = default; }; template<typename t> template<typename... Args> t* c_sin...
Rebirator/GLadiators.technology-v2-Rifk7
utils/defs.h
<gh_stars>1-10 #pragma once #include <cstdint> #include <Windows.h> #include <winternl.h> // ReSharper disable CppInconsistentNaming #define FILE_OPEN 0x00000001 #define FILE_NON_DIRECTORY_FILE 0x00000040 #define FILE_OPEN_BY_FILE_ID 0x00002000 #define THREAD_CREATE_FLAGS_CREATE_SUSPENDED 0x00000001 #define THREAD_C...
Rebirator/GLadiators.technology-v2-Rifk7
hacks/c_antiaim.h
<filename>hacks/c_antiaim.h #pragma once #include "../includes.h" class c_antiaim : public c_singleton<c_antiaim> { public: void fakelag(c_cs_player* local, c_user_cmd* cmd, bool& send_packet); void run(c_cs_player* local, c_user_cmd* cmd, bool& send_packet, int sequence); void prepare_animation(c_cs_player* local...
Rebirator/GLadiators.technology-v2-Rifk7
c_rifk.h
#pragma once #include "includes.h" struct rifk_loader_info { // not null terminated - use with caution char loader_path[MAX_PATH]; char username[32]; uint32_t days_remaining; }; __declspec(dllexport) extern rifk_loader_info loader_info; class c_rifk : public c_singleton<c_rifk> { public: c_rifk(); }; #define r...
tkob/mlmsgpack
testsuite/msgpack-echo.c
#include <msgpack.h> #include <stdio.h> #define BUFFER_SIZE (8 * 1024) int main(int argc, char* argv[]) { msgpack_unpacker unpacker; msgpack_unpacked unpacked; char* buffer; size_t size; msgpack_unpacker_init(&unpacker, MSGPACK_UNPACKER_INIT_BUFFER_SIZE); msgpack_unpac...
benjamin6817/chip8
CHIP-8 Emulator/src/Key.h
<filename>CHIP-8 Emulator/src/Key.h #pragma once #include <GLFW/glfw3.h> enum class Key { Escape = GLFW_KEY_ESCAPE, Alpha1 = GLFW_KEY_1, Alpha2 = GLFW_KEY_2, Alpha3 = GLFW_KEY_3, Alpha4 = GLFW_KEY_4, Q = GLFW_KEY_Q, W = GLFW_KEY_W, E = GLFW_KEY_E, R = GLFW_KEY_R, A = GLFW_KEY_...
benjamin6817/chip8
CHIP-8 Emulator/src/Chip8.h
#pragma once #include <cstddef> #include <cstdint> #include <stack> #include <unordered_map> #include <GL/glew.h> #include <GLFW/glfw3.h> #include "Window.h" #include "Display.h" #include "Keypad.h" class Chip8 { public: Chip8(); Chip8(const char* programPath); void init(); void reset(); void l...
benjamin6817/chip8
CHIP-8 Emulator/src/Keypad.h
#pragma once #include <unordered_map> #include "Key.h" enum class KeypadKey { Zero = 0x0, One = 0x1, Two = 0x2, Three = 0x3, Four = 0x4, Five = 0x5, Six = 0x6, Seven = 0x7, Eight = 0x8, Nine = 0x9, A = 0xA, B = 0xB, C = 0xC, D = 0xD, E = 0xE, F = 0xF, ...
benjamin6817/chip8
CHIP-8 Emulator/src/Window.h
#pragma once #include <GLFW/glfw3.h> #include "Key.h" class Window; typedef void (*KeyHandler)(Window* window, Key key, bool isPressed); typedef void (*ResizeHandler)(Window* window, int width, int height); class Window { public: Window(int initialWidth, int initialHeight, const char* title); ~Window(); ...
benjamin6817/chip8
CHIP-8 Emulator/src/Display.h
<filename>CHIP-8 Emulator/src/Display.h #pragma once #include <cstdint> #include <GL/glew.h> enum class Pixel { Black = 0, White = 1, }; class Display { public: Display(); ~Display(); void init(); void update(); void render(); void clear(); void set(int x, int y, Pixel p); ...
cimpresovec/rattler_race
settingsScene.h
#ifndef SETTINGSSCENE_H #define SETTINGSSCENE_H #include "gameScene.h" #include "assetManager.h" class SettingsScene : public GameScene { public: SettingsScene(sf::RenderWindow *window, sf::Event *event, AssetManager *manager); virtual ~SettingsScene(); void handleInput(); void handleLogic(); voi...
cimpresovec/rattler_race
ball.h
<filename>ball.h<gh_stars>0 #ifndef BALL_H #define BALL_H #include "assetManager.h" #include "snake.h" class Ball { private: sf::Vector2i position; sf::Vector2i speed; sf::RectangleShape render_rect; int prev_tile; public: Ball(const int x, const int y, const int win_x, const int win_y, sf::Textur...
cimpresovec/rattler_race
gameScene.h
#ifndef GAMESCENE_H #define GAMESCENE_H #include <SFML/Graphics.hpp> #include <SFML/Audio.hpp> #include "assetManager.h" //Game scenes enum GameSceneType { none = 0, quit = 1, main_menu = 2, level = 3, level_editor = 4, setting = 5, leaderboard = 6 }; //Abstract for game scene class Game...
cimpresovec/rattler_race
assetManager.h
<reponame>cimpresovec/rattler_race<filename>assetManager.h<gh_stars>0 #ifndef ASSETMANAGER_H #define ASSETMANAGER_H #define WIDTH 33 #define HEIGHT 33 #define TOP_MARGIN 100 #include <map> #include <string> #include <SFML/Graphics.hpp> class AssetManager { private: std::map<std::string, sf::Texture*> textures; ...
cimpresovec/rattler_race
leaderboardScene.h
#ifndef LEADERBOARDSCENE_H #define LEADERBOARDSCENE_H #include "gameScene.h" #include "assetManager.h" #include <fstream> #include <string> #include <vector> #include <iostream> #define WINDOW_WIDTH 561 class LeaderboardScene : public GameScene { private: std::vector<std::string> topPlayers; public: Leaderboa...
cimpresovec/rattler_race
enemySnake.h
#ifndef ENEMYSNAKE_H #define ENEMYSNAKE_H #include <vector> #include "assetManager.h" class EnemySnake { private: std::vector<sf::Vector2i> positions; sf::RectangleShape render_rect; sf::Vector2i direction; unsigned int grow_count; public: EnemySnake(const int x, const int y, const int win_x, co...
cimpresovec/rattler_race
levelEditorScene.h
<reponame>cimpresovec/rattler_race<filename>levelEditorScene.h #ifndef LEVELEDITORSCENE_H #define LEVELEDITORSCENE_H #include "gameScene.h" #include "assetManager.h" #include <string> #include <fstream> #include <iostream> #include <cmath> #ifndef kLEVEL_SIDE_DIMENSION #define kLEVEL_SIDE_DIMENSION 33 #endif #i...
cimpresovec/rattler_race
snake.h
#ifndef SNAKE_H #define SNAKE_H #include <SFML/Graphics.hpp> #include "assetManager.h" #include <vector> #include <string> #include <iostream> class Snake { public: Snake(sf::RenderWindow *window, AssetManager *manager, int scene[HEIGHT][WIDTH]); ~Snake(); void moveSnake(); void drawSnake(); void setDire...
cimpresovec/rattler_race
levelScene.h
<reponame>cimpresovec/rattler_race #ifndef LEVELSCENE_H #define LEVELSCENE_H #define PICKUPS 10 #include "gameScene.h" #include "assetManager.h" #include "snake.h" #include "ball.h" #include "enemySnake.h" #include <string> #include <fstream> #include <ctime> #include <sstream> enum LevelDifficultySetting { kLev...