repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
LiqCode/PriLib | LIQLib/LIQLib/UINavgition/UINavigationController+lqcNav.h | //
// UINavigationController+lqcNav.h
// LIQLib
//
// Created by LQ_MAC on 16/4/22.
// Copyright © 2016年 LQ_MAC. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UINavigationController (lqcNav)
+ (void)lqc_navRegister;
- (void)pushViewControllerAndRemoveTopWithContoller:(UIViewController *)viewContr... |
LiqCode/PriLib | LIQLib/LIQLib/AppDelegate.h | //
// AppDelegate.h
// LIQLib
//
// Created by LQ_MAC on 16/4/22.
// Copyright © 2016年 LQ_MAC. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
LiqCode/PriLib | LIQLib/LIQLib/LIQRuntime/LQCRuntime.h | //
// LQCRuntime.h
// LIQLib
//
// Created by LQ_MAC on 16/4/22.
// Copyright © 2016年 LQ_MAC. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <objc/runtime.h>
@interface LQCRuntime : NSObject
static inline void lqc_swizzleSelector(Class theClass, SEL originalSelector, SEL swizzledSelector);
st... |
JHenriksson86/ndt_2d | ndt_eval/include/ndt_eval/transform_handler.h | #ifndef TRANSFORM_HANDLER_H
#define TRANSFORM_HANDLER_H
// STL
#include <iostream>
#include <string>
#include <sstream>
#include <fstream>
#include <limits>
// ROS
#include <ros/ros.h>
#include <geometry_msgs/Transform.h>
#include <geometry_msgs/TransformStamped.h>
#include <tf2_ros/transform_broadcaster.h>
#include ... |
JHenriksson86/ndt_2d | ndt_2d/include/ndt_2d_util.h | <gh_stars>1-10
#ifndef NDT_2D_UTIL_H
#define NDT_2D_UTIL_H
// STL
#include <cmath>
#include <sstream>
#include <string>
// ROS
#include "geometry_msgs/Transform.h"
// Eigen
#include "eigen3/Eigen/Dense"
namespace ndt2d
{
typedef Eigen::Matrix<double, 2, 1, Eigen::DontAlign> UVector2d;
typedef Eigen::Matrix<dou... |
JHenriksson86/ndt_2d | ndt_2d/include/ndt_2d_math.h | #ifndef NDT_2D_MATH_H
#define NDT_2D_MATH_H
#include <ros/ros.h>
#include "ndt_2d_util.h"
#include "eigen3/Eigen/Dense"
#include <cmath>
#include <cfloat>
#include <iostream>
namespace ndt2d
{
struct StepMath
{
static Eigen::Vector2d calcMeanVector(const Gaussian& movable_point,
const Gau... |
JHenriksson86/ndt_2d | ndt_2d/include/ndt_2d_scan.h | <filename>ndt_2d/include/ndt_2d_scan.h
#ifndef NDT_2D_SCAN_H
#define NDT_2D_SCAN_H
// STL
#include <iostream>
#include <vector>
#include <cmath>
#include <fstream>
#include <string>
// PCL
//#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
#include <pcl_conversions/pcl_conversions.h>
#include <pcl/PCLPointClou... |
JHenriksson86/ndt_2d | ndt_2d/include/ndt_2d_registration_old.h | <filename>ndt_2d/include/ndt_2d_registration_old.h
#ifndef NDT_2D_REG_NODE_H
#define NDT_2D_REG_NODE_H
#include <ros/ros.h>
#include "eigen3/Eigen/Dense"
#include "ceres/ceres.h"
#include "glog/logging.h"
#include "ndt_2d_map.h"
#include "ndt_2d_scan.h"
#include "ndt_2d_math.h"
#include <cmath>
#include <cfloat>
#incl... |
JHenriksson86/ndt_2d | ndt_2d/include/ndt_2d_registration.h | #ifndef NDT_2D_REG_CERES_H
#define NDT_2D_REG_CERES_H
#include <ros/ros.h>
#include "eigen3/Eigen/Dense"
#include "ceres/ceres.h"
#include "glog/logging.h"
#include "ndt_2d_math.h"
#include "ndt_2d_map.h"
#include "ndt_2d_scan.h"
#include <cmath>
#include <cfloat>
#include <iostream>
#include <sstream>
#include <strin... |
JHenriksson86/ndt_2d | ndt_2d/include/ndt_2d_mapcell.h | #ifndef NDT_2D_MAP_CELL_H
#define NDT_2D_MAP_CELL_H
#include "eigen3/Eigen/Dense"
#include <vector>
#include <iostream>
#include <numeric>
#include <cmath>
#include "ndt_2d_util.h"
namespace ndt2d{
class NDTCell {
protected:
std::vector<UVector2d> scan_points_;
Gaussian ... |
JHenriksson86/ndt_2d | ndt_eval/include/ndt_eval/pointcloud_handler.h | #ifndef PCD_HANDLER_H
#define PCD_HANDLER_H
// STL
#include <iostream>
#include <string>
// PCL
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
#include <pcl_conversions/pcl_conversions.h>
#include <pcl/PCLPointCloud2.h>
#include <pcl/common/transforms.h>
#include <pcl/filters/voxel_grid.h>
// ROS
#include <... |
JHenriksson86/ndt_2d | ndt_2d/include/ndt_2d_map.h | #ifndef NDT_2D_MAP_H
#define NDT_2D_MAP_H
// STL
#include <vector>
#include <list>
#include <iostream>
#include <cmath>
// ROS
#include <ros/ros.h>
// Eigen
#include "eigen3/Eigen/Dense"
#include "eigen3/Eigen/StdVector"
// NDT
#include "ndt_2d_mapcell.h"
#include "ndt_2d_scan.h"
#include "ndt_2d_util.h"
namespace... |
JHenriksson86/ndt_2d | ndt_2d/include/ndt_2d_service.h | #ifndef NDT_2D_H
#define NDT_2D_H
// ROS
#include <ros/ros.h>
#include "sensor_msgs/PointCloud2.h"
#include "geometry_msgs/Transform.h"
// NDT
#include "ndt_2d_map.h"
#include "ndt_2d_scan.h"
#include "ndt_2d_registration.h"
#include "ndt_msgs/Registration.h"
#include "ndt_msgs/NDT2dParameters.h"
namespace ndt2d
{
... |
JHenriksson86/ndt_2d | ndt_eval/include/ndt_eval/registration_evaluation.h | <reponame>JHenriksson86/ndt_2d
#ifndef REGISTRATION_EVALUATION_H
#define REGISTRATION_EVALUATION_H
#define _USE_MATH_DEFINES
// STL
#include <string>
#include <iostream>
#include <cmath>
#include <fstream>
// ROS
#include <ros/ros.h>
#include <sensor_msgs/PointCloud2.h>
#include <geometry_msgs/Transform.h>
#include <... |
ChargeIn/QLightTerm | qlightterminal.h | <filename>qlightterminal.h
/*
* Copyright© <NAME> <<EMAIL>>
*/
#ifndef QLIGHTTERMINAL_H
#define QLIGHTTERMINAL_H
#include <QWidget>
#include <QStringList>
#include <QScrollBar>
#include <QHBoxLayout>
#include <QKeyCombination>
#include <QTimer>
#include <QPointF>
#include <QTime>
#include <QColor>
#include "st.h"... |
ChargeIn/QLightTerm | st.h | #ifndef ST_H
#define ST_H
#include <QObject>
#include <QString>
#include <QSocketNotifier>
#include <sys/ioctl.h>
#include "st-utils.h"
class SimpleTerminal : public QObject {
Q_OBJECT
public:
Term term;
Selection sel;
SimpleTerminal(QObject *parent = nullptr);
~SimpleTerminal();
void tne... |
ChargeIn/QLightTerm | st-utils.h | #ifndef STUTILS_H
#define STUTILS_H
#include <stdint.h>
#include <QObject>
/* macros */
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) < (b) ? (b) : (a))
#define LEN(a) (sizeof(a) / sizeof(a)[0])
#define BETWEEN(x, a, b) ((a) <= (x) && (x) <= (b))
#define DIVCEIL(n, d) ... |
PavanKamra96/BTP305 | Lab5/Notifications.h | /**
Name: <NAME>
Course: BTP305
**/
#ifndef _Notifications_h_
#define _Notifications_h_
#include <iostream>
#include <cstring>
#include <vector>
#include "Message.h"
#define msgDEFINE 10
namespace w5
{
class Notifications
{
private:
std::vector<Message> M;
public:
Notifications();
Notifica... |
PavanKamra96/BTP305 | lab4/KVList.h | <reponame>PavanKamra96/BTP305<gh_stars>0
/**
Name: <NAME>
Course: BTP305
**/
#include <iostream>
#include <string>
template < typename K, typename V, int n >
class KVList {
private:
K a[n];
V b[n];
size_t count;
public:
KVList(): count(0) {};
size_t size() const {
return ... |
PavanKamra96/BTP305 | lab1/process.h | /* Name: <NAME>
Date: 9/18/2015
Course: BTP305
Purpose: method called process is declared.*/
void process (const char*);
|
PavanKamra96/BTP305 | Lab7/taxableProduct.h | <filename>Lab7/taxableProduct.h
/**
Name: <NAME>
Course:BTP305
**/
#ifndef _TAXABLE_PRODUCT_H
#define _TAXABLE_PRODUCT_H
#include "Product.h"
#include <iostream>
namespace w7{
class taxableProduct: public Product {
private:
char taxType;
static const double TAX[2]; // do not do in constructor.
public... |
PavanKamra96/BTP305 | lab1/Cstring.h | <filename>lab1/Cstring.h
/**
Name: <NAME>
Course: BTP305
**/
#ifndef _CSTRING_H_
#define _CSTRING_H_
#include <iostream>
#include < cstring >
// Creates a CString class inside the namespace w1.
namespace w1 {
const int charNum = 4;
class CString {
public:
CString();
CString(const ... |
PavanKamra96/BTP305 | Lab7/iProduct.h | /**
Name: <NAME>
Course: BTP305
**/
#ifndef _I_PRODUCT_H_
#define _I_PRODUCT_H_
#include <iostream>
#include <fstream>
namespace w7 {
class iProduct {
public:
virtual double getCharge() const = 0;
virtual void display(std::ostream&) const = 0;
virtual ~iProduct(){};
};
std::ostream& operator<<(std::o... |
PavanKamra96/BTP305 | Lab2/Stations.h | <reponame>PavanKamra96/BTP305
/**
Name: <NAME>
Course: BTP305
**/
#ifndef _STATIONS_H_
#define _STATIONS_H_
#include <iostream>
#include <cstring>
#include "Station.h"
namespace w2
{
class Stations
{
private:
Station *stat;
char delimiter;
int amount_Of_Stations;
public:
Sta... |
PavanKamra96/BTP305 | Lab9/Element.h | <gh_stars>0
/**
Name: <NAME>
Course: BTP305
**/
#include <iostream>
#include <iomanip>
#include <string>
#include <fstream>
extern const int FWC;
extern const int FWD;
extern const int FWP;
namespace w9 {
struct Description {
unsigned code;
std::string desc;
bool load(std::ifstream & f) { // this inpu... |
PavanKamra96/BTP305 | Lab7/Sale.h | /**
Name: <NAME>
Course: BTP305
**/
#ifndef _SALE_H_
#define _SALE_H_
#include "iProduct.h"
#include <vector>
#include <fstream>
#include <iomanip>
namespace w7 {
class Sale
{
std::vector<iProduct*> products;
public:
Sale(const char* filename);
void display(std::ostream& os) const;
};
}
#endif
|
PavanKamra96/BTP305 | Lab2/Station.h | <reponame>PavanKamra96/BTP305
/**
Name: <NAME>
Course: BTP305
**/
#ifndef _STATION_H_
#define _STATION_H_
#include <iostream>
#include <cstring>
#include <string>
enum PassType {Student, Adult};
class Station
{
private:
std::string station_Name;
unsigned int studen_Pass;
unsigned int adult... |
PavanKamra96/BTP305 | Lab5/Message.h | <reponame>PavanKamra96/BTP305<filename>Lab5/Message.h
/**
Name: <NAME>
Course: BTP305
**/
#ifndef _Message_h_
#define _Message_h_
#include <iostream>
#include <vector>
#include <cstring>
#include <string>
#include <fstream>
namespace w5 {
class Message
{
private:
std::string user_name;
std::string... |
PavanKamra96/BTP305 | Lab9/List.h | /**
Name: <NAME>
Course: BTP305
**/
#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <fstream>
namespace w9 {
template < typename T >
class List {
std::vector < T > list;
public:
List() {}
List(const char * fn) {
std::ifstream file(fn);
... |
PavanKamra96/BTP305 | Lab3/Text.h | <reponame>PavanKamra96/BTP305
/**
Name: <NAME>
Date: 9/29/2015
Course: BTP305
Purpose: The Header file for Text.cpp.
**/
#ifndef _TEXT_H_
#define _TEXT_H_
#include <iostream>
#include <cstring>
#include <string>
namespace w3
{
class Text
{
private:
std::string* T;
size_t records;
public:... |
PavanKamra96/BTP305 | Lab8/DataTable.h | /**
Name: <NAME>
Course: BTP305
**/
#ifndef _DATATABLE_H_
#define _DATATABLE_H_
#include <iostream>
#include <fstream>
#include <math.h>
#include <vector>
#include <iomanip>
#include <algorithm>
#include <functional>
namespace w8 {
template < typename T >
class DataTable {
private:
std::vect... |
PavanKamra96/BTP305 | Lab6/Grades.h | <reponame>PavanKamra96/BTP305
/**
Name: <NAME>
Course: BTP305
**/
#ifndef _Grades_h_
#define _Grades_h_
#include <iostream>
#include <string>
#include <fstream>
#include <functional>
class Grades {
private:
long* studentID;
float* Grade;
int recordsNum;
public:
Grades();
~Grades();
Grades(co... |
PavanKamra96/BTP305 | Lab7/Product.h | /**
Name: <NAME>
Course: BTP305
**/
#ifndef _PRODUCT_H_
#define _PRODUCT_H_
#include "iProduct.h"
#include <iostream>
#include <iomanip>
namespace w7 {
class Product: public iProduct
{
private:
long ProductId;
double cost;
public:
Product();
Product(long, double);
double getCharge... |
CristianManosalva/SOXV6 | stdio.h | #ifndef ULIBC_STDIO_H
#define ULIBC_STDIO_H
#include <stdarg.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#ifndef ULIBC_SIZE_T
#define ULIBC_SIZE_T
typedef unsigned int size_t;
#endif /* ULIBC_SIZE_T */
#ifdef __cplusplus
#define NULL 0L
#else /* __cplusplus */
#define NULL ((void*)0)
#endif /* __cpl... |
CristianManosalva/SOXV6 | foo.c | <reponame>CristianManosalva/SOXV6
#include "types.h"
#include "stat.h"
#include "user.h"
#include "fcntl.h"
int
main(int argc, char *argv[]){
int k, n, id;
double x=0, z, d;
if(argc < 2)
n = 1;
else
n = atoi (argv[1]);
if(n < 0 || n > 20)
n = 2;
if(argc < 3)
d = 0.1;
else
d = atoi (argv[2]);
x=0;
... |
ameya134/Real_time_FIR_filtering | src/inc/hal/timer0.h | <reponame>ameya134/Real_time_FIR_filtering
/* *****************************************************************
*
* This file provides the declarations for configuration and
* use of Timer0 peripheral on tm4c129encpdt
*
* Author: <NAME>
* Date Created: 1st March 2021
* Date Modified: 13th May 2021
*
*... |
ameya134/Real_time_FIR_filtering | src/inc/timestamp.h | <gh_stars>0
/* ********************************************************
*
* header file for timestamp API
*
* Author: <NAME>
* Date Created: 6th May 2021
* Date Modified: 6th May 2021
*
* *******************************************************/
#ifndef _TIMESTAMP_H
#define _TIMESTAMP_H
#include "main.h"
#in... |
ameya134/Real_time_FIR_filtering | src/hal/clock.c | /* ***********************************************************
* This file implements the API used to configure and
* use the various clocks present on tm4c129encpdt
* This file uses TI's provided tm4c129encpdt.h header file
*
* Author: <NAME>
* Date created: 28th April 2021
* Last modified: 13th May 2021
*
... |
ameya134/Real_time_FIR_filtering | src/inc/app.h | /* *****************************************************************
*
* Header file for app.c
*
* Author: <NAME>
* Date Created: 4th April 2021
* Date Modified: 16th May 2021
*
* *****************************************************************/
#ifndef _APP_H
#define _APP_H
#include "tm4c129encpdt... |
ameya134/Real_time_FIR_filtering | test/test.h | <filename>test/test.h
/*
* Header file for test functions
*/
#ifndef _TEST_H
#define _TEST_H
/* This function is called from main when
* the PERFORM_TEST flag is set to 1 */
int test_main(void);
#endif |
ameya134/Real_time_FIR_filtering | src/timestamp.c | /* *****************************************************************
*
* This file implements the timestamp functions using timer7
*
* Author: <NAME>
* Date Created: 6th May 2021
* Date Modified: 6th May 2021
*
* ****************************************************************/
#include "timestamp.h"
/* ... |
ameya134/Real_time_FIR_filtering | src/main.c | /* ***********************************************************************
* This is the main file which initializes the FreeRTOS
*
* main calls the initialization functions and then starts the scheduler
*
* Author: <NAME>
* Date Created: 3rd April 2021
* Last modified: 15th May 2021
*
* ********************... |
ameya134/Real_time_FIR_filtering | src/system_tm4c.c | <gh_stars>0
/* ********************************************************
*
* This file implements the system initilization function
*
* Author: <NAME>
* Date Created: 6th May 2021
* Date Modified: 6th May 2021
*
* *******************************************************/
#include <main.h>
#include <system_tm4c.... |
ameya134/Real_time_FIR_filtering | src/hal/adc.c | <reponame>ameya134/Real_time_FIR_filtering
/* ***************************************************************************
*
* This file implements the functions for configuration and use of ADC module
* on tm4c129encpdt
*
* Author: <NAME>
* Date Created: 22nd March 2021
* Date Modified: 14th May 2021
*
* ***... |
ameya134/Real_time_FIR_filtering | src/hal/pwm.c | <filename>src/hal/pwm.c
/* ***********************************************************
* This file implements the functions used to configure and
* use the pwm module present on tm4c129encpdt
* This file uses TI's provided tm4c129encpdt.h header file
*
* Author: <NAME>
* Date created: 13th Dec 2020
* Last mod... |
ameya134/Real_time_FIR_filtering | src/inc/hal/adc.h | /* ********************************************************
* Header file for ADC module
*
* Author: <NAME>
* Date Created: 22nd March 2021
* Date Modified: 14th May 2021
*
* ********************************************************/
#ifndef _ADC_H
#define _ADC_H
#include "tm4c129encpdt.h"
#include "... |
ameya134/Real_time_FIR_filtering | src/inc/convolution.h | /* *****************************************************************
*
* Header file for convolution.c
*
* Author: <NAME>
* Date Created: 5th May 2021
* Date Modified: 5th May 2021
*
* *****************************************************************/
#ifndef _CONVOLUTION_H
#define _CONVOLUTION_H
#include... |
ameya134/Real_time_FIR_filtering | test/test_1.c | /* ********************************************************************
*
* This file can be used to run any test funtions
*
* *******************************************************************/
#include "main.h"
#include "clock.h"
#include "uart.h"
#include "convolution.h"
#include "timestamp.h"
/* Mock input... |
ameya134/Real_time_FIR_filtering | src/inc/hal/bsp.h | #ifndef BSP_H
#define BSP_H
#include <stdint.h>
#include "tm4c129encpdt.h"
#define GPIO_PORT_N 12
#define GPIO_PORT_F 5
/*connected to port N*/
#define LED1_PIN 1
#define LED1_PORT GPIO_PORT_N
#define LED2_PIN 0
#define LED2_PORT GPIO_PORT_N
/*connected to port F*/
#define LED3_PIN 4
#define LE... |
ameya134/Real_time_FIR_filtering | src/inc/hal/pwm.h | /* ********************************************************
* This file provides the funciton prototypes for
* configuration and use of pwm module which is present on
* tm4c129encpdt
*
* Author: <NAME>
* Date created: 13th Dec 2020
* Last modified: 8th Jan 2021
*
* ******************************************... |
ameya134/Real_time_FIR_filtering | src/string.c | #include "stdint.h"
#include "string.h"
/* *******************************************************************************
* This function converts an integer into its base 10 string representation
*
* param: num number that is to be converted into string format
*
* param: restStr pointer to string where results... |
ameya134/Real_time_FIR_filtering | src/inc/system_tm4c.h | /* ********************************************************
*
* Header file for system related functions
*
* Author: <NAME>
* Date Created: 6th May 2021
* Date Modified: 6th May 2021
*
* *******************************************************/
#ifndef _SYSTEM_TM4C
#define _SYSTEM_TM4C
/* variable for system... |
ameya134/Real_time_FIR_filtering | src/inc/string.h | #ifndef _STRING_H
#define _STRING_H
#include "stdint.h"
/* *******************************************************************************
* This function converts an integer into its base 10 string representation
*
* param: num number that is to be converted into string format
*
* param: restStr pointer to st... |
ameya134/Real_time_FIR_filtering | src/hal/bsp.c | /* This is the led driver for ek-tm4c129exl launchpad
* this driver works with tm4c129encpdt.h provided by TI
* in tivaware. */
#include "bsp.h"
/* variable to monitor state of leds.
* can be used from other files by extern */
static uint8_t ledBits=0x00;
/* Initialises the led connected to
* port N... |
ameya134/Real_time_FIR_filtering | src/inc/main.h | /* PROJECT HEADER FILE FOR IMPORTAT CONSTANTS */
#ifndef _MAIN_H
#define _MAIN_H
#include "stdint.h"
#include "clock.h"
/* SYSTEM RELATED MACROS ARE DECLARED HERE */
/* clock source selection macro */
#define SYS_CLOCK_SRC MOSC_CLOCK_SRC /* Use main external oscilator of 25MHz */
/* system clock frequency */
#de... |
ameya134/Real_time_FIR_filtering | src/hal/dma.c | <gh_stars>0
/* **************************************************************
*
* This file defines the functions needed to configure and use
* the DMA peripheral on tm4c129encpdt microcontroller.
*
* Author: <NAME>
* Date Created: 15th April 2021
* Date Modified: 13th May 2021
*
* **************************... |
ameya134/Real_time_FIR_filtering | src/hal/uart.c | <reponame>ameya134/Real_time_FIR_filtering
/* ***************************************************************************
* This file contains the implementation of functions to send
* data using the UART 0. compatible with TI's tivaware microcontroller
* header file
*
* Author: <NAME>
* Date created: 4th Dec 20... |
ameya134/Real_time_FIR_filtering | src/inc/hal/clock.h | /* ********************************************************
* This file provides the API declaration for
* configuration and use of various clock sources which are
* present on tm4c129encpdt
*
* Author: <NAME>
* Date created: 28th April 2021
* Last modified: 13th May 2021
*
* ******************************... |
ameya134/Real_time_FIR_filtering | src/inc/hal/uart.h | /* ********************************************************
* This is the header file for UART functions declarations
*
* Author: <NAME>
* Date created: 4th Dec 2020
* Last modified: 8th Jan 2021
*
* ********************************************************/
#ifndef _UART_H
#define _UART_H
/* ****************... |
ameya134/Real_time_FIR_filtering | src/hal/timer0.c | <gh_stars>0
/* ***********************************************************************
*
* This file provides implementation of functions for configuration and
* use of Timer0 peripheral on tm4c129encpdt
*
* Author: <NAME>
* Date Created: 1st March 2021
* Date Modified: 13th May 2021
*
* *******************... |
ameya134/Real_time_FIR_filtering | src/inc/hal/dma.h | /* ************************************************************************
* This file provides the declarations to configure and use the DMA module
* on tm4c129encpdt
*
* Author: <NAME>
* Date Created: 15th April 2021
* DAte Modified: 13th May 2021
*
* ********************************************************... |
ameya134/Real_time_FIR_filtering | src/app.c | <gh_stars>0
/* **************************************************************
*
* Application logic is implemented here
*
* All the FreeRTOS tasks are initialised from app_task_setup()
* Fucntion call. Each task is scheduled by the scheduler when
* main starts the scheduler.
*
* Author: <NAME>
* Date Created:... |
ameya134/Real_time_FIR_filtering | src/convolution.c | /* *********************************************************************
*
* This file implements functions to calculate Linear convolution
* of two signals
*
* Author: <NAME>
* Date created: 6th May 2021
* Last modified: 13th May 2021
*
* ***********************************************************... |
matobaa/hjkl_keymap_for_meishi_keyboard | firmware/keyboards/meishi/keymaps/hjkl/game.c | <gh_stars>0
// gameboard
#define MAX_X (4)
#define MAX_Y (4)
char matrix[MAX_X][MAX_Y];
char matrix_backup[MAX_X][MAX_Y];
int score = 0;
void backup(void) {
for (int x = 0; x < MAX_Y; x++) {
for (int y = 0; y < MAX_X; y++) {
matrix_backup[x][y] = matrix[x][y];
}
}
}
void recovery(void) {
for (in... |
matobaa/hjkl_keymap_for_meishi_keyboard | firmware/keyboards/meishi/keymaps/hjkl/keymap.c | <reponame>matobaa/hjkl_keymap_for_meishi_keyboard<gh_stars>0
/* Copyright 2019 matobaa
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your optio... |
masterKing/MyCode | JWAutoScrollView.h | <reponame>masterKing/MyCode
//
// JWAutoScrollView.h
// 07-图片轮播器
//
// Created by Franky on 2017/2/14.
// Copyright © 2017年 cngold. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface JWAutoScrollView : UIView
/** 自定义构造方法*/
- (instancetype)initWithFrame:(CGRect)frame images:(NSArray *)images;
@end
|
braxtons12/Hyperion-Math | include/HyperionMath/Interpolator.h | <gh_stars>0
#pragma once
#include <gsl/gsl>
#include <type_traits>
#include "Exponentials.h"
#include "HyperionUtils/Concepts.h"
#include "HyperionUtils/Macros.h"
#include "HyperionUtils/OptionAndResult.h"
namespace hyperion::math {
using utils::None;
using utils::Option;
using utils::Some;
using u... |
braxtons12/Hyperion-Math | include/HyperionMath/Vec3.h | <gh_stars>0
#pragma once
#include <gsl/gsl>
#include <iostream>
#include "General.h"
#include "HyperionUtils/Concepts.h"
#include "Random.h"
namespace hyperion::math {
using gsl::narrow_cast;
using utils::concepts::SignedNumeric, utils::concepts::Integral,
utils::concepts::SignedIntegral, utils::concepts::Floati... |
braxtons12/Hyperion-Math | include/HyperionMath/HyperionMath.h | <reponame>braxtons12/Hyperion-Math
#pragma once
#include "Constants.h"
#include "Exponentials.h"
#include "General.h"
#include "Interpolator.h"
#include "Point2.h"
#include "Point3.h"
#include "Random.h"
#include "Trig.h"
#include "Vec2.h"
#include "Vec3.h"
|
braxtons12/Hyperion-Math | test/src/GeneralTestDouble.h | <reponame>braxtons12/Hyperion-Math
#pragma once
#ifndef __MSC_VER
#include <cmath>
#endif
#include <limits>
#include "HyperionMath/General.h"
#include "TestConstants.h"
#include "gtest/gtest.h"
namespace hyperion::math::test {
using test::DOUBLE_ACCEPTED_ERROR;
TEST(GeneralTestDouble, sqrtCase1) ... |
braxtons12/Hyperion-Math | include/HyperionMath/Point3.h | #pragma once
#include <iostream>
#include "HyperionUtils/Concepts.h"
#include "Vec3.h"
namespace hyperion::math {
using math::Vec3;
using math::Vec3Idx;
using ::utils::concepts::FloatingPoint;
using ::utils::concepts::SignedIntegral;
using ::utils::concepts::SignedNumeric;
using Point3Idx = Vec3Idx;
templat... |
braxtons12/Hyperion-Math | test/src/ExponentialsTestFloat.h | <gh_stars>0
#pragma once
#ifndef __MSC_VER
#include <cmath>
#endif
#include "HyperionMath/Exponentials.h"
#include "TestConstants.h"
#include "gtest/gtest.h"
namespace hyperion::math::test {
using test::FLOAT_ACCEPTED_ERROR;
TEST(ExponentialsTestFloat, frexpfCase1) {
float input = 1.0F;
float ... |
braxtons12/Hyperion-Math | include/HyperionMath/Random.h | <gh_stars>0
/// based on https://mklimenko.github.io/english/2018/06/04/constexpr-random/
#pragma once
#include <atomic>
#include <cstdint>
#include <gsl/gsl>
#include <limits>
#include <random>
#include "HyperionUtils/Concepts.h"
namespace hyperion::math {
using gsl::narrow_cast;
#ifndef _MSC_VER
using std::size_... |
braxtons12/Hyperion-Math | test/src/TrigTestDouble.h | #pragma once
#ifndef __MSC_VER
#include <cmath>
#endif
#include "HyperionMath/Trig.h"
#include "TestConstants.h"
#include "gtest/gtest.h"
namespace hyperion::math::test {
using test::DOUBLE_ACCEPTED_ERROR;
TEST(TrigFuncsTestDouble, cosCase1) {
double input = Constants<double>::pi;
ASSERT_NEAR(... |
braxtons12/Hyperion-Math | test/src/InterpolatorTest.h | <reponame>braxtons12/Hyperion-Math<gh_stars>0
#pragma once
#include <gtest/gtest.h>
#include "HyperionMath/General.h"
#include "HyperionMath/Interpolator.h"
namespace hyperion::math::test {
TEST(InterpolatorTest, linearInterpolator) {
auto interp = Interpolator<float, InterpolationType::Linear>(1.0F, 0.0F, 1.0F,... |
braxtons12/Hyperion-Math | test/src/ExponentialsTestDouble.h | <reponame>braxtons12/Hyperion-Math<gh_stars>0
#pragma once
#ifndef __MSC_VER
#include <cmath>
#endif
#include "HyperionMath/Exponentials.h"
#include "TestConstants.h"
#include "gtest/gtest.h"
namespace hyperion::math::test {
using test::DOUBLE_ACCEPTED_ERROR;
TEST(ExponentialsTestDouble, rexpCase1) ... |
braxtons12/Hyperion-Math | test/src/Vec2Test.h | #pragma once
#include <gtest/gtest.h>
#include "HyperionMath/Vec2.h"
#include "TestConstants.h"
namespace hyperion::math::test {
using test::DOUBLE_ACCEPTED_ERROR;
using test::FLOAT_ACCEPTED_ERROR;
TEST(Vec2Test, magnitude) {
auto vec = Vec2(3.0F, 5.0F);
ASSERT_NEAR(vec.magnitude(), 5.830951895F, FLOAT_ACCEP... |
liuyihau/HZCustomToolBar | Example/HZCustomToolBar/HZAppDelegate.h | //
// HZAppDelegate.h
// HZCustomToolBar
//
// Created by <EMAIL> on 05/09/2017.
// Copyright (c) 2017 <EMAIL>. All rights reserved.
//
@import UIKit;
@interface HZAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
liuyihau/HZCustomToolBar | HZCustomToolBar/Classes/UITextView+Extension.h | //
// UITextView+Extension.h
// 华仔微博2期
//
// Created by tarena on 15/8/19.
// Copyright (c) 2015年 tarena. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UITextView (Extension)
-(void)insertAttributedText:(NSAttributedString *)text settingBlock:(void(^)(NSMutableAttributedString *attributedText))settin... |
liuyihau/HZCustomToolBar | Example/Pods/Target Support Files/HZCustomToolBar/HZCustomToolBar-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 "MyWorkCircleCommentToolBar.h"
#import "UITextView+Extension.h"
#import "XHMessageTextView.h"
FOUNDATION_EXPORT doub... |
liuyihau/HZCustomToolBar | Example/HZCustomToolBar/HZViewController.h | <gh_stars>0
//
// HZViewController.h
// HZCustomToolBar
//
// Created by <EMAIL> on 05/09/2017.
// Copyright (c) 2017 <EMAIL>. All rights reserved.
//
@import UIKit;
@interface HZViewController : UIViewController
@end
|
liuyihau/HZCustomToolBar | HZCustomToolBar/Classes/MyWorkCircleCommentToolBar.h | //
// MyWorkCircleCommentToolBar.h
// czjxw
//
// Created by zhangy on 15/11/17.
// Copyright © 2015年 mariocmy. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "XHMessageTextView.h"
#define kInputTextViewMinHeight 36
#define kInputTextViewMaxHeight 200
#define kHorizontalPadding 8
#define kVerticalPaddi... |
stgaudron/C-Firtree | firtree.c | #include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
static int get_columns(int size)
{
int index_size;
int index_lines;
int max_lines;
int columns;
columns = 1;
index_size = 1;
while (index_size < size)
{
max_lines = index_size + 3;
index_lines = 1;
while (index_lines <... |
heshanera/xv6 | guestVM.c | <gh_stars>1-10
// A simple VM Manager - it will run a mock user program under its control
#include "types.h"
#include "stat.h"
#include "user.h"
#include "guestSysCalls.h"
char *appargv[] = { "application", 0 };
int
main()
{
printf(1, "---This is the VM server---\n");
printf(1, "starting user program() \n"... |
heshanera/xv6 | prog.c | <reponame>heshanera/xv6<gh_stars>0
#include "types.h"
#include "stat.h"
#include "user.h"
int main() {
printf(1,"Background service started... \n");
setpriority(1);
while(1){
//printf(1,".");
sleep(5);
}
}
|
heshanera/xv6 | application.c | <reponame>heshanera/xv6<gh_stars>1-10
// A simple user program which will be running under the VM control
#include "types.h"
#include "stat.h"
#include "user.h"
int gdate()
{
return vmtrap(1);
}
int gmonth()
{
return vmtrap(2);
}
int gyear()
{
return vmtrap(3);
}
int
main()
{
printf(1, "this is the... |
heshanera/xv6 | sysproc.c | #include "types.h"
#include "x86.h"
#include "defs.h"
#include "param.h"
#include "memlayout.h"
#include "mmu.h"
#include "proc.h"
#include "guestSysCalls.h"
int
sys_fork(void)
{
return fork();
}
int
sys_exit(void)
{
exit();
return 0; // not reached
}
int
sys_wait(void)
{
return wait();
}
int
sys_kill(void... |
heshanera/xv6 | ps.c | #include "types.h"
#include "stat.h"
#include "user.h"
#define NUM_STRUCTS 10
enum procstate { UNUSED, EMBRYO, SLEEPING, RUNNABLE, RUNNING, ZOMBIE };
char * pstate[] = { "U", "E", "S", "RNBL", "R", "Z" };
struct procdetails {
int pid; // Process ID
int psize; // Size of process memory (bytes)
char pname[... |
heshanera/xv6 | guestSysCalls.h | // The system calls provided by the VM Managerl
int gsys_date();
int gsys_month();
int gsys_year();
int gtrap(int sys_call_num);
|
kranzky/sooth | ext/sooth_native/sooth_statistic.h | <reponame>kranzky/sooth<filename>ext/sooth_native/sooth_statistic.h
#ifndef SOOTH_STATISTIC_H
#define SOOTH_STATISTIC_H
//==============================================================================
#include <stdint.h>
typedef struct
{
uint32_t event;
uint32_t count;
}
SoothStatistic;
//======================... |
kranzky/sooth | ext/sooth_native/sooth_context.h | <reponame>kranzky/sooth
#ifndef SOOTH_CONTEXT_H
#define SOOTH_CONTEXT_H
//==============================================================================
#include <stdint.h>
#include "sooth_statistic.h"
typedef struct
{
uint32_t id;
uint32_t count;
uint32_t statistics_size;
SoothStatistic * statistics;
}
Soo... |
lnarolski/PLCino | typy_wyliczeniowe.h | <reponame>lnarolski/PLCino<filename>typy_wyliczeniowe.h
#ifndef TYPY_WYLICZENIOWE_H
#define TYPY_WYLICZENIOWE_H
enum elementy {
cewka,
styk,
operator_porownania,
operator_matematyczny, //do wyrzucenia
blok_funkcyjny,
lacznik,
pusty
};
//RODZAJE CEWEK:
#define ZWYKLA 1
#define ZANEGOWANA 2
... |
lnarolski/PLCino | ui_zmienne.h | <gh_stars>0
/********************************************************************************
** Form generated from reading UI file 'zmienne.ui'
**
** Created by: Qt User Interface Compiler version 5.9.1
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
*******************************... |
lnarolski/PLCino | model_uzywane_zmienne.h | <filename>model_uzywane_zmienne.h
#ifndef MODEL_UZYWANE_ZMIENNE_H
#define MODEL_UZYWANE_ZMIENNE_H
#include <QAbstractTableModel>
#include <QMap>
#include <zmienna_w_arduino.h>
#include <typy_wyliczeniowe.h>
class model_uzywane_zmienne : public QAbstractTableModel
{
Q_OBJECT
public:
enum MapRoles {
Ke... |
lnarolski/PLCino | edycja_specjalna.h | <reponame>lnarolski/PLCino<gh_stars>0
#ifndef EDYCJA_SPECJALNA_H
#define EDYCJA_SPECJALNA_H
#include <QWizard>
#include <QWizardPage>
#include <QLabel>
#include <QLineEdit>
#include <QVBoxLayout>
#include <elementy_drabinki.h>
class edycja_specjalna : public QWizard
{
public:
edycja_specjalna(elementy_drabinki *... |
lnarolski/PLCino | ui_dodawanie_zmiennej.h | /********************************************************************************
** Form generated from reading UI file 'dodawanie_zmiennej.ui'
**
** Created by: Qt User Interface Compiler version 5.9.1
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************... |
lnarolski/PLCino | wybor_portu.h | #ifndef WYBOR_PORTU_H
#define WYBOR_PORTU_H
#include <QDialog>
#include <QtSerialPort/QSerialPortInfo>
#include <QAbstractButton>
namespace Ui {
class Wybor_portu;
}
class Wybor_portu : public QDialog
{
Q_OBJECT
public:
explicit Wybor_portu(QWidget *parent = 0, QString *adres_do_konfiguracji = NULL);
~W... |
lnarolski/PLCino | dodawanie_zmiennej.h | <filename>dodawanie_zmiennej.h
#ifndef DODAWANIE_ZMIENNEJ_H
#define DODAWANIE_ZMIENNEJ_H
#include <QDialog>
#include <QMap>
#include <QString>
#include "model_uzywane_zmienne.h"
#include <zmienna_w_arduino.h>
namespace Ui {
class dodawanie_zmiennej;
}
class dodawanie_zmiennej : public QDialog
{
Q_OBJECT
public:... |
lnarolski/PLCino | ui_okno_edycji_wlasciwosci.h | <reponame>lnarolski/PLCino
/********************************************************************************
** Form generated from reading UI file 'okno_edycji_wlasciwosci.ui'
**
** Created by: Qt User Interface Compiler version 5.9.1
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
... |
lnarolski/PLCino | elementy_schematu.h | <gh_stars>0
#ifndef KOMPILATOR_H
#define KOMPILATOR_H
class elementy_schematu
{
public:
elementy_schematu(elementy_drabinki* a, int linia, int kolumna, int wiersz) {
element = a;
numer_linii = linia;
numer_kolumny = kolumna;
numer_wiersza = wiersz;
}
elementy_drabinki* elem... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.