repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
purdeaandrei/swdFirmwareExtractorOnTeensy31_32
mypin.h
#ifndef MYPIN_H #define MYPIN_H #include <wiring.h> void myDigitalWrite(uint8_t pin, uint8_t val); void myPinMode(uint8_t pin, uint8_t mode); #endif
purdeaandrei/swdFirmwareExtractorOnTeensy31_32
uart.h
<reponame>purdeaandrei/swdFirmwareExtractorOnTeensy31_32 /* * Copyright (C) 2017 <NAME> * * This Source Code Form is subject to the terms of the MIT License. * If a copy of the MIT License was not distributed with this file, * you can obtain one at https://opensource.org/licenses/MIT */ #ifndef INC_UART_H #defin...
purdeaandrei/swdFirmwareExtractorOnTeensy31_32
clk.h
/* * Copyright (C) 2017 <NAME> * * This Source Code Form is subject to the terms of the MIT License. * If a copy of the MIT License was not distributed with this file, * you can obtain one at https://opensource.org/licenses/MIT */ #ifndef INC_CLK_H #define INC_CLK_H #define waitms(x) delay(x) #define waitus(x) ...
isgustavo/AnimatedMoviesMakeMeCry
iOS/Animated Movies Make Me Cry/Pods/Target Support Files/Pods-Animated Movies Make Me Cry/Pods-Animated Movies Make Me Cry-umbrella.h
<reponame>isgustavo/AnimatedMoviesMakeMeCry<filename>iOS/Animated Movies Make Me Cry/Pods/Target Support Files/Pods-Animated Movies Make Me Cry/Pods-Animated Movies Make Me Cry-umbrella.h<gh_stars>0 #import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_Animated_Movies_Make_Me_CryVersionNumber; FOUNDATION_EXPORT const...
isgustavo/AnimatedMoviesMakeMeCry
iOS/Animated Movies Make Me Cry/Pods/Target Support Files/Pods-Animated Movies Make Me CryUITests/Pods-Animated Movies Make Me CryUITests-umbrella.h
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_Animated_Movies_Make_Me_CryUITestsVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_Animated_Movies_Make_Me_CryUITestsVersionString[];
isgustavo/AnimatedMoviesMakeMeCry
iOS/Animated Movies Make Me Cry/Pods/Target Support Files/Pods-Animated Movies Make Me CryTests/Pods-Animated Movies Make Me CryTests-umbrella.h
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_Animated_Movies_Make_Me_CryTestsVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_Animated_Movies_Make_Me_CryTestsVersionString[];
isgustavo/AnimatedMoviesMakeMeCry
iOS/Animated Movies Make Me Cry/Animated Movies Make Me Cry/Bridging-Header.h
<filename>iOS/Animated Movies Make Me Cry/Animated Movies Make Me Cry/Bridging-Header.h // // Bridging-Header.h // Animated Movies Make Me Cry // // Created by <NAME> on 6/1/16. // Copyright © 2016 <NAME>. All rights reserved. // #ifndef Bridging_Header_h #define Bridging_Header_h #import "FBShimmering.h" #import...
Techmaster21/mathey-cpp
calcey.c
<filename>calcey.c #include <stdio.h> #include <string.h> #include "mathey.hpp" int calc() { /* This don't work. char equ[80]; char *p; int i = 0; int a[10]; scanf("%[^\n]", equ); printf("%i", i); while (p = strchr(equ,'+')) { i = (int) p - (int) &equ; sscanf(equ, "%i", a[0]); for(); } printf("%i", a[0...
Techmaster21/mathey-cpp
matrixey.c
<reponame>Techmaster21/mathey-cpp<gh_stars>0 /* Version 1.07 Program to row reduce a matrix Version info: 1.00: Not actually the first version but the first time you finally decided to start versioning. Newer than anything without. Changes: Improved readability, Seperated processes into functions rather than one long ...
CoderLineChan/LCPageView
Source/LCPageViewStyle.h
<reponame>CoderLineChan/LCPageView<filename>Source/LCPageViewStyle.h // // LCPageViewStyle.h // LCPageView // // Created by 陈连辰 on 2018/5/9. // Copyright © 2018年 lianchen. All rights reserved. // #import <UIKit/UIKit.h> #import "LCPageViewProtocol.h" @interface LCPageViewStyle : NSObject<LCPageViewStyleProtocol> ...
CoderLineChan/LCPageView
Source/LCTitleView.h
<filename>Source/LCTitleView.h // // LCTitleView.h // LCPageView // // Created by lianchen on 2018/5/15. // Copyright © 2018年 lianchen. All rights reserved. // #import <UIKit/UIKit.h> #import "LCPageViewStyle.h" #pragma mark - 标题视图 @interface LCTitleView : UIView /** 样式 */ @property(nonatomic, strong)id <LCPage...
CoderLineChan/LCPageView
Source/UIView+LCFrame.h
<filename>Source/UIView+LCFrame.h // // UIView+LCFrame.h // 各种分类 // // Created by 陈连辰 on 16/8/10. // Copyright © 2016年 linechen. All rights reserved. // #import <UIKit/UIKit.h> //屏幕尺寸 #define kScreenBounds [UIScreen mainScreen].bounds //屏幕高度 #define kScreenH [UIScreen mainScreen].bounds.size.height //屏幕宽度 #define ...
CoderLineChan/LCPageView
Source/LCPageViewProtocol.h
<gh_stars>10-100 // // LCPageViewProtocol.h // Example // // Created by 陈连辰 on 2018/9/16. // Copyright © 2018年 linechan. All rights reserved. // #import <UIKit/UIKit.h> @protocol LCPageContentViewProtocol <NSObject> #pragma mark - 滚动代理 /// 即将开始拖拽 - (void)lc_scrollViewWillBeginDragging:(UIScrollView *)scrollView;...
CoderLineChan/LCPageView
Source/UIScrollView+Category.h
// // UIScrollView+Category.h // LCPageView // // Created by 陈连辰 on 2018/5/12. // Copyright © 2018年 复新会智. All rights reserved. // #import <UIKit/UIKit.h> typedef void(^LCScrollHandle)(UIScrollView *); @interface UIScrollView (Category) /** 滚动代理 */ @property(nonatomic, copy) LCScrollHandle scrollHandle; @end
CoderLineChan/LCPageView
Example/Demo/TestViewController2.h
// // TestViewController2.h // LCPageView // // Created by 复新会智 on 2018/5/14. // Copyright © 2018年 复新会智. All rights reserved. // #import <UIKit/UIKit.h> @interface TestViewController2 : UIViewController - (instancetype)initWithOverallRefresh:(BOOL)isOverall; @end
CoderLineChan/LCPageView
Source/LCPageView.h
// // LCPageView.h // LCPageView // // Created by lianchen on 2018/5/9. // Copyright © 2018年 lianchen. All rights reserved. // #import <UIKit/UIKit.h> #import "LCPageViewStyle.h" #import "MainScrollView.h" #import "LCTitleView.h" #import "LCHeadView.h" #import "UIViewController+Category.h" #import "LCPageViewProto...
CoderLineChan/LCPageView
Source/LCHeadView.h
<filename>Source/LCHeadView.h // // LCHeadView.h // Example // // Created by 复新会智 on 2018/5/18. // Copyright © 2018年 linechan. All rights reserved. // #import <UIKit/UIKit.h> @interface LCHeadView : UIView @end
CoderLineChan/LCPageView
Example/Demo/TestTitleView.h
// // TestTitleView.h // LCPageView // // Created by 复新会智 on 2018/5/15. // Copyright © 2018年 复新会智. All rights reserved. // #import "LCTitleView.h" @interface TestTitleView : LCTitleView @end
CoderLineChan/LCPageView
Source/UIViewController+Category.h
// // UIViewController+Category.h // LCPageView // // Created by 陈连辰 on 2018/5/12. // Copyright © 2018年 复新会智. All rights reserved. // #import <UIKit/UIKit.h> @interface UIViewController (Category) /** 滚动视图(控制器需要把当前的scrollView赋值过来) */ @property(nonatomic, strong) UIScrollView *lcScrollView; @end
dgoldstein1/find-bad-commit
problem_14.c
<filename>problem_14.c #include <stdio.h> /** * * helper for collatz sequence, performance actual sequence * the collatz sequence is an iterative sequence on integers : * * if even : n → n/2 * if odd : n → 3n + 1 * @param {long} n * @return {long} n after sequence **/ long collatzSequence(long n) { if (n ...
lanl/NEXMD
inc/sander/ncsu-utils.h
#ifndef NCSU_UTILS_H #define NCSU_UTILS_H /* * 'afailed' is provided by 'ncsu_utils' module */ #ifndef NCSU_DISABLE_ASSERT # define ncsu_assert(stmt) if (.not.(stmt)) call afailed(__FILE__, __LINE__) # define ncsu_assert_not_reached() call afailed(__FILE__, __LINE__) # define NCSU_PURE_EXCEPT_ASSERT # define N...
lanl/NEXMD
inc/box.h
<gh_stars>1-10 ! common block sizes: #define BC_BOXI 7 #define BC_BOXR 621 ! ... floats: #include "dprec.fh" _REAL_ box,cut,dielc,rad,wel,radhb,welhb, & cutcap,xcap,ycap,zcap,fcap, & xlorth,ylorth,zlorth,xorth,yorth,zorth,forth, & rwell,xbox0,ybox0,zbox0 common/boxr/box(3),cut,dielc,xbox0,ybox0...
lanl/NEXMD
test.c
<gh_stars>1-10 #include <stdio.h> #include <stdlib.h> #include <math.h> #include <ctype.h> #include <string.h> //<NAME> //7/13/2015 void quicksort(float arr[], int left, int right) { // Base case if (left >= right) { return; } // Choose pivot to be the last element in the subarray ...
lanl/NEXMD
inc/files.h
!+ Specification and control of Amber's Input/Output ! File names integer, parameter :: MAX_FN_LEN = 256 integer, parameter :: MAX_LINE_BUF_LEN = 256 character(len=4096) groupbuffer character(len=MAX_FN_LEN) mdin, mdout, inpcrd, parm, restrt, & refc, mdvel, mden, mdcrd, mdinfo, mtmd, nmrf, mincor, & vecs,...
lanl/NEXMD
inc/sander/tgtmd.h
<reponame>lanl/NEXMD ! note: if this common block if changed, dont forget to ! update the initial broadcast in subroutine startup() ! in parallel.f ! some ntr stuff is broadcast as part of memory.h in NATOM block ! ntr itself is in md.h in the NRP block ! itgtmd 0 is default ! ...
lanl/NEXMD
inc/timer.h
<reponame>lanl/NEXMD<gh_stars>1-10 #define pbsamaxtime 38 #define PBTIME_TOTAL 1 #define PBTIME_READ 2 #define PBTIME_RUNMD 3 #define PBTIME_FORCE 4 #define PBTIME_BOND 5 #define PBTIME_NONBON 6 #define PBTIME_PBFORCE 7 #define PBTIME_PBLIST 8 #define PBTIME_PBSETUP 9 #define PBTIME_PBSAS 10 #define PBTIME_PBFDFRC 11 #...
lanl/NEXMD
src/sander/qm2_read_adf_results.c
<gh_stars>1-10 #include <stdlib.h> #include <stdio.h> #include "KFc.h" // Note: see KFc.h for a short description of the public functions, // and KFReader.c for the function definitions. double *gradient_unordered; void read_adf_results_(int *natoms, double *energy, double *gradient, int *use_dftb, double *dipxyz, ch...
lanl/NEXMD
inc/random.h
! State variables required by random number generator type :: rand_gen_state sequence ! real variables in Marsaglia algorithm double precision :: u(97), c, cd, cm ! pointers into u() in Marsaglia algorithm integer :: i97, j97 ! set is true if amrset has been called; rand_dummy to ...
lanl/NEXMD
inc/sander/multitmd.h
#include "dprec.fh" !-------------BEGIN multitmd.h ------------------------------------------------ ! ---Header file for usint multiple-target targeted molecular dyanamics ! ! Common block containing variables relating to Multi-TMD. integer mtmdintreq,mtmdirlreq,lmtmd01,imtmd02,mtmdtmp01 common/mtm...
lanl/NEXMD
inc/sander/gbneck.h
! GBNECKCUT: 2.8d0 (diameter of water) is "correct" value but ! larger values give smaller discontinuities at the cut # define GBNECKCUT 6.8d0 ! Scratch variables used for calculating neck correction _REAL_ mdist,mdist2,mdist3,mdist5,mdist6,neck ! Lookup tables for position (atom separation, r) an...
lanl/NEXMD
inc/sander/ew_directe.h
<gh_stars>1-10 ! epilogue: 12-6 LF terms do im_new = 1,icount j = cache_bckptr(im_new) dfee = cache_df(im_new) delx = cache_x(im_new) dely = cache_y(im_new) delz = cache_z(im_new) delr2inv = cache_r2(im_new) ic = ico(iaci+iac(j)) r6 = delr2inv*delr2inv*delr2inv #ifdef LES lfac=lesfac(les...
lanl/NEXMD
inc/dprec.h
<gh_stars>1-10 !+ Specification and control of Amber's working precision #ifndef DPREC_H #define DPREC_H ! Description: ! Preprocessor directives that characterize the floating-point ! working precision as single or double precision. ! The current scheme guarantees internal consistency at the expense ! of flexibility...
lanl/NEXMD
inc/sander/nmr.h
#include "dprec.fh" !-------------BEGIN nmr.h ------------------------------------------------ ! ---Header file for the chemical shifts and NOESY intensity ! Because of the complexity of the storage requirements for ! these calculations, (and because one of the authors is very ! lazy,) storage alloc...
lanl/NEXMD
inc/ew_parallel.h
! If you change the value of MPI_MAX_PROCESSORS ! Make sure you update parallel.h as well. #undef MPI_MAX_PROCESSORS #define MPI_MAX_PROCESSORS 256 integer BC_SLABS parameter ( BC_SLABS = 9+4*(MPI_MAX_PROCESSORS+1) ) integer indz,ind_tr_tmp,ind_tr_tmp1,ntxyslab,ntxzslab integer mxyslabs,mxzslabs integer nxyslab(0:MPI...
lanl/NEXMD
src/sff/xminC.c
/****************************************************************************/ /* XMIN: Written by <NAME> time stamp: 8/16/2009 */ /****************************************************************************/ /* Note: there are two "public" routines here: * xminc(): a fairly low-level interface (c...
lanl/NEXMD
inc/pb_dbfrc.h
! collect contact forces if ( iatm > 0 ) then cnx(iatm) = cnx(iatm) + dum(1) cny(iatm) = cny(iatm) + dum(2) cnz(iatm) = cnz(iatm) + dum(3) ! collect reentry forces else if ( triopt == 1 ) then if ( -iatm > narcdot-ntri ) then ! wr...
lanl/NEXMD
src/lib/wallclock.c
#ifdef CLINK_CAPS # define wallclock_ WALLCLOCK # define nwallclock_ NWALLCLOCK # define microsec_ MICROSEC #endif #ifdef CLINK_PLAIN # define wallclock_ wallclock # define nwallclock_ nwallclock # define microsec_ microsec #endif #ifndef F90_TIMER #include <sys/time.h> #include <unistd.h> static int ncalls=0;...
lanl/NEXMD
visualization/trimcube.c
/* * trim cube files to the minimal cube including all data points * beyond a given threshold. atom coordinates are preserved. * * optionally normalize a cube file for CPMD electrostatic potential * calculations: calculate the average potential by summing over the * grid points and subtract the result from all...
lanl/NEXMD
inc/sander/les.h
!---------------------- les.h -------------------- #include "dprec.fh" ! parameters for LES: integer maxles,maxlestyp,maxlesadj parameter (maxles=500000) parameter (maxlestyp=100) parameter (maxlesadj=3000000) integer bc_lesr,bc_lesi parameter( bc_lesi=1+maxles*3+maxlesadj*2+1) parameter (bc_lesr=maxlestyp*maxlesty...
lanl/NEXMD
inc/sander/memory.h
! --- following should not need to be modified unless you are adding ! more variables to the "locmem" style of memory management ! NOTE: if you change this file, make sure you change the corresponding file ! in both src/sander/md.h and AmberTools/src/sqm/md.h ! MFC changing indices into IX and X to more ration...
lanl/NEXMD
inc/pb_def.h
!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ !+pb_def.h PBSA cpp macro-definitions ! maximum number of neighboring atoms per atom #define MAXNEI 4096 ! maximum levels of focusing in fdpb #define MAXLEVEL 2 ! maximum FDPB blocks in electrostatic focussing #define MAXBLOCK 8001 ...
lanl/NEXMD
inc/ew_pme_recip.h
#include "dprec.fh" ! SIZES #define BC_PME_PARS_INT 18 integer sizfftab,sizffwrk,siztheta,siz_q,sizheap,sizstack,sizscr integer lfftable,lprefac1,lprefac2,lprefac3 integer order,nfft1,nfft2,nfft3,mlimit(3) common/pme_size/ sizfftab,sizffwrk,siztheta,siz_q,sizheap,sizstack,sizscr, & lfftable,lprefac1,lprefac2...
lanl/NEXMD
inc/sander/ncsu-config.h
<reponame>lanl/NEXMD #ifndef NCSU_CONFIG_H #define NCSU_CONFIG_H #if defined(LES) || defined(QMMM) # define DISABLE_NCSU yes #endif #if defined(MPI) && defined(BINTRAJ) && !defined(DISABLE_NCSU) # define NCSU_ENABLE_BBMD sure,whynot #endif #ifndef _REAL_ # include "dprec.fh" # define NCSU_REAL _REAL_ # ifdef DP...
lanl/NEXMD
inc/sff.h
<filename>inc/sff.h<gh_stars>1-10 #ifndef SFF_H #define SFF_H /* First stab at a header file for the visible routines in libsff. * * NOTE: obviously not yet commented; furthermore, this is not yet * tested, either. Need to improve on this file before it would actually * be used.... */ #include <stdio.h> #i...
lanl/NEXMD
inc/sander/def_time.h
<gh_stars>1-10 #define TIME_TOTAL 1 #define TIME_FORCE 2 #define TIME_NONBON 3 #define TIME_LIST 4 #define TIME_EWALD 5 #define TIME_EWFRCADJ 6 #define TIME_EWVIRIAL 7 #define TIME_EWFSTRT 8 #define TIME_9 9 #define TIME_10 10 #define TIME_BLDLST 11 #define TIME_DIR 12 #define TIME_REC 13 #define TIME_ADJ 14 #define TI...
lanl/NEXMD
inc/sander/md.h
<reponame>lanl/NEXMD #include "dprec.fh" !-------------BEGIN md.h ------------------------------------------------ ! NOTE: if you change this file, make sure you change the corresponding file ! in both src/sander/md.h and AmberTools/src/sqm/md.h integer BC_MDI ! size in integers of common block mdi integer BC_MD...
Angourisoft/MathS
Sources/Wrappers/AngouriMath.CPP.Importing/A.Imports.Hyperbolic.Functions.h
// // Copyright (c) 2019-2022 Angouri. // AngouriMath is licensed under MIT. // Details: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md. // Website: https://am.angouri.org. // // This file is auto-generated. #pragma once #include "TypeAliases.h" using namespace AngouriMath::Internal; extern "C...
Angourisoft/MathS
Sources/Wrappers/AngouriMath.CPP.Importing/A.Usages.Hyperbolic.Functions.h
// // Copyright (c) 2019-2022 Angouri. // AngouriMath is licensed under MIT. // Details: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md. // Website: https://am.angouri.org. // // This file is auto-generated. #pragma once #include "AngouriMath.h" #include "A.Imports.Hyperbolic.Functions.h" names...
James-yaoshenglong/WordsCorrector
src/mainFunction.h
#ifndef MAINFUNCTION_H #define MAINFUNCTION_H #include <string> #include <vector> using namespace std; const string VOCABULARY_FILE = "vocabulary.txt"; // this dictionary can be replaced by the Linux embeded dictionary: // const string VOCABULARY_FILE = "/usr/share/dict/american-english"; int findmin(vector<int>);//...
James-yaoshenglong/WordsCorrector
src/Levenshtein.h
<filename>src/Levenshtein.h #ifndef LEVENSHTEIN_H #define LEVENSHTEIN_H #include <string> using namespace std; class Levenshtein{ private: string source,correct; int** Larray; int min(int,int,int); // 计算三数最小值的函数 public: Levenshtein(const string&, const string&); ~Levenshtein();...
lopdan/database
src/parser.c
<filename>src/parser.c #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <errno.h> #include <unistd.h> #include "../include/tokenizer.h" #include "../include/parser.h" // Representation of a row con...
lopdan/database
include/parser.h
#ifndef PARSER_H #define PARSER_H // Include section #include <stdio.h> /* Standard C library defining input/output tools. */ #include <stdint.h> /* Standard C library defining sets of integer types having specified widths. */ #include "./tokenizer.h" // Struct and const sizes definitions #define COLUMN_US...
lopdan/database
include/tokenizer.h
<filename>include/tokenizer.h #ifndef TOKENIZER_H #define TOKENIZER_H // Include section #include <stdio.h> /* Standard C library defining input/output tools. */ typedef struct { char* buffer; size_t buffer_length; ssize_t input_length; } InputBuffer; // Read user input functions InputBuffer* Cr...
lopdan/database
src/main.c
<filename>src/main.c #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "../include/tokenizer.h" #include "../include/parser.h" int main(int argc, char* argv[]) { // Specify a database name to read or create if (argc < 2) { printf("Must supply a database filename...
lopdan/database
src/tokenizer.c
<reponame>lopdan/database #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "../include/tokenizer.h" /** Creates Buffer for user input data. */ InputBuffer* CreateBuffer() { InputBuffer* input_buffer = malloc(sizeof(InputBuffer)); input_buffer->buffer = NULL; inpu...
mtalatabdelmaqsoud/TestAWS
libraries/3rdparty/CoAp/coap_message.c
/******************************************************************************* * Copyright (c) 2015 Dipl.-Ing. <NAME>, http://www.lobaro.com * * 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 ...
mtalatabdelmaqsoud/TestAWS
libraries/3rdparty/CoAp/coap_socket.h
// // Created by Tobias on 27.02.2018. // #ifndef APP_EON_WMBUS_REPEATER_COAP_SOCKET_H #define APP_EON_WMBUS_REPEATER_COAP_SOCKET_H CoAP_Result_t CoAP_SendMsg(CoAP_Message_t* Msg, Socket_t socketHandle, NetEp_t receiver); CoAP_Result_t CoAP_SendEmptyAck(uint16_t MessageID, Socket_t socketHandle, NetEp_t receiver); Co...
mtalatabdelmaqsoud/TestAWS
demos/coap/iot_demo_coap.c
<reponame>mtalatabdelmaqsoud/TestAWS /* * FreeRTOS V202007.00 * Copyright (C) 2020 Amazon.com, Inc. 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 Sof...
mtalatabdelmaqsoud/TestAWS
libraries/3rdparty/CoAp/coap.h
/******************************************************************************* * Copyright (c) 2015 Dipl.-Ing. <NAME>, http://www.lobaro.com * * 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 ...
mtalatabdelmaqsoud/TestAWS
libraries/3rdparty/CoAp/coap_interaction.c
<reponame>mtalatabdelmaqsoud/TestAWS<filename>libraries/3rdparty/CoAp/coap_interaction.c /******************************************************************************* * Copyright (c) 2015 Dipl.-Ing. <NAME>, http://www.lobaro.com * * Permission is hereby granted, free of charge, to any person obtaining a copy *...
Copro/yi-hack-Allwinner
src/dropbear/localoptions.h
#ifndef DROPBEAR_LOCALOPTIONS_H #define DROPBEAR_LOCALOPTIONS_H #define DSS_PRIV_FILENAME "/home/yi-hack/etc/dropbear/dropbear_dss_host_key" #define RSA_PRIV_FILENAME "/home/yi-hack/etc/dropbear/dropbear_rsa_host_key" #define ECDSA_PRIV_FILENAME "/home/yi-hack/etc/dropbear/dropbear_ecdsa_host_key" #define DROPBEAR_PA...
rainbow911/CHHook
CHHook/Print/HookPrint.h
<filename>CHHook/Print/HookPrint.h // // HookPrint.h // CHHook // // Created by shenzhen-dd01 on 2019/6/17. // Copyright © 2019 rainbow. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface HookPrint : NSObject + (instancetype)shared; - (void)noticePrint:(NSString *)messag...
rainbow911/CHHook
CHHook/CHHook.h
// // CHHook.h // CHHook // // Created by shenzhen-dd01 on 2019/4/28. // Copyright © 2019 rainbow. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for CHHook. FOUNDATION_EXPORT double CHHookVersionNumber; //! Project version string for CHHook. FOUNDATION_EXPORT const unsigned char CHHo...
rainbow911/CHHook
CHHook/UIViewController/UIViewController+Hook.h
<reponame>rainbow911/CHHook // // UIViewController+Hook.h // CHHook // // Created by shenzhen-dd01 on 2019/4/28. // Copyright © 2019 rainbow. All rights reserved. // #import <UIKit/UIKit.h> @interface UIViewController (Hook) - (void)chhook_viewWillAppear:(BOOL)animated; @end
rainbow911/CHHook
CHHook/URLSession/NSDictionary+Hook.h
<filename>CHHook/URLSession/NSDictionary+Hook.h // // NSDictionary+Hook.h // CHHook // // Created by dd01 on 2019/11/25. // Copyright © 2019 rainbow. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /* 解决方案参考:[【iOS】让NSLog打印字典显示得更好看(解决中文乱码并显示成JSON格式)](https://www.jianshu.com/p/79...
bydavi96xx/iOSWallet
CocosBCXWallet/CocosBCXWallet/Class/Home/Controller/NHAsset/CCWOrderDetailViewController.h
<gh_stars>1-10 // // CCWOrderDetailViewController.h // CocosBCXWallet // // Created by 邵银岭 on 2019/7/24. // Copyright © 2019 邵银岭. All rights reserved. // typedef NS_ENUM(NSInteger,CCWNHAssetOrderType){ CCWNHAssetOrderTypeMy = 0, CCWNHAssetOrderTypeAllNet = 1 }; #import <UIKit/UIKit.h> #import "CCWNHAssetO...
bydavi96xx/iOSWallet
CocosBCXWallet/CocosBCXWallet/Class/Home/View/NHAsset/OperationInfo/CCWDeleteNHInfoView.h
<reponame>bydavi96xx/iOSWallet<gh_stars>1-10 // // CCWDeleteNHInfoView.h // CocosHDWallet // // Created by 邵银岭 on 2019/1/14. // Copyright © 2019年 邵银岭. All rights reserved. // // 切换账号 #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @class CCWDeleteNHInfoView; @protocol CCWDeleteNHInfoViewDelegate <NSObject> // 添加...
bydavi96xx/iOSWallet
CocosBCXWallet/CocosBCXWallet/Resources/codeObfuscation.h
#ifndef Demo_codeObfuscation_h #define Demo_codeObfuscation_h //confuse string at Tue Aug 13 15:26:54 CST 2019 #define CCW_ HKfQbXZwgVPJWlqL #define CCW_AddAccountClick bgjgYtscLKkpCneF #define CCW_AssetsOverviewViewController uuAjLNijXJDHaOBk #define CCW_BugNHAssetOrderId maSVltMHATzLkhko #define CCW_BuyInfoViewNextBu...
bydavi96xx/iOSWallet
CocosBCXWallet/CocosBCXWallet/Class/Home/View/NHAsset/CCWNHAssetOrderTableViewCell.h
<reponame>bydavi96xx/iOSWallet<filename>CocosBCXWallet/CocosBCXWallet/Class/Home/View/NHAsset/CCWNHAssetOrderTableViewCell.h // // CCWNHAssetOrderTableViewCell.h // CocosBCXWallet // // Created by 邵银岭 on 2019/7/18. // Copyright © 2019 邵银岭. All rights reserved. // #import <UIKit/UIKit.h> #import "CCWNHAssetOrderMod...
bydavi96xx/iOSWallet
CocosBCXWallet/CocosBCXWallet/Class/My/Controller/AssetsOver/CCWPropDetailViewController.h
// // CCWPropDetailViewController.h // CocosBCXWallet // // Created by 邵银岭 on 2019/7/22. // Copyright © 2019 邵银岭. All rights reserved. // #import <UIKit/UIKit.h> #import "CCWTransferNhAssetViewController.h" NS_ASSUME_NONNULL_BEGIN @interface CCWPropDetailViewController : UIViewController /** 资产 */ @property (non...
bydavi96xx/iOSWallet
CocosBCXWallet/CocosBCXWallet/Class/Tool/CCWSDKRequest.h
// // CCWSDKRequest.h // CocosBCXWallet // // Created by 邵银岭 on 2019/2/28. // Copyright © 2019年 邵银岭. All rights reserved. // #import <Foundation/Foundation.h> #import "CocosSDK.h" NS_ASSUME_NONNULL_BEGIN typedef void (^SuccessBlock)(id responseObject);// 成功回调 typedef void (^ErrorBlock)(NSString *errorAlert,id re...
bydavi96xx/iOSWallet
CocosBCXWallet/CocosBCXWallet/Resources/AppMacro.h
// // AppMacro.h // CocosBCXWallet // // Created by 邵银岭 on 2019/1/29. // Copyright © 2019年 邵银岭. All rights reserved. // #ifndef AppMacro_h #define AppMacro_h /** self的弱引用 */ #define CCWWeakSelf __weak typeof(self) weakSelf = self; /******************** 字体 **********************/ #define CCWFont(fontSize) [...
bydavi96xx/iOSWallet
CocosBCXWallet/CocosBCXWallet/Resources/Classes/Operations/CocosSellNHAssetOperation.h
// // CocosSellNHAssetOperation.h // CocosSDKDemo // // Created by 邵银岭 on 2019/7/9. // Copyright © 2019 邵银岭. All rights reserved. // #import "CocosBaseOperation.h" @class ChainObjectId,ChainAssetAmountObject; NS_ASSUME_NONNULL_BEGIN @interface CocosSellNHAssetOperation : CocosBaseOperation @property (nonatomic, ...
michaelengel/mfsreader
readmfs.c
<gh_stars>1-10 #include <stdio.h> #include <fcntl.h> #include <unistd.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #define BLOCKSIZE 512 #define ALLOCBLOCKSIZE 1024 uint16_t allocBM[1024] = { 0 }; typedef struct __attribute__((packed)) { uint16_t drSigWord; uint32_t drCrDate...
MaTriXy/DroidconKotlin
iosApp/Pods/MaterialComponents/components/List/src/MDCBaseCell.h
<reponame>MaTriXy/DroidconKotlin // Copyright 2018-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.a...
MaTriXy/DroidconKotlin
iosApp/Pods/MaterialComponents/components/Buttons/src/ColorThemer/MDCButtonColorThemer.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 //...
MaTriXy/DroidconKotlin
iosApp/Pods/MaterialComponents/components/TextFields/src/TypographyThemer/MDCTextFieldTypographyThemer.h
// Copyright 2018-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 //...
MaTriXy/DroidconKotlin
iosApp/Pods/MaterialComponents/components/Snackbar/src/ColorThemer/MDCSnackbarColorThemer.h
<reponame>MaTriXy/DroidconKotlin<filename>iosApp/Pods/MaterialComponents/components/Snackbar/src/ColorThemer/MDCSnackbarColorThemer.h // Copyright 2018-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...
MaTriXy/DroidconKotlin
iosApp/Pods/MaterialComponents/components/FlexibleHeader/src/ColorThemer/MDCFlexibleHeaderColorThemer.h
<gh_stars>1-10 // 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...
MaTriXy/DroidconKotlin
iosApp/Pods/MaterialComponents/components/Cards/src/CardThemer/MDCCardThemer.h
<filename>iosApp/Pods/MaterialComponents/components/Cards/src/CardThemer/MDCCardThemer.h // Copyright 2018-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. // Yo...
MaTriXy/DroidconKotlin
iosApp/Pods/FirebaseFirestore/Firestore/core/src/firebase/firestore/model/transform_operations.h
<reponame>MaTriXy/DroidconKotlin /* * Copyright 2018 Google * * 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...
epixoip/md5substr
md5substr.c
<reponame>epixoip/md5substr /* * generate collisions for truncated md5 hashes * e.g., substr(md5($pass), 0, 8) * cc -o md5substr md5substr.c -march=native -O4 -funroll-loops -pthread * * Copyright 2013, epixoip. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modif...
sacredbanana/CITS1002Project2Mergedirs
copyfile.c
#include "mergedirs.h" void copyFile(char in_filename[], char destination[]) { FILE *fp_in = fopen(in_filename, "r"); FILE *fp_out = fopen(destination, "w"); // ENSURE THAT OPENING BOTH FILES HAS BEEN SUCCESSFUL if(fp_in != NULL && fp_out != NULL) { char buffer[BUFSIZ]; ...
sacredbanana/CITS1002Project2Mergedirs
globals.c
<gh_stars>0 #include "mergedirs.h" bool patternCheck = false; bool largest = false; bool modification = false; bool verbose = false; bool contents = false; char outputDirectory[MAXPATHLEN]; char pattern[100];
sacredbanana/CITS1002Project2Mergedirs
mergedirs.c
<reponame>sacredbanana/CITS1002Project2Mergedirs<gh_stars>0 /* CITS Project 2 2012 Name: <NAME> Student number: 21194619 Date: 2/11/2012 */ #include "mergedirs.h" int main( int argc, char *argv[]) { int opt; int optionCount = 0; opterr = 0; while((opt = getopt(argc, argv, OPTLIST)) != -1) // Check for swi...
sacredbanana/CITS1002Project2Mergedirs
mergedirs.h
<gh_stars>0 #include <stdio.h> #include <stdbool.h> #include <unistd.h> #include <stdlib.h> #include <getopt.h> #include <sys/types.h> #include <dirent.h> #include <sys/stat.h> #include <sys/param.h> #include <string.h> #include <sys/time.h> #include <utime.h> // DECLARE GLOBAL PREPROCESSOR CONSTANTS #define OPTLIST ...
sacredbanana/CITS1002Project2Mergedirs
filecheck.c
#include "mergedirs.h" bool fileCheck(char *source, char *destination) // Checks if file should be copied { bool fileExists = false; struct stat buffer; int existenceCheck = (stat (destination, &buffer) == 0); // Checks if file already exists if (existenceCheck == 1) { fileExists = true; i...
sacredbanana/CITS1002Project2Mergedirs
readdirs.c
<reponame>sacredbanana/CITS1002Project2Mergedirs #include "mergedirs.h" static void readSubdirectory(char *subDirName, char *mainDirName) // Reads a subdirectory { DIR *subdirp; struct dirent *sdp; char fullname[MAXPATHLEN]; subdirp = opendir(subDirName); char newDirectory[MAXPATHLEN]; if (subdirp == NULL) { ...
Alimektor/battleship-cpp-clr
Battleship/Battlefield.h
<gh_stars>0 #pragma once #include "CellButton.h" #include "Ship.h" using namespace System; using namespace System::Windows::Forms; using namespace System::Collections::Generic; using namespace System::Drawing; namespace BattleshipGame { ref class Battlefield { private: int MapSize = 10; int CellSize = 50; a...
Alimektor/battleship-cpp-clr
Battleship/HumanPlayer.h
#pragma once #include "Player.h" namespace BattleshipGame { public ref class HumanPlayer : public Player { private: void SetEnabled(); public: virtual void GetTurn() override; void SetDisabled(); }; }
Alimektor/battleship-cpp-clr
Battleship/Ship.h
<reponame>Alimektor/battleship-cpp-clr #pragma once #include "CellButton.h" namespace BattleshipGame { ref class Ship { private: int Size; int Current; array<CellButton^>^ buttons; public: Ship(int size); int GetSize(); void AddCoordinate(CellButton^ button); bool IsSunk(); void Hit(); }; }
Alimektor/battleship-cpp-clr
Battleship/CellState.h
<filename>Battleship/CellState.h #pragma once enum class CellState : char { Empty = '~', Hidden = '-', Hit = 'x', Ship = 'o', Missed = '.' };
Alimektor/battleship-cpp-clr
Battleship/Player.h
<gh_stars>0 #pragma once #include "Battlefield.h" namespace BattleshipGame { public ref class Player { private: Battlefield^ Board = gcnew Battlefield(); public: bool IsWin(); Battlefield^ GetBoard(); virtual void GetTurn() = 0; }; }
Alimektor/battleship-cpp-clr
Battleship/CellButton.h
#pragma once #include "CellState.h" using namespace System::Windows::Forms; using namespace System::Drawing; using namespace System; namespace BattleshipGame { ref class CellButton : public Button { private: CellState State; int X; int Y; public: CellButton(int x, int y); CellButton(CellState state, i...
Alimektor/battleship-cpp-clr
Battleship/ComputerPlayer.h
<gh_stars>0 #pragma once #include "Player.h" namespace BattleshipGame { public ref class ComputerPlayer : public Player { public: virtual void GetTurn() override; }; }
oschonrock/hibp
ext/asmlib/asmlib.h
<reponame>oschonrock/hibp /*************************** asmlib.h *************************************** * Author: <NAME> * Date created: 2003-12-12 * Last modified: 2013-10-04 * Project: asmlib.zip * Source URL: www.agner.org/optimize * * Description: * Header file for the asmlib function libra...
nanochess/cubicDoom
sin.c
<filename>sin.c #include <stdio.h> #include <math.h> int main(void) { int c; double d; int e; printf("sin_table:\n"); for (c = 0; c < 128; c++) { if ((c & 7) == 0) printf("\tdb "); d = sin((c * 360 / 128) * 3.14159 / 180) * 256; if (d < 0) ...
eruffaldi/kinect2reg
src/registrationK2.h
<reponame>eruffaldi/kinect2reg /* * This file is part of the OpenKinect Project. http://www.openkinect.org * * Copyright (c) 2014 individual OpenKinect contributors. See the CONTRIB file * for details. * * This code is licensed to you under the terms of the Apache License, version * 2.0, or, at your option, the ...
eruffaldi/kinect2reg
src/params.h
void fillin(Freenect2Device::IrCameraParams &depth_p, Freenect2Device::ColorCameraParams &rgb_p) { // from text file float depth_cx = 253.9832; float depth_cy = 211.093994; float depth_depth_q = 0.00999999978; float depth_fx = 365.150208; float depth_fy = 365.150208; float depth_k1 = 0.092287197...
chensongpoixs/cmediasoupclient
test/cmsg_dispatch.h
<reponame>chensongpoixs/cmediasoupclient<filename>test/cmsg_dispatch.h<gh_stars>0 /*********************************************************************************************** created: 2019-05-13 author: chensong purpose: msg_dipatch ******************************************************************...