repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
SensiEDGE/SensiBLE1.0 | Drivers/BSP/SensiBLE/sensible_distance.c | #include "sensible_distance.h"
#include "stm32l4xx_I2C.h"
#include "vl53l0x_api.h"
// I2C address
#define VL53L0X_I2C_ADDRESS (0x52)
#define VL53L0X_ID (0xEEAA)
static VL53L0X_Dev_t VL53L0XDev = {0};
static VL53L0X_RangingMeasurementData_t RangingMeasurementData = {0};
static int LeakyFactorFix8 = (int... |
SensiEDGE/SensiBLE1.0 | Drivers/BSP/Components/at25xe041b/AT25XE041B_Driver.h | <reponame>SensiEDGE/SensiBLE1.0<filename>Drivers/BSP/Components/at25xe041b/AT25XE041B_Driver.h
/**
******************************************************************************
* @file AT25XE041B_Driver.h
* @date 02-July-2019
* @brief AT25XE041B driver header file.
****************************************... |
SensiEDGE/SensiBLE1.0 | Drivers/BSP/Components/vl53l0x/vl53l0x_api_calibration.h | <gh_stars>1-10
/*******************************************************************************
Copyright � 2016, STMicroelectronics International N.V.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* ... |
SensiEDGE/SensiBLE1.0 | Drivers/BSP/X_NUCLEO_IKS01A1/x_nucleo_iks01a1_gyro.c | <gh_stars>1-10
/**
******************************************************************************
* @file x_nucleo_iks01a1_gyro.c
* @author MEMS Application Team
* @version V3.0.0
* @date 12-August-2016
* @brief This file provides a set of functions needed to manage the gyroscope sensor
****************... |
SensiEDGE/SensiBLE1.0 | Drivers/BSP/STM32L4xx_Nucleo/stm32l4xx_I2C.c | /**
******************************************************************************
* @file stm32l4xx_I2C.c
* @author Central LAB
* @version V1.0.0
* @date 25-May-2015
* @brief This file provides the global I2C implementation
******************************************************************************
... |
SensiEDGE/SensiBLE1.0 | Projects/Multi/Applications/ALLMEMS1/Inc/TargetFeatures.h | <gh_stars>1-10
/**
******************************************************************************
* @file TargetFeatures.h
* @author Central LAB
* @version V3.0.0
* @date 12-May-2017
* @brief Specification of the HW Features for each target platform
**********************************************... |
SensiEDGE/SensiBLE1.0 | Drivers/BSP/SensiBLE/vbat.c | <filename>Drivers/BSP/SensiBLE/vbat.c<gh_stars>1-10
#include "vbat.h"
#include "stm32l4xx_hal.h"
BAT_Params_t BAT_Params;
static ADC_HandleTypeDef hadc1;
void VBAT_Init(void)
{
RCC_PeriphCLKInitTypeDef PeriphClkInit;
ADC_ChannelConfTypeDef sConfig;
__HAL_RCC_ADC_CLK_ENABLE();
PeriphClkInit.Peri... |
SensiEDGE/SensiBLE1.0 | Drivers/BSP/STM32L4xx_Nucleo/stm32l4xx_nucleo_bluenrg_dma_lp.h | /**
******************************************************************************
* @file stm32l4xx_nucleo_bluenrg_dma_lp.h
* @author CL
* @version V1.0.0
* @date 04-July-2014
* @brief This file contains definitions for SPI communication on
* STM32L4XX-Nucleo Kit from STMicroelectronics... |
SensiEDGE/SensiBLE1.0 | Projects/Multi/Applications/ALLMEMS1/Src/MotionFX_Manager.c | /**
******************************************************************************
* @file MotionFX_Manager.c
* @author Central LAB
* @version V3.0.0
* @date 12-May-2017
* @brief Header for MotionFX_Manager.c
******************************************************************************
* @attention
*
* <h2><c... |
SensiEDGE/SensiBLE1.0 | Projects/Multi/Applications/ALLMEMS1/Inc/main.h | <reponame>SensiEDGE/SensiBLE1.0
/**
******************************************************************************
* @file main.h
* @author Central LAB
* @version V3.0.0
* @date 12-May-2017
* @brief Header for main.c module
************************************************************************... |
SensiEDGE/SensiBLE1.0 | Drivers/BSP/Components/lis3mdl/LIS3MDL_MAG_driver_HL.c | /**
*******************************************************************************
* @file LIS3MDL_MAG_driver_HL.c
* @author MEMS Application Team
* @version V3.0.0
* @date 12-August-2016
* @brief This file provides a set of high-level functions needed to manage
the LIS3MDL sensor
*********... |
zhangyinglong/RemotePushDemo | RemotePushDemo/RemotePushDemo-Bridge-Header.h | //
// RemotePushDemo-Bridge-Header.h
// RemotePushDemo
//
// Created by <NAME> on 2017/5/26.
// Copyright © 2017年 <NAME>. All rights reserved.
//
#import <CommonCrypto/CommonCrypto.h>
|
MarkoN95/DDC-Labs | lab_7/c/simple.c | <filename>lab_7/c/simple.c
#include <stdio.h>
int main(void) {
int A = 10;
int B = 20;
int sum = 0;
for(int i = A; i <= B; i++) {
sum += i;
}
printf("sum: %d\n", sum);
return 0;
}
|
MarkoN95/DDC-Labs | lab_7/c/sad_color.c | #include <stdlib.h>
#include <stdio.h>
#include <math.h>
int abs_diff_color(int r1, int g1, int b1, int r2, int g2, int b2) {
int abs_diff = abs(r1 - r2) + abs(g1 - g2) + abs(b1 - b2);
return abs_diff;
}
int main(void) {
int c1[3] = { 3, 5, 7 };
int c2[3] = { 11, 13, 17 };
int abs_diff = abs_diff_color(c1[... |
MarkoN95/DDC-Labs | lab_7/c/sad.c | <reponame>MarkoN95/DDC-Labs
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
int abs_diff(int pixel_left, int pixel_right) {
int abs_diff = abs(pixel_left - pixel_right);
return abs_diff;
}
int recursive_sum(int arr[], int size) {
if(size == 0) {
return 0;
}
else {
return recursive_sum(arr, ... |
Inf512-MotorolaScienceCup/gra-PONG | Pang/Tests.h | <filename>Pang/Tests.h<gh_stars>1-10
bool RunTests(); |
Inf512-MotorolaScienceCup/gra-PONG | Pang/Sprite.h | <gh_stars>1-10
#pragma once
#include <iostream>
#include <ctime>
#include <fstream>
#include "Utils.h"
#include "raylib.h"
class Game;
class Sprite {
public:
enum class Type {
PLAYER,
BLOCK,
ENEMY,
WEAPON,
LADDER,
POWERUP,
ICE,
... |
Inf512-MotorolaScienceCup/gra-PONG | Pang/Menu.h | <reponame>Inf512-MotorolaScienceCup/gra-PONG
#pragma once
#include <string>
#include <vector>
#include "raylib.h"
class Game;
class Menu {
struct MenuItem {
std::string name;
Rectangle rec;
};
public:
enum class Type{
MAIN_MENU,
PAUSE_MENU,
LOAD_MENU
} type;
... |
Inf512-MotorolaScienceCup/gra-PONG | Pang/Game.h | #pragma once
#include <map>
#include <vector>
#include <ctime>
#include <fstream>
#include "raylib.h"
#include "Menu.h"
#include "Sprite.h"
enum TextureTypes {
BACKGROUND_ANI,
BACKGROUND_ANI2,
BACKGROUND1,
BACKGROUND2,
BACKGROUND3,
BACKGROUND4,
BACKGROUND5,
BACKGR... |
Inf512-MotorolaScienceCup/gra-PONG | Pang/Utils.h | #pragma once
#include "raylib.h"
#include <fstream>
template <typename T>
void Write(std::ofstream& os, T* data) {
os.write((const char*)data, sizeof(T));
}
template <typename T>
void Read(std::ifstream& is, T* data) {
char buffer[20];
is.read(buffer, sizeof(T));
*data = *(T*)buffer;
}... |
PrzemyslawMalinowski-epm/sample-repo-git-flow | winsrc/lombok_installer_WindowsDriveInfo.h | <gh_stars>1000+
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class lombok_installer_WindowsDriveInfo */
#ifndef _Included_lombok_installer_WindowsDriveInfo
#define _Included_lombok_installer_WindowsDriveInfo
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: lombok_installe... |
PrzemyslawMalinowski-epm/sample-repo-git-flow | winsrc/lombok_installer_WindowsDriveInfo.c | /*
* Copyright (C) 2009 The Project Lombok Authors.
*
* 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, modif... |
LuckyCat7848/LCMediator | Example/LCMediator/Chauffeur/LCChauffeurStep1ViewController.h | //
// LCChauffeurStep1ViewController.h
// LCMediatorDemo
//
// Created by 张猫猫 on 2019/8/28.
// Copyright © 2019 LuckyCat. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface LCChauffeurStep1ViewController : UIViewController
@end
NS_ASSUME_NONNULL_END
|
LuckyCat7848/LCMediator | Example/LCMediator/Chauffeur/LCChauffeurService.h | <gh_stars>1-10
//
// LCChauffeurService.h
// LCMediatorDemo
//
// Created by 张猫猫 on 2019/8/28.
// Copyright © 2019 LuckyCat. All rights reserved.
//
// 专车服务——通过中间件
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface LCChauffeurService : NSObject
/** step1 */
- (void)lcMediator_step1;
@end
... |
LuckyCat7848/LCMediator | Example/Pods/LCNavigator/LCNavigator/Classes/LCNavigator.h | <reponame>LuckyCat7848/LCMediator
//
// LCNavigator.h
// 1haiiPhone
//
// Created by LuckyCat on 2018/4/19.
// Copyright © 2018年 LuckyCat. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface LCNavigator : NSObject
#pragma mark - 传参说明(id可传类型:UIViewController对象/NSString/[UI... |
LuckyCat7848/LCMediator | Example/LCMediator/SelfDriving/LCSelfStep1View.h | //
// LCSelfStep1View.h
// LCMediatorDemo
//
// Created by LuckyCat on 2019/2/26.
// Copyright © 2019年 LuckyCat. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface LCSelfStep1View : UIView
/** 城市 */
@property (nonatomic, copy) NSString *cityName;
@end
NS_ASSUME_NONNULL_END
|
LuckyCat7848/LCMediator | Example/LCMediator/LCAppDelegate.h | //
// LCAppDelegate.h
// LCMediator
//
// Created by LuckyCat7848 on 11/14/2019.
// Copyright (c) 2019 LuckyCat7848. All rights reserved.
//
@import UIKit;
@interface LCAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
LuckyCat7848/LCMediator | Example/LCMediator/SelfDriving/LCMediator+SelfDriving.h | //
// LCMediator+SelfDriving.h
// LCMediatorDemo
//
// Created by LuckyCat on 2019/2/27.
// Copyright © 2019年 LuckyCat. All rights reserved.
//
// 自驾——中间件——协议
//
#import "LCMediator.h"
NS_ASSUME_NONNULL_BEGIN
@interface LCMediator (SelfDriving)
+ (void)selfDriving_step1:(NSInteger)sourceType orderId:(NSString ... |
LuckyCat7848/LCMediator | Example/Pods/Target Support Files/LCMediator/LCMediator-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 "LCMediator.h"
#import "LCMediatorService.h"
#import "LCNoServiceViewController.h"
FOUNDATION_EXPORT double LCMediat... |
LuckyCat7848/LCMediator | Example/LCMediator/SelfDriving/LCSelfDrivingService.h | <filename>Example/LCMediator/SelfDriving/LCSelfDrivingService.h
//
// LCSelfDrivingService.h
// LCMediatorDemo
//
// Created by LuckyCat on 2019/2/26.
// Copyright © 2019年 LuckyCat. All rights reserved.
//
// 自驾服务——通过中间件
//
#import <Foundation/Foundation.h>
#import "LCSelfStep1View.h"
NS_ASSUME_NONNULL_BEGIN
@i... |
LuckyCat7848/LCMediator | Example/LCMediator/LCClientDelegate/LCClientDelegate.h | <gh_stars>1-10
//
// LCClientDelegate.h
// LCMediatorDemo
//
// Created by LuckyCat on 2019/3/26.
// Copyright © 2019年 LuckyCat. All rights reserved.
//
// 转发各个模块的AppDelegate生命周期方法
//
#import <UIKit/UIKit.h>
#import <UserNotifications/UserNotifications.h>
NS_ASSUME_NONNULL_BEGIN
@interface LCClientDelegate : UI... |
LuckyCat7848/LCMediator | Example/LCMediator/Account/LCAccountAppDelegate.h | //
// LCAccountAppDelegate.h
// LCMediatorDemo
//
// Created by LuckyCat on 2019/3/26.
// Copyright © 2019年 LuckyCat. All rights reserved.
//
// 账户服务——通过中间件
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface LCAccountAppDelegate : UIResponder <UIApplicationDelegate>
@end
NS_ASSUME_NONNULL_END
|
LuckyCat7848/LCMediator | Example/LCMediator/Chauffeur/LCChauffeurAppDelegate.h | //
// LCChauffeurAppDelegate.h
// LCMediatorDemo
//
// Created by 张猫猫 on 2019/8/28.
// Copyright © 2019 LuckyCat. All rights reserved.
//
// 专车——生命周期
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface LCChauffeurAppDelegate : UIResponder <UIApplicationDelegate>
@end
NS_ASSUME_NONNULL_END
|
LuckyCat7848/LCMediator | Example/LCMediator/SelfDriving/LCSelfStep1ViewController.h | //
// LCSelfStep1ViewController.h
// LCMediatorDemo
//
// Created by LuckyCat on 2019/2/26.
// Copyright © 2019年 LuckyCat. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface LCSelfStep1ViewController : UIViewController
/** 来源 */
@property (nonatomic, assign) NSInteger sourceType;... |
LuckyCat7848/LCMediator | Example/LCMediator/LCViewController.h | <reponame>LuckyCat7848/LCMediator
//
// LCViewController.h
// LCMediator
//
// Created by LuckyCat7848 on 11/14/2019.
// Copyright (c) 2019 LuckyCat7848. All rights reserved.
//
@import UIKit;
@interface LCViewController : UIViewController
@end
|
LuckyCat7848/LCMediator | Example/LCMediator/Account/LCLoginViewController.h | <reponame>LuckyCat7848/LCMediator<filename>Example/LCMediator/Account/LCLoginViewController.h
//
// LCLoginViewController.h
// LCMediatorDemo
//
// Created by LuckyCat on 2019/2/26.
// Copyright © 2019年 LuckyCat. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface LCLoginViewContro... |
LuckyCat7848/LCMediator | LCMediator/Classes/LCMediatorService.h | <filename>LCMediator/Classes/LCMediatorService.h
//
// LCMediatorService.h
// LCMediatorDemo
//
// Created by LuckyCat on 2019/3/14.
// Copyright © 2019年 LuckyCat. All rights reserved.
//
// 中间件拦截器,对一些情况的统一处理
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface LCMediatorService : NSObject
/... |
LuckyCat7848/LCMediator | LCMediator/Classes/LCMediator.h | //
// LCMediator.h
// LCMediatorDemo
//
// Created by LuckyCat on 2019/2/27.
// Copyright © 2019年 LuckyCat. All rights reserved.
//
// 中间件(🔥命名规则和拦截器在.m中可配置)
//
// 1. 遵循命名规则
// (a)target:前缀LC,后缀Service
// (b)action:前缀lcMediator_
// 2. url检查规则
// (a)打电话;
// (b)h5跳转;
// (c)不是本APP的服务页面;
// (... |
LuckyCat7848/LCMediator | Example/LCMediator/LCAppDelegate/LCAppDelegate+LC3DTouch.h | //
// LCAppDelegate+LC3DTouch.h
// LCMediatorDemo
//
// Created by LuckyCat on 2019/3/26.
// Copyright © 2019年 LuckyCat. All rights reserved.
//
#import "LCAppDelegate.h"
NS_ASSUME_NONNULL_BEGIN
@interface LCAppDelegate (LC3DTouch)
@end
NS_ASSUME_NONNULL_END
|
LuckyCat7848/LCMediator | Example/LCMediator/Account/LCAccountService.h | <reponame>LuckyCat7848/LCMediator
//
// LCAccountService.h
// LCMediatorDemo
//
// Created by LuckyCat on 2019/2/26.
// Copyright © 2019年 LuckyCat. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface LCAccountService : NSObject
/** 登录 */
- (void)lcMediator_login:(NSDicti... |
GerHobbelt/civetweb | examples/embed_certificate/ec_example.c | <filename>examples/embed_certificate/ec_example.c
/* Example for embedding a server including the HTTPS server key and
* certificate. All response is generated from a callback. The server
* does not access the file system at all. */
/* Building: change into the examples/embed_certificate folder and
* use "./build.s... |
GerHobbelt/civetweb | examples/rest/rest.c | /*
* Copyright (c) 2018 the CivetWeb developers
* Revisited version: Copyright (c) 2022 the CivetWeb developers
* MIT License
*/
/* Simple demo of a REST callback. */
#ifdef _WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
... |
nbfigueroa/robotiq_ft300_sensor | robotiq_ft_sensor_dev_v1.0.1/driver/src/rq_sensor_com.c | /* Software License Agreement (BSD License)
*
* Copyright (c) 2014, Robotiq, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the ab... |
nbfigueroa/robotiq_ft300_sensor | robotiq_ft_sensor_dev_v1.0.1/driver/Windows/src/main.c | /* Software License Agreement (BSD License)
*
* Copyright (c) 2014, Robotiq, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyr... |
nbfigueroa/robotiq_ft300_sensor | robotiq_ft_sensor_dev_v1.0.1/driver/Linux/src/rq_sensor_socket.c | /* Software License Agreement (BSD License)
*
* Copyright (c) 2014, Robotiq, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the ab... |
nbfigueroa/robotiq_ft300_sensor | robotiq_ft_sensor_dev_v1.0.1/driver/src/rq_sensor_state.c | /* Software License Agreement (BSD License)
*
* Copyright (c) 2014, Robotiq, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyr... |
nbfigueroa/robotiq_ft300_sensor | robotiq_ft_sensor_dev_v1.0.1/driver/Windows/Data_logger/src/main.c | /* Software License Agreement (BSD License)
*
* Copyright (c) 2014, Robotiq, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyr... |
nbfigueroa/robotiq_ft300_sensor | robotiq_ft_sensor_dev_v1.0.1/driver/Linux/src/rq_sensor_socket.h | /* Software License Agreement (BSD License)
*
* Copyright (c) 2014, Robotiq, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the ab... |
nbfigueroa/robotiq_ft300_sensor | robotiq_ft_sensor_dev_v1.0.1/driver/src/rq_sensor_com.h | <reponame>nbfigueroa/robotiq_ft300_sensor
/* Software License Agreement (BSD License)
*
* Copyright (c) 2014, Robotiq, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions ... |
nbfigueroa/robotiq_ft300_sensor | robotiq_ft_sensor_dev_v1.0.1/driver/src/Thread/rq_thread.c | <filename>robotiq_ft_sensor_dev_v1.0.1/driver/src/Thread/rq_thread.c
/* Software License Agreement (BSD License)
*
* Copyright (c) 2014, Robotiq, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are ... |
nbfigueroa/robotiq_ft300_sensor | robotiq_ft_sensor_dev_v1.0.1/driver/Linux/UR/main.c | <reponame>nbfigueroa/robotiq_ft300_sensor<gh_stars>1-10
/* Software License Agreement (BSD License)
*
* Copyright (c) 2014, Robotiq, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Re... |
TuoZhang-seism/AET_concrete | example_for_simulation/simulation_code/eutility.h | <reponame>TuoZhang-seism/AET_concrete
#if defined(EUTILITY_H)
#else
#define EUTILITY_H
int ReadParFile(int, char **, simulationparameters*);
int ReadModelFiles(simulationparameters*);
gridtype ***** GridAlloc(simulationparameters);
int GridFree(simulationparameters, gridtype *****);
int checkSimulationParameters(simul... |
TuoZhang-seism/AET_concrete | example_for_simulation/simulation_code/eutility.c | <filename>example_for_simulation/simulation_code/eutility.c
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "edefinition.h"
#include "eutility.h"
int ReadParFile(int ARGC, char *ARGV[], simulationparameters * simpa_p)
{
/* Declaration */
FILE * parfile_p;
... |
TuoZhang-seism/AET_concrete | example_for_simulation/simulation_code/mk_source_pattern.c | <reponame>TuoZhang-seism/AET_concrete
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include "edefinition.h"
#include "scat_coeff_2D.h"
#include "mk_source_pattern.h"
/* #include "collect.h"*/
int MkSourcePattern(simulationparameters simpa, float ** fltpt)
{
char pr_file_name[] = ".... |
TuoZhang-seism/AET_concrete | example_for_simulation/simulation_code/misfit.c |
/***************************************************************************
* Copyright (C) 2006 by <NAME> *
* <EMAIL> *
* *
*******************************************************... |
TuoZhang-seism/AET_concrete | example_for_simulation/simulation_code/mk_source_pattern.h | #if defined(MK_SOURCE_PATTERN_H)
#else
#define MK_SOURCE_PATTERN_H
int MkSourcePattern(simulationparameters, float **);
int ReadRadPat(simulationparameters, float **);
int source_rot_mat(simulationparameters, double *, double *, double *);
int SourceRot(double *, double *, double *, double *, double *);
#endif
|
TuoZhang-seism/AET_concrete | example_for_simulation/simulation_code/incidence.c | <reponame>TuoZhang-seism/AET_concrete<filename>example_for_simulation/simulation_code/incidence.c<gh_stars>0
#include <stdio.h>
#include <math.h>
#include <complex.h>
#include <string.h>
#include <stdlib.h>
#include "edefinition.h"
int incidence(int * mode, double* ESVR, double* ESVT, double* ESHR, double* ESHT, doub... |
TuoZhang-seism/AET_concrete | example_for_simulation/simulation_code/edefinition.h | <reponame>TuoZhang-seism/AET_concrete
#if defined(DEFINITIONS_H)
#else
#define DEFINITIONS_H
/* coordinate system ***********************
* *
* X,North *
* / *
* /___ Y,East ... |
TuoZhang-seism/AET_concrete | example_for_simulation/simulation_code/scatter_2D.c | <gh_stars>0
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include "edefinition.h"
#include "eutility.h"
#include "scatter_2D.h"
int scatterP(bodyparm body, particle * pat_p, double gpp0, float * wahr_pp, float * wahr_ps)
{
/* Declaration */
double r; /* random number */
double the; ... |
TuoZhang-seism/AET_concrete | example_for_simulation/simulation_code/incidence.h | #if defined(INCIDENCE_H)
#else
#define INCIDENCE_H
int incidence(int *, double *, double *, double *, double *, double *, double *, double *, double *, double *, double *, double *, double *, double *, double *, double *, double *);
#endif
|
TuoZhang-seism/AET_concrete | example_for_simulation/simulation_code/mk_scat_pattern.h | <reponame>TuoZhang-seism/AET_concrete
#if defined(MK_SCAT_PATTERN_H)
#else
#define MK_SCAT_PATTERN_H
int MkScatPattern(bodyparm, float **, double*);
int ReadScatPattern(bodyparm, float **, double*);
#endif
|
TuoZhang-seism/AET_concrete | example_for_simulation/simulation_code/surface.c | <gh_stars>0
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include "edefinition.h"
#include "scat_coeff_2D.h"
#include "surface.h"
#include "eutility.h"
int MkSurface(simulationparameters simpa, float ** surfS, float ** surfP)
{
int i;
double p, c[2];
float ssv, ssh, sp, ps, pp;
... |
TuoZhang-seism/AET_concrete | example_for_simulation/simulation_code/surface.h | #if defined(SURFACE_H)
#else
#define SURFACE_H
int MkSurface(simulationparameters, float **, float **);
int ReadSurface(simulationparameters, float **, float **);
int surface(particle *, int, bodyparm, float **, float **, double *);
#endif
|
TuoZhang-seism/AET_concrete | example_for_simulation/simulation_code/layer.h | #if defined(LAYER_H)
#else
#define LAYER_H
int MkInterface(simulationparameters, float **, float **);
int ReadInterface(simulationparameters, float **, float **);
int layer_down(particle *, simulationparameters, float **, float **, int);
int layer_up(particle *, simulationparameters, float **, float **, int);
int layer... |
TuoZhang-seism/AET_concrete | example_for_simulation/simulation_code/layer.c | #include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include "edefinition.h"
#include "scat_coeff_2D.h"
#include "layer.h"
#include "incidence.h"
#include "eutility.h"
int MkInterface(simulationparameters simpa, float ** ptS, float ** ptP)
{
int mode = 1;
int i;
double al1,al2,be1,be2;
... |
TuoZhang-seism/AET_concrete | example_for_simulation/simulation_code/ecount.c | <gh_stars>0
/***************************************************************************
* Copyright (C) 2006 by <NAME> *
* <EMAIL> *
* *
*******************************************... |
TuoZhang-seism/AET_concrete | example_for_simulation/simulation_code/exp_medium_eval.c | <reponame>TuoZhang-seism/AET_concrete
/***************************************************************************
* Copyright (C) 2006 by <NAME> *
* <EMAIL> *
* *
*****************... |
TuoZhang-seism/AET_concrete | example_for_simulation/simulation_code/scatter_2D.h | <reponame>TuoZhang-seism/AET_concrete<filename>example_for_simulation/simulation_code/scatter_2D.h<gh_stars>0
#if defined(SCATTER_H)
#else
#define SCATTER_H
int scatterP(bodyparm, particle *, double, float *, float *);
int scatterS(bodyparm, particle *, double, double, float *, float *, float *, float *, float *, floa... |
TuoZhang-seism/AET_concrete | example_for_simulation/simulation_code/scat_coeff_2D.h | <gh_stars>0
#if defined(SCAT_COEFF_H)
#else
#define SCAT_COEFF_H
/* Scattering Pattern */
#define XPPP(GAM, NY, THE)(pow(GAM,-2)*(NY*(cos(THE)+2/pow(GAM,2)*pow(sin(THE),2)-1)-2+4/pow(GAM,2)*pow(sin(THE),2)))
#define XPSL(GAM, NY, THE)(-sin(THE)*(NY*(1-2/GAM*cos(THE))-4/GAM*cos(THE)))
#define XSPP(GAM, NY, THE, PHI)(... |
TuoZhang-seism/AET_concrete | example_for_simulation/simulation_code/mk_scat_pattern.c | #include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include "edefinition.h"
#include "scat_coeff_2D.h"
#include "eutility.h"
int MkScatPattern(bodyparm body, float ** fltpt, double * g0)
{
char tmpc[121];
FILE *tot_file, *pat_file;
float *pp, *ps, *ssl, *ssr, *sins, *coss;
double ... |
usachevm/libbip | libbip.h | <reponame>usachevm/libbip<gh_stars>0
/*!
\file
/////////////////////////////////////////////////////////////
//
// \brief FUNCTIONS LIBRARY v.1.5 // for Amazfit Bip
// \author (C) <NAME> 2021 <<EMAIL>>
//
// SDK BipOS. Библиотека функций для загрузчика приложений BipOS
//
/////////////////////////////////////////... |
leodegeus7/LightCharts | LightCharts/LightCharts.h | //
// LightCharts.h
// LightCharts
//
// Created by <NAME> on 09/02/2018.
// Copyright © 2018 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for LightCharts.
FOUNDATION_EXPORT double LightChartsVersionNumber;
//! Project version string for LightCharts.
FOUNDATION_EXPORT const ... |
chillpert/uesvon | Source/UESVON/Public/SVONVolume.h | #pragma once
#include "UESVON/Public/SVONData.h"
#include "UESVON/Public/SVONDefines.h"
#include "UESVON/Public/SVONLeafNode.h"
#include "UESVON/Public/SVONNode.h"
#include "UESVON/Public/UESVON.h"
#include <Runtime/Engine/Classes/GameFramework/Volume.h>
#include "SVONVolume.generated.h"
UENUM(BlueprintType)
enum c... |
chillpert/uesvon | Source/UESVON/Public/SVONNavigationComponent.h | <reponame>chillpert/uesvon
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "UESVON/Public/SVONLink.h"
#include "UESVON/Public/SVONNavigationPath.h"
#include "UESVON/Public/SVONTypes.h"
#include <Runtime/Engine/Classes/Components/ActorComponent.h>
#include "SVONNa... |
chillpert/uesvon | Source/UESVON/Public/SVONNavigationPath.h | <reponame>chillpert/uesvon<gh_stars>100-1000
#pragma once
UENUM(BlueprintType)
enum class ESVONPathCostType : uint8
{
MANHATTAN,
EUCLIDEAN
};
struct FNavigationPath;
class ASVONVolume;
struct UESVON_API FSVONPathPoint
{
FSVONPathPoint()
: myPosition(FVector())
, myLayer(-1)
{
}
FSVONPathPoint(const FVector... |
chillpert/uesvon | Source/UESVON/Public/SVONFindPathTask.h | #pragma once
#include "UESVON/Public/SVONLink.h"
#include "UESVON/Public/SVONPathFinder.h"
#include "UESVON/Public/SVONTypes.h"
#include <Runtime/Core/Public/Async/AsyncWork.h>
#include <Runtime/Core/Public/HAL/ThreadSafeBool.h>
class ASVONVolume;
struct SVONPathFinderSettings;
class FSVONFindPathTask : public FNon... |
chillpert/uesvon | Source/UESVON/Public/SVONData.h | #pragma once
#include "UESVON/Public/SVONLeafNode.h"
#include "UESVON/Public/SVONNode.h"
struct SVONData
{
// SVO data
TArray<TArray<SVONNode>> myLayers;
TArray<SVONLeafNode> myLeafNodes;
void Reset()
{
myLayers.Empty();
myLeafNodes.Empty();
}
int GetSize()
{
int result = 0;
result += myLeafNodes.Nu... |
chillpert/uesvon | Source/UESVON/Public/SVONTypes.h | #pragma once
typedef TSharedPtr<struct FSVONNavigationPath, ESPMode::ThreadSafe> FSVONNavPathSharedPtr; |
mwette/avr-octos | octos.h | <reponame>mwette/avr-octos<filename>octos.h
/* octos.h -
*
* Copyright (C) 2019-2021 <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 li... |
mwette/avr-octos | demo/main.c | /* demo program for OctOS on ATmega4809 Curiosity Nano
* Copyright (C) 2019-2021 <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 limitat... |
deiflou/colorizer | examples/grid_of_quadtrees_colorizer_qt_gui_app/window.h | // Copyright (C) 2020 deiflou
//
// This file is part of colorizer.
//
// colorizer 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 3 of the License, or
// (at your option) any later version... |
JasonWpy/libevent_study | include/event2/event-config.h | /* event2/event-config.h
*
* This file was generated by autoconf when libevent was built, and post-
* processed by Libevent so that its macros would have a uniform prefix.
*
* DO NOT EDIT THIS FILE.
*
* Do not rely on macros in this file existing in later versions.
*/
#ifndef EVENT2_EVENT_CONFIG_H_INCLUDED_
#define EV... |
JasonWpy/libevent_study | test/regress_ssl.c | <gh_stars>100-1000
/*
* Copyright (c) 2009-2012 <NAME> and <NAME>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... |
Locky-Brand/Simple-OBJ-file-3d-model-loader | OBJLoader.h | #ifndef OBJLOAD_H
#define OBJLOAD_H
#include <string>
#include <vector>
#include <fstream>
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <algorithm>
namespace OBJFile {
struct fileVec2 {
float x;
float y;
};
struct fileVec3 {
float x;
float y;
float z;
};
struct fileVertex_all {
... |
postolaki/ViperDemo | ViperDemo/ViperDemo-Bridging-Header.h | <filename>ViperDemo/ViperDemo-Bridging-Header.h
@import POSUtils;
|
joshuawallace/hw4 | heat_mpi.c | <filename>heat_mpi.c
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <assert.h>
#include <string.h>
#include "mpi.h"
#ifndef M_PI
#define M_PI acos(-1.0)
#endif
double T_x_0_boundaryconditions(int xi, int nx)
{
/*This is the boundary condition along the "bottom" of the grid, where y=0*/
/*xi ... |
joshuawallace/hw4 | heat_omp.c | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <assert.h>
#include <string.h>
#include <omp.h>
#ifndef M_PI
#define M_PI acos(-1.0)
#endif
double T_x_0_boundaryconditions(int xi, int nx)
{
/*This is the boundary condition along the "bottom" of the grid, where y=0*/
/*xi is the index of x*/
... |
Ahuge/oiio | src/include/OpenImageIO/imageio.h | // Copyright 2008-present Contributors to the OpenImageIO project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/OpenImageIO/oiio/blob/master/LICENSE.md
/////////////////////////////////////////////////////////////////////////////
/// \file
///
/// Provides a simple API that abstracts the reading and... |
Ahuge/oiio | src/sgi.imageio/sgi_pvt.h | <reponame>Ahuge/oiio
// Copyright 2008-present Contributors to the OpenImageIO project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/OpenImageIO/oiio/blob/master/LICENSE.md
#pragma once
// Format reference: ftp://ftp.sgi.com/graphics/SGIIMAGESPEC
#include <cstdio>
#include <OpenImageIO/filesystem.... |
Ahuge/oiio | src/include/OpenImageIO/export.h | // Copyright 2008-present Contributors to the OpenImageIO project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/OpenImageIO/oiio/blob/master/LICENSE.md
#pragma once
/// \file
/// Macros necessary for proper symbol export from dynamic libraries.
///
/// On Windows, when compiling code that will e... |
Ahuge/oiio | src/include/OpenImageIO/dassert.h | <filename>src/include/OpenImageIO/dassert.h
// Copyright 2008-present Contributors to the OpenImageIO project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/OpenImageIO/oiio/blob/master/LICENSE.md
#pragma once
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <OpenImageIO/platform.h>... |
vicino/VCStepper | Example/Pods/Target Support Files/VCStepper/VCStepper-umbrella.h | #import <UIKit/UIKit.h>
FOUNDATION_EXPORT double VCStepperVersionNumber;
FOUNDATION_EXPORT const unsigned char VCStepperVersionString[];
|
vicino/VCStepper | Example/Pods/Target Support Files/Pods-VCStepper_Tests/Pods-VCStepper_Tests-umbrella.h | #import <UIKit/UIKit.h>
FOUNDATION_EXPORT double Pods_VCStepper_TestsVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_VCStepper_TestsVersionString[];
|
vicino/VCStepper | Example/Pods/Target Support Files/Pods-VCStepper_Example/Pods-VCStepper_Example-umbrella.h | #import <UIKit/UIKit.h>
FOUNDATION_EXPORT double Pods_VCStepper_ExampleVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_VCStepper_ExampleVersionString[];
|
yuujiin/STM32_CodeProtection | codeprotection.h | /*
* Code protection helper library
* for STM32 HAL
*
* Copyright (c) 2021 yuujiin
* https://github.com/yuujiin
*/
#ifndef CODEPROTECTION_H_
#define CODEPROTECTION_H_
/* Include STM32 HAL header */
#include "main.h"
//#include "stm32f3xx_hal.h"
HAL_StatusTypeDef CodeProtection_SetLevel(uint8_t Level);
#endif... |
yuujiin/STM32_CodeProtection | codeprotection.c | /*
* Code protection helper library
* for STM32 HAL
*
* Copyright (c) 2021 yuujiin
* https://github.com/yuujiin
*/
#include "codeprotection.h"
/* Set code protection level (RDP option byte).
*
* Input parameters: Level (0..2).
* Level = 0: Protection disabled.
* Level = 1: Read-out protection enabled.
* ... |
rotx/gpsctl | sl_serial.h | //
// Created by <NAME> on 10/22/17.
//
#ifndef GPSCTL_SL_SERIAL_H
#define GPSCTL_SL_SERIAL_H
#include <stdbool.h>
#include "sl_return.h"
typedef slReturn baudRateSynchronizer( int fdPort, int maxTimeMs, int verbosity );
typedef struct speedInfo {
int baudRate; // baud rate (in bits/second)
int nsBit; ... |
rotx/gpsctl | ublox.c | //
// Created by <NAME> on 10/20/17.
//
// these defines allow compiling on both an OS X development machine and the target Raspberry Pi. If different
// development environments or target machines are needed, these will likely need to be tweaked.
#define _XOPEN_SOURCE 700
#define _DARWIN_C_SOURCE
#define _POSIX_C_SO... |
rotx/gpsctl | sl_options.h | <gh_stars>10-100
//
// Created by <NAME> on 10/26/17.
//
#ifndef GPSCTL_SL_OPTIONS_H
#define GPSCTL_SL_OPTIONS_H
#include <stdio.h>
#include "sl_return.h"
#include "sl_buffer.h"
typedef enum { argRequired, argOptional, argNone } argMode_slOptions;
typedef struct clientData_slOptions clientData_slOptions... |
rotx/gpsctl | sl_return.c | <gh_stars>10-100
//
// Created by <NAME> on 11/3/17.
//
// these defines allow compiling on both an OS X development machine and the target Raspberry Pi. If different
// development environments or target machines are needed, these will likely need to be tweaked.
#define _XOPEN_SOURCE 700
#define _DARWIN_C_SOURCE
#de... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.