repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
vshabunia/libPhoneNumber-iOS
libPhoneNumber/NBGeneratedPhoneNumberMetaData.h
/***** * Data Generated from GeneratePhoneNumberHeader.sh * Off of PhoneNumberMetaDataForTesting.json, PhoneNumberMetaData.json, and ShortNumberMetaData.json */ #include <zlib.h> // z_const is not defined in some versions of zlib, so define it here // in case it has not been defined. #if defined(ZLIB_CONST) && !de...
lvkklemo/MultimediaApp
Multimedia/Multimedia/download/DownloadController.h
// // DownloadController.h // Multimedia // // Created by 宇航 on 2020/5/30. // Copyright © 2020 tecent. All rights reserved. // #import <UIKit/UIKit.h> @interface DownloadController : UIViewController @end
lvkklemo/MultimediaApp
Multimedia/Multimedia/download/HWDownloadModel.h
// // HWDownloadModel.h // HWProject // // Created by yuhanglv on 2018/4/24. // Copyright © 2018年 yuhanglv. All rights reserved. // #import <UIKit/UIKit.h> //@class FMResultSet; @interface HWDownloadModel : NSObject @property (nonatomic, copy) NSString *localPath; // 下载完成路径 @property (nonatomic, copy...
lvkklemo/MultimediaApp
Multimedia/Multimedia/VideoController.h
// // VideoController.h // Multimedia // // Created by 宇航 on 2020/5/15. // Copyright © 2020 tecent. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface VideoController : UIViewController @end NS_ASSUME_NONNULL_END
lvkklemo/MultimediaApp
Multimedia/Multimedia/ViewController.h
<gh_stars>0 // // ViewController.h // Multimedia // // Created by 宇航 on 2020/5/14. // Copyright © 2020 tecent. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
lvkklemo/MultimediaApp
Multimedia/Multimedia/AudioRecorderController.h
// // AudioRecorderController.h // Multimedia // // Created by 宇航 on 2020/5/14. // Copyright © 2020 tecent. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface AudioRecorderController : UIViewController @end NS_ASSUME_NONNULL_END
lvkklemo/MultimediaApp
Multimedia/Multimedia/download/KDownloadManager.h
<reponame>lvkklemo/MultimediaApp<filename>Multimedia/Multimedia/download/KDownloadManager.h // // KDownloadManager.h // Multimedia // // Created by 宇航 on 2020/5/30. // Copyright © 2020 tecent. All rights reserved. // #import <Foundation/Foundation.h> #import "HWDownloadModel.h" @interface KDownloadManager : NSObj...
mipark56/moveit2
moveit_ros/moveit_servo/include/moveit_servo/pose_tracking.h
<reponame>mipark56/moveit2 /********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2020, PickNik Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provide...
mipark56/moveit2
moveit_ros/occupancy_map_monitor/include/moveit/occupancy_map_monitor/occupancy_map_updater.h
<filename>moveit_ros/occupancy_map_monitor/include/moveit/occupancy_map_monitor/occupancy_map_updater.h /********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2011, <NAME>, Inc. * All rights reserved. * * Redistribution and use in sou...
WRansohoff/Magrat_v0
firmware/linux_bootloader/src/main.c
#include "global.h" #include "qspi.h" // Core system clock speed. uint32_t SystemCoreClock = 64000000; // Global systick counter. volatile uint32_t systick = 0; // Reset handler: set the stack pointer and branch to main(). __attribute__( ( naked ) ) void reset_handler( void ) { // Set the stack pointer to the 'end ...
WRansohoff/Magrat_v0
firmware/button_test/src/main.c
<reponame>WRansohoff/Magrat_v0 // Device header file. #include "stm32h7xx.h" // Standard library includes. #include <string.h> #include <stdio.h> #include <stdlib.h> extern uint32_t _sidata, _sdata, _edata, _sbss, _ebss, _siitcm, _sidtcm, _sitcm, _sdtcm, _eitcm, _edtcm, _estack; // Core system clock speed. uint32_t S...
WRansohoff/Magrat_v0
firmware/uart_test/src/main.c
<gh_stars>0 // Device header file. #include "stm32h7xx.h" // Standard library includes. #include <string.h> #include <stdio.h> #include <stdlib.h> extern uint32_t _sidata, _sdata, _edata, _sbss, _ebss, _siitcm, _sidtcm, _sitcm, _sdtcm, _eitcm, _edtcm, _estack; // Core system clock speed. uint32_t SystemCoreClock = 64...
WRansohoff/Magrat_v0
firmware/qspi_test/src/global.h
<reponame>WRansohoff/Magrat_v0<filename>firmware/qspi_test/src/global.h<gh_stars>0 #ifndef _VVC_GLOBAL_H #define _VVC_GLOBAL_H // Device header file. #include "stm32h7xx.h" // Standard library includes. #include <string.h> #include <stdio.h> #include <stdlib.h> // Memory section boundaries, etc. extern uint32_t _sida...
WRansohoff/Magrat_v0
firmware/qspi_test/src/main.c
<filename>firmware/qspi_test/src/main.c #include "global.h" #include "qspi.h" // Core system clock speed. uint32_t SystemCoreClock = 64000000; // Global systick counter. volatile uint32_t systick = 0; // Reset handler: set the stack pointer and branch to main(). __attribute__( ( naked ) ) void reset_handler( void ) {...
WRansohoff/Magrat_v0
firmware/linux_bootloader/src/qspi.h
#ifndef _VVC_QSPI_H #define _VVC_QSPI_H #include "global.h" void qspi_wen( uint8_t dw ); void qspi_reg_wait( uint8_t reg, uint32_t msk, uint32_t mat, uint8_t dw ); void qspi_erase_sector( uint32_t snum ); void qspi_write_word( uint32_t addr, uint32_t data ); #endif
WRansohoff/Magrat_v0
firmware/leds_test/src/main.c
// Device header file. #include "stm32h7xx.h" // Standard library includes. #include <string.h> #include <stdio.h> #include <stdlib.h> extern uint32_t _sidata, _sdata, _edata, _sbss, _ebss, _siitcm, _sidtcm, _sitcm, _sdtcm, _eitcm, _edtcm, _estack; // Core system clock speed. uint32_t SystemCoreClock = 64000000; // G...
maarten-pennings/Nvm
src/Nvm.h
// Nvm.h - Library for saving named strings in EEPROM (non-volatile memory), created by <NAME> 2017 April 17 #ifndef __NVM_H_ #define __NVM_H_ /* REVISION HISTORY v1.3.0 20220430 Added NVM_VERSION v1.2.0 20200308 Allows len==0 v1.1.0 20171029 Readme, license v1.0.0 20170417 Initial version */ #define NVM_V...
Jiacheng-z/jthread
include/task_group.h
<reponame>Jiacheng-z/jthread // // Created by jiacheng3 on 2018/3/26. // #ifndef JTHREAD_TASK_GROUP_H #define JTHREAD_TASK_GROUP_H #include "task.h" #include <queue> namespace jthread { class TaskGroup { public: void AddTask(); private: std::queue<std::shared_ptr<Task>> local_task_; std::queue<std::shared...
Jiacheng-z/jthread
include/task_control.h
// // Created by jiacheng3 on 2018/3/26. // #ifndef JTHREAD_TASK_CONTROL_H #define JTHREAD_TASK_CONTROL_H #include "task_group.h" #include <map> #include <memory> #define MAX_PTHREAD_NUM 1024 namespace jthread { class TaskControl { public: void Init(); private: TaskGroup *group_ptr_[MAX_PTHREAD_NUM]; }; ...
Jiacheng-z/jthread
include/task.h
// // Created by jiacheng3 on 2018/3/26. // #ifndef JTHREAD_TASK_H #define JTHREAD_TASK_H #include <boost/context/all.hpp> #include <functional> #include <memory> #include <type_traits> namespace ctx = boost::context; namespace jthread { //template<typename Stack = ctx::fixedsize_stack> template<typename Stack = c...
decaelus/vplanet
src/system.h
/** @file system.h @brief Subroutines that control system-wide properties. @author <NAME> ([RoryBarnes](https://github.com/RoryBarnes/)) @date May 7 2014 */ /* @cond DOXYGEN_OVERRIDE */ double fdSemiToPeriod(double,double); double fdPeriodToSemi(double,double); double fdSemiToMeanMotion(double,double); double...
decaelus/vplanet
src/distrot.c
/** @file distrot.c @brief Subroutines that control the integration of the obliquity model. @author <NAME> ([deitrr](https://github.com/deitrr/)) @date July 7 2015 */ /* lines where something like iBody == 0 occurs * ~149 * ~227 */ #include <stdio.h> #include <math.h> #include <assert.h> #include <...
decaelus/vplanet
src/verify.c
<reponame>decaelus/vplanet /** @file verify.c @brief Validate the options. This will become a mess! @author <NAME> ([RoryBarnes](https://github.com/RoryBarnes/)) @date May 7 2014 */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <assert.h> #include <ctype.h> #include <string.h> #include <uni...
decaelus/vplanet
src/verify.h
/** @file verify.h @brief Validate the options. This will become a mess! @author <NAME> ([RoryBarnes](https://github.com/RoryBarnes/)) @date May 7 2014 */ /* @cond DOXYGEN_OVERRIDE */ void VerifyBodyExit(char[],char[],char[],int,int,int); void DoubleLineExit(char[],char[],int,int); void VerifyTripleExit(char[...
decaelus/vplanet
src/update.c
/** @file update.c @brief Subroutines controlling the integration @author <NAME> ([RoryBarnes](https://github.com/RoryBarnes/)) @date A long, long time ago */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <assert.h> #include <ctype.h> #include <string.h> #include <unistd.h> #include "vplane...
decaelus/vplanet
src/update.h
/** @file update.h @brief Subroutines controlling the integration @author <NAME> ([RoryBarnes](https://github.com/RoryBarnes/)) @date A long, long time ago */ /* @cond DOXYGEN_OVERRIDE */ void InitializeUpdateBodyPerts(CONTROL*,UPDATE*,int); void InitializeUpdateTmpBody(BODY*,CONTROL*,MODULE*,UPDATE*,int); vo...
decaelus/vplanet
src/system.c
/** @file system.c @brief Subroutines that control system-wide properties. @author <NAME> ([RoryBarnes](https://github.com/RoryBarnes/)) @date May 7 2014 */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include "vplanet.h" /* * Physical Relationships */ double fdMeanMotionToSemi(double dMass1,do...
decaelus/vplanet
src/eqtide.h
<filename>src/eqtide.h /** @file eqtide.h @brief Subroutines that control the integration of the tidal model. Also includes subroutines that switch between the two models. @author <NAME> ([RoryBarnes](https://github.com/RoryBarnes/)) @date May 29 2014 */ /* Tidal Model */ #define CPL ...
decaelus/vplanet
src/control.h
<gh_stars>0 /** @file control.h @brief These subroutines deal with control, including I/O, units, and files. @author <NAME> ([RoryBarnes](https://github.com/RoryBarnes/)) @date Jan 7 2015 */ /* @cond DOXYGEN_OVERRIDE */ void BodyCopyNULL(BODY*,BODY*,int,int,int); void InitializeControl(CONTROL*,MODU...
decaelus/vplanet
src/atmesc.c
<reponame>decaelus/vplanet<filename>src/atmesc.c<gh_stars>0 /** @file atmesc.c @brief Subroutines that control the integration of the atmospheric escape model. @author <NAME> ([<EMAIL>](mailto:<EMAIL>>)) @date May 12 2015 @par Description \rst This module defines differential equati...
decaelus/vplanet
src/distorb.c
<filename>src/distorb.c /** @file distorb.c @brief Subroutines that control the integration of the orbital model. @author <NAME> ([deitrr](https://github.com/deitrr/)) @date April 28 2015 */ #include <stdio.h> #include <math.h> #include <assert.h> #include <stdlib.h> #include <string.h> #include "vplan...
decaelus/vplanet
src/evolve.c
/** @file evolve.c @brief This file contains all the core VPLANET integration routines including the timestepping algorithm and the Runge-Kutta Integration scheme. @author <NAME> ([RoryBarnes](https://github.com/RoryBarnes/)) @date May 2014 */ #include <stdio.h> #include <math.h> #include <assert....
vasigavr1/Derecho
include/derecho/dr_generic_util.h
<gh_stars>1-10 // // Created by vasilis on 25/08/20. // #ifndef ODYSSEY_DR_GENERIC_UTIL_H #define ODYSSEY_DR_GENERIC_UTIL_H #include "dr_config.h" #include "../../../odlib/include/network_api/od_network_context.h" static inline void print_g_id_rob(context_t *ctx, uint32_t rob_id); static inline void print_all_gid_ro...
vasigavr1/Derecho
include/derecho/dr_config.h
<reponame>vasigavr1/Derecho // Created by vasilis on 20/08/20. // #ifndef ODYSSEY_DR_CONFIG_H #define ODYSSEY_DR_CONFIG_H #include "od_fifo.h" #include <dr_messages.h> #include <od_network_context.h> void dr_stats(stats_ctx_t *ctx); #define DISABLE_UPDATING_KVS 0 #define USE_QUORUM 1 ///Static Partitioning o...
vasigavr1/Derecho
src/derecho/dr_stats.c
// // Created by vasilis on 20/08/20. // #include "dr_util.h" void dr_stats(stats_ctx_t *ctx) { double seconds = ctx-> seconds; uint16_t print_count = ctx->print_count; t_stats_t *curr_w_stats = ctx->curr_w_stats; t_stats_t *prev_w_stats = ctx->prev_w_stats; all_stats_t all_stats; double total_through...
vasigavr1/Derecho
include/derecho/dr_messages.h
// // Created by vasilis on 21/08/20. // #ifndef ODYSSEY_DR_MESSAGES_H #define ODYSSEY_DR_MESSAGES_H #include "od_top.h" /// PREP_QP_ID #define PREP_CREDITS 5 #define PREP_COALESCE 16 #define COM_CREDITS 80 //#define MAX_PREP_SIZE 500 #define MAX_PREP_WRS (MESSAGES_IN_BCAST_BATCH) #define MAX_PREP_BUF_SLOTS_TO_BE...
vasigavr1/Derecho
include/derecho/dr_util.h
// // Created by vasilis on 20/08/20. // #ifndef ODYSSEY_DR_UTIL_H #define ODYSSEY_DR_UTIL_H #include "dr_config.h" #include "od_network_context.h" #include "od_init_func.h" #include <dr_inline_util.h> #include "../../../odlib/include/trace/od_trace_util.h" atomic_uint_fast64_t global_w_id, committed_global_w_id; s...
vasigavr1/Derecho
include/derecho/dr_debug_util.h
// // Created by vasilis on 21/08/20. // #ifndef ODYSSEY_DR_DEBUG_UTIL_H #define ODYSSEY_DR_DEBUG_UTIL_H #include "dr_config.h" #include "../../../odlib/include/network_api/od_network_context.h" #include "dr_generic_util.h" static inline char* dr_w_state_to_str(w_state_t state) { switch (state) { case INVALID:...
vasigavr1/Derecho
include/derecho/dr_reserve_stations.h
<gh_stars>1-10 // // Created by vasilis on 21/08/20. // #ifndef ODYSSEY_DR_RESERVE_STATIONS_H #define ODYSSEY_DR_RESERVE_STATIONS_H //#include "latency_util.h" #include "od_generic_inline_util.h" #include "dr_debug_util.h" #include <od_inline_util.h> static inline void fill_prep(context_t *ctx, ...
vasigavr1/Derecho
include/derecho/dr_inline_util.h
// // Created by vasilis on 20/08/20. // #ifndef ODYSSEY_DR_INLINE_UTIL_H #define ODYSSEY_DR_INLINE_UTIL_H #include "od_network_context.h" #include "dr_reserve_stations.h" #include "dr_kvs_util.h" /* --------------------------------------------------------------------------- //------------------------------TRACE ----...
vasigavr1/Derecho
include/derecho/dr_kvs_util.h
<gh_stars>1-10 // // Created by vasilis on 21/08/20. // #ifndef ODYSSEY_DR_KVS_UTIL_H #define ODYSSEY_DR_KVS_UTIL_H #include "od_kvs.h" static inline void dr_KVS_batch_op_trace(dr_ctx_t *dr_ctx, uint16_t op_num, uint16_t t_id) { ctx_trace_op_t *op = dr_ctx->ops; dr_resp_t...
vicrobot/AI_2048
vect.h
<reponame>vicrobot/AI_2048<gh_stars>0 #include<iostream> #include<vector> #include<cstdlib> #include<cstdio> #include<cmath> //#include<thread> /* TO DO NEXT: fillnum_m is iterating over whole grid each time for getting vacant spaces' indices, try getting vacant indices after motion like l r u d and return a vecto...
Filip-ZL/Digital-electronics-2
Labs/06-LCD/lcd/lcd/loading.c
<filename>Labs/06-LCD/lcd/lcd/loading.c /* * loading.c * * Created: 08.11.2020 18:11:20 * Author: ffili */
Filip-ZL/Digital-electronics-2
Labs/Project/project/project/bar_driver.c
/* * bar.c * * Created: 02.12.2020 15:36:38 * Author: ffili */ #define F_CPU 16000000 #include <util/delay.h> #include <math.h> #include "bar_driver.h" #include "gpio.h" uint8_t led_state[] = { 0b11111111, // 0/8 0b01111111, // 1/8 0b00111111, // 2/8 0b00011111, // 3/8 0b00001111, // 4/8 0b00000111...
Filip-ZL/Digital-electronics-2
Labs/Project/project/project/main.c
<gh_stars>0 /* * project.c * * Created: 25.11.2020 15:18:40 * Author : ffili */ #define front_view 0 #define back_view 1 #define trigger_back PB2 #define trigger_front PB3 #include <avr/io.h> #include <avr/interrupt.h> #include <math.h> #include <stdlib.h> #include <util/delay.h> #include <string.h> #include "...
Filip-ZL/Digital-electronics-2
Labs/06-LCD/lcd/lcd/main.c
<filename>Labs/06-LCD/lcd/lcd/main.c /*********************************************************************** * * Stopwatch with LCD display output. * ATmega328P (Arduino Uno), 16 MHz, AVR 8-bit Toolchain 3.6.2 * * Copyright (c) 2017-2020 <NAME> * Dept. of Radio Electronics, Brno University of Technology, Czechi...
Filip-ZL/Digital-electronics-2
Labs/Project/project/project/bar_driver.h
/** * @mainpage * Collection of libraries for AVR-GCC * @author <NAME> & <NAME> * * @file * @defgroup bar_driver <bar_driver.h> * @code #include <bar_driver.h> @endcode * * @brief Function that turn on/of specific amout of leds on bar graf * * Bar driver simply turns on as much leds as the input value is cl...
Filip-ZL/Digital-electronics-2
Labs/01-tools/morse/morse/morse/main.c
/* * morse.c * * Created: 23.09.2020 21:04:20 * Author : ffili */ #define LED_GREEN PB5 #define LONG_DELAY 3000 #define MESSAGE_SIZE 9 #define SHORT_DELAY 500 #define PAUSE 300 #ifndef F_CPU #define F_CPU 16000000 #endif #include <util/delay.h> #include <stdio.h> #include <avr/io.h> int main(void) { int morse...
Filip-ZL/Digital-electronics-2
Labs/06-LCD/lcd/lcd/loadingBar.h
/* * loadingBar.h * * Created: 08.11.2020 13:05:46 * Author: ffili */ #ifndef LOADINGBAR_H_ #define LOADINGBAR_H_ #define loading(uint8_t row) #endif /* LOADINGBAR_H_ */
Filip-ZL/Digital-electronics-2
Labs/Project/project/project/delta_time.c
/* * count_distance.c * * Created: 25.11.2020 15:35:25 * Author: ffili //*/ /* @warning CPU frequency */ #define F_CPU 16000000 #include "gpio.h" #include "timer.h" #include "delta_time.h" // global variables for returned value and current time uint16_t currentTime = 0; uint16_t us_deltatime = 0; void...
Filip-ZL/Digital-electronics-2
Labs/Project/project/project/delta_time.h
<filename>Labs/Project/project/project/delta_time.h /** * @mainpage * Collection of libraries for AVR-GCC * @author <NAME> & <NAME> * * @file * @defgroup stopwatch_delta Stopwatch library <delta_time.h> * @code #include <delta_time.h> @endcode * * @brief Function for measuring time start and stop by change sta...
Filip-ZL/Digital-electronics-2
Labs/02-leds/Knight-rider/knightRider/knightRider/main.c
<filename>Labs/02-leds/Knight-rider/knightRider/knightRider/main.c<gh_stars>0 /* * knightRider.c * * Created: 06.10.2020 18:47:03 * Author : ffili */ #define LED_0 PB0 #define LED_1 PB1 #define LED_2 PB2 #define LED_3 PB3 #define LED_4 PB4 #define BTN PD0 #define BLINK_DELAY 250 #ifndef F_CPU #define F_CPU 16000...
Wohlstand/TinyScreenshoter
tiny_screenshoter.h
/* * MIT License * * Copyright (c) 2018 <NAME> * * 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, m...
lengqingfeng/FastToast
FastToast/FastToastClass/FastToast.h
<gh_stars>1-10 // // FastToast.h // FastToast // // Created by allen on 2017/7/13. // Copyright © 2017年 <EMAIL>. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface FastToast : NSObject + (instancetype)shareinstance; /** 圈圈颜色 showToastLoadingWithView */ @property (non...
lengqingfeng/FastToast
FastToast/ViewController.h
<reponame>lengqingfeng/FastToast<filename>FastToast/ViewController.h // // ViewController.h // FastToast // // Created by lengshengren on 2018/4/27. // Copyright © 2018年 Lengshengren. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
lengqingfeng/FastToast
FastToast/AppDelegate.h
// // AppDelegate.h // FastToast // // Created by lengshengren on 2018/4/27. // Copyright © 2018年 Lengshengren. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
werewolf2188/WWCollapsibleForm
WWCollapsibleForm/WWCollapsibleForm/WWCollapsibleForm.h
// // WWCollapsibleForm.h // WWCollapsibleForm // // Created by <NAME> on 9/12/18. // Copyright © 2018 werewolf. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for WWCollapsibleForm. FOUNDATION_EXPORT double WWCollapsibleFormVersionNumber; //! Project version string for WWCollapsibleF...
graziano-giuliani/pythoncode
oss/programs/make_emis.c
#include <stdio.h> #include <netcdf.h> #include <stdlib.h> #include <string.h> #include <limits.h> int main(int argc,char *argv[]) { float *sfgrd, *emrf; long nsf; char *fname, *p, *e, foutname[PATH_MAX], line[256]; int i, ncres, fres, ncid, idim, ivar[2]; FILE *fp; char units[2][16] = { "cm-1", "1" }; ...
graziano-giuliani/pythoncode
oss/programs/make_newcur.c
#include <stdio.h> #include <netcdf.h> #include <stdlib.h> #include <string.h> #include <limits.h> int main(int argc,char *argv[]) { float *wvl, *irr; long nspi; char *fname, *p, *e, foutname[PATH_MAX], line[256]; int i, ncres, fres, ncid, idim, ivar[2]; FILE *fp; char units[2][16] = { "cm-1", "mW m-2 / c...
rolandbernard/calculator
src/settings.h
#pragma once struct settings { byte _brightness = 3; uint16_t _color[5] = { 0 }; bool _rad = false; __uint8_t _base = 0; }; extern settings _settings;
rolandbernard/calculator
src/Keypad.h
<reponame>rolandbernard/calculator #pragma once #include "WProgram.h" #include "ILI9341_t3.h" extern ILI9341_t3 tft; class Keypad { public: Keypad(); Keypad(int, byte*, byte*, int, int); ~Keypad(); char getKey() { return tft.getInput(); } }; extern int makeKeymap(char*[]);
rolandbernard/calculator
src/WProgram.h
<reponame>rolandbernard/calculator #pragma once #include <string> #include <iostream> #include <math.h> #include <stdint.h> #define refrenceVoltage 3.3f #define __uint8_t uint8_t #define __int8_t int8_t #define __uint16_t uint16_t #define __int16_t int16_t #define __uint32_t uint32_t #define __int32_t ...
rolandbernard/calculator
src/menu.h
#pragma once #ifndef _MENU_h #define _MENU_h #if defined(ARDUINO) && ARDUINO >= 100 #include "arduino.h" #else #include "WProgram.h" #endif #include "global.h" #include "settings.h" #include "grapher.h" #include "rechner.h" #include "optionen.h" #include "menu.h" #include "Keypad.h" #include "S...
rolandbernard/calculator
src/grapher.h
<filename>src/grapher.h #pragma once #ifndef _GRAPHER_h #define _GRAPHER_h #if defined(ARDUINO) && ARDUINO >= 100 #include "arduino.h" #else #include "WProgram.h" #endif #include "global.h" #include "funktionBuffer.h" #include "settings.h" #include "graph.h" #include "funktion.h" #include "ILI934...
rolandbernard/calculator
src/ILI9341_t3.h
<gh_stars>0 #pragma once #include <SDL2/SDL.h> #include "WProgram.h" #include "font.h" #define ILI9341_BLACK 0x0000 #define ILI9341_NAVY 0x000F #define ILI9341_DARKGREEN 0x03E0 #define ILI9341_DARKCYAN 0x03EF #define ILI9341_MAROON 0x7800 #define ILI9341_PURPLE ...
rolandbernard/calculator
src/funktionBuffer.h
#pragma once #ifndef _FUNKTIONBUFFER_h #define _FUNKTIONBUFFER_h #if defined(ARDUINO) && ARDUINO >= 100 #include "arduino.h" #else #include "WProgram.h" #endif #define E 2.7182818284590452353602874713526 #define BUFFER_SIZE 4096 #include "global.h" #include <math.h> struct space { __int16_t...
rolandbernard/calculator
src/funktion.h
#pragma once #ifndef _FUNKTION_h #define _FUNKTION_h #if defined(ARDUINO) && ARDUINO >= 100 #include "arduino.h" #else #include "WProgram.h" #endif #include "funktionBuffer.h" #include "settings.h" #include "global.h" class funktion { protected: __int16_t _funktionStart = -1; __int16_t _...
rolandbernard/calculator
src/global.h
<reponame>rolandbernard/calculator #pragma once #include "WProgram.h" #include "SPI.h" #include "ILI9341_t3.h" extern ILI9341_t3 tft; #include "Keypad.h" #include "settings.h" #include <stdlib.h> #include <stdio.h> #define backgroundColor 0xC638 #define strokeColor 0xDF1B #define textColor 0x0000 #def...
rolandbernard/calculator
src/graph.h
#pragma once #ifndef _GRAPH_h #define _GRAPH_h #if defined(ARDUINO) && ARDUINO >= 100 #include "arduino.h" #else #include "WProgram.h" #endif #include "global.h" #include "funktion.h" #include <math.h> class GraphClass { protected: __uint32_t _map[10][240] = { { 0 } }; void drawLine(__...
rolandbernard/calculator
src/rechner.h
#pragma once #ifndef _RECHNER_h #define _RECHNER_h #if defined(ARDUINO) && ARDUINO >= 100 #include "arduino.h" #else #include "WProgram.h" #endif #include "global.h" #include "settings.h" #include "graph.h" #include "funktion.h" #include "SPI.h" #include "ILI9341_t3.h" class RechnerClass { ...
rolandbernard/calculator
src/optionen.h
#pragma once #ifndef _OPTIONEN_h #define _OPTIONEN_h #if defined(ARDUINO) && ARDUINO >= 100 #include "arduino.h" #else #include "WProgram.h" #endif #include "global.h" #include "settings.h" #include "SPI.h" #include "ILI9341_t3.h" class OptionenClass { protected: int8_t _selection[2][2] ...
cndevmingle/MGSafeArrayWithDictionary
Demo/MGSafeArrayWithDictionary/MGSafeDictionary/NSDictionary+MGSafe.h
// // NSDictionary+MGSafe.h // Demo // // Created by Mingle on 2018/4/9. // Copyright © 2018年 Mingle. All rights reserved. // #import <Foundation/Foundation.h> @interface NSDictionary (MGSafe) @end
cndevmingle/MGSafeArrayWithDictionary
Demo/MGSafeArrayWithDictionary/MGSafeDictionary/NSMutableDictionary+MGSafe.h
<reponame>cndevmingle/MGSafeArrayWithDictionary<gh_stars>0 // // NSMutableDictionary+MGSafe.h // Demo // // Created by Mingle on 2018/4/9. // Copyright © 2018年 Mingle. All rights reserved. // #import <Foundation/Foundation.h> @interface NSMutableDictionary (MGSafe) @end
cndevmingle/MGSafeArrayWithDictionary
Demo/MGSafeArrayWithDictionary/MGSafeString/NSString+MGSafe.h
<reponame>cndevmingle/MGSafeArrayWithDictionary // // NSString+MGSafe.h // Demo // // Created by Mingle on 2018/4/14. // Copyright © 2018年 Mingle. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (MGSafe) @end
cndevmingle/MGSafeArrayWithDictionary
Demo/MGSafeArrayWithDictionary/MGSafeArray/NSMutableArray+MGSafe.h
<filename>Demo/MGSafeArrayWithDictionary/MGSafeArray/NSMutableArray+MGSafe.h // // NSMutableArray+MGSafe.h // Demo // // Created by Mingle on 2018/4/9. // Copyright © 2018年 Mingle. All rights reserved. // #import <Foundation/Foundation.h> @interface NSMutableArray (MGSafe) @end
ChocomintSSR/My-Cpp-Headers
Category-Math/MatrixPre/Matrix.h
#ifndef _MATRIX_ #define _MATRIX_ #include <iostream> #include <cmath> #include <vector> #define eps 1e-13 namespace std { template <class T> class matrix { private: T det_diag(const int &m, const int &n); public: vector<vector<T>> value; matrix(){}; matrix(int n, ...
ChocomintSSR/My-Cpp-Headers
Category-Math/Quaternion/Quaternion.h
<filename>Category-Math/Quaternion/Quaternion.h #ifndef _QUATERNION_H_ #define _QUATERNION_H_ #include <iostream> #include <vector> #include <string> #include <cmath> #include <algorithm> #include <sstream> #define c_eps 1e-10 namespace chocomint { using std::vector; class Vector3D { private: double _x, _y, _z;...
ChocomintSSR/My-Cpp-Headers
Category-Algorithm/BigNumber/BigNumber.h
#ifndef _BIGNUMBER_ #define _BIGNUMBER_ #include <iostream> #include <vector> #include <string> #include <cmath> #include <typeinfo> namespace chocomint { class BigInt { private: std::vector<int> container; bool positive; int at(int index) { return this->container[index]; } public: friend BigInt operator...
ChocomintSSR/My-Cpp-Headers
Category-Math/Quaternion/vector_Math.h
<filename>Category-Math/Quaternion/vector_Math.h #ifndef _VECTOR_MATH_H_ #define _VECTOR_MATH_H_ #include <iostream> #include <vector> #include <cmath> #include "stringEX.h" #define here cout << "here\n"; namespace std { template <typename _Ty> class Vector3D { private: _Ty _x, _y, _z; public: Vector3D() :...
ChocomintSSR/My-Cpp-Headers
Category-Math/complexPre/complex.h
<filename>Category-Math/complexPre/complex.h #ifndef _COMPLEX_ #define _COMPLEX_ #include <iostream> #include <string> #include <cmath> namespace chocomint { class complex { public: double Re, Im; complex(); complex(double val); complex(double val1, double val2); c...
ChocomintSSR/My-Cpp-Headers
Category-Math/Polynomial/polynomial.h
<filename>Category-Math/Polynomial/polynomial.h #ifndef _POLYNOMIAL_H_ #define _POLYNOMIAL_H_ #include <iostream> #include <vector> #include <algorithm> // typedef double Real; namespace std { struct QR_poly { public: vector<double> Quotient, Remainder; }; // 降冪排列 // arrangement in descending power class po...
ChocomintSSR/My-Cpp-Headers
Category-Another/common.h
#ifndef _COMMON_H_ #define _COMMON_H_ #include <iostream> #include <random> #include <vector> #include <string> #include <cmath> #include <algorithm> #include <map> #include <set> #include <stdlib.h> #include <chrono> // define #define ull unsigned long long #define dd cout << '\n'; #define delta 1e-12 #define eps 1...
ChocomintSSR/My-Cpp-Headers
Category-Algorithm/unit/unit.h
<filename>Category-Algorithm/unit/unit.h #ifndef _UNIT_H_ #define _UNIT_H_ #include <iostream> #include <string> #include <vector> #include <utility> #include <algorithm> namespace std { class reference_unit { }; template <int amount> // amount == _unit_names.size() == _unit_values.size() - 1 cla...
ChocomintSSR/My-Cpp-Headers
Category-Math/complex/complex.h
<reponame>ChocomintSSR/My-Cpp-Headers #ifndef _COMPLEX_H_ #define _COMPLEX_H_ #include <iostream> #include <cmath> #include <functional> #include <initializer_list> #include <vector> #define i complex(0, 1) #define pi 3.14159265358979323846 namespace chocomint { class complex { private: double real, imag; publ...
ChocomintSSR/My-Cpp-Headers
Category-Math/string_ex/FileReaderEX/stringEX.h
<filename>Category-Math/string_ex/FileReaderEX/stringEX.h #ifndef _STRING_EX_ #define _STRING_EX_ #include <iostream> #include <string> #include <vector> #include <algorithm> #include <sstream> #include <iomanip> #include <bitset> #include <map> namespace std { string base64_list = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcd...
ChocomintSSR/My-Cpp-Headers
Category-Algorithm/Graph/Graph.h
<filename>Category-Algorithm/Graph/Graph.h #ifndef _GRAPH_H_ #define _GRAPH_H_ #include <iostream> #include <vector> #include <utility> namespace chocomint { using std::cout; using std::vector; template <class T> class path_data { private: int start, end; T data; public: ...
ChocomintSSR/My-Cpp-Headers
Category-Math/string_ex/FileReaderEX/fileEX.h
<filename>Category-Math/string_ex/FileReaderEX/fileEX.h #ifndef _FILE_EX_ #define _FILE_EX_ #include <iostream> #include <vector> #include <string> #include "stringEX.h" #include <fstream> namespace std { vector<vector<stringEX>> read_csv(const char *Filename) { stringEX file_name = Filename; ...
ChocomintSSR/My-Cpp-Headers
Category-Math/formula/formula.h
<filename>Category-Math/formula/formula.h #ifndef _FORMULA_ #define _FORMULA_ #include <iostream> #include <stdlib.h> #define delta 1e-11 #define eps 1e-7 double lowerBound = -1e8, upperBound = 1e8; namespace chocomint { template <class T1, class T2> class formula { private: T1(*f) (T2...
ChocomintSSR/My-Cpp-Headers
Category-Algorithm/Tree/tree.h
#ifndef _TREE_H_ #define _TREE_H_ #include <iostream> #include <bitset> namespace chocomint { using std::bitset; using std::cout; class tree_node { private: int data; tree_node *left; tree_node *right; tree_node *parent; public: tree_node() : left(NULL...
Winens/coffee_kernel
kernel/drivers/graphics/graphics.h
// // Created by winens on 2/15/22. // #ifndef COFFEE_GRAPHICS_H #define COFFEE_GRAPHICS_H // Supports VBE, VGA And GOP #include <stdint.h> #include <stddef.h> void _NEW_LINE(); void Driver_Graphics_Exec(uint32_t *fb, uint32_t w, uint32_t h, uint32_t pitch); void _DRAW_PIXEL(int x, int y, uint32_t color); void _DRAW...
Winens/coffee_kernel
kernel/mm/heap.h
<gh_stars>1-10 // // Created by winens on 2/18/22. // #ifndef COFFEE_HEAP_H #define COFFEE_HEAP_H #include <stdint.h> struct _HEAP_BLOCK{ struct _HEAP_BLOCK *_next; uint32_t _size; uint32_t _used; uint32_t _bsize; uint32_t _lfb; }; struct _HEAP{ struct _HEAP_BLOCK *_block; }; void HEAP_Exec...
Winens/coffee_kernel
kernel/mm/heap.c
<reponame>Winens/coffee_kernel<gh_stars>1-10 // // Created by winens on 2/18/22. // #include <mm/heap.h> #include <stdint.h> #include <stddef.h> #include <stdio.h> struct _HEAP *_heap; void HEAP_Exec(){ _heap->_block = 0; } void HEAP_Add_Block(struct _HEAP *heap, uintptr_t address, uint32_t size, uint32_t bsize...
Winens/coffee_kernel
kernel/port/port.h
// // Created by winens on 2/15/22. // #ifndef COFFEE_OS_PORT_H #define COFFEE_OS_PORT_H #include <stdint.h> uint8_t _inb(uint16_t port); void _outb(uint16_t port, uint8_t data); #endif //COFFEE_OS_PORT_H
Winens/coffee_kernel
kernel/port/port.c
<reponame>Winens/coffee_kernel // // Created by winens on 2/15/22. // #include <port/port.h> uint8_t _inb(uint16_t port) { uint8_t ret; asm volatile("inb %1, %0" : "=a"(ret) : "d"(port)); return ret; } void _outb(uint16_t port, uint8_t data) { asm volatile("outb %0, %1" : "=a"(data) : "d"(port)); }
Winens/coffee_kernel
kernel/boot/boot.c
// // Created by winens on 2/12/22. // #include <stdint.h> #include <stddef.h> #include <stdio.h> #include <boot/stivale2.h> #include <boot/stivale2_funcs.h> #include <cpu/gdt.h> #include <drivers/graphics/graphics.h> #include <mm/mm.h> #include <mm/heap.h> void _start(struct stivale2_struct *stivale2_struct) { ...
Winens/coffee_kernel
kernel/boot/stivale2_funcs.c
<reponame>Winens/coffee_kernel // // Created by winens on 2/15/22. // #include <boot/stivale2.h> #include <stdint.h> #include <stddef.h> #include <stdbool.h> static uint8_t stack[8192]; static struct stivale2_header_tag_terminal terminal_hdr_tag = { .tag = { .identifier = STIVALE2_HEADER_TAG_T...
Winens/coffee_kernel
kernel/dev/stdio.h
// // Created by winens on 2/16/22. // #ifndef COFFEE_STDIO_H #define COFFEE_STDIO_H #include <stdint.h> #include <stdbool.h> #include <stdarg.h> #include <stddef.h> #include <drivers/graphics/graphics.h> #include <port/port.h> #include <mm/mm.h> enum __SYSTEM_DEF_COLORS{ __COL_DARK=0x141414, __COL_LIGHT=0xc...
Winens/coffee_kernel
kernel/mm/mm.h
<filename>kernel/mm/mm.h<gh_stars>1-10 // // Created by winens on 2/15/22. // #ifndef COFFEE_OS_MM_H #define COFFEE_OS_MM_H #include <stdint.h> #include <stddef.h> #include <stdio.h> #define MM_PAGE_SIZE (4096) #define MM_KERNEL_BASE (0xffffffff80000000) #define MM_HIGHER_BASE (0xffff800000000000) struct _memory { ...
Winens/coffee_kernel
kernel/boot/stivale2_funcs.h
<filename>kernel/boot/stivale2_funcs.h // // Created by winens on 2/15/22. // #ifndef COFFEE_STIVALE2_FUNCS_H #define COFFEE_STIVALE2_FUNCS_H #include <stdint.h> #include <stdbool.h> #include <boot/stivale2.h> void *stivale2_get_tag(struct stivale2_struct *stivale2_struct, uint64_t id); #endif //COFFEE_STIVALE2_FUN...
Winens/coffee_kernel
kernel/cpu/gdt.c
// // Created by winens on 2/17/22. // #include <cpu/gdt.h> #include <stdint.h> #include <stdio.h> void GDT_Create_Desc(uint32_t base, uint32_t limit, uint16_t flag){ uint64_t ds; ds = limit & 0x000F0000; ds |= (flag << 8) & 0x00F0FF00; ds |= (base >> 16) & 0x000000FF; ds |= base & 0xFF000000; ...