repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
EBI-Metagenomics/lite-pack | include/lite_pack/1darray/file/write_int_data_in.h | #ifndef LITE_PACK_1DARRAY_FILE_WRITE_INT_DATA_IN_H
#define LITE_PACK_1DARRAY_FILE_WRITE_INT_DATA_IN_H
#include "lite_pack/export.h"
#include <stdbool.h>
#include <stdint.h>
struct lip_file;
#define __lip_write_1darray_signed_data_in(f, s, a) \
sizeof(*a) == 1 ? lip_write_1darray_i8_d... |
EBI-Metagenomics/lite-pack | include/lite_pack/load_ext.h | #ifndef LITE_PACK_LOAD_EXT_H
#define LITE_PACK_LOAD_EXT_H
#include "lite_pack/first_byte.h"
#include "load_number.h"
static inline unsigned __lip_load_fixext(unsigned char const buf[],
uint8_t *type)
{
*type = __lip_load_num8(buf).u;
return 1;
}
static inline unsigned... |
EBI-Metagenomics/lite-pack | src/file/write_bool.c | #include "lite_pack/file/file.h"
#include "lite_pack/pack_bool.h"
bool lip_write_bool(struct lip_file *file, bool val)
{
if (file->error) return false;
unsigned sz = lip_pack_bool(file->buf, val);
return !(file->error = fwrite(file->buf, sz, 1, file->fp) != 1);
}
|
EBI-Metagenomics/lite-pack | src/1darray/file/write.c | <filename>src/1darray/file/write.c
#include "1darray/pack.h"
#include "lite_pack/1darray/1darray.h"
#include "lite_pack/file/file.h"
bool lip_write_1darray_size_type(struct lip_file *file, unsigned size,
enum lip_1darray_type type)
{
if (file->error) return false;
unsigned sz ... |
EBI-Metagenomics/lite-pack | src/format.c | #include "lite_pack/format.h"
#include <assert.h>
#include <limits.h>
#include <stdlib.h>
char const __lip_format_string[][24] = {
[LIP_FMT_POSITIVE_FIXINT] = "LIP_FMT_POSITIVE_FIXINT",
[LIP_FMT_FIXMAP] = "LIP_FMT_FIXMAP",
[LIP_FMT_FIXARRAY] = "LIP_FMT_FIXARRAY",
[LIP_FMT_FIXSTR] = "LIP_FMT_FIXSTR",
... |
EBI-Metagenomics/lite-pack | src/1darray/file/write_int_data_in.c | #include "lite_pack/1darray/file/write_int_data_in.h"
#include "1darray/pack_int_in.h"
#include "lite_pack/file/file.h"
/* SIGNED */
bool lip_write_1darray_i8_data_in(struct lip_file *file, unsigned size,
int8_t arr[])
{
if (file->error) return false;
pack_1darray_i8_data_in... |
EBI-Metagenomics/lite-pack | src/1darray/file/read_int.c | #include "lite_pack/1darray/file/read_int.h"
#include "1darray/unpack_int_in.h"
#include "lite_pack/file/file.h"
#include "lite_pack/stdio_unlocked.h"
/* SIGNED */
bool lip_read_1darray_i8_data(struct lip_file *file, unsigned size,
int8_t arr[])
{
if (file->error) return false;
... |
EBI-Metagenomics/lite-pack | src/1darray/pack_int.c | #include "1darray/pack_int.h"
#include "lite_pack/store_int.h"
void pack_1darray_i8_data(unsigned char buf[], unsigned size,
int8_t const arr[])
{
for (unsigned i = 0; i < size; ++i)
buf += lip_store_i8(buf, arr[i]);
}
void pack_1darray_i16_data(unsigned char buf[], unsigned size... |
EBI-Metagenomics/lite-pack | include/lite_pack/lite_pack.h | #ifndef LITE_PACK_LITE_PACK_H
#define LITE_PACK_LITE_PACK_H
#include "lite_pack/export.h"
#include "lite_pack/format.h"
#include "lite_pack/load_float.h"
#include "lite_pack/load_int.h"
#include "lite_pack/pack_array.h"
#include "lite_pack/pack_bool.h"
#include "lite_pack/pack_ext.h"
#include "lite_pack/pack_float.h"
... |
EBI-Metagenomics/lite-pack | src/unpack_array.c | <reponame>EBI-Metagenomics/lite-pack
#include "lite_pack/unpack_array.h"
#include "lite_pack/format.h"
#include "lite_pack/load_number.h"
unsigned lip_unpack_array_size(unsigned char const buf[], unsigned *size)
{
switch (lip_format(buf[0]))
{
case LIP_FMT_FIXARRAY:
*size = (unsigned)__lip_format_f... |
EBI-Metagenomics/lite-pack | include/lite_pack/first_byte.h | #ifndef LITE_PACK_FIRST_BYTE_H
#define LITE_PACK_FIRST_BYTE_H
#include "lite_pack/export.h"
#include "lite_pack/format.h"
LIP_API unsigned char __lip_first_byte(enum lip_format format);
LIP_API unsigned char __lip_first_byte_fix(enum lip_format format, int val);
#endif
|
EBI-Metagenomics/lite-pack | include/lite_pack/file/write_float.h | #ifndef LITE_PACK_FILE_WRITE_FLOAT_H
#define LITE_PACK_FILE_WRITE_FLOAT_H
#include "lite_pack/export.h"
#include <stdbool.h>
#define __lip_write_float(f, v) \
_Generic((v), float : __lip_write_f32, double : __lip_write_f64)(f, v)
struct lip_file;
LIP_API bool __lip... |
EBI-Metagenomics/lite-pack | test/lorem.c | <reponame>EBI-Metagenomics/lite-pack
#include "lorem.h"
#include <stdlib.h>
#define array_size(arr) (sizeof(arr) / sizeof((arr)[0]))
static char const paragraph[] =
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod "
"tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim ... |
EBI-Metagenomics/lite-pack | include/lite_pack/endian.h | #ifndef LITE_PACK_ENDIAN_H
#define LITE_PACK_ENDIAN_H
#include "lite_pack/compiler.h"
#include <arpa/inet.h>
#include <stdbool.h>
#if __APPLE__
#include <machine/endian.h>
#else
#include <endian.h>
#endif
#if BYTE_ORDER != LITTLE_ENDIAN && BYTE_ORDER != BIG_ENDIAN
#error We are supporting little and big endian only ... |
EBI-Metagenomics/lite-pack | src/file/read_float.c | #include "lite_pack/file/file.h"
#include "lite_pack/format.h"
#include "lite_pack/stdio_unlocked.h"
#include "lite_pack/unpack_float.h"
bool __lip_read_f32(struct lip_file *file, float *val)
{
if (file->error) return false;
file->error = lip_fread(file->buf, 1, 1, file->fp) != 1;
if (file->error) return ... |
EBI-Metagenomics/lite-pack | include/lite_pack/1darray/file/write_int_item.h | #ifndef LITE_PACK_1DARRAY_FILE_WRITE_INT_ITEM_H
#define LITE_PACK_1DARRAY_FILE_WRITE_INT_ITEM_H
#include "lite_pack/export.h"
#include "lite_pack/file/file.h"
#include "lite_pack/store_int.h"
#include <stdint.h>
struct lip_file;
#define __lip_write_1darray_signed_item(f, i) \
siz... |
EBI-Metagenomics/lite-pack | src/file/read_int.c | #include "lite_pack/file/file.h"
#include "lite_pack/format.h"
#include "lite_pack/stdio_unlocked.h"
#include "lite_pack/unpack_int.h"
static inline void read_int(struct lip_file *file, unsigned char buf[])
{
file->error = lip_fread(buf, 1, 1, file->fp) != 1;
if (file->error) return;
unsigned sz = 0;
... |
smallker/pe-air-quality | Lolin/src/polines.h | const unsigned char polines [] = {
// 'Logo-Polines-Politeknik-Negeri-Semarang-Hitam-Putih-Original, 128x64px
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, ... |
mooseman/pd_readline | pdrl.c | <reponame>mooseman/pd_readline
/* pdrl.c */
/* Some code to allow the editing of a command-line. */
/* You can also move around with the left and right */
/* arrow keys, and recall previous commands with the */
/* up-arrow key. ... |
yetanothergithubuser/HEXReader | include/HEXReader.h | <filename>include/HEXReader.h
#ifndef HEXReader_H__
#define HEXReader_H__
#pragma once
#ifdef HEXSTATICLIB
#define HEXDLLEXPORT
#else
#ifdef HEXREADER_EXPORTS
#define HEXDLLEXPORT __declspec(dllexport)
#else
#define HEXDLLEXPORT __declspec(dllimport)
#endif
#endif
//#include <Windows.h>
//#include <TlHelp3... |
lenniea/WinESCAPI | resource.h | //{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by winescapi.rc
//
#define IDC_WINESCAPI 100
#define IDM_CLOSE 101
#define IDD_CAPTURE 102
#define IDM_EXIT 102
#define IDS_APP_TITLE ... |
fdvmoreira/SortingAlgorithm | SelectionSort.h | //
// Created by <NAME> on 11/10/2020.
//
#ifndef SORTINGALGORITHMS_SELECTIONSORT_H
#define SORTINGALGORITHMS_SELECTIONSORT_H
/**
* Sort the array
* @param array to be sorted
* @param size of the array
* @return the sorted array
*/
extern int *selectionSort(int *, const int&);
/**
* @brief Print an array of a... |
Jaymon/CocoaLumberjill | CocoaLumberjill/CLJLogFormatter.h | <reponame>Jaymon/CocoaLumberjill
// Created by <NAME> on 9/28/16.
@import Foundation;
#import <CocoaLumberjack/CocoaLumberjack.h>
/**
* Internal logging formatter class, I found the default system logging really verbose
* in a bad way, full of useless information and yet taking up half of the console,
* this f... |
Jaymon/CocoaLumberjill | CocoaLumberjill/CLJLogEmail.h | <gh_stars>0
// Created by <NAME> on 9/28/16.
@import UIKit;
/**
if you want to get feedback on if the email sent or not, then the ViewController (VC)
you pass into the composeEmailUsingController:...to... method can conform to this
protocol and receive feedback
*/
@protocol CocoaLumberjillEmailDelegate <NSObjec... |
Jaymon/CocoaLumberjill | CocoaLumberjill/CocoaLumberjill.h | // Created by <NAME> on 9/12/15.
@import Foundation;
#import <CocoaLumberjack/CocoaLumberjack.h>
#import "CLJLogEmail.h"
#import "CLJLogMacros.h"
/**
* CocoaLumberjack needs this to function, it's set through setLogLevelFromString:
*
* @see setLogLevelFromString:
*/
extern DDLogLevel ddLogLevel;
/**
* Han... |
Jaymon/CocoaLumberjill | Example/CocoaLumberjillExample/AppDelegate.h | //
// AppDelegate.h
// CocoaLumberjillExample
//
// Created by <NAME> on 9/28/16.
// Copyright © 2016 CLJ. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
Jaymon/CocoaLumberjill | CocoaLumberjill/CLJLogMacros.h | // Created by <NAME> on 9/28/16.
#import "DDLog.h"
// DEPRECATED 10-2-2016, use the DDLogMethodDebug macro, turns out I wanted to do the
// same thing on verbose also, so this has been expanded into 2 different macros
#define DDLogMethod() LOG_MAYBE(LOG_ASYNC_ENABLED, LOG_LEVEL_DEF, DDLogFlagDebug, 0, nil, __PRETTY_... |
zhfish/UITableViewFixCategory | UITableView+fix.h | <filename>UITableView+fix.h<gh_stars>1-10
//
// UITableView+fix.h
//
//
// Created by zhfish on 14/12/8.
// Copyright (c) 2014年 zhfish. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UITableView (fix)
@end
|
livesxu/CustomPickView | PickerDemo/PickerDemo/CustomPickView/PickViewCustom.h | //
// PickViewCustom.h
// TESTTF
//
// Created by Livespro on 2016/11/10.
// Copyright © 2016年 FZ. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "PickerCustomModel.h"
#define KScreenPickViewWidth [UIScreen mainScreen].bounds.size.width
#define KScreenPickViewHeight 250
#define KScreenPickViewToolHeight ... |
livesxu/CustomPickView | PickerDemo/PickerDemo/CustomPickView/UIView+Picker.h | //
#import <UIKit/UIKit.h>
#import "PickViewCustom.h"
typedef void(^PickData)(NSArray<PickerCustomModel *> *dataArray);
@interface UIView (Picker)
@property(strong,nonatomic,readwrite) PickViewCustom *inputView;
-(void)pickCategroyDataSource:(NSArray<NSArray<PickerCustomModel *> *> *)dataSource SourceType:(CustomP... |
livesxu/CustomPickView | PickerDemo/PickerDemo/CustomPickView/PickerCustomModel.h | //
// PickerCustomModel.h
// TESTTF
//
// Created by Livespro on 2016/11/11.
// Copyright © 2016年 FZ. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface PickerCustomModel : NSObject
@property (nonatomic,copy) NSString *pickName;
@property (nonatomic,copy) NSString *pickKey;
@property (nonatom... |
basinilya/fbxkb | src/fbxkb.c | <reponame>basinilya/fbxkb
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
#include <locale.h>
#include <string.h>
#include <signal.h>
#include <X11/Xlib.h>
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <gdk/gdkx.h>
#inc... |
tobozo/ESP32-SIDView | modules/HID/HID_Touch.h | <reponame>tobozo/ESP32-SIDView
#include <Wire.h>
#include "HID_Common.h"
static bool touch_begun = false;
void initTouch()
{
if( touch_begun ) {
return;
}
if (tft.touch()) {
log_i("Touch interface detected");
/*
tft.drawString("touch the arrow marker.", 0, tft.height()>>1);
tft.calibrateTou... |
tobozo/ESP32-SIDView | modules/helpers/UI_Utils.h | <gh_stars>1-10
/*\
ESP32-SIDView
https://github.com/tobozo/ESP32-SIDView
MIT License
Copyright (c) 2020 tobozo
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,... |
tobozo/ESP32-SIDView | modules/UI/SIDVirtualFolders.h | <reponame>tobozo/ESP32-SIDView
//std::vector<folderTypeItem_t> myFolder;
/*
bool myFolderSorter(const folderTypeItem_t &a, const folderTypeItem_t &b)
{
if( a.name == b.name )
return true;
if( b.type == F_PARENT_FOLDER ) return false; // hoist ".."
if( b.type == F_FOLDER && a.type == F_PARENT_FOLDER ) re... |
tobozo/ESP32-SIDView | modules/Filters/LowPass.h | #ifndef LowPass_h
#define LowPass_h
/*
simple resonant filter posted to musicdsp.org by <NAME> http://www.musicdsp.org/archive.php?classid=3#259
// set feedback amount given f and q between 0 and 1
fb = q + q/(1.0 - f);
// for each sample...
buf0 = buf0 + f * (in - buf0 + fb * (buf0 - buf1));
buf1 = buf1 + f * (buf0 -... |
tobozo/ESP32-SIDView | modules/HID/HID_Common.h | #ifndef _HID_COMMON_H
#define _HID_COMMON_H
enum HIDControls
{
HID_NONE = 0,
HID_DOWN = 1, // move down selection
HID_UP = 2, // move up selection
HID_RIGHT = 3, // next song/track
HID_LEFT = 4, // prev song/track
HID_PLAYSTOP = 5, // toggle selected
HID_SEARCH = 6, //... |
tobozo/ESP32-SIDView | modules/SDUpdater/SDUpdaterHooks.h | /*\
ESP32-SIDView
https://github.com/tobozo/ESP32-SIDView
MIT License
Copyright (c) 2020 tobozo
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 with... |
tobozo/ESP32-SIDView | modules/HID/HID_XPad.h | #include <Wire.h>
#include "HID_Common.h"
static bool wire_begun = false;
void initXPad()
{
if( wire_begun ) {
return;
}
Wire.begin( SDA, SCL ); // connect XPadShield
wire_begun = true;
}
void beforeXpadRead()
{
// don't spam I2C
}
void afterXpadRead()
{
// Turn I2C on
}
static unsigned long xPa... |
tobozo/ESP32-SIDView | modules/Downloader/web.h | <gh_stars>1-10
/*\
ESP32-SIDView
https://github.com/tobozo/ESP32-SIDView
MIT License
Copyright (c) 2020 tobozo
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,... |
tobozo/ESP32-SIDView | modules/ADSR/ADSR.h | <filename>modules/ADSR/ADSR.h<gh_stars>1-10
//
// ADRS.h
//
// Created by <NAME> on 12/18/12.
// EarLevel Engineering: earlevel.com
// Copyright 2012 <NAME>
//
// For a complete explanation of the ADSR envelope generator and code,
// read the series of articles by the author, starting here:
// http://www.earleve... |
tobozo/ESP32-SIDView | modules/assets/assets.h | /*\
ESP32-SIDView
https://github.com/tobozo/ESP32-SIDView
MIT License
Copyright (c) 2020 tobozo
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 with... |
tobozo/ESP32-SIDView | modules/HID/HID_Serial.h | #include <Wire.h>
#include "HID_Common.h"
static bool serial_begun = false;
void initSerial()
{
if( serial_begun ) {
return;
}
if( !Serial.available() ) {
//Serial.begin(115200);
}
//Wire.begin( SDA, SCL ); // connect SerialShield
serial_begun = true;
}
void beforeSerialRead()
{
// don't spam... |
tobozo/ESP32-SIDView | modules/helpers/intro_sound.h | <gh_stars>1-10
/*\
ESP32-SIDView
https://github.com/tobozo/ESP32-SIDView
MIT License
Copyright (c) 2020 tobozo
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,... |
tobozo/ESP32-SIDView | modules/HID/HID_USB.h | #include "HID_USB_KbdParser.h"
enum keyToEvents
{
onNone,
onKeyDown,
onKeyUp,
onControlKeysChanged,
onKeyPressed,
onKeyReleased
};
struct keyEvent
{
uint8_t mod = 0;
uint8_t key = 0;
keyToEvents evt = onNone;
char keyStr = 0; // 0 = non printable
bool processed = true;
};
static keyEvent kEvt... |
tobozo/ESP32-SIDView | config.h | <filename>config.h<gh_stars>1-10
#ifndef _SID_CONFIG_H_
#define _SID_CONFIG_H_
// this build's pin setup
#define SID_CLOCK 25
#define SID_DATA 15
#define SID_LATCH 2
#define SID_CLOCK_PIN 26 // optional
// mandatory defines for this app
#define SID_FS M5STACK_SD // from fs::FS filesyst... |
lifehackerhansol/libslim | libslim/source/charset.c | /*
Copyright (c) 2009-2011, <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:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the follo... |
lifehackerhansol/libslim | libslim/include/slim/cache.h | /*
Copyright (c) 2020, chyyran
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 conditions and the following... |
lifehackerhansol/libslim | libslim/source/cache.c | /*
Copyright (c) 2020, chyyran
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 conditions and the following... |
lifehackerhansol/libslim | libslim/source/fat_extension.c | <filename>libslim/source/fat_extension.c
/*
Copyright (c) 2020, chyyran
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, ... |
lifehackerhansol/libslim | libslim/include/slim/ndma.h | <reponame>lifehackerhansol/libslim<filename>libslim/include/slim/ndma.h
#ifndef __SLIM_NDMA_H__
#define __SLIM_NDMA_H__
#include <nds/ndstypes.h>
#define NDMA_SRC(n) (*(vu32*)(0x4004104+(n*0x1C)))
#define NDMA_DEST(n) (*(vu32*)(0x4004108+(n*0x1C)))
#define NDMA_SZ(n) (*(vu32*)(0x4004110+(n*0x1C)))
#define NDMA_CR(n)... |
lifehackerhansol/libslim | examples/simple/source/directory.c | #include <nds.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
#include <unistd.h>
#include <slim.h>
#include <nds/debug.h>
//---------------------------------------------------------------------------------
int main(int argc, char **argv)
{
//----------------------------------------... |
lifehackerhansol/libslim | libslim/source/diskio.c | /*
Copyright (c) 2007, ChaN
Copyright (c) 2020, chyyran
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... |
lifehackerhansol/libslim | libslim/include/slim/memcopy.h |
#ifndef __SLIM_MEMCOPY_H__
#define __SLIM_MEMCOPY_H__
#include <string.h>
#include <slim/tonccpy.h>
#define MEMCOPY(dst, src, sz) tonccpy(dst, src, sz)
#define MEMSET(dst, val, sz) memset(dst, val, sz)
#define MEMCLR(dst, sz) MEMSET(dst, 0, sz)
#endif |
lifehackerhansol/libslim | libslim/source/elm.c | <reponame>lifehackerhansol/libslim<filename>libslim/source/elm.c
/*
Copyright (c) 2009-2011, yellow wood goblin
Copyright (c) 2020, chyyran
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistrib... |
mpmkp2020/netopeer2 | mpra_src/mpra.c | /**
* @file sr_get_items_example.c
* @author <NAME> <<EMAIL>>
* @brief example of an application that gets values
*
* @copyright
* Copyright (c) 2019 CESNET, z.s.p.o.
*
* This source code is licensed under BSD 3-Clause License (the "License").
* You may not use this file except in compliance with the License.
... |
mpmkp2020/netopeer2 | src/mpra.h | <reponame>mpmkp2020/netopeer2<gh_stars>0
typedef enum
{
DEBUG_LOG,
INFO_LOG,
CRIT_LOG
} logleve_t;
typedef enum
{
SET_CMD,
GET_CMD,
STOP_CMD,
INVALID_CMD
} operation_t;
typedef enum
{
SND,
RCV
} snd_rcv_t;
typedef enum
{
MSG_01,
MSG_02
} msg_type;
typedef struct
{
cha... |
mpmkp2020/netopeer2 | src/netconf.c | <filename>src/netconf.c
/**
* @file netconf.c
* @author <NAME> <<EMAIL>>
* @brief ietf-netconf callbacks
*
* Copyright (c) 2019 CESNET, z.s.p.o.
*
* This source code is licensed under BSD 3-Clause License (the "License").
* You may not use this file except in compliance with the License.
* You may obtain a cop... |
kcaglarr/TRCustomViews | TRCustomViews/TRCustomViews/TRCustomViews.h | //
// TRCustomViews.h
// TRCustomViews
//
// Created by kerimcaglar on 3.11.2018.
// Copyright © 2018 kerimcaglar. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for TRCustomViews.
FOUNDATION_EXPORT double TRCustomViewsVersionNumber;
//! Project version string for TRCustomViews.
FOUND... |
karanS08/DSA-in-C-and-CPP | insertion_sort.c | <reponame>karanS08/DSA-in-C-and-CPP
#include <stdio.h>
int main()
{
int size;
int arr[size];
printf("Enter the size of arr : ");
scanf("%d", &size);
// int arr[]={10,100,50,60,30};
printf("enter the elementsof arr : ");
for (int i = 0; i < size; i++)
{
scanf("%d", &arr... |
karanS08/DSA-in-C-and-CPP | binary_serach.c | <reponame>karanS08/DSA-in-C-and-CPP
#include <stdio.h>
int binarySearch(int arr[], int size, int key)
{
int start = 0;
int end = size;
while (start <= end)
{
int mid = (start + end) / 2;
if (arr[mid] == key)
{
// printf("number at index : %d", mid)
... |
karanS08/DSA-in-C-and-CPP | linear_search.c | <gh_stars>0
#include <stdio.h>
int main()
{
int i, j, n, key, array[100] ,ans;
printf("Enter number of elements");
scanf("%d", &n);
printf("Enter %d integers", n);
for (i = 0; i < n; i++)
{
scanf("%d", &array[i]);
}
printf("Enter value to find");
scanf("%d", &key)... |
karanS08/DSA-in-C-and-CPP | linked_list2.c | #include<stdio.h>
#include<stdlib.h>
struct node{
int data;
struct node* link;
};
int main(){
struct node* head = (struct node*)malloc(sizeof(struct node));
head->data = 100;
head->link = NULL;
struct node* node = (struct node*)malloc(sizeof(struct node));
node->data = 10;
... |
karanS08/DSA-in-C-and-CPP | bubble_sort.c | <filename>bubble_sort.c
#include <stdio.h>
int main()
{
// int n;
// scanf("%d", &n);
// int arr[n];
// for (int i = 0; i < n; i++)
// {
// scanf("%d", &arr[i]);
// }
int n = 7;
int arr[7] = {9, 4, 6, 1, 8, 3, 2};
int counter = 1;
while (counter < n)
{... |
karanS08/DSA-in-C-and-CPP | linkeed_list.c | <filename>linkeed_list.c<gh_stars>0
#include <stdio.h>
#include <stdlib.h>
struct node
{
int data;
struct node *link;
};
void displayList(struct node *p) {
struct node *temp;
printf("elements of list are : \n ");
temp = p;
while (temp != NULL) {
printf("The orignal dat... |
karanS08/DSA-in-C-and-CPP | bst.c | <reponame>karanS08/DSA-in-C-and-CPP
// binary search tree
#include<stdio.h>
#include<stdlib.h>
struct node
{
int data;
struct node *left;
struct node *right;
}*root=NULL,*temp,*parent,*current;
void insert()
{
struct node* temp=(struct node*)malloc(sizeof(struct node)) ;
int ele;
printf("Enter ele... |
karanS08/DSA-in-C-and-CPP | quiick_sort.c | <reponame>karanS08/DSA-in-C-and-CPP
#include <stdio.h>
void swap(int arr[], int i, int j)
{
int temp = arr[i];
arr[i] = arr[j];
arr[j] = temp;
}
int partition(int arr[], int l, int r)
{
int piviot = arr[r];
int i = l - 1;
for (int j = 1; j < r; j++)
{
if (arr[j] < piviot... |
karanS08/DSA-in-C-and-CPP | queue.c | //queue using linked list
#include <stdio.h>
#include <stdlib.h>
struct node
{
int data;
struct node *next;
};
struct node *front = NULL, *rear = NULL;
void enqueue(int x)
{
struct node *temp;
temp = (struct node *)malloc(sizeof(struct node));
temp->data = x;
temp->next = NULL;
... |
karanS08/DSA-in-C-and-CPP | stack_array.c | <filename>stack_array.c<gh_stars>0
#include <stdio.h>
// #include<conio.h>
#define N 5
int stack[N];
int top = -1;
void push()
{
int integer;
printf("Enter an integer value : ");
scanf("%d", &integer);
if (top == N - 1)
{
printf("Overflow !!, integer can n... |
varous7/hacktoberfest | C/SelectionSort.c | <reponame>varous7/hacktoberfest
int main()
{
int n, i, j, min_index, swap; //n is array size.
printf("Please enter an array size: ");
scanf("%d", &n);
int array[n]; // array of size ‘n’
printf("Please enter the numbers in the array, separated by a comma:\n ");
for(i=0;i<n;i++) { //grabs the numbers input by the... |
Synkar/drive_ros_camera_homography | include/drive_ros_camera_homography/homography_estimator.h | #ifndef HOMOGRAPHY_ESTIMATOR_H
#define HOMOGRAPHY_ESTIMATOR_H
#include <ros/ros.h>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include <sensor_msgs/image_encodings.h>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/calib3d/calib3d.hpp>
... |
Myfanily123456/sniffer | source/Resource.h | //{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by mcf6.rc
//
#define IDM_ABOUTBOX 0x0010
#define IDD_ABOUTBOX 100
#define IDS_ABOUTBOX 101
#define IDD_MCF6_DIALOG 102
#define IDR_MAINFRAME 128
#def... |
SammyEnigma/QUIKit | Libraries/QUIKit/BaseWindow.h | #ifndef BASEWINDOW_H
#define BASEWINDOW_H
#include <QWidget>
#include <QUIKit/quikit_global.h>
namespace Ui {
class BaseWindow;
}
class QUIKITSHARED_EXPORT BaseWindow : public QWidget
{
Q_OBJECT
public:
explicit BaseWindow(QWidget *parent = Q_NULLPTR);
virtual ~BaseWindow();
protected:
void paintEv... |
SammyEnigma/QUIKit | Libraries/QUIKit/FramelessHelper/Kernels/NativeWindowFilter_p.h | <gh_stars>100-1000
#ifndef NATIVEWINDOWFILTER_P_H
#define NATIVEWINDOWFILTER_P_H
#include <QHash>
#include <QWindow>
#include "NativeWindowFilter.h"
class NativeWindowFilterPrivate
{
public:
static QScopedPointer<NativeWindowFilter> instance;
static QHash<NativeWindowHelper *, WId> windows;
static QHash... |
SammyEnigma/QUIKit | Libraries/QUIKit/FramelessHelper/Kernels/NativeWindowFilter.h | #ifndef NATIVEWINDOWFILTER_H
#define NATIVEWINDOWFILTER_H
#include <QAbstractNativeEventFilter>
class QWindow;
class NativeWindowHelper;
class NativeWindowFilter : public QAbstractNativeEventFilter
{
public:
static void deliver(QWindow *window, NativeWindowHelper *helper);
protected:
bool nativeEventFilter(c... |
SammyEnigma/QUIKit | Libraries/QUIKit/FramelessHelper/WindowFramelessHelper_p.h | #ifndef QSHARKFRAMELESSHELPER_P_H
#define QSHARKFRAMELESSHELPER_P_H
#include <QSet>
#include <QQuickWindow>
#include "WindowFramelessHelper.h"
#include "Kernels/NativeWindowHelper.h"
class WindowFramelessHelperPrivate : public NativeWindowTester
{
public:
WindowFramelessHelperPrivate();
virtual ~WindowFrame... |
SammyEnigma/QUIKit | Libraries/QUIKit/FramelessHelper/Kernels/NativeWindowHelper.h | #ifndef NATIVEWINDOWHELPER_H
#define NATIVEWINDOWHELPER_H
#include <QPoint>
#include <QWindow>
#include <QMargins>
class NativeWindowTester
{
public:
virtual QMargins draggableMargins() const = 0;
virtual QMargins maximizedMargins() const = 0;
virtual bool hitTest(const QPoint &pos) const = 0;
};
class ... |
SammyEnigma/QUIKit | Libraries/QUIKit/FramelessHelper/FramelessHelper_p.h | <gh_stars>1-10
#ifndef STYLEDHELPER_P_H
#define STYLEDHELPER_P_H
#include <QSet>
#include "FramelessHelper.h"
#include "Kernels/NativeWindowHelper.h"
class FramelessHelperPrivate : public NativeWindowTester
{
public:
FramelessHelperPrivate();
virtual ~FramelessHelperPrivate();
public:
QMargins draggabl... |
SammyEnigma/QUIKit | Libraries/QUIKit/QUIKit.h | #ifndef QUIKIT_H
#define QUIKIT_H
#include <QUIKit/quikit_global.h>
#include <QUIKit/NoFocusRectStyle.h>
#include <QUIKit/BaseWindow.h>
#include <QUIKit/FramelessHelper/FramelessHelper.h>
#include <QUIKit/FramelessHelper/WindowFramelessHelper.h>
#endif // QUIKIT_H
|
SammyEnigma/QUIKit | Libraries/QUIKit/FramelessHelper/FramelessHelper.h | <gh_stars>1-10
#ifndef FRAMELESSHELPER_H
#define FRAMELESSHELPER_H
#include <QWidget>
#include <QUIKit/quikit_global.h>
class FramelessHelperPrivate;
class QUIKITSHARED_EXPORT FramelessHelper : public QObject
{
Q_OBJECT
Q_DECLARE_PRIVATE(FramelessHelper)
public:
explicit FramelessHelper(QWidget *parent =... |
SammyEnigma/QUIKit | Libraries/QUIKit/quikit_global.h | <reponame>SammyEnigma/QUIKit
#ifndef QUIKIT_GLOBAL_H
#define QUIKIT_GLOBAL_H
#include <QtCore/qglobal.h>
#if defined(QUIKIT_LIBRARY)
# define QUIKITSHARED_EXPORT Q_DECL_EXPORT
#else
# define QUIKITSHARED_EXPORT Q_DECL_IMPORT
#endif
#endif // QUIKIT_GLOBAL_H
|
gigilka/mp2-lab4-queue | Queue/TQueue.h | <filename>Queue/TQueue.h
#pragma once
#include <string>
#include <iostream>
using namespace std;
template <class T>
class TQueue
{
T* a;
int msize;
int first, last,count;
public:
TQueue(int _msize = 10);
TQueue(const TQueue<T>& smt);
~TQueue();
TQueue<T>& operator=(const TQueue<T>& smt);
bool operator==(const ... |
zichenfang/TTPhoto | TTPhotoTest/TTPhotoTest/TTPhoto/FFPhotoCollectionViewCell.h | //
// TTPhotoCollectionViewCell.h
// PFCS
//
// Created by flappybird on 16/8/4.
// Copyright © 2016年 PFCS. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface FFPhotoCollectionViewCell : UICollectionViewCell
@property (strong, nonatomic) IBOutlet UIImageView *photoImgView;
@property (strong, nonatomic) I... |
zichenfang/TTPhoto | TTPhotoTest/TTPhotoTest/ViewController.h | <gh_stars>0
//
// ViewController.h
// TTPhotoTest
//
// Created by flappybird on 16/10/19.
// Copyright © 2016年 zichenfang. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
|
clean-code-craft-tcq-2/test-failer-in-c-MohanaPriyaSomu | misaligned.c | #include <stdio.h>
#include <assert.h>
#include <string.h>
const char* majorColor[] = {"White", "Red", "Black", "Yellow", "Violet"};
const char* minorColor[] = {"Blue", "Orange", "Green", "Brown", "Slate"};
struct colorPair
{
int pairNo;
char MajorColor[8];
char MinorColor[8];
};
colorPair Pair[25... |
gabrielevi10/bsn | src/lepton/include/lepton/CompiledExpression.h | #ifndef LEPTON_COMPILED_EXPRESSION_H_
#define LEPTON_COMPILED_EXPRESSION_H_
/* -------------------------------------------------------------------------- *
* Lepton *
* -------------------------------------------------------------------------- *
* ... |
Nitin0309/Nitin-indigo-bugs | bingo/oracle/src/oracle/mango_fast_index.h | <filename>bingo/oracle/src/oracle/mango_fast_index.h
/****************************************************************************
* Copyright (C) from 2009 to Present EPAM Systems.
*
* This file is part of Indigo toolkit.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this ... |
Nitin0309/Nitin-indigo-bugs | bingo/oracle/src/oracle/mango_oracle_index_parallel.h | #ifndef __mango_oracle_index_parallel_h__
#define __mango_oracle_index_parallel_h__
#include "base_cpp/os_sync_wrapper.h"
#include "oracle/bingo_oracle_parallel.h"
#include "oracle/mango_oracle.h"
#include <string>
#include <vector>
namespace indigo
{
//
// Classes for parallelized index creation
//
... |
Nitin0309/Nitin-indigo-bugs | bingo/oracle/src/oracle/rowid_loader.h | <reponame>Nitin0309/Nitin-indigo-bugs
/****************************************************************************
* Copyright (C) from 2009 to Present EPAM Systems.
*
* This file is part of Indigo toolkit.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in ... |
Nitin0309/Nitin-indigo-bugs | api/c/bingo-nosql/src/bingo_index.h | <gh_stars>0
#ifndef __bingo_index__
#define __bingo_index__
#include "bingo_base_index.h"
#include "bingo_matcher.h"
namespace bingo
{
class MoleculeIndex final : public BaseIndex
{
public:
MoleculeIndex();
std::unique_ptr<Matcher> createMatcher(const char* type, MatcherQueryData* query_d... |
Nitin0309/Nitin-indigo-bugs | bingo/oracle/src/oracle/bingo_storage.h | <gh_stars>0
/****************************************************************************
* Copyright (C) from 2009 to Present EPAM Systems.
*
* This file is part of Indigo toolkit.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licens... |
Nitin0309/Nitin-indigo-bugs | bingo/oracle/src/oracle/mango_shadow_table.h | /****************************************************************************
* Copyright (C) from 2009 to Present EPAM Systems.
*
* This file is part of Indigo toolkit.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You ma... |
Nitin0309/Nitin-indigo-bugs | bingo/postgres/src/pg_core/bingo_pg_build_engine.h | #ifndef _BINGO_PG_BUILD_ENGINE_H__
#define _BINGO_PG_BUILD_ENGINE_H__
extern "C"
{
#include "c.h"
#include "storage/itemptr.h"
}
#ifdef qsort
#undef qsort
#endif
/*
* Interface class for procession fingerprint data
*/
#include "base_cpp/obj_array.h"
#include "bingo_postgres.h"
#include <memory>
#include "base_cpp... |
Nitin0309/Nitin-indigo-bugs | bingo/postgres/src/pg_core/bingo_pg_config.h | <filename>bingo/postgres/src/pg_core/bingo_pg_config.h<gh_stars>0
#ifndef _BINGO_PG_CONFIG_H__
#define _BINGO_PG_CONFIG_H__
#include "base_cpp/exception.h"
#include "base_cpp/red_black.h"
#include "bingo_postgres.h"
namespace indigo
{
class Scanner;
class Output;
namespace bingo_core
{
class B... |
Nitin0309/Nitin-indigo-bugs | bingo/postgres/src/pg_common/bingo_pg_fix_post.h | <gh_stars>0
#ifndef __bingo_pg_fix_post_h__
#define __bingo_pg_fix_post_h__
#ifdef qsort
#undef qsort
#endif
#ifdef printf
#undef printf
#endif
#ifdef vprintf
#undef vprintf
#endif
#ifdef snprintf
#undef snprintf
#endif
#ifdef min
#undef min
#endif
#ifdef max
#undef max
#endif
#ifdef send
#undef send
#endif
#if... |
Nitin0309/Nitin-indigo-bugs | bingo/postgres/src/pg_core/ringo_pg_search_engine.h | #ifndef _RINGO_PG_SEARCH_ENGINE_H__
#define _RINGO_PG_SEARCH_ENGINE_H__
#include "bingo_pg_search_engine.h"
#include "base_cpp/array.h"
#include "base_cpp/exception.h"
#include "base_cpp/red_black.h"
#include <memory>
#include "bingo_pg_cursor.h"
#include "bingo_postgres.h"
#include "pg_bingo_context.h"
class Bingo... |
Nitin0309/Nitin-indigo-bugs | bingo/oracle/src/oracle/bingo_oracle_parallel.h | /****************************************************************************
* Copyright (C) from 2009 to Present EPAM Systems.
*
* This file is part of Indigo toolkit.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You ma... |
Nitin0309/Nitin-indigo-bugs | bingo/postgres/src/pg_common/bingo_pg_fix_pre.h | <filename>bingo/postgres/src/pg_common/bingo_pg_fix_pre.h
#ifndef __bingo_pg_fix_pre_h__
#define __bingo_pg_fix_pre_h__
// Visual Studio 2013 has isnan and isinf functions defined in math.h.
// PostgeSQL defines isnan and isind macroses, so we need to include math.h
// before PostgreSQL includes
//
// See also:
// htt... |
Nitin0309/Nitin-indigo-bugs | bingo/postgres/src/pg_core/mango_pg_search_engine.h | /*
*/
#ifndef _MANGO_PG_SEARCH_ENGINE_H__
#define _MANGO_PG_SEARCH_ENGINE_H__
#include "bingo_pg_search_engine.h"
#include "base_cpp/array.h"
#include "base_cpp/exception.h"
#include "base_cpp/red_black.h"
#include <memory>
#include "bingo_pg_cursor.h"
#include "bingo_postgres.h"
#include "pg_bingo_context.h"
#in... |
Nitin0309/Nitin-indigo-bugs | bingo/bingo-core/src/core/ringo_matchers.h | <filename>bingo/bingo-core/src/core/ringo_matchers.h
/****************************************************************************
* Copyright (C) from 2009 to Present EPAM Systems.
*
* This file is part of Indigo toolkit.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.