repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
chpublichp/masspred | tools/region_filter-0.19/work_disembl.c | #include "main.h"
_FUNCTION_DECLARATION_BEGIN_
void work_disembl(profile_t* profile, int position)
_FUNCTION_DECLARATION_END_
{
char* name;
float treshold;
row_t row;
int row_number;
char aa;
float probability[3];
region_t region;
int region_start;
int region_end;
switch(position)
{
case 1:
... |
chpublichp/masspred | tools/epitope_fail-0.12/epitope_fail.c | <reponame>chpublichp/masspred<filename>tools/epitope_fail-0.12/epitope_fail.c<gh_stars>0
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define DEFAULT_OUTPUT_FILE_PREFIX "ef_fail_out"
#define DEFAULT_OUTPUT_FILE_NAME_SQL_SUFFIX "sql"
#define DEFAULT_OUTPU... |
chpublichp/masspred | tools/parjob-0.5/wait_all_children.c | <reponame>chpublichp/masspred<filename>tools/parjob-0.5/wait_all_children.c
#include "main.h"
void wait_all_children(job_data_t* job_data)
{
int i;
boolean_t all_done;
while(TRUE)
{
all_done = TRUE;
for(i = 0; i < job_data->size; i++)
if(job_data->children_data[i].used == TRUE)
{
... |
chpublichp/masspred | tools/region_filter-0.19/main.h | <filename>tools/region_filter-0.19/main.h
#ifndef __MAIN__H__
#define __MAIN__H__
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "default.h"
#include "type.h"
#include "prototype.i"
#define STRING_RAW(x) #x
#define STRING(x) STRING_RAW(x)
#define ERROR(f... |
chpublichp/masspred | tools/region_filter-0.19/main.c | <filename>tools/region_filter-0.19/main.c
#include "main.h"
static void usage(char* name)
{
fprintf
(
stderr,
"Usage: %s [-h] -m model [-s] [-n] [-o output_file_prefix] [-p protein_id] [-r protein_reference] [-f protein_file_name] [input_file]\n"
" -h\t\tHelp\n"
" -m\t\tModel\n"
"\t\'a\' for... |
kaizoku-oh/pio-rfid | src/app_main.c | <gh_stars>1-10
#include <string.h>
#include <esp_log.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <freertos/queue.h>
#include "rc522.h"
#include "firestore.h"
#include "app_wifi.h"
#include "app_time.h"
#include "app_ota.h"
static void _app_main_send_data(uint8_t *);
static void _app_main_t... |
kaizoku-oh/pio-rfid | src/app_ota.c | #include <string.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <esp_system.h>
#include <esp_log.h>
#include <esp_http_client.h>
#include <esp_https_ota.h>
#include <cJSON.h>
#include "app_wifi.h"
#define APP_OTA_TAG "APP_OTA"
#define APP_OTA_BASE_URL ... |
RangelReale/easyqrpng | src/easyqrpng.c | <reponame>RangelReale/easyqrpng<filename>src/easyqrpng.c
#include "easyqrpng/easyqrpng.h"
#include <qrencode.h>
#include <stdlib.h>
typedef struct easyqrpng_data
{
QRcode* qrcode;
int error;
} easyqrpng_data;
easyqrpng_data* easyqrpng_new()
{
easyqrpng_data* ret = (easyqrpng_data*)malloc(sizeof(easyqrpng_data))... |
RangelReale/easyqrpng | src/errors.c | <reponame>RangelReale/easyqrpng<gh_stars>0
#include "easyqrpng/errors.h"
static char *MSG_EASYQRPNGERR_OK = "OK";
static char *MSG_EASYQRPNGERR_ENCODE_ERROR = "Encode error";
static char *MSG_EASYQRPNGERR_NOT_ENCODED = "Not encoded";
static char *MSG_EASYQRPNGERR_ENCODEPNG_ERROR = "PNG encoding error";
char *easyqrpn... |
RangelReale/easyqrpng | include/easyqrpng/errors.h | #ifndef H__EASYQRPNG_ERRORS__H
#define H__EASYQRPNG_ERRORS__H
typedef int easyqrpng_error_t;
#define EASYQRPNGERR_OK 0
#define EASYQRPNGERR_ENCODE_ERROR 1
#define EASYQRPNGERR_NOT_ENCODED 2
#define EASYQRPNGERR_ENCODEPNG_ERROR 3
#if defined(__cplusplus)
extern "C" {
#endif
char *easyqrpng_errormessag... |
RangelReale/easyqrpng | include/easyqrpng/easyqrpngpp.h | <reponame>RangelReale/easyqrpng
#ifndef H__EASYQRPNGPP__H
#define H__EASYQRPNGPP__H
#include <easyqrpng/errors.h>
#include <string>
#include <iostream>
class easyqrpngImpl;
class easyqrpng
{
public:
easyqrpng();
virtual ~easyqrpng();
void setTargetWidth(int width);
int getTargetWidth() const;
void setMargin(... |
RangelReale/easyqrpng | include/easyqrpng/easyqrpng.h | <filename>include/easyqrpng/easyqrpng.h
#ifndef H__EASYQRPNG__H
#define H__EASYQRPNG__H
#include <easyqrpng/errors.h>
#if defined(__cplusplus)
extern "C" {
#endif
typedef struct easyqrpng_data easyqrpng_data;
easyqrpng_data* easyqrpng_new();
void easyqrpng_free(easyqrpng_data* data);
easyqrpng_error_t easyqrpng_en... |
CreatorWilliam/ApplicationKit | DebugKit/DebugKit.h | <gh_stars>1-10
//
// DebugKit.h
// DebugKit
//
// Created by <NAME> on 2018/10/7.
// Copyright © 2018 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for DebugKit.
FOUNDATION_EXPORT double DebugKitVersionNumber;
//! Project version string for DebugKit.
FOUNDATION_EXPORT const u... |
CreatorWilliam/ApplicationKit | JPushKit/JPushKit.h | //
// JPushKit.h
// JPushKit
//
// Created by <NAME> on 2018/8/16.
// Copyright © 2018 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for JPushKit.
FOUNDATION_EXPORT double JPushKitVersionNumber;
//! Project version string for JPushKit.
FOUNDATION_EXPORT const unsigned char JP... |
yamingd/AppBootstrap-iOS | Pods/Realm/include/Realm/util/config.h | /*************************************************************************
*
* CAUTION: DO NOT EDIT THIS FILE -- YOUR CHANGES WILL BE LOST!
*
* This file is generated by config.sh
*
*************************************************************************/
#define REALM_VERSION "0.92.2"
#define REALM_INSTALL_P... |
yamingd/AppBootstrap-iOS | AppBootstrap/AppSecurity.h | //
// AppSecurity.h
// AppBootstrap
//
// Created by Yaming on 10/2/15.
// Copyright © 2015 <EMAIL>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "TSAppSession.hh"
#import "AppSession.h"
@interface AppSecurity : NSObject
+ (instancetype)instance;
+ (NSString*)randomCode;
+ (NSString*)aes12... |
yamingd/AppBootstrap-iOS | AppBootstrap/Vendor/MSCMoreOptionTableViewCell/MSCMoreOptionTableViewCell.h | //
// MSCMoreOptionTableViewCell.h
// MSCMoreOptionTableViewCell
//
// Created by <NAME> (@scheinem) on 20.08.13.
// Copyright (c) 2013 <NAME> (@scheinem). All rights reserved.
//
//
// WARNING (for iOS 8 and above):
// ==============================
// The functionality of this library will be disabled if 'tableVi... |
yamingd/AppBootstrap-iOS | AppBootstrap/Category/NSData+Ext.h | <gh_stars>0
//
// NSData+MD5.h
// iosMD5
//
// Created by demeng on 11-12-26.
// Copyright (c) 2011年 <EMAIL>. All rights reserved.
//
#import "NSData+Ext.h"
@interface NSData(Ext)
- (NSString *)md5;
+ (NSData *)dataFromBase64String:(NSString *)aString;
- (NSString *)base64EncodedString;
// added by <NAME>
- ... |
yamingd/AppBootstrap-iOS | AppBootstrap/Controls/UITabBarController+Ext.h | <reponame>yamingd/AppBootstrap-iOS<gh_stars>0
//
// UITabBarController+Ext.h
// EnglishCafe
//
// Created by Simsion on 11/5/14.
// Copyright (c) 2014 whosbean. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UITabBarController (Ext)
- (void)setTabBarHidden:(BOOL)hidden;
- (void)setTabBarHidden:(BOOL)... |
yamingd/AppBootstrap-iOS | AppBootstrap/Utility.h | //
// Utility.h
// EnglishCafe
//
// Created by yaming_deng on 2/5/14.
// Copyright (c) 2014 whosbean. All rights reserved.
//
#import <Foundation/Foundation.h>
#define kFullScreenHeight (CGRectGetHeight([UIScreen mainScreen].bounds))
#define kFullScreenWidth (CGRectGetWidth([UIScreen mainScreen].bounds))
@inter... |
yamingd/AppBootstrap-iOS | AppBootstrap/boost.h | //
// sdk.h
// AppBootstrap
//
// Created by yaming_deng on 2/5/14.
// Copyright (c) 2014 whosbean. All rights reserved.
//
#ifndef _boost_h
#define _boost_h
#define kRemoteNotificationReceived @"RemoteNotificationReceived"
#define kRemoteNotificationAccepted @"RemoteNotificationAccepted"
#define kNotificationNet... |
yamingd/AppBootstrap-iOS | AppBootstrap/Controls/UIViewController+Ext.h | //
// UIViewController+Ext.h
// EnglishCafe
//
// Created by yaming_deng on 15/5/14.
// Copyright (c) 2014 whosbean. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <objc/runtime.h>
@interface UIViewController (Ext)
-(void)ios7Fix;
-(void)contentSizeDidChange:(NSString *)size;
-(void)retinaFit;
-(void)f... |
yamingd/AppBootstrap-iOS | Pods/Headers/Public/ArrayUtils/ArrayUtils.h | //
// ArrayUtils.h
//
// Version 1.3
//
// Created by <NAME> on 01/03/2012.
// Copyright (c) 2011 Charcoal Design
//
// Distributed under the permissive zlib License
// Get the latest version from here:
//
// https://github.com/nicklockwood/ArrayUtils
//
// This software is provided 'as-is', without any express... |
yamingd/AppBootstrap-iOS | AppBootstrap/Category/NSString+Ext.h | //
// NSString+Helper.h
// EnglishCafe
//
// Created by yaming_deng on 10/5/14.
// Copyright (c) 2014 whosbean. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (Ext)
-(NSString *)dateTimeAgo;
-(NSString *)unescapeUnicode;
-(NSString *)md5;
-(NSString *)hmac:(NSString*)secret;
+(NSSt... |
yamingd/AppBootstrap-iOS | AppBootstrap/XibFactory.h | <gh_stars>0
//
// XibFactory.h
//
#import <Foundation/Foundation.h>
#define kMainStoryboardName @"Main"
@interface XibFactory : NSObject
// return the first instance object in nib list
+ (id)productWithNibClass:(Class)aClass;
+ (id)productWithNibName:(NSString *)nibName;
+ (id)productWithNibName:(NSString *)nibNam... |
yamingd/AppBootstrap-iOS | AppBootstrap/Controls/UIViewController+SearchBar.h | //
// UIViewController+SearchBar.h
// k12
//
// Created by Yaming on 3/16/15.
// Copyright (c) 2015 <EMAIL>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <objc/runtime.h>
@interface UIViewController(SearchBar)<UISearchBarDelegate>
@property UISearchBar* searchBar;
@property UIButton* searchO... |
yamingd/AppBootstrap-iOS | AppBootstrap/Category/NSMutableArray+Tool.h |
#import <Foundation/Foundation.h>
@interface NSMutableArray(Tool)
/**
* insert mutable objects at index, for instance index is 0
*/
- (void)insertObjects:(NSArray *)objects atIndex:(NSUInteger)index;
@end
|
yamingd/AppBootstrap-iOS | AppBootstrap/AppSession.h | //
// AppSession.h
// EnglishCafe
//
// Created by yaming_deng on 2/5/14.
// Copyright (c) 2014 whosbean. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "TSAppSession.hh"
#define kRealmSession @"session"
@interface AppSession : NSObject
+ (AppSession*)current;
@property(strong, nonatomic) TS... |
yamingd/AppBootstrap-iOS | AppBootstrap/Controls/UIImageEdView.h | <reponame>yamingd/AppBootstrap-iOS
//
// UIImageEdView.h
// k12
//
// Created by Yaming on 3/13/15.
// Copyright (c) 2015 <EMAIL>. All rights reserved.
//
#import <UIKit/UIKit.h>
#define kUIImageViewStateThumb @"thumb"
#define kUIImageViewStateFull @"full"
@class UIImageEdView;
@protocol UIImageEdViewDelegate <... |
yamingd/AppBootstrap-iOS | AppBootstrap/HTTP/APIClient.h | <filename>AppBootstrap/HTTP/APIClient.h
//
// APIClient.h
// EnglishCafe
//
// Created by yaming_deng on 2/5/14.
// Copyright (c) 2014 whosbean. All rights reserved.
//
#import "AFNetworking.h"
#import "TSAppResponse.hh"
#import "AFProtobufResponseSerializer.h"
@interface APIClient : AFHTTPSessionManager
+ (inst... |
yamingd/AppBootstrap-iOS | AppBootstrap/Controls/UIViewController+ImagePicker.h | //
// UIViewController+ImagePicker.h
// k12
//
// Created by Yaming on 3/13/15.
// Copyright (c) 2015 <EMAIL>. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol ImagePickerDelegate <NSObject>
-(void)imagePickerDidSelecteImages:(NSArray*)images;
@end
@interface UIViewController(ImagePicker) <UINavigatio... |
yamingd/AppBootstrap-iOS | AppBootstrap/Controls/UIImageView+Ext.h | <filename>AppBootstrap/Controls/UIImageView+Ext.h
//
// UIImageView+Ext.h
// EnglishCafe
//
// Created by yaming_deng on 14/5/14.
// Copyright (c) 2014 whosbean. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIImageView (Ext)
- (void)setImageWith:(NSString *)urlOrName
placeholder:(NSString ... |
yamingd/AppBootstrap-iOS | AppBootstrap/DeviceHelper.h | <filename>AppBootstrap/DeviceHelper.h
//
// DeviceHelper.h
// MyKingdee
//
//
#import <Foundation/Foundation.h>
@interface DeviceHelper : NSObject
+ (NSString *)getDeviceVersion;
+ (NSString *)getDeviceName;
+ (NSString *)getDeviceVName;
+ (NSString *)getDeviceUdid;
+ (NSString *)getAdsUdid;
+ (NSString*)getOSVe... |
yamingd/AppBootstrap-iOS | AppBootstrap/Controls/FHSegmentedViewController.h | <gh_stars>10-100
//
// KPSegmentedViewController.h
// KPKuaiPai
//
// Created by <NAME> on 13-12-14.
// Copyright (c) 2013年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface FHSegmentedViewController : UIViewController
@property(nonatomic, assign) UIViewController *selectedViewController;
@prope... |
yamingd/AppBootstrap-iOS | AppBootstrap/HTTP/AFProtobufResponseSerializer.h | <reponame>yamingd/AppBootstrap-iOS<filename>AppBootstrap/HTTP/AFProtobufResponseSerializer.h
//
// AFProtobufResponseSerializer.h
// AppBootstrap
//
// Created by Yaming on 10/2/15.
// Copyright © 2015 <EMAIL>. All rights reserved.
//
#import "AFURLResponseSerialization.h"
#define X_PROTOBUF @"application/x-proto... |
yamingd/AppBootstrap-iOS | Pods/Headers/Public/HTKDynamicResizingCell/HTKDynamicResizingCellProtocol.h | //
// HTKDynamicResizingCellProtocol.h
// HTKDynamicResizingCell
//
// Created by <NAME> on 10/31/14.
//
// Copyright (c) 2014 <NAME> (http://www.henrytkirk.info)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may o... |
yamingd/AppBootstrap-iOS | AppBootstrap/RealmContext.h | <reponame>yamingd/AppBootstrap-iOS
//
// RealmHelper.h
// AppBootstrap
//
// Created by Yaming on 10/31/14.
// Copyright (c) 2014 whosbean.<EMAIL>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Realm/Realm.h>
@interface RealmContext : NSObject
+(NSString*)userFolder;
@property(nonatomic, st... |
yamingd/AppBootstrap-iOS | AppBootstrap/Category/UIView+HUD.h | //
// UIView+HUD.h
//
#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"
@interface UIView(HUD)
- (void)showHUD:(NSString *)text;
- (void)hideHUD;
- (void)showToast:(NSString *)text;
- (void)showToast:(NSString *)text afterDelay:(NSTimeInterval)delay;
@end
|
yamingd/AppBootstrap-iOS | Pods/Headers/Public/GoogleProtobuf/google/protobuf/stubs/map-util.h | <reponame>yamingd/AppBootstrap-iOS<gh_stars>0
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// http://code.google.com/p/protobuf/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the followi... |
yamingd/AppBootstrap-iOS | AppBootstrap/Controls/LPlaceholderTextView.h | <reponame>yamingd/AppBootstrap-iOS
//
// LPlaceholderTextView.h
// k12
//
// Created by Yaming on 3/4/15.
// Copyright (c) 2015 <EMAIL>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface LPlaceholderTextView : UITextView
{
UILabel *_placeholderLabel;
}
@property (strong, nonatomic) NSString *placeh... |
yamingd/AppBootstrap-iOS | AppBootstrap/BootstrapDelegate.h | //
// AppBootstrap.h
// AppBootstrap
//
// Created by Yaming on 10/28/14.
// Copyright (c) 2014 <EMAIL>. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface BootstrapDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) NSDic... |
sidhpathak19/HacktoberFestContribute | changes.c | #include<stdio.h>
#include<stdlib.h>
// Defining structure
struct Node
{
int data;
struct Node* next;
};
typedef struct LinkedList
{
struct Node *head;
int length;
}list;
void list_initialize(list *sll)
{
sll->head=NULL;
sll->length=0;
}
// Push function
void push(list *sll, i... |
YS-L/pgbm | src/histogram.h | #ifndef HISTOGRAM_H_
#define HISTOGRAM_H_
#include "util.h"
#include <vector>
#include <utility>
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/serialization/split_member.hpp>
#include <boost/serialization/array.hpp>
#include <boost/mpi/datatype.hpp>
#include <gl... |
YS-L/pgbm | src/loss.h | #ifndef LOSS_H_
#define LOSS_H_
#include <vector>
class Loss {
public:
virtual ~Loss() {};
// Computes the negative gradients
virtual void Gradient(const std::vector<double>& targets,
const std::vector<double>& current_response,
std::vector<double>& gradients) ... |
YS-L/pgbm | src/eval.h | <reponame>YS-L/pgbm
#ifndef EVAL_H_
#define EVAL_H_
#include <vector>
class DataMatrix;
class Metric {
public:
virtual ~Metric() { };
virtual double Evaluate(const std::vector<double>& predictions,
const DataMatrix& data) const = 0;
virtual const char* Name() const = 0;
};
class... |
YS-L/pgbm | src/util.h | <gh_stars>1-10
#include <cstdio>
#include <vector>
#include <iostream>
#define PEEK_VECTOR(v, n) {\
printf("Peeking vector [%s]: [", #v);\
for (unsigned int i = 0; i < v.size(); ++i) {\
printf("%f ", v[i]);\
if (n > 0 && n < v.size() && i >= n-1) {\
printf(" ... (%d more)", (int)v.size()-i-1);\
... |
YS-L/pgbm | src/boosting.h | #ifndef BOOSTING_H_
#define BOOSTING_H_
#include "tree.h"
#include "loss.h"
#include "eval.h"
#include <vector>
#include <memory>
class DataMatrix;
class Booster {
public:
Booster(unsigned int n_iter, double shrinkage, unsigned int max_depth=6,
unsigned int num_bins=50, unsigned int num_split_candidates=50... |
YS-L/pgbm | src/tree.h | #ifndef TREE_H_
#define TREE_H_
#include "histogram.h"
#include "data.h"
#include <vector>
#include <queue>
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/mpi/datatype.hpp>
class Tree {
public:
struct Node {
// ID of the current node
unsigned int id;... |
YS-L/pgbm | src/mpi_util.h | #include <boost/mpi.hpp>
namespace mpi = boost::mpi;
class MPIHandle
{
public:
static MPIHandle& Get() {
static MPIHandle instance; // Guaranteed to be destroyed.
// Instantiated on first use.
return instance;
}
mpi::environment env;
mpi::communicator wo... |
YS-L/pgbm | src/data.h | <gh_stars>1-10
#ifndef DATA_H_
#define DATA_H_
#include <vector>
#include <map>
class DataMatrix {
public:
DataMatrix();
struct FeaturePoint {
unsigned int sample_index;
double value;
};
struct SamplePoint {
std::map<unsigned int, double> features;
};
int Load(const char *filename, int skips=0, int ma... |
alto-rlk/sorbet | resolver/resolver.h | #ifndef SORBET_RESOLVER_RESOLVER_H
#define SORBET_RESOLVER_RESOLVER_H
#include "ast/ast.h"
#include "common/concurrency/WorkerPool.h"
#include <memory>
namespace sorbet::resolver {
class Resolver final {
public:
static ast::ParsedFilesOrCancelled run(core::GlobalState &gs, std::vector<ast::ParsedFile> trees,
... |
alto-rlk/sorbet | main/lsp/AbstractRenamer.h | #ifndef SORBET_LSP_CALL_SITES_H
#define SORBET_LSP_CALL_SITES_H
#include "core/lsp/QueryResponse.h"
#include "main/lsp/LSPConfiguration.h"
#include "main/lsp/json_types.h"
namespace sorbet::realmain::lsp {
class AbstractRenamer {
public:
class UniqueSymbolQueue {
public:
bool tryEnqueue(core::SymbolR... |
alto-rlk/sorbet | main/lsp/requests/code_action.h | <reponame>alto-rlk/sorbet
#ifndef RUBY_TYPER_LSP_REQUESTS_CODE_ACTION_H
#define RUBY_TYPER_LSP_REQUESTS_CODE_ACTION_H
#include "main/lsp/LSPTask.h"
namespace sorbet::realmain::lsp {
class CodeActionParams;
class CodeActionTask final : public LSPRequestTask {
std::unique_ptr<CodeActionParams> params;
public:
... |
Walikhan007/simple_c_projects | FileCount.c | #include <stdio.h>
#define IN 1
#define OUT 0
void file(void);
int charcount(char ch);
int linecount(char ch);
int spacecount(char ch);
int wordcount(char ch, int state);
int main()
{
file();
}
void file(void)
{
char ch;
int charc, linec, spacec, word, state = OUT;
FILE *fl;
fl = fopen("Lorem.txt... |
kimhyuntak/gles3jni | app/src/main/cpp/external/image/image.h | <reponame>kimhyuntak/gles3jni
#include <string>
#include <png.h>
class PNG
{
public:
PNG(const std::string& file_name);
~PNG();
unsigned int get_width();
unsigned int get_height();
bool has_alpha();
unsigned char* get_data();
private:
const std::string file_name_;
unsigned char* data_;
png_uint_32 width_, ... |
kimhyuntak/gles3jni | app/src/main/cpp/Shader.h | #ifndef __SHADER_H__
#define __SHADER_H__
#include <GLES3/gl3.h>
class Shader {
GLuint mProgram;
public:
Shader(const char* vtxSrc, const char* fragSrc);
GLuint program() const { return mProgram; }
};
#endif // __SHADER_H__ |
kimhyuntak/gles3jni | app/src/main/cpp/DrawObject.h | //
// Created by <NAME> on 15/04/2019.
//
#ifndef GLES3JNI_DRAWOBJECT_H
#define GLES3JNI_DRAWOBJECT_H
#include <cstring>
#include "glcommon.h"
struct DrawVtx {
GLfloat coord[2];
GLfloat pos[4];
};
struct DrawObject {
float mPositionX; // centerX
float mPositionY; // centerY
// float mVectorX;
// float mV... |
kimhyuntak/gles3jni | app/src/main/cpp/glcommon.h | #ifndef __GLCOMMON_H__
#define __GLCOMMON_H__
#if DYNAMIC_ES3
#include "gl3stub.h"
#else
// Include the latest possible header file( GL version header )
#if __ANDROID_API__ >= 24
#include <GLES3/gl32.h>
#elif __ANDROID_API__ >= 21
#include <GLES3/gl31.h>
#else
#include <GLES3/gl3.h>
#endif
#endif
struct Vertex {
... |
kimhyuntak/gles3jni | app/src/main/cpp/logger.h | <reponame>kimhyuntak/gles3jni
#ifndef __LOGGER_H__
#define __LOGGER_H__
#include <android/log.h>
#define DEBUG 1
#define LOG_TAG "GLES3JNI"
#define ALOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)
#if DEBUG
#define ALOGV(...) __android_log_print(ANDROID_LOG_VERBOSE, LOG_TAG, __VA_ARGS__)
#else... |
kimhyuntak/gles3jni | app/src/main/cpp/Renderer.h | <gh_stars>1-10
#ifndef __RENDERER_H__
#define __RENDERER_H__
#include <math.h>
#include "glcommon.h"
// ----------------------------------------------------------------------------
// Interface to the ES2 and ES3 renderers, used by JNI code.
extern const Vertex QUAD[4];
// -----------------------------------------... |
brahmiboudjema/CVE-2020-25637-libvirt-double-free | Code/info1.c | / * *
* section: Informations
* synopsis: Extraire des informations sur le domaine Xen 0
* objectif: démontrer l'utilisation de base de la bibliothèque pour se connecter au
* hyperviseur et extraire les informations de domaine.
* utilisation: info1
* test: info1
* copie: voir Copyright pour l'état de ce logiciel... |
tonyp7/in-12-driver | SerialNixieDriver.h | /*
Copyright (c) 2019 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicen... |
Eastze/clang_api | clang_api/Classes/clang_api.h | <reponame>Eastze/clang_api
//
// clang_api.h
//
// Created by dyf on 15/8/14.
// Copyright (c) 2015 dyf.
//
// 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, includin... |
kthyng/octant | external/gridutils/xy2ij.c | /******************************************************************************
*
* File: xy2ij.c
*
* Created 22/01/2002
*
* Author: <NAME>
* CSIRO Marine Research
*
* Purpose: Given a numerical grid, converts point coordinates from
* ... |
kthyng/octant | octant/src/gridgen/csa.h | /******************************************************************************
*
* File: csa.h
*
* Created: 16/10/2002
*
* Author: <NAME>
* CSIRO Marine Research
*
* Purpose: A header for csa library (2D data approximation with
* bivariate C1 cu... |
kthyng/octant | external/csa/version.h | <filename>external/csa/version.h<gh_stars>1-10
/******************************************************************************
*
* File: version.h
*
* Created: 16/10/2002
*
* Author: <NAME>
* CSIRO Marine Research
*
* Purpose: Version string for csa library
*
*... |
kthyng/octant | octant/src/gridgen/nnbathy.c | /******************************************************************************
*
* File: nnbathy.c
*
* Created: 04/08/2000
*
* Author: <NAME>
* CSIRO Marine Research
*
* Purpose: Interpolate scalar 2D data in specified points using
* Natural Nei... |
kthyng/octant | external/gridutils/getnodes.c | <filename>external/gridutils/getnodes.c
/******************************************************************************
*
* File: getnodes.c
*
* Created 22/01/2002
*
* Author: <NAME>
* CSIRO Marine Research
*
* Purpose: Post-processes gridgen output g... |
kthyng/octant | external/gridgen/version.h | /******************************************************************************
*
* File: version.h
*
* Created: 18/10/2001
*
* Author: <NAME>
* CSIRO Marine Research
*
* Purpose: Contains version string
*
* Description: None
*
* Revisions: None
*
*... |
kthyng/octant | external/nn/version.h | /******************************************************************************
*
* File: version.h
*
* Created: 18/10/2001
*
* Author: <NAME>
* CSIRO Marine Research
*
* Purpose: Contains version string
*
*******************************************************... |
kthyng/octant | octant/src/gridgen/broyden.c | <reponame>kthyng/octant
/******************************************************************************
*
* File: broyden.c
*
* Created: 24/02/2000
*
* Author: <NAME>
* CSIRO Marine Research
*
* Purpose: Nonlinear solver.
*
* Revisions: None.
*
* Descrip... |
kthyng/octant | octant/src/gridgen/triangle.c | <reponame>kthyng/octant<filename>octant/src/gridgen/triangle.c
# 1 "triangle.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "triangle.c"
# 344 "triangle.c"
# 1 "/usr/include/stdio.h" 1 3 4
# 28 "/usr/include/stdio.h" 3 4
# 1 "/usr/include/features.h" 1 3 4
# 329 "/usr/include/features.h" 3 4
# 1 "/usr/include/sys/cdefs.h... |
kthyng/octant | octant/src/gridgen/delaunay.c | <reponame>kthyng/octant<filename>octant/src/gridgen/delaunay.c<gh_stars>10-100
/******************************************************************************
*
* File: delaunay.c
*
* Created: 04/08/2000
*
* Author: <NAME>
* CSIRO Marine Research
*
* Purpose: Del... |
kthyng/octant | octant/src/gridgen/version.h | /******************************************************************************
*
* File: version.h
*
* Created: 18/10/2001
*
* Author: <NAME>
* CSIRO Marine Research
*
* Purpose: Contains version string
*
* Description: None
*
* Revisions: None
*
*... |
kthyng/octant | octant/src/gridgen/delaunay.h | <filename>octant/src/gridgen/delaunay.h
/******************************************************************************
*
* File: delaunay.h
*
* Created: 04/08/2000
*
* Author: <NAME>
* CSIRO Marine Research
*
* Purpose: Header for delaunay triangulation wrapper
... |
kthyng/octant | octant/src/gridgen/gucommon.h | <gh_stars>0
/******************************************************************************
*
* File: gucommon.h
*
* Created 22/01/2002
*
* Author: <NAME>
* CSIRO Marine Research
*
* Purpose: Header file with some common stuff for grid utilities
* R... |
kthyng/octant | octant/src/gridgen/gridgen.h | /******************************************************************************
*
* File: gridgen.h
*
* Created: 2/11/2006
*
* Author: <NAME>
* CSIRO Marine Research
*
* Purpose: Top-level header file for the gridgen library.
* For more informati... |
kthyng/octant | octant/src/gridgen/gucommon.c | <reponame>kthyng/octant
/******************************************************************************
*
* File: gucommon.c
*
* Created 22/01/2002
*
* Author: <NAME>
* CSIRO Marine Research
*
* Purpose: Some common stuff for grid utilities
* Revisi... |
pierriko/cpython | Modules/_codecsmodule.c | /* ------------------------------------------------------------------------
_codecs -- Provides access to the codec registry and the builtin
codecs.
This module should never be imported directly. The standard library
module "codecs" wraps this builtin module for use within Python.
The codec... |
eavelie/oversimplifiedparse | functions.h | #ifndef FUNCTIONS_H
#define FUNCTIONS_H
#include <string>
#include <iostream>
std::string classNameInput();
std::string nameInput(std::string className);
std::string gradeInput(std::string className);
bool boolCheck(std::string input);
std::string namesData(std::string studentsNames[100], int namesArrayTrueSize, std::... |
mdjarv/dcs-bios-arduino-library | Buttons.h | <reponame>mdjarv/dcs-bios-arduino-library
#ifndef __DCSBIOS_BUTTONS_H
#define __DCSBIOS_BUTTONS_H
#include "Arduino.h"
#include "PollingInput.h"
namespace DcsBios {
class ActionButton : PollingInput {
private:
void pollInput();
char* msg_;
char* arg_;
char pin_;
char lastState_;
public:
ActionB... |
mdjarv/dcs-bios-arduino-library | Leds.h | #ifndef __DCSBIOS_LEDS_H
#define __DCSBIOS_LEDS_H
#include "Arduino.h"
#include "ExportStreamListener.h"
namespace DcsBios {
class LED : IntegerBuffer {
private:
void onDcsBiosFrameSync();
unsigned char pin_;
public:
LED(unsigned int address, unsigned int mask, char pin);
};
}
#endif |
mdjarv/dcs-bios-arduino-library | DcsBios.h | #ifndef __DCSBIOS_H
#define __DCSBIOS_H
#include "Protocol.h"
#include "Buttons.h"
#include "Switches.h"
#include "Encoders.h"
#include "Potentiometers.h"
#include "Leds.h"
#include "Servos.h"
#endif |
mdjarv/dcs-bios-arduino-library | ExportStreamListener.h | #ifndef __DCSBIOS_EXPORTSTREAMLISTENER_H
#define __DCSBIOS_EXPORTSTREAMLISTENER_H
#include "Arduino.h"
namespace DcsBios {
class ExportStreamListener {
private:
virtual void onDcsBiosWrite(unsigned int address, unsigned int value) {}
virtual void onDcsBiosFrameSync() {}
ExportStreamListener* nextExportStr... |
mdjarv/dcs-bios-arduino-library | Switches.h | #ifndef __DCSBIOS_SWITCHES_H
#define __DCSBIOS_SWITCHES_H
#include "Arduino.h"
#include "PollingInput.h"
namespace DcsBios {
class Switch2Pos : PollingInput {
private:
void pollInput();
char* msg_;
char pin_;
char lastState_;
public:
Switch2Pos(char* msg, char pin);
};
class Switch3Pos : Polli... |
mdjarv/dcs-bios-arduino-library | Potentiometers.h | #ifndef __DCSBIOS_POTS_H
#define __DCSBIOS_POTS_H
#include "Arduino.h"
#include "PollingInput.h"
namespace DcsBios {
class Potentiometer : PollingInput {
private:
void pollInput();
char* msg_;
char pin_;
unsigned int lastState_;
public:
Potentiometer(char* msg, char pin);
};
}
#endif |
mdjarv/dcs-bios-arduino-library | Encoders.h | #ifndef __DCSBIOS_ENCODERS_H
#define __DCSBIOS_ENCODERS_H
#include "Arduino.h"
#include "PollingInput.h"
namespace DcsBios {
class RotaryEncoder : PollingInput {
private:
void pollInput();
char readState();
const char* msg_;
const char* decArg_;
const char* incArg_;
char pinA_;
char pinB_;
... |
mdjarv/dcs-bios-arduino-library | Servos.h | #ifndef __DCSBIOS_SERVOS_H
#define __DCSBIOS_SERVOS_H
#include "Arduino.h"
#include "ExportStreamListener.h"
#include <Servo.h>
namespace DcsBios {
class ServoOutput : IntegerBuffer {
private:
void onDcsBiosFrameSync();
Servo servo_;
char pin_;
int minPulseWidth_;
int maxPulseWidth_;
public:
Se... |
mdjarv/dcs-bios-arduino-library | PollingInput.h | #ifndef __DCSBIOS_POLLINGINPUT_H
#define __DCSBIOS_POLLINGINPUT_H
#include "Arduino.h"
void sendDcsBiosMessage(const char* msg, const char* args);
namespace DcsBios {
class PollingInput {
private:
virtual void pollInput();
PollingInput* nextPollingInput;
public:
static PollingInput* firstPollingInput;... |
mdjarv/dcs-bios-arduino-library | Protocol.h | #ifndef __DCSBIOS_PROTOCOL_H
#define __DCSBIOS_PROTOCOL_H
void onDcsBiosWrite(unsigned int address, unsigned int value);
void onDcsBiosFrameSync();
#define DCSBIOS_STATE_WAIT_FOR_SYNC 0
#define DCSBIOS_STATE_ADDRESS_LOW 1
#define DCSBIOS_STATE_ADDRESS_HIGH 2
#define DCSBIOS_STATE_COUNT_LOW 3
#define DCSBIOS_STATE_COU... |
alexandergr/INFView | INFView/INFLayoutStrategy.h | <gh_stars>1-10
//
// INFLayoutStrategy.h
// INFView
//
// Created by Alexander on 2/9/18.
// Copyright © 2018 Alexander. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "INFViewLayout.h"
#import "INFOrientation.h"
typedef enum : NSUInteger {
INFLayoutStrategyTypeSimpl... |
alexandergr/INFView | INFView/INFOrientation.h | //
// INFOrientation.h
// INFView
//
// Created by <NAME> on 2/1/18.
// Copyright © 2018 Alexander. All rights reserved.
//
typedef enum : NSUInteger {
INFOrientationHorizontal,
INFOrientationVertical
} INFOrientation;
|
alexandergr/INFView | INFView/INFLayoutViewInfo.h | <filename>INFView/INFLayoutViewInfo.h
//
// INFViewLayoutInfo.h
// INFView
//
// Created by <NAME> on 2/1/18.
// Copyright © 2018 Alexander. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>
#import "INFOrientation.h"
@interface INFLayoutViewInfo : NSObject
@property... |
alexandergr/INFView | INFView/INFViewLayout.h | //
// INFViewLayout.h
// INFView
//
// Created by Alexander on 2/9/18.
// Copyright © 2018 Alexander. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "INFLayoutViewInfo.h"
#import "INFOrientation.h"
@interface INFViewLayout : NSObject
@property (nonatomic) INFOrientation orientation;
@property ... |
alexandergr/INFView | INFViewTests/Fakes/FakeViewsSizeStorage.h | <gh_stars>1-10
//
// FakeViewsSizeStorage.h
// INFViewTests
//
// Created by <NAME> on 3/7/18.
// Copyright © 2018 Alexander. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "INFLayoutStrategy.h"
@interface FakeViewsSizeStorage : NSObject <INFViewsSizeStorage>
@property (nonatomic) NSInteger co... |
alexandergr/INFView | INFView/INFSimpleLayoutStrategy.h | //
// INFSimpleLayoutStrategy.h
// INFView
//
// Created by Alexander on 2/9/18.
// Copyright © 2018 Alexander. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "INFLayoutStrategy.h"
#import "INFOrientation.h"
@interface INFSimpleLayoutStrategy : NSObject<INFLayoutStrategy>
@property (nonatomic)... |
alexandergr/INFView | INFView/INFScrollView.h | <filename>INFView/INFScrollView.h
//
// INFScrollView.h
// INFView
//
// Created by Alexander on 2/1/18.
// Copyright © 2018 Alexander. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "INFOrientation.h"
@protocol INFScrollViewDataSource;
@protocol INFScrollViewDelegate;
@interface INFScrollView : UIScrol... |
alexandergr/INFView | INFView/INFView.h | //
// INFView.h
// INFView
//
// Created by Alexander on 2/1/18.
// Copyright © 2018 Alexander. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for INFView.
FOUNDATION_EXPORT double INFViewVersionNumber;
//! Project version string for INFView.
FOUNDATION_EXPORT const unsigned char INFV... |
alexandergr/INFView | INFViewTests/Fakes/FakeLayoutDataSource.h | <reponame>alexandergr/INFView
//
// FaceLayoutDataSource.h
// INFViewTests
//
// Created by <NAME> on 3/14/18.
// Copyright © 2018 Alexander. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "INFLayoutManager.h"
@interface FakeLayoutDataSource : NSObject <INFLayoutDataSource>
@property (strong, ... |
alexandergr/INFView | INFView/INFLayoutManager.h | //
// INFLayoutManager.h
// INFView
//
// Created by <NAME> on 2/1/18.
// Copyright © 2018 Alexander. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>
#import "INFLayoutStrategy.h"
@protocol INFLayoutTarget;
@protocol INFLayoutDataSource;
@protocol INFLayoutDelegate;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.