repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
yevfast/distccps | src/dsa.c | #include "dsa.h"
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <gmp.h>
#include "sha.h"
#define SIZE_Q 160
#define SIZE_P 512
typedef unsigned int uint;
static gmp_randstate_t state;
static int state_init;
static __attribute__((unused)) void print_num_base(const char *msg,... |
yevfast/distccps | src/dsa.h | <filename>src/dsa.h
#ifndef __DSA_H__
#define __DSA_H__
#include <stdio.h>
#define DSA_ELEM_SZ 150
typedef struct {
char q[DSA_ELEM_SZ];
char p[DSA_ELEM_SZ];
char g[DSA_ELEM_SZ];
} dsa_param_t;
typedef struct {
char x[DSA_ELEM_SZ];
char y[DSA_ELEM_SZ];
} dsa_keypair_t;
typedef struct {
char... |
yevfast/distccps | src/sha.c | <reponame>yevfast/distccps
#include <errno.h>
#include <string.h>
#include "sha.h"
#define CONST_H0 0x67452301
#define CONST_H1 0xEFCDAB89
#define CONST_H2 0x98BADCFE
#define CONST_H3 0x10325476
#define CONST_H4 0xC3D2E1F0
#define CONST_K1 0x5A827999
#define CONST_K2 0x6ED9EBA1
#define CONST_K3 ... |
MrArgie/th1-repl | config.h | <gh_stars>1-10
#pragma once
#define FOSSIL_PTR_TO_INT(X) ((int)(__PTRDIFF_TYPE__)(X))
typedef unsigned char u8; |
MrArgie/th1-repl | th_lang.c | <gh_stars>1-10
/*
** This file contains the implementation of all of the TH language
** built-in commands.
**
** All built-in commands are implemented using the public interface
** declared in th.h, so this file serves as both a part of the language
** implementation and an example of how to extend the language with
*... |
MrArgie/th1-repl | th.c |
/*
** The implementation of the TH core. This file contains the parser, and
** the implementation of the interface in th.h.
*/
#include "config.h"
#include "th.h"
#include <string.h>
#include <assert.h>
/*
** Values used for element values in the tcl_platform array.
*/
#if !defined(TH_ENGINE)
# define TH_ENGINE ... |
MrArgie/th1-repl | th.h | /*Copyright 2007 <NAME>. All rights reserved.
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 conditions and the
followin... |
MrArgie/th1-repl | repl.c | #include "th.h"
#include <stdio.h>
#include <stdlib.h>
#include "linenoise.h"
int main( int argc, char const * const * argv )
{
int rc = 0;
int i;
char* line;
Th_Vtab vtab = {.xMalloc = malloc, .xFree = free};
Th_Interp * interp = Th_CreateInterp( &vtab );
th_register_language( interp );
l... |
giginet/libjwt-swift | jwt.h | <reponame>giginet/libjwt-swift
#include <jwt.h>
|
kun-shang/GRACE-Gravity-Inversion | src/GRACEL1C/editsca.c | <filename>src/GRACEL1C/editsca.c<gh_stars>0
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main (int argc, char *argv[])
{
FILE *fpin, *fpout;
int n, i, gps2, gps1;
double sca0[4] = {0}, sca2[4]={0}, sca1[4]={0}, diff, diffnew;
char line[400];
/*--+----1----+----2----+----3----+----4----... |
kun-shang/GRACE-Gravity-Inversion | src/coord/coord.h | /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+--*/
#ifndef _COORD_H_
#define _COORD_H_
#ifndef __STDIO_H__
#include <stdio.h>
#endif
#ifndef __MATH_H__
#include <math.h>
#endif
#ifndef __STRING_H__
#include <string.h>
#endif
#ifn... |
kun-shang/GRACE-Gravity-Inversion | src/grace/l1b2l1c.c | <filename>src/grace/l1b2l1c.c
/*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+--*/
/*
GRACE L1B to L1C & L2
Version: 20 Dec 2011
fixed and stochastic constraint solution
Copyright (c) 2011 <NAME> (<EMAIL>) All Right Reserved
*/
/*--+----1----+----2----+----3----+----4--... |
kun-shang/GRACE-Gravity-Inversion | src/coord/orbxyz.c | <filename>src/coord/orbxyz.c
/*
------------------------------------------------------------------------
Purpose: transformation between xyz, aei, llr, rtn
Notes:
Programmer: <NAME> @ 4.29.2014
Functions:
int aei2xyz (double ele[6], double gm,
double pos[3], double vel[3]... |
kun-shang/GRACE-Gravity-Inversion | include/l1b2l1c.h | <filename>include/l1b2l1c.h
/*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+--*/
#ifndef _L1B2L1C_H_
#define _L1B2L1C_H_
#ifndef __OMP_H__
#include <omp.h>
#endif
#ifndef __STDIO_H__
#include <stdio.h>
#endif
#ifndef __MATH_H__
#include <ma... |
kun-shang/GRACE-Gravity-Inversion | src/numrs/dftflt.c | <filename>src/numrs/dftflt.c
/*
------------------------------------------------------------------------
Purpose: some subroutines of matrix and vector operation
Notes:
Programmer: <NAME> @ 4.29.2014
Functions:
int dft(long int length, double real_sample[], double imag_sample[]);
int... |
kun-shang/GRACE-Gravity-Inversion | src/L2MPI/L2solverDMAp.c | <reponame>kun-shang/GRACE-Gravity-Inversion<filename>src/L2MPI/L2solverDMAp.c
/*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+--*/
/*
GRACE/GRAIL L2 solver (MPI, MKL, OMP modules)
Version: June 2014
Copyright (c) 2014 <NAME> (<EMAIL>) All Right Reserved
*/
/*--+----1----+----2----+... |
kun-shang/GRACE-Gravity-Inversion | src/GRACEL1C/gnv2gps.c |
#include "coord.h"
#include "numrs.h"
#define MAXLINE 300
/*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+--*/
int main (int argc, char *argv[])
{
FILE *fp_stdin, *fpin_a, *fpin_b, *fpout_a, *fpout_b;
int year, month, day, days, mjds, mjde, gps_e, gps_i, i, n,
DT, NDATA,... |
kun-shang/GRACE-Gravity-Inversion | src/L2MPI/L2precheck.c | <gh_stars>0
/*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+--*/
/*
GRACE/GRAIL L2 solver (MPI, MKL, OMP modules)
Version: June 2014
Copyright (c) 2014 <NAME> (<EMAIL>) All Right Reserved
*/
/*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+--*/
#include <... |
kun-shang/GRACE-Gravity-Inversion | src/GRACEL1C/editacc.c | <reponame>kun-shang/GRACE-Gravity-Inversion
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main (int argc, char *argv[])
{
FILE *fpin, *fpout;
int i, gps, flg;
double acc[3], res[3];
char line[400];
/*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+--*/
if ( ... |
kun-shang/GRACE-Gravity-Inversion | src/GRACEL1C/aotides.c | /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+--*/
/*
Copyright (c) 2012 <NAME> (<EMAIL>) All Right Reserved
NOT FULLY VALIDATED -- SUBJECT TO CORRECTION
*/
/*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+--*/
/*#define MSDOS */
//#define LINUX
#i... |
kun-shang/GRACE-Gravity-Inversion | include/smod.h | <reponame>kun-shang/GRACE-Gravity-Inversion<filename>include/smod.h
/*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+--*/
#ifndef _SMOD_H_
#define _SMOD_H_
#ifndef REAL128
#define REAL128
typedef long double real128;
#endif
#ifndef __STDIO_H__
... |
kun-shang/GRACE-Gravity-Inversion | src/GRACEL1C/l1c2l2.c | /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+--*/
/*
GRACE L1B to L1C & L2
Version: 20 Dec 2011
fixed and stochastic constraint solution
Copyright (c) 2011 <NAME> (<EMAIL>) All Right Reserved
*/
/*--+----1----+----2----+----3----+----4----+----5----+----6----+----7--... |
kun-shang/GRACE-Gravity-Inversion | include/novascon.h | /*
Naval Observatory Vector Astrometry Software (NOVAS)
C Edition, Version 3.1
novascon.h: Header file for novascon.c
U. S. Naval Observatory
Astronomical Applications Dept.
Washington, DC
http://www.usno.navy.mil/USNO/astronomical-applications
*/
#ifndef _CONSTS_
#define _CONSTS_
extern con... |
kun-shang/GRACE-Gravity-Inversion | src/numrs/numrs.h | <reponame>kun-shang/GRACE-Gravity-Inversion
/*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+--*/
#ifndef _NUMRS_H_
#define _NUMRS_H_
#ifndef __STDIO_H__
#include <stdio.h>
#endif
#ifndef __MATH_H__
#include <math.h>
#endif
#ifndef __STRING_H__
... |
kun-shang/GRACE-Gravity-Inversion | include/grvts.h | /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+--*/
#ifndef _GRVTS_H_
#define _GRVTS_H_
#ifndef __STDIO_H__
#include <stdio.h>
#endif
#ifndef __MATH_H__
#include <math.h>
#endif
#ifndef __STRING_H__
#include <string.h>
#endif
#ifn... |
kun-shang/GRACE-Gravity-Inversion | src/GraceReadSW/GRACEsyspath.h | /* $Id: GRACEsyspath.h,v 1.1 2009/06/03 22:53:17 glk Exp glk $ */
const int8_t *GRACESystemPath = "./";
|
kun-shang/GRACE-Gravity-Inversion | src/GRACEL1C/orb2l1c.c | <filename>src/GRACEL1C/orb2l1c.c
/*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+--*/
/*
GRACE L1B to L1C & L2
Version: 20 Dec 2011
fixed and stochastic constraint solution
Copyright (c) 2011 <NAME> (<EMAIL>) All Right Reserved
*/
/*--+----1----+----2----+----3----+----... |
kun-shang/GRACE-Gravity-Inversion | src/GRACEL1C/fitgps.c | <gh_stars>0
/*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+--*/
/*
Solar-system Model and Orbit Determination
SMOD
Version: 1008mars (20 Aug 2010)
Version: smod_1201 (1 Jan 2012)
Copyright (c) 2010 <NAME> (<EMAIL>) All Right Reserved
Copyright (c... |
kun-shang/GRACE-Gravity-Inversion | src/GRACEL1C/geteigen.c | /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+--*/
/*
Generate global geoid/gravity/... to see stripes from SHCs
Version: 14 DEC 2011
Copyright (c) 2010 <NAME> (<EMAIL>) All Right Reserved
NOT FULLY VALIDATED -- SUBJECT TO CORRECTION
*/
/*--+----1----+----2----+... |
kun-shang/GRACE-Gravity-Inversion | include/eph_manager.h | /*
Naval Observatory Vector Astrometry Software (NOVAS)
C Edition, Version 3.1
eph_manager.h: Header file for eph_manager.c
U. S. Naval Observatory
Astronomical Applications Dept.
Washington, DC
http://www.usno.navy.mil/USNO/astronomical-applications
*/
#ifndef _EPHMAN_
#define _EPHMAN_
/*
S... |
kun-shang/GRACE-Gravity-Inversion | src/grace/smod.c |
#ifndef _SMOD_H_
#include "smod.h"
#endif
#ifndef _COORD_H_
#include "coord.h"
#endif
#ifndef _GRVTS_H_
#include "grvts.h"
#endif
#ifndef _l1b2l1c_H_
#include "l1b2l1c.h"
#endif
void pt_orb (double ts_orb, double te_orb, double step_orb, int dim_eph)
{
FILE ... |
mir-taqi/MMMediaPicker | MMMediaPicker/Classes/MMAlbumCell.h | //
// AlbumCell.h
// ImagePicker
//
// Created by <NAME> on 25/12/2019.
// Copyright © 2019 Sejel Technology. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface MMAlbumCell : UITableViewCell{
}
@property (nonatomic, readonly) UIImageView *frontImageView;
@property (nonatomic,... |
mir-taqi/MMMediaPicker | MMMediaPicker/Classes/MMCameraViewController.h | //
// MMCameraViewController.h
// ImagePicker
//
// Created by <NAME> on 26/12/2020.
// Copyright © 2020 Sejel Technology. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MMAssetsManager.h"
NS_ASSUME_NONNULL_BEGIN
@protocol MMCameraViewControllerDelegate;
@interface MMCameraViewController : UIViewControl... |
mir-taqi/MMMediaPicker | MMMediaPicker/Classes/MMAlbumPickerViewController.h | <reponame>mir-taqi/MMMediaPicker
//
// ImagePickerViewController.h
// ImagePicker
//
// Created by <NAME> on 25/12/2019.
// Copyright © 2019 Sejel Technology. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MMAssetsManager.h"
#import "MMAlbumCell.h"
#import "MMAssetsViewController.h"
NS_ASSUME_NONNULL_BE... |
mir-taqi/MMMediaPicker | MMMediaPicker/Classes/MMAssetsCollectionViewCell.h | <filename>MMMediaPicker/Classes/MMAssetsCollectionViewCell.h
//
// MMAssetsCollectionViewCell.h
// ImagePicker
//
// Created by <NAME> on 29/12/2019.
// Copyright © 2019 Sejel Technology. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MMCheckMarkView.h"
NS_ASSUME_NONNULL_BEGIN
@interface MMAssetsCollec... |
mir-taqi/MMMediaPicker | MMMediaPicker/Classes/MMAssetsManager.h | //
// MMAssetsManager.h
// ImagePicker
//
// Created by <NAME> on 25/12/2019.
// Copyright © 2019 Sejel Technology. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Photos/Photos.h>
#import <AssetsLibrary/AssetsLibrary.h>
typedef NS_ENUM(NSUInteger, MMMediaType) {
MMMediaTypeGallery,
... |
mir-taqi/MMMediaPicker | MMMediaPicker/Classes/MMMediaPicker.h | <gh_stars>0
//
// MMMediaPicker.h
// ImagePicker
//
// Created by <NAME> on 26/12/2019.
// Copyright © 2019 Sejel Technology. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MMAssetsManager.h"
#import "MMCameraViewController.h"
NS_ASSUME_NONNULL_BEGIN
@class MMMediaPicker;
typedef void (^didFinishPicking)... |
mir-taqi/MMMediaPicker | Example/MMMediaPicker/MMViewController.h | //
// MMViewController.h
// MMMediaPicker
//
// Created by mir-taqi on 12/26/2019.
// Copyright (c) 2019 mir-taqi. All rights reserved.
//
@import UIKit;
@import MMMediaPicker;
@interface MMViewController : UIViewController{
}
@end
|
mir-taqi/MMMediaPicker | MMMediaPicker/Classes/MMCheckMarkView.h | <reponame>mir-taqi/MMMediaPicker
//
// MMCheckMarkView.h
// ImagePicker
//
// Created by <NAME> on 25/12/2019.
// Copyright © 2019 Sejel Technology. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface MMCheckMarkView : UIView
@property (nonatomic) UIColor *borderColor UI_APPEARANCE... |
mir-taqi/MMMediaPicker | MMMediaPicker/Classes/MMAssetsViewController.h | //
// MMAssetsViewController.h
// ImagePicker
//
// Created by <NAME> on 25/12/2019.
// Copyright © 2019 Sejel Technology. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MMAssetsCollectionViewCell.h"
#import "MMAssetsManager.h"
#import "MMMediaPicker.h"
NS_ASSUME_NONNULL_BEGIN
@interface MMAssetsViewC... |
hbirchtree/shaderc | libshaderc_util/include/libshaderc_util/mutex.h | // Copyright 2015 The Shaderc Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by a... |
hbirchtree/shaderc | libshaderc_util/include/libshaderc_util/version_profile.h | <filename>libshaderc_util/include/libshaderc_util/version_profile.h
// Copyright 2015 The Shaderc Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// h... |
hbirchtree/shaderc | libshaderc_util/include/libshaderc_util/file_finder.h | <gh_stars>1000+
// Copyright 2015 The Shaderc Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unle... |
hbirchtree/shaderc | glslc/src/file.h | // Copyright 2015 The Shaderc Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by a... |
hbirchtree/shaderc | glslc/src/file_includer.h | <reponame>hbirchtree/shaderc<gh_stars>1000+
// Copyright 2015 The Shaderc Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/lic... |
hbirchtree/shaderc | glslc/src/shader_stage.h | // Copyright 2015 The Shaderc Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by a... |
hbirchtree/shaderc | libshaderc/src/shaderc_c_smoke_test.c | // Copyright 2016 The Shaderc Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by a... |
hbirchtree/shaderc | glslc/src/resource_parse.h | <filename>glslc/src/resource_parse.h
// Copyright 2016 The Shaderc Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/L... |
hbirchtree/shaderc | libshaderc_util/include/libshaderc_util/io.h | <reponame>hbirchtree/shaderc
// Copyright 2015 The Shaderc Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2... |
sschragen/cc_lib | src/cc_lib.c | #include "cc_lib.h"
bool mgos_cc_lib_init(void) {
return true;
}
|
sschragen/cc_lib | build/gen/mgos_config.h | <gh_stars>0
/*
* Generated file - do not edit.
* Command: /mongoose-os/fw/tools/gen_sys_config.py --c_name=mgos_config --c_global_name=mgos_sys_config --dest_dir=/fwbuild-volumes/2.3/apps/cc_lib/esp8266/build_contexts/build_ctx_186311031/build/gen/ /mongoose-os/fw/src/mgos_debug_udp_config.yaml /mongoose-os/fw/src/mg... |
sschragen/cc_lib | src/cc_lib.h | #ifndef CS_MOS_LIBS_CC_LIB_
#define CS_MOS_LIBS_CC_LIB_
#include "mgos.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
// bool mgos_pwm_set(int pin, int freq, float duty);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* CS_MOS_LIBS_CC_LIB_ */ |
DierkJ/ESP32-Paxcounter | include/sds011read.h | <reponame>DierkJ/ESP32-Paxcounter
#ifndef _SDS011READ_H
#define _SDS011READ_H
#include "globals.h"
#include <SDS011.h>
#define SDCARD_FILE_HEADER_SDS011 ", PM10,PM25"
bool sds011_init();
void sds011_loop();
void sds011_sleep(void);
void sds011_wakeup(void);
void sds011_store(sdsStatus_t *sds_store);
#endif // _... |
DierkJ/ESP32-Paxcounter | src/hal/m5fire.h | // clang-format off
// upload_speed 921600
// board m5stack-fire
#ifndef _M5FIRE_H
#define _M5FIRE_H
#include <stdint.h>
#define HAS_LORA 1 // comment out if device shall not send data via LoRa or has no M5 RA01 LoRa module
#define LORA_SCK SCK
#define LORA_CS SS
#define LORA_MISO MISO
#define LORA_MOSI MOSI
#def... |
DierkJ/ESP32-Paxcounter | include/display.h | #ifndef _DISPLAY_H
#define _DISPLAY_H
#include "cyclic.h"
#include "qrcode.h"
#if (HAS_DISPLAY) == 1
#include <ss_oled.h>
#elif (HAS_DISPLAY) == 2
#include <bb_spi_lcd.h>
#else
#error Unknown display type
#endif
#define DISPLAY_PAGES (7) // number of paxcounter display pages
// settings for display library
#define ... |
DierkJ/ESP32-Paxcounter | src/hal/m5core.h | <reponame>DierkJ/ESP32-Paxcounter<gh_stars>0
// clang-format off
// upload_speed 921600
// board m5stack-core-esp32
#ifndef _M5CORE_H
#define _M5CORE_H
#include <stdint.h>
#define HAS_LORA 1 // comment out if device shall not send data via LoRa or has no M5 RA01 LoRa module
#define LORA_SCK SCK
#define LORA_CS SS... |
DierkJ/ESP32-Paxcounter | include/solar.h | <gh_stars>0
#ifndef _SOLAR_H
#define _SOLAR_H
#include <Arduino.h>
#include <driver/adc.h>
#include <esp_adc_cal.h>
#include "i2c.h"
#include "reset.h"
#ifdef HAS_SOLAR
#include <Adafruit_INA219.h>
enum chargeState_t { CHARGING, DISCHARGING };
//
// solar charger status
//
typedef struct {
float fSolarVoltage; ... |
MikkoZ-Rohm/rohm-bm1383-hello-arduino | rohm-bm1383-glv/rohm-bm1383-glv/bm1383glv.h | <filename>rohm-bm1383-glv/rohm-bm1383-glv/bm1383glv.h<gh_stars>0
/* Copyright 2016 <NAME>
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.... |
MikkoZ-Rohm/rohm-bm1383-hello-arduino | rohm-sensor-hal/rohm-sensor-hal/I2CCommon.h | <filename>rohm-sensor-hal/rohm-sensor-hal/I2CCommon.h
/* Copyright 2016 <NAME>
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
Unles... |
MikkoZ-Rohm/rohm-bm1383-hello-arduino | rohm-bm1383-glv/rohm-bm1383-glv/bm1383_driver.h | /* Copyright 2016 <NAME>ductor
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... |
jzbeditorDemo/editDemo_JZB | RichEditorViewSample/Pods/DTCoreText/Core/Source/DTTextBlock.h | //
// DTTextBlock.h
// DTCoreText
//
// Created by <NAME> on 04.03.12.
// Copyright (c) 2012 <EMAIL>. All rights reserved.
//
#import "DTCompatibility.h"
/**
Class that represents a block of text with attributes like padding or a background color.
*/
@interface DTTextBlock : NSObject <NSCoding>
/**
The space ... |
silverstringer/plugins | src/Task.h | #pragma once
#include <memory>
#include <iostream>
#include <boost/program_options.hpp>
#include "macros.h"
#include "Sota.h"
namespace plugin {
namespace bpo = boost::program_options;
using options_description = boost::program_options::options_description;
using variables_map = boost::program_options::... |
silverstringer/plugins | src/Container.h | #pragma once
#include <vector>
#include <mutex>
#include <memory>
#include <cassert>
#include <algorithm>
template<typename T>
class Container {
public:
explicit Container();
~Container();
public:
void addItem(T *item);
bool contains(T *item);
T *getItem(T *item);
std::vector<T *> getAllI... |
silverstringer/plugins | src/Sota.h | #pragma once
#include <iostream>
#include <fstream>
#include <vector>
#include <map>
#include <memory>
#include <algorithm>
#include <array>
#include <cassert>
#include <random>
#include <set>
#include "macros.h"
namespace plugin {
namespace sota {
using std::vector;
using std::map;
using std::set;... |
silverstringer/plugins | src/macros.h | <filename>src/macros.h
#define DECLARE_NO_COPY_CLASS(classname) \
private: \
classname(const classname&) = delete; \
classname& operator=(const classname&) = delete;
#define DECLARE_CONSTR_DESTR_CLASS(classname) \
public: ... |
e3243eric/HiiBrowser | HiiBrowser.h | #ifndef _HII_BROWSER_H_
#define _HII_BROWSER_H_
#include <Uefi.h>
#include <Library/HiiLib.h>
#include <Library/UefiLib.h>
#include <Library/UefiHiiServicesLib.h>
#include <Library/UefiApplicationEntryPoint.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/DebugLib.h>
VOID
DumpHiiPackageLists (
IN EFI_H... |
e3243eric/HiiBrowser | DumpHii.c | #include "HiiBrowser.h"
#include "DumpHii.h"
GLOBAL_REMOVE_IF_UNREFERENCED const TYPE_TO_TEXT_TABLE mHiiPackageToTextTable[] = {
{EFI_HII_PACKAGE_TYPE_ALL, L"All Pseudo-package"},
{EFI_HII_PACKAGE_TYPE_GUID, L"Guid package"},
{EFI_HII_PACKAGE_FORMS, L"Forms package"},
{EFI_HII_PACK... |
e3243eric/HiiBrowser | DumpHii.h |
#ifndef _UEFI_DEVICE_PATH_LIB_H_
#define _UEFI_DEVICE_PATH_LIB_H_
#include <Uefi.h>
//
// Private Data structure
//
typedef struct {
UINT8 Type;
CHAR16 *Text;
} TYPE_TO_TEXT_TABLE;
#endif
|
e3243eric/HiiBrowser | HiiBrowser.c | #include "HiiBrowser.h"
EFI_STATUS
EFIAPI
HiiBrowserEntry (
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
)
{
UINTN Index;
UINTN BufferSize;
EFI_STATUS Status;
EFI_HII_HANDLE *HiiHandles = NULL;
EFI_... |
evilwan/hash_extender | test.h | <reponame>evilwan/hash_extender<filename>test.h
#ifndef __TEST_H__
#define __TEST_H__
#include "util.h"
void test_check_memory(char *description, uint8_t *expected, uint64_t expected_length, uint8_t *result, uint64_t result_length);
void test_check_integer(char *description, uint32_t expected, uint32_t result);
void ... |
evilwan/hash_extender | formats.h | #ifndef __FORMATS_H__
#define __FORMATS_H__
/* formats.h
* By <NAME>
* Created September/2012
*
* See LICENSE.txt
*
* This module implements encoders/decoders of various formats. It was
* originally written for the hash_extender tool, but is generic enough to be
* used elsewhere.
*
* As a programmer, you bas... |
evilwan/hash_extender | util.h | <gh_stars>100-1000
#ifndef _UTIL_H_
#define _UTIL_H_
#include <err.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
void print_hex(unsigned char *data, unsigned int length);
void print_hex_fancy(uint8_t *data, uint64_t len... |
evilwan/hash_extender | formats.c | #include <ctype.h>
#include "buffer.h"
#include "test.h"
#include "util.h"
#include "formats.h"
/* I usually hate prototypes, but I want the array of function pointers at the
* top so I don't really have a choice in this case. */
static uint8_t *encode_none(uint8_t *data, uint64_t data_length, uint64_t *out_length)... |
evilwan/hash_extender | tiger.c | <reponame>evilwan/hash_extender
#include "tiger.h"
static uint64_t t1[] = {
0x02aab17cf7e90c5e, 0xac424b03e243a8ec, 0x72cd5be30dd5fcd3, 0x6d019b93f6f97f3a,
0xcd9978ffd21f9193, 0x7573a1c9708029e2, 0xb164326b922a83c3, 0x46883eee04915870,
0xeaace3057103ece6, 0xc54169b808a3535c, 0x4ce754918ddec47c, 0x0aa2f4dfdc0df40c,
... |
evilwan/hash_extender | util.c | #include <ctype.h>
#include "buffer.h"
#include "test.h"
#include "util.h"
void print_hex(unsigned char *data, unsigned int length)
{
unsigned int i;
for(i = 0; i < length; i++)
printf("%02x", data[i]);
printf("\n");
}
static char get_character_from_byte(uint8_t byte)
{
if(byte < 0x20 || byte > 0x7F)
... |
evilwan/hash_extender | hash_extender_engine.h | #ifndef __HASH_EXTENDER_ENGINE_H__
#define __HASH_EXTENDER_ENGINE_H__
/* hash_extender_engine.h
* By <NAME>
* Created September/2012
*
* See LICENSE.txt
*
* This module implements a hash length extension attack against a variety of
* hash types, and can easily be modified to accept more.
*
* As a user, there ... |
evilwan/hash_extender | buffer.h | /* buffer.h
* By Ron
* Created August, 2008
*
* (See LICENSE.txt)
*
* This is a generic class for buffering (marshalling) data that in many ways
* dates back to my days as a Battle.net developers. It gives programmers an
* easy way to prepare data to be sent on the network, as well as a simplified
* way to bui... |
MrJaeqx/ESA--WORK | youbot/youbot_driver/include/youbot_driver/generic/dataobjectlockfree/os/oro_i386/oro_arch.h | /***************************************************************************
tag: <NAME> Mon Jan 10 15:59:15 CET 2005 oro_atomic.h
oro_atomic.h - description
-------------------
begin : Mon January 10 2005
copyright : (C) 2005 <N... |
MrJaeqx/ESA--WORK | youbot/youbot_driver/include/youbot_driver/generic/dataobjectlockfree/os/oro_msvc/oro_arch.h | //#include "../../rtt-config.h"
#ifndef __ARCH_MSVC_ORO_ATOMIC__
#define __ARCH_MSVC_ORO_ATOMIC__
#include <windows.h>
#undef interface
#include <intrin.h>
typedef volatile long oro_atomic_t;
#define ORO_ATOMIC_SETUP oro_atomic_set
#define ORO_ATOMIC_CLEANUP(a_int)
#define oro_atomic_read(a_int) (*(a_int))
#defin... |
MrJaeqx/ESA--WORK | youbot/youbot_driver/include/youbot_driver/generic/dataobjectlockfree/os/oro_gcc/oro_arch.h | <filename>youbot/youbot_driver/include/youbot_driver/generic/dataobjectlockfree/os/oro_gcc/oro_arch.h
#ifndef __GCC_ORO_ARCH__
#define __GCC_ORO_ARCH__
//#include "../../rtt-config.h"
/**
* Structure that contains an int for atomic
* operations.
*/
typedef struct {
int volatile cnt;
} oro_atomic_t;
#define OR... |
MrJaeqx/ESA--WORK | youbot/youbot_driver/src/soem/osal/win32/osal.c | <gh_stars>1-10
/******************************************************************************
* * *** ***
* *** *** ***
* *** **** ********** *** ***** *** **** *****
* ********* ********** ***... |
MrJaeqx/ESA--WORK | youbot/youbot_driver/include/youbot_driver/generic/dataobjectlockfree/os/oro_powerpc/oro_atomic.h | /***************************************************************************
tag: FMTC Tue Mar 11 21:49:19 CET 2008 oro_atomic.h
oro_atomic.h - description
-------------------
begin : Tue March 11 2008
copyright : (C) 2008 FMTC
... |
MrJaeqx/ESA--WORK | youbot/youbot_driver/include/youbot_driver/soem/oshw/rtk/lw_mac/lw_emac.h | /*
* author: <NAME>
*/
#ifndef LWIP_MAC_H
#define LWIP_MAC_H
int bfin_EMAC_init(uint8_t *enetaddr);
int bfin_EMAC_send(void *packet, int length);
int bfin_EMAC_recv(uint8_t * packet, size_t size);
#endif /* LWIP_MAC_H */
|
MrJaeqx/ESA--WORK | youbot/youbot_driver/src/soem/osal/linux/osal.c | /******************************************************************************
* * *** ***
* *** *** ***
* *** **** ********** *** ***** *** **** *****
* ********* ********** *** *********... |
MrJaeqx/ESA--WORK | youbot/youbot_driver/include/youbot_driver/generic/dataobjectlockfree/os/oro_powerpc/oro_system.h | /***************************************************************************
tag: FMTC Tue Mar 11 21:49:19 CET 2008 oro_system.h
oro_system.h - description
-------------------
begin : Tue March 11 2008
copyright : (C) 2008 FMTC
... |
MrJaeqx/ESA--WORK | youbot/youbot_driver/include/youbot_driver/generic/dataobjectlockfree/os/oro_arm/oro_arch.h | /***************************************************************************
* File copied from
* https://github.com/psoetens/orocos-rtt/blob/arm-port/src/os/oro_atomic.h
***************************************************************************
* This library is free software; you can redistribute it an... |
MrJaeqx/ESA--WORK | youbot/youbot_driver/src/soem/oshw/rtk/nicdrv.c | /*
* Simple Open EtherCAT Master Library
*
* File : nicdrv.c
* Version : 1.3.0
* Date : 24-02-2013
* Copyright (C) 2005-2013 <NAME> v.o.f.
* Copyright (C) 2005-2013 <NAME>
* Copyright (C) 2008-2009 TU/e Technische Universiteit Eindhoven
*
* SOEM is free software; you can redistribute it and/... |
MrJaeqx/ESA--WORK | youbot/youbot_driver/include/youbot_driver/generic/dataobjectlockfree/os/oro_arch.h | <filename>youbot/youbot_driver/include/youbot_driver/generic/dataobjectlockfree/os/oro_arch.h
//#include "../rtt-config.h"
# if defined(_MSC_VER)
# include "youbot_driver/generic/dataobjectlockfree/os/oro_msvc/oro_arch.h"
# elif defined(__GNUC__)
# if ( OROBLD_GCC_VERSION < 40100 || defined(__clang__) )
# ... |
MrJaeqx/ESA--WORK | youbot/youbot_driver_ros_interface/include/youbot_trajectory_action_server/joint_trajectory_action.h | /******************************************************************************
* Copyright (c) 2011
* GPS GmbH
*
* Author:
* <NAME>
*
*
* This software is published under a dual-license: GNU Lesser General Public
* License LGPL 2.1 and BSD license. The dual-license implies that users of this
* code may choos... |
MrJaeqx/ESA--WORK | youbot/youbot_driver/include/youbot_driver/soem/ethercatdc.h | <reponame>MrJaeqx/ESA--WORK
/*
* Simple Open EtherCAT Master Library
*
* File : ethercatdc.h
* Version : 1.3.0
* Date : 24-02-2013
* Copyright (C) 2005-2013 <NAME> v.o.f.
* Copyright (C) 2005-2013 <NAME>
* Copyright (C) 2008-2009 TU/e Technische Universiteit Eindhoven
*
* SOEM is free softwa... |
MrJaeqx/ESA--WORK | youbot/youbot_driver/include/youbot_driver/soem/ethercatsoe.h | /*
* Simple Open EtherCAT Master Library
*
* File : ethercatsoe.h
* Version : 1.3.0
* Date : 24-02-2013
* Copyright (C) 2005-2013 <NAME> v.o.f.
* Copyright (C) 2005-2013 <NAME>
* Copyright (C) 2008-2009 TU/e Technische Universiteit Eindhoven
*
* SOEM is free software; you can redistribute it... |
MrJaeqx/ESA--WORK | youbot/youbot_driver/include/youbot_driver/soem/oshw/linux/nicdrv.h | /*
* Simple Open EtherCAT Master Library
*
* File : nicdrv.h
* Version : 1.3.0
* Date : 24-02-2013
* Copyright (C) 2005-2013 <NAME> v.o.f.
* Copyright (C) 2005-2013 <NAME>
* Copyright (C) 2008-2009 TU/e Technische Universiteit Eindhoven
*
* SOEM is free software; you can redistribute it and/... |
MrJaeqx/ESA--WORK | youbot/youbot_driver/src/soem/oshw/rtk/lw_mac/lw_emac.c | /******************************************************************************
* * *** ***
* *** *** ***
* *** **** ********** *** ***** *** **** *****
* ********* ********** *** *********... |
MrJaeqx/ESA--WORK | youbot/youbot_driver/include/youbot_driver/soem/ethercatprint.h | <reponame>MrJaeqx/ESA--WORK
/*
* Simple Open EtherCAT Master Library
*
* File : ethercatprint.h
* Version : 1.3.0
* Date : 24-02-2013
* Copyright (C) 2005-2013 <NAME> v.o.f.
* Copyright (C) 2005-2013 <NAME>
* Copyright (C) 2008-2009 TU/e Technische Universiteit Eindhoven
*
* SOEM is free sof... |
MrJaeqx/ESA--WORK | youbot/youbot_driver/src/soem/oshw/win32/oshw.c | /******************************************************************************
* * *** ***
* *** *** ***
* *** **** ********** *** ***** *** **** *****
* ********* ********** *** *********... |
MrJaeqx/ESA--WORK | youbot/youbot_driver/include/youbot_driver/soem/ethercattype.h | /*
* Simple Open EtherCAT Master Library
*
* File : ethercattype.h
* Version : 1.3.0
* Date : 24-02-2013
* Copyright (C) 2005-2013 <NAME> v.o.f.
* Copyright (C) 2005-2013 <NAME>
* Copyright (C) 2008-2009 TU/e Technische Universiteit Eindhoven
*
* SOEM is free software; you can redistribute i... |
MrJaeqx/ESA--WORK | youbot/youbot_driver_ros_interface/include/youbot_driver_ros_interface/YouBotOODLWrapper.h | <filename>youbot/youbot_driver_ros_interface/include/youbot_driver_ros_interface/YouBotOODLWrapper.h<gh_stars>1-10
/******************************************************************************
* Copyright (c) 2011
* Locomotec
*
* Author:
* <NAME>
*
*
* This software is published under a dual-license: GNU Less... |
MrJaeqx/ESA--WORK | youbot/youbot_driver/src/soem/oshw/rtk/oshw.c | /******************************************************************************
* * *** ***
* *** *** ***
* *** **** ********** *** ***** *** **** *****
* ********* ********** *** *********... |
MrJaeqx/ESA--WORK | youbot/youbot_driver_ros_interface/include/youbot_trajectory_action_server/joint_state_observer.h | /******************************************************************************
* Copyright (c) 2011
* GPS GmbH
*
* Author:
* <NAME>
*
*
* This software is published under a dual-license: GNU Lesser General Public
* License LGPL 2.1 and BSD license. The dual-license implies that users of this
* code may choos... |
MrJaeqx/ESA--WORK | youbot/youbot_driver/include/youbot_driver/soem/osal/osal.h | <gh_stars>1-10
/******************************************************************************
* * *** ***
* *** *** ***
* *** **** ********** *** ***** *** **** *****
* ********* ********** ***... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.