repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
MartinPippel/DAmar | lib/borders.h |
#pragma once
#include "db/DB.h"
#include "dalign/align.h"
#include "lib/pass.h"
#define EVENT_BEGIN 1
#define EVENT_END 2
typedef struct
{
int ovl;
unsigned short pos;
unsigned short type;
unsigned short ovh;
unsigned short span;
} Event;
typedef struct
{
Event* peb;
Even... |
MartinPippel/DAmar | lib/read_loader.h | <reponame>MartinPippel/DAmar<filename>lib/read_loader.h
#pragma once
#include "db/DB.h"
typedef struct _Read_Loader Read_Loader;
struct _Read_Loader
{
HITS_DB* db;
size_t max_mem;
char* reads; // storage for loaded reads
uint64 maxreads; // size of reads
char** index; ... |
MartinPippel/DAmar | utils/kmers.c |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <assert.h>
#include <math.h>
#include <sys/param.h>
#include "lib/colors.h"
#include "lib/oflags.h"
#include "lib/pass.h"
#include "lib/tracks.h"
#include "lib/utils.h"
#include "lib/lasidx.... |
MartinPippel/DAmar | dalign/DMctl.c | <reponame>MartinPippel/DAmar<gh_stars>10-100
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include "../lib/dmask.h"
#include "../lib/dmask_proto.h"
#define DEF_ARG_H "localhost" // host
#define DEF_ARG_P DMASK_DEFAULT_PORT // lis... |
MartinPippel/DAmar | scrub/TANmask.c | <gh_stars>10-100
/************************************************************************************\
* *
* Copyright (c) 2014, Dr. <NAME> (EWM). All rights reserved. *
* ... |
MartinPippel/DAmar | lib/dmask.h | <filename>lib/dmask.h
#pragma once
#define DMASK
#include <sys/socket.h>
#include <resolv.h>
#include <arpa/inet.h>
#include <unistd.h>
#include "dalign/align.h"
#include "db/DB.h"
#include "lib/tracks.h"
#define DMASK_DEFAULT_PORT 12345
typedef struct
{
int sockfd;
struct sockaddr_in dest;
i... |
MartinPippel/DAmar | lib/tracks.h | <gh_stars>10-100
#pragma once
#include "db/DB.h"
#include <inttypes.h>
#define TRACK_ANNO "anno"
#define TRACK_DUST "dust"
#define TRACK_MASK_R "maskr"
#define TRACK_MASK_C "maskc"
#define TRACK_EDGES "edges"
#define TRACK_FULL_EDGES "fedges"
#define TRACK_Q "q"
... |
MartinPippel/DAmar | lib/dmask_proto.h |
#pragma once
#include "../db/DB.h"
typedef struct
{
unsigned char version; // protocol version
unsigned char type; // message type DM_TYPE_xxx
uint64 length; // amount of data
uint64 reserved1;
uint64 reserved2;
uint64 reserved3;
uint64 reserved4;
} DmHeader;
#define... |
MartinPippel/DAmar | lib/compression.h | <reponame>MartinPippel/DAmar
#include <inttypes.h>
void uncompress_chunks(void* ibuf, uint64_t ilen, void* obuf, uint64_t olen);
void compress_chunks(void* ibuf, uint64_t ilen, void** _obuf, uint64_t* _olen);
|
MartinPippel/DAmar | utils/LAmergeUtils.c | #include <unistd.h>
#include <dirent.h>
#include <sys/stat.h>
#include <ctype.h>
#include "LAmergeUtils.h"
#include "lib/oflags.h"
static char* Usage = "[-hksv] [-C nsStA] [-n numFiles(8)] [-S fileSuffix] [-f files.txt] <db> <out.las> [<directory>| <in.1.las in.2.las ...>]";
void printUsage(char *prog, FILE* out)
... |
MartinPippel/DAmar | utils/CTtrim.c | /*******************************************************************************************
*
* Trims contigs based on valid contig chain overlaps
*
* Author : <NAME>
*
* Date : May 2020
*
*******************************************************************************************/
#include <assert.h>
... |
MartinPippel/DAmar | db/DBstats.c | <reponame>MartinPippel/DAmar
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "DB.h"
#include "lib/utils.h"
#define DEF_ARG_B 1000
extern char* optarg;
extern int optind, opterr, optopt;
static void usage()
{
fprintf( stderr, "usage: [-nr] [-bg <int>] <n... |
MartinPippel/DAmar | dalign/HPCdaligner.c | <filename>dalign/HPCdaligner.c
/************************************************************************************\
* *
* Copyright (c) 2014, Dr. <NAME> (EWM). All rights reserved. *
* ... |
MartinPippel/DAmar | lib/stats.c | <reponame>MartinPippel/DAmar
#include <math.h>
#include "stats.h"
#define SQR(a) ((a)*(a))
static double inverfc(double p)
{
double x, err, t, pp;
if (p >= 2.) return -100.;
if (p <= 0.0) return 100.;
pp=(p < 1.0)? p:2.-p;
t=sqrt(-2.*log(pp/2));
x= -0.70711*((2.30753+t*0.27061)/(1+t*(0.99229+t*0.0448... |
MartinPippel/DAmar | scrub/LAfix.c | <reponame>MartinPippel/DAmar<gh_stars>10-100
/*
repairs gaps and weak regions based on a read's overlaps
and produces a new set of sequences
Author: <NAME>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <assert.h>
#include <sys/param.h>
#include "lib/colors.h"
#include... |
MartinPippel/DAmar | db/DB.c | <reponame>MartinPippel/DAmar
/************************************************************************************\
* *
* Copyright (c) 2014, Dr. <NAME> (EWM). All rights reserved. *
* ... |
MartinPippel/DAmar | scrub/LAseparate.c | <filename>scrub/LAseparate.c
/*
* LAseparate.c
*
* Created on: 10 Jul 2018
* Author: pippel
*/
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <sys/param.h>
#include <unistd.h>
#include "../dalign/align.h"
#include "../db/DB.h"
#include "../lib/colors.h"
#include ".... |
MartinPippel/DAmar | scrub/LAtrim.c | /*******************************************************************************************
*
* applies the trim track to an overlap file and realigns the trimmed ends to establish
* new trace points, bbpos and bepos
*
* Author : <NAME>
*
* Date : November 2014
*
************************************... |
MartinPippel/DAmar | lib.ext/fgetln.h | /*
fgetln is only available on bsd derived systems.
getline on the other hand is only in gnu libc derived systems.
if fgetln is missing emulate it using getline
*/
#include <stdio.h>
#if !defined(fgetln) && !HAVE_FGETLN
static char* fgetln_(FILE* stream, size_t* len)
{
static char* linep = NULL;
static size_t l... |
MartinPippel/DAmar | touring/OGbuild.c | /*******************************************************************************************
*
* Builds the overlap graph
* (C implementation of build_og.py)
*
* Date : January 2016
*
* Author : <NAME>
*
*******************************************************************************************/
#incl... |
MartinPippel/DAmar | lib/compression.c | <gh_stars>10-100
#include <zlib.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "utils.h"
#define ULONG_MAX 0xFFFFFFFFUL
#undef DEBUG_COMPRESSION
#define COMPRESS_MAX_CHUNK ( 8 * 1024 * 1024 )
void compress_chunks(void* ibuf, uint64_t ilen, void** _obuf, uint64_t* _olen... |
MartinPippel/DAmar | lib.ext/types.h | <reponame>MartinPippel/DAmar<filename>lib.ext/types.h
/* "types.h" */
/*
IMPORTANT NOTE: This is part of the code that appeared in
Dr. Dobb's Journal issue #233 (August 1995)
Volume 20 Issue 8
in an article entitled `Implementing Bit Vectors in C'
... |
MartinPippel/DAmar | lib/utils.h |
#pragma once
#include <inttypes.h>
#include "db/DB.h"
#define UNUSED(x) (void)(x)
int fread_integers(FILE* fileIn, int** out_values, int* out_nvalues);
int intersect(int ab, int ae, int bb, int be);
void get_trim(HITS_DB* db, HITS_TRACK* trimtrack, int rid, int* b, int* e);
void wrap_write(FILE* fileOut, char* s... |
MartinPippel/DAmar | lib/pass.h |
#pragma once
#include <sys/types.h>
#include "db/DB.h"
#include "dalign/align.h"
#define DB_READ_FLAGS(db, rid) ( (db)->reads[ (rid) ].flags )
#define DB_READ_LEN(db, rid) ( (db)->reads[ (rid) ].rlen )
#define READ_LEN(r) ( (r)->rlen )
#define DB_READ_MAXLEN(db) ( (db)->maxlen )
#define DB_NREADS(d... |
MartinPippel/DAmar | db/DBshow.c | <gh_stars>10-100
/************************************************************************************\
* *
* Copyright (c) 2014, Dr. <NAME> (EWM). All rights reserved. *
* ... |
MartinPippel/DAmar | utils/H5dextract.c | <reponame>MartinPippel/DAmar<gh_stars>10-100
/*******************************************************************************************
*
* BAXstat : pulls out information from .bax.h5 files produced by Pacbio
* - statistics i.e. time-dependent quality values,
* - fasta/fastq and quiva files
*
*
* ... |
rileyweber13/exercism-progress | c/isogram/src/isogram.c | <gh_stars>1-10
#include "isogram.h"
bool is_isogram(const char phrase[]){
int i = 0;
// we can stop on the last character that is part of the actual string and not
// the null terminator. This is because there is no where left in the string
// for the last character in the string to be repeated.
if (phrase =... |
rileyweber13/exercism-progress | c/isogram/src/test.c | #include <stdbool.h>
#include <stdio.h>
int main(int argc, const char* argv[]){
bool a = true;
bool b = false;
bool c = true;
bool d = false;
bool e = a + b;
bool f = b + d;
bool g = b + d + c;
printf("%d\n",a);
printf("%d\n",e);
printf("%d\n",f);
printf("%d\n",g);
}
|
rileyweber13/exercism-progress | c/word-count/src/word_count.c | #include "word_count.h"
int word_count(const char* input_text, word_count_word_t* words){
unsigned uniqueWords = 1;
for(unsigned i = 0; i < strlen(input_text); i++){
// for(unsigned i = 0; i < sizeof(input_text)/sizeof(input_text[0]); i++){
if(input_text[i] == ' '){
uniqueWords++;
}
else {
... |
rileyweber13/exercism-progress | c/acronym/src/acronym.c | #include "acronym.h"
// taken from the FreeBSD source code
// http://fxr.watson.org/fxr/source/libkern/strlen.c?v=DFBSD<Paste>
// unsigned strlen(const char *str)
// {
// const char *s;
// for (s = str; *s; ++s);
// return(s - str);
// }
char* abbreviate(const char * phrase){
if(phrase == NULL || phrase... |
rileyweber13/exercism-progress | c/isogram/src/isogram.h | #ifndef ISOGRAM_H
#define ISOGRAM_H
#include <stdbool.h>
#include <stdlib.h>
#include <ctype.h>
bool is_isogram(const char phrase[]);
#endif
|
JumpLink/node-gtk | src/boxed.h |
#pragma once
#include <nan.h>
#include <node.h>
#include <girepository.h>
using v8::External;
using v8::Function;
using v8::FunctionTemplate;
using v8::Local;
using v8::Number;
using v8::Object;
using v8::String;
using v8::Value;
namespace GNodeJS {
class Boxed {
public:
void* data;
GType g_type;
GIBas... |
JumpLink/node-gtk | src/macros.h |
#pragma once
#define FILE_NAME (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
#ifdef __PRETTY_FUNCTION__
#define FUNCTION_NAME __PRETTY_FUNCTION__
#else
#define FUNCTION_NAME __func__
#endif
#define assert_printf(condition, ...) \
do { \
if (G_UNLIKELY(!(condition))) { \
pri... |
xiaogou56/WiOSDemo | WiOSDemo/WThirdVC.h | <reponame>xiaogou56/WiOSDemo<gh_stars>0
//
// WThirdVC.h
// WiOSDemo
//
// Created by xiaowei.li on 16/2/20.
// Copyright © 2016年 Wayne. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface WThirdVC : UITableViewController
@end
|
xiaogou56/WiOSDemo | DesignPattern/builder/ChasingGameDirector.h | //
// ChasingGameDirector.h
// WiOSDemo
//
// Created by Wayne on 16/3/22.
// Copyright © 2016年 Wayne. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Character.h"
#import "AbstructCharacterBuilder.h"
@interface ChasingGameDirector : NSObject
// 同样的,我们还可以再添加一个创建Enemy的方法,另外我们也可以直接新增一个enemy的concr... |
xiaogou56/WiOSDemo | 3rd/TencentOpenApi_IOS_Bundle.bundle/QQSDKCall.h | //
// QQSDKCall.h
// WiOSDemo
//
// Created by Wayne on 16/2/22.
// Copyright © 2016年 Wayne. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface QQSDKCall : NSObject
@end
|
xiaogou56/WiOSDemo | chapter6/WBookActivity.h | //
// WBookActivity.h
// WiOSDemo
//
// Created by Wayne on 16/2/20.
// Copyright © 2016年 Wayne. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface WBookActivity : UIActivity
@end
|
xiaogou56/WiOSDemo | WiOSDemo/AppDelegate.h | <reponame>xiaogou56/WiOSDemo<gh_stars>0
//
// AppDelegate.h
// WiOSDemo
//
// Created by Wayne on 16/2/20.
// Copyright © 2016年 Wayne. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
xiaogou56/WiOSDemo | WiOSDemo/SecondViewController.h | <reponame>xiaogou56/WiOSDemo<gh_stars>0
//
// SecondViewController.h
// WiOSDemo
//
// Created by Wayne on 16/2/20.
// Copyright © 2016年 Wayne. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SecondViewController : UIViewController
@end
|
xiaogou56/WiOSDemo | DesignPattern/builder/Character.h | <reponame>xiaogou56/WiOSDemo
//
// Character.h
// WiOSDemo
//
// Created by Wayne on 16/3/22.
// Copyright © 2016年 Wayne. All rights reserved.
//
#import <Foundation/Foundation.h>
/*
* Character就是客户最终想要的东西,东西就是东西,它只有几个属性,当然可以给上初始值
*/
@interface Character : NSObject
@property (nonatomic, assign) float protection... |
xiaogou56/WiOSDemo | DesignPattern/builder/ConcreteCharacterBuilder.h | //
// StandardCharacterBuilder.h
// WiOSDemo
//
// Created by Wayne on 16/3/22.
// Copyright © 2016年 Wayne. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AbstructCharacterBuilder.h"
/**
* 继承自CharacterBuilder类(其他语言中是个抽象类),给予各个方法以具体的实现;
*/
@interface ConcreteCharacterBuilder : AbstructCharact... |
xiaogou56/WiOSDemo | QQSDKDef.h | <gh_stars>0
//
// QQSDKDef.h
// WiOSDemo
//
// Created by Wayne on 16/2/22.
// Copyright © 2016年 Wayne. All rights reserved.
//
#ifndef QQSDKDef_h
#define QQSDKDef_h
//response
#define kCGIRequest @"kTencentCGIRequest"
#define kResponse @"kResponse"
#define kTencentOAuth @"oauth"
#define kUIViewController @"UIVie... |
xiaogou56/WiOSDemo | DesignPattern/builder/AbstructCharacterBuilder.h | <filename>DesignPattern/builder/AbstructCharacterBuilder.h
//
// CharacterBuilder.h
// WiOSDemo
//
// Created by Wayne on 16/3/22.
// Copyright © 2016年 Wayne. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Character.h"
/**
* 在其他语言里面,这个类其实是个抽象类或者接口,只定义了一些抽象方法,没有实现,但iOS不支持这种特性,所以可以简单的赋值。
*/
@i... |
xiaogou56/WiOSDemo | WiOSDemo/FirstViewController.h | //
// FirstViewController.h
// WiOSDemo
//
// Created by Wayne on 16/2/20.
// Copyright © 2016年 Wayne. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface FirstViewController : UITableViewController
@end
|
xiaogou56/WiOSDemo | 3rd/QQSDKCall.h | <gh_stars>0
//
// QQSDKCall.h
// WiOSDemo
//
// Created by Wayne on 16/2/22.
// Copyright © 2016年 Wayne. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <TencentOpenAPI/TencentOAuth.h>
#import <TencentOpenAPI/TencentOAuthObject.h>
#import <TencentOpenAPI/TencentApiInterface.h>
@interface QQSDKCa... |
xiaogou56/WiOSDemo | WDemoCellInfo.h | //
// WDemoCellInfo.h
// WiOSDemo
//
// Created by xiaowei.li on 16/2/22.
// Copyright © 2016年 Wayne. All rights reserved.
//
#import <Foundation/Foundation.h>
#define WDemoCellMapSelector(strTitle, strMethod) [WDemoCellInfo cellTitle:(strTitle) target:self sel:@selector(strMethod) userInfo:nil]
#define WDemoGetC... |
dunneev/oboe | src/common/DataConversionFlowGraph.h | <gh_stars>1-10
/*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... |
Gmaurya/data-structure-and-algorithms | DynamicPrograming/Edit-Distance.c | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
int minimum_of_two(int x,int y){
if (x > y)
return y;
else return x;
}
int minimum(int x, int y, int z){
return minimum_of_two(minimum_of_two(x, y), z);
}
int m;
int n;
int Convert(char * str1, char * str2){
int dp[m+1][n+1];
int i=0;
... |
ferrarimarco/home-lab | provisioning/esp32/smart_desk/components/gpio_manager/relay_board.h | <gh_stars>1-10
#ifndef PROVISIONING_ESP32_SMART_DESK_COMPONENTS_GPIO_MANAGER_RELAY_BOARD_H_
#define PROVISIONING_ESP32_SMART_DESK_COMPONENTS_GPIO_MANAGER_RELAY_BOARD_H_
#include "driver/gpio.h"
struct Relay
{
gpio_num_t gpio_num;
gpio_mode_t gpio_mode;
gpio_pull_mode_t pull_mode;
uint32_t initial_leve... |
ferrarimarco/home-lab | provisioning/esp32/smart_desk/components/debug_utils/board_info.h | #ifndef PROVISIONING_ESP32_SMART_DESK_COMPONENTS_DEBUG_UTILS_BOARD_INFO_H_
#define PROVISIONING_ESP32_SMART_DESK_COMPONENTS_DEBUG_UTILS_BOARD_INFO_H_
#include "esp_system.h"
void get_board_info(esp_chip_info_t chip_info, int flash_chip_size, int free_heap_size);
#endif // PROVISIONING_ESP32_SMART_DESK_COMPONENTS_DE... |
ferrarimarco/home-lab | provisioning/esp32/smart_desk/components/debug_utils/app_info.h | <gh_stars>1-10
#ifndef PROVISIONING_ESP32_SMART_DESK_COMPONENTS_DEBUG_UTILS_APP_INFO_H_
#define PROVISIONING_ESP32_SMART_DESK_COMPONENTS_DEBUG_UTILS_APP_INFO_H_
void get_app_info();
void get_tasks_info();
#endif // PROVISIONING_ESP32_SMART_DESK_COMPONENTS_DEBUG_UTILS_APP_INFO_H_
|
ferrarimarco/home-lab | provisioning/esp32/smart_desk/main/smart_desk_main.c | #include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include "esp_event.h"
#include "esp_log.h"
#include "esp_spi_flash.h"
#include "esp_system.h"
#include "esp_task_wdt.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "sdkconfig.h"
#include "app_info.h"
#include "board_info.h"
#include "... |
ferrarimarco/home-lab | provisioning/esp32/smart_desk/components/debug_utils/app_info.c | <filename>provisioning/esp32/smart_desk/components/debug_utils/app_info.c<gh_stars>1-10
#include <stdio.h>
#include <string.h>
#include "esp_log.h"
#include "esp_ota_ops.h"
#include "app_info.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
static const char *TAG = "app_info";
void get_app_info()
{
... |
ferrarimarco/home-lab | provisioning/esp32/smart_desk/components/i2c_manager/hd_44780.h | <reponame>ferrarimarco/home-lab<gh_stars>1-10
#ifndef PROVISIONING_ESP32_SMART_DESK_COMPONENTS_I2C_MANAGER_HD_44780_H_
#define PROVISIONING_ESP32_SMART_DESK_COMPONENTS_I2C_MANAGER_HD_44780_H_
#include "esp_err.h"
// LCD display positions
#define LCD_LINEONE 0x00 // Start of line 1
#define LCD_LINETWO 0x40 // St... |
ferrarimarco/home-lab | provisioning/esp32/smart_desk/components/debug_utils/board_info.c | <reponame>ferrarimarco/home-lab<gh_stars>1-10
#include <stdio.h>
#include <string.h>
#include "esp_log.h"
#include "sdkconfig.h"
#include "board_info.h"
static const char *TAG = "board_info";
void get_board_info(esp_chip_info_t chip_info, int flash_chip_size, int free_heap_size)
{
ESP_LOGI(TAG, "This is a %s CP... |
ferrarimarco/home-lab | provisioning/esp32/smart_desk/components/provisioning_manager/provisioning_manager.h | #ifndef PROVISIONING_ESP32_SMART_DESK_COMPONENTS_PROVISIONING_MANAGER_PROVISIONING_MANAGER_H_
#define PROVISIONING_ESP32_SMART_DESK_COMPONENTS_PROVISIONING_MANAGER_PROVISIONING_MANAGER_H_
ESP_EVENT_DECLARE_BASE(PROVISIONING_MANAGER_EVENTS);
enum
{
PROVISIONING_MANAGER_INIT, // raised when the wifi provisioning m... |
ferrarimarco/home-lab | provisioning/esp32/smart_desk/components/smart_desk_manager/actuators_controller.h | <gh_stars>1-10
#ifndef PROVISIONING_ESP32_SMART_DESK_COMPONENTS_SMART_DESK_MANAGER_ACTUATORS_CONTROLLER_H_
#define PROVISIONING_ESP32_SMART_DESK_COMPONENTS_SMART_DESK_MANAGER_ACTUATORS_CONTROLLER_H_
#include "esp_event.h"
#include "relay_board.h"
struct Actuator
{
struct Relay *relay_1;
struct Relay *relay_2... |
ferrarimarco/home-lab | provisioning/esp32/smart_desk/components/i2c_manager/i2c_utils.c | <reponame>ferrarimarco/home-lab
#include "i2c_utils.h"
#include <stdbool.h>
#include <stdio.h>
#include "driver/i2c.h"
#include "driver/periph_ctrl.h"
#include "esp_log.h"
#include "print_utils.h"
static const char *TAG = "i2c_utils";
i2c_port_t i2c_port = I2C_NUM_0;
esp_err_t i2c_reset()
{
esp_err_t ret;
... |
ferrarimarco/home-lab | provisioning/esp32/smart_desk/components/provisioning_manager/provisioning_manager.c | <filename>provisioning/esp32/smart_desk/components/provisioning_manager/provisioning_manager.c
#include "esp_event.h"
#include "esp_log.h"
#include "esp_wifi.h"
#include "wifi_provisioning/manager.h"
#include "wifi_provisioning/scheme_ble.h"
#include "provisioning_manager.h"
#include "wifi_connection_manager.h"
stati... |
ferrarimarco/home-lab | provisioning/esp32/smart_desk/components/i2c_manager/hd_44780.c | #include "hd_44780.h"
#include <stdio.h>
#include "driver/i2c.h"
#include "esp32/rom/ets_sys.h"
#include "esp_event.h"
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "sdkconfig.h"
#include "i2c_utils.h"
#include "print_utils.h"
#include "ultrasonic.h"
static const char *TA... |
ferrarimarco/home-lab | provisioning/esp32/smart_desk/components/network_manager/wifi_connection_manager.h | <reponame>ferrarimarco/home-lab
#ifndef PROVISIONING_ESP32_SMART_DESK_COMPONENTS_NETWORK_MANAGER_WIFI_CONNECTION_MANAGER_H_
#define PROVISIONING_ESP32_SMART_DESK_COMPONENTS_NETWORK_MANAGER_WIFI_CONNECTION_MANAGER_H_
ESP_EVENT_DECLARE_BASE(WIFI_CONNECTION_MANAGER_EVENTS);
enum
{
WIFI_CONNECTION_MANAGER_EVENT_STA_I... |
ferrarimarco/home-lab | provisioning/esp32/smart_desk/components/i2c_manager/i2c_utils.h | <reponame>ferrarimarco/home-lab
#ifndef PROVISIONING_ESP32_SMART_DESK_COMPONENTS_I2C_MANAGER_I2C_UTILS_H_
#define PROVISIONING_ESP32_SMART_DESK_COMPONENTS_I2C_MANAGER_I2C_UTILS_H_
#include <stdbool.h>
#include "esp_err.h"
#define ACK_OFF 0
#define ACK_ON 1
esp_err_t i2c_detect_device(uint8_t client_address);
esp_er... |
ferrarimarco/home-lab | provisioning/esp32/smart_desk/components/storage_manager/nvs_manager.c | <filename>provisioning/esp32/smart_desk/components/storage_manager/nvs_manager.c
#include "esp_log.h"
#include "esp_system.h"
#include "nvs_flash.h"
#include "nvs_manager.h"
static const char *TAG = "smart_desk";
static esp_err_t open_nvs_handle(const char *namespace, nvs_handle_t *nvs_handle)
{
esp_err_t err;
... |
ferrarimarco/home-lab | provisioning/esp32/smart_desk/components/crypto_utils/rsa_utils.h | #ifndef PROVISIONING_ESP32_SMART_DESK_COMPONENTS_CRYPTO_UTILS_RSA_UTILS_H_
#define PROVISIONING_ESP32_SMART_DESK_COMPONENTS_CRYPTO_UTILS_RSA_UTILS_H_
struct RsaKeyGenerationOptions
{
int key_size; /* length of key in bits */
const char *private_key_filename; /* filename of th... |
ferrarimarco/home-lab | provisioning/esp32/smart_desk/components/smart_desk_manager/actuators_controller.c | #include <string.h>
#include "esp_log.h"
#include "esp_timer.h"
#include "actuators_controller.h"
#include "ultrasonic.h"
// First attempt: 1 minute (to tune)
#define ACTUATORS_SAFETY_TIMEOUT_US 60000000
ESP_EVENT_DEFINE_BASE(ACTUATOR_EVENT);
static const char *TAG = "smart_desk_manager";
esp_timer_handle_t safet... |
ferrarimarco/home-lab | provisioning/esp32/smart_desk/components/gpio_manager/ultrasonic.c | <filename>provisioning/esp32/smart_desk/components/gpio_manager/ultrasonic.c
#include "ultrasonic.h"
#include "esp_log.h"
#include "esp_timer.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#define TRIGGER_LOW_DELAY 4
#define TRIGGER_HIGH_DELAY 10
#define PING_TIMEOUT 6000
#define ROUNDTRIP 58
static po... |
ferrarimarco/home-lab | provisioning/esp32/smart_desk/components/gpio_manager/relay_board.c | <reponame>ferrarimarco/home-lab<gh_stars>1-10
#include <string.h>
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "relay_board.h"
static const char *TAG = "relay_board";
esp_err_t init_relays(uint8_t relay_pins[], size_t relay_num, struct Relay **relays_p)
{
ESP_LOGI(TAG, ... |
ferrarimarco/home-lab | provisioning/esp32/smart_desk/components/network_manager/ip_address_manager.h | <filename>provisioning/esp32/smart_desk/components/network_manager/ip_address_manager.h
#ifndef PROVISIONING_ESP32_SMART_DESK_COMPONENTS_NETWORK_MANAGER_IP_ADDRESS_MANAGER_H_
#define PROVISIONING_ESP32_SMART_DESK_COMPONENTS_NETWORK_MANAGER_IP_ADDRESS_MANAGER_H_
#include "esp_event.h"
void register_ip_address_manager_... |
954818696/Game-Kaleidoscope | UE4Case/BatteryCollector/Source/BatteryCollector/BatteryCollector.h | <gh_stars>0
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#ifndef __BATTERYCOLLECTOR_H__
#define __BATTERYCOLLECTOR_H__
#include "Engine.h"
#endif
|
954818696/Game-Kaleidoscope | UE4Case/BatteryCollector/Source/BatteryCollector/Private/BatteryPickup.h | <reponame>954818696/Game-Kaleidoscope
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "Pickup.h"
#include "BatteryPickup.generated.h"
/**
*
*/
UCLASS()
class ABatteryPickup : public APickup
{
GENERATED_BODY()
public:
ABatteryPickup();
void WasCollected_I... |
954818696/Game-Kaleidoscope | UE4Case/BatteryCollector/Source/BatteryCollector/Private/SpawnVolume.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "GameFramework/Actor.h"
#include "SpawnVolume.generated.h"
UCLASS()
class ASpawnVolume : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
ASpawnVolume();
// Called w... |
954818696/Game-Kaleidoscope | UE4Case/BatteryCollector/Source/BatteryCollector/BatteryCollectorGameMode.h | <reponame>954818696/Game-Kaleidoscope
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "GameFramework/GameMode.h"
#include "BatteryCollectorGameMode.generated.h"
UENUM(BlueprintType)
enum class EBatteryPlayState
{
EPlaying,
EGameOver,
EWon,
EUnknown,
};
UCLASS(minimalapi)
class... |
ianayl/ship | src/parser/tokens.h | <filename>src/parser/tokens.h
#ifndef TOKENS_H
#define TOKENS_H
/* Types for tokens */
/* TODO document crap better */
enum tk_type
{
NULL_TYPE, /* This is so that a type of 0 represents null */
/* The following needs to be processed again depending on type */
TOKEN, /* Generic token type, before disting... |
pzmarzly/foundationdb | fdbrpc/genericactors.actor.h | /*
* genericactors.actor.h
*
* This source file is part of the FoundationDB open source project
*
* Copyright 2013-2018 Apple Inc. and the FoundationDB project authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You ma... |
asterics/IRTrans-Server | xbmc.c | <reponame>asterics/IRTrans-Server
/*
* Copyright (c) 2007, IRTrans GmbH
* 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 copyrigh... |
asterics/IRTrans-Server | linuxserio.c | <reponame>asterics/IRTrans-Server<gh_stars>1-10
/*
* Copyright (c) 2007, IRTrans GmbH
* 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 ... |
asterics/IRTrans-Server | pictures.h | /*
* Copyright (c) 2007, IRTrans GmbH
* 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 copyright
* notice, this list of co... |
asterics/IRTrans-Server | xap.h | /*
* Copyright (c) 2007, IRTrans GmbH
* 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 copyright
* notice, this list of co... |
asterics/IRTrans-Server | functioncodes.h | #define FN_IR 1
#define FN_SBUS 2
#define FN_SER 4
#define FN_USB 8
#define FN_POWERON 16
#define FN_EXT_SW 32
#define FN_CALIBRATE 64
#define FN_SOFTID 128
#define FN_EEPROM 256
#define FN_TRANSL 512
#define FN_HWCARR 1024
#define FN_DUALRCV 2048
#define FN_SBUS_UART 4096
#define FN_FLASH128 8192
#defi... |
asterics/IRTrans-Server | lowlevel.h | /*
* Copyright (c) 2007, IRTrans GmbH
* 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 copyright
* notice, this list of co... |
asterics/IRTrans-Server | dbstruct.h | <gh_stars>1-10
/*
* Copyright (c) 2007, IRTrans GmbH
* 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 copyright
* notice, ... |
asterics/IRTrans-Server | winusbio.h | <reponame>asterics/IRTrans-Server<gh_stars>1-10
/*
* Copyright (c) 2007, IRTrans GmbH
* 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 ... |
asterics/IRTrans-Server | server.h | <reponame>asterics/IRTrans-Server
/*
* Copyright (c) 2007, IRTrans GmbH
* 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 copyrigh... |
asterics/IRTrans-Server | linuxusbio.c | <filename>linuxusbio.c
#ifdef LINUX
#include "../../Common/remote.h"
int OpenUSBPort (void)
{
}
int ReadUSBString (byte pnt[],int len,word timeout)
{
}
void FlushUSB (void)
{
}
void WriteUSBString (byte pnt[],int len)
{
}
#endif
|
asterics/IRTrans-Server | winusbio.c | /*
* Copyright (c) 2007, IRTrans GmbH
* 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 copyright
* notice, this list of co... |
asterics/IRTrans-Server | errormessage.c | /*
* Copyright (c) 2007, IRTrans GmbH
* 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 copyright
* notice, this list of co... |
asterics/IRTrans-Server | hid.c | /*
* Copyright (c) 2007, IRTrans GmbH
* 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 copyright
* notice, this list of co... |
asterics/IRTrans-Server | global.h | <reponame>asterics/IRTrans-Server<filename>global.h
/*
* Copyright (c) 2007, IRTrans GmbH
* 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 ... |
asterics/IRTrans-Server | webserver.c | /*
* Copyright (c) 2007, IRTrans GmbH
* 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 copyright
* notice, this list of co... |
asterics/IRTrans-Server | fileio.h | <filename>fileio.h
/*
* Copyright (c) 2007, IRTrans GmbH
* 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 copyright
* noti... |
asterics/IRTrans-Server | xap.c | /*
* Copyright (c) 2007, IRTrans GmbH
* 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 copyright
* notice, this list of co... |
asterics/IRTrans-Server | errcode.h | <gh_stars>1-10
/*
* Copyright (c) 2007, IRTrans GmbH
* 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 copyright
* notice, ... |
asterics/IRTrans-Server | mce.c | /*
* Copyright (c) 2007, IRTrans GmbH
* 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 copyright
* notice, this list of co... |
Drengr-Engine/Drengr | Drengr/src/Test.h | <gh_stars>0
#pragma once
#include <application/Application.h>
class Test : public Drengr::Application
{
public:
Test() {
Drengr::Debugger::Log("Drengr Engine Initilization Complete!");
}
~Test() {}
};
Drengr::Application* Drengr::CreateApplication() {
return new Test();
}
|
Drengr-Engine/Drengr | Engine/src/core/graphics/buffers/VertexBuffer.h | #pragma once
#include <glad/glad.h>
#include "glm/glm.hpp"
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <vector>
#include <iomanip>
#include <ostream>
namespace Drengr {
struct Vertex {
glm::vec3 m_position;
glm::vec3 Normal;
glm::vec3 Color;
glm::vec2 UV;
friend std... |
Drengr-Engine/Drengr | Engine/src/core/graphics/renderer/Renderer.h | #include <glad/glad.h>
namespace Drengr {
class Renderer {
};
}
|
Drengr-Engine/Drengr | Engine/src/core/windows/ui/UiWindow.h | #pragma once
#include <debug/Debugger.h>
#include <imgui/imgui.h>
#include <imgui/imgui_impl_opengl3.h>
#include <imgui/imgui_impl_glfw.h>
namespace Drengr {
namespace UI {
class UIWindow
{
public:
bool Begin(const char* title);
void End();
virtual void Draw() = 0;
protected:
bool show = tru... |
Drengr-Engine/Drengr | Engine/src/core/windows/ui/InspectorWindow.h | #pragma once
#include "UiWindow.h"
#include <core/graphics/cameras/Camera.h>
namespace Drengr {
namespace UI {
class InspectorWindow : public UIWindow
{
public:
// Inherited via UIWindow
virtual void Draw() override;
};
}
}
|
Drengr-Engine/Drengr | Engine/src/core/graphics/buffers/VertexArrayObject.h | <gh_stars>0
#pragma once
#include <glad/glad.h>
#include "VertexBuffer.h"
namespace Drengr {
class VertexArrayObject
{
public:
VertexArrayObject();
void AddAttribPointer(VertexBuffer& vbo, unsigned int layout, unsigned int size, unsigned int stride, void* offset);
void Bind();
void Unbind();
void Del... |
Drengr-Engine/Drengr | Engine/src/application/Application.h | #pragma once
#include <optional>
#include <core/windows/ui/UI.h>
#include <core/graphics/renderer/Renderer.h>
#include <core/graphics/assets/Shader.h>
#include <core/graphics/cameras/Camera.h>
#include <map>
namespace Drengr {
class Application
{
public:
Application();
virtual ~Application();
std::optional<... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.