repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
yoursunny/carepo | repo/ndnr_store.h | /**
* @file ndnr_store.h
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011 Palo Alto Research Center, Inc.
*
* This work is free software; you can redistribute it and/or mo... |
yoursunny/carepo | repo/ndnr_main.c | /**
* @file ndnr_main.c
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2009-2013 Palo Alto Research Center, Inc.
*
* This work is free software; you can redistribute it and/... |
yoursunny/carepo | segment/metadata.h | #ifndef CAREPO_SEGMENT_METADATA_H_
#define CAREPO_SEGMENT_METADATA_H_
#include "segment.h"
void segment_list_to_metadata(const struct segment_list* self, struct ndn_charbuf* c);
struct segment_list* segment_list_from_metadata(const uint8_t* buf, size_t sz);
#endif//CAREPO_SEGMENT_METADATA_H_
|
yoursunny/carepo | repo/ndnr_sync.c | /**
* @file ndnr_sync.c
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011, 2013 Palo Alto Research Center, Inc.
*
* This work is free software; you can redistribute it and... |
yoursunny/carepo | repo/ndnr_io.h | /**
* @file ndnr_io.h
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011 Palo Alto Research Center, Inc.
*
* This work is free software; you can redistribute it and/or modif... |
yoursunny/carepo | repo/ndnr_init.c | /**
* @file ndnr_init.c
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011 Palo Alto Research Center, Inc.
*
* This work is free software; you can redistribute it and/or mo... |
yoursunny/carepo | repo/ndnr_forwarding.h | <gh_stars>0
/**
* @file ndnr_forwarding.h
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011 Palo Alto Research Center, Inc.
*
* This work is free software; you can redistri... |
yoursunny/carepo | repo/ndnr_msg.h | <gh_stars>0
/**
* @file ndnr_msg.h
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011, 2012 Palo Alto Research Center, Inc.
*
* This work is free software; you can redistrib... |
yoursunny/carepo | repo/ndnr_private.h | /**
* @file ndnr_private.h
*
* Private definitions for ndnr - the NDNx daemon.
* Data structures are described here so that logging and status
* routines can be compiled separately.
*
* Part of ndnr - the NDNx Repository Daemon.
*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Ba... |
yoursunny/carepo | rabin/rabin_polynomial.c | /*
* rabin_polynomial.c
*
* Created by <NAME> on 09-March-2011.
*
* Copyright (c) 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 m... |
yoursunny/carepo | repo/ndnr_match.c | /**
* @file ndnr_match.c
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011, 2013 Palo Alto Research Center, Inc.
*
* This work is free software; you can redistribute it and... |
yoursunny/carepo | rabin/rabin_polynomial.h | /*
* rabin_polynomial.h
*
* Created by <NAME> on 09-March-2011.
*
* Copyright (c) 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 m... |
yoursunny/carepo | segment/writer.c | #include "writer.h"
struct file_writer* file_writer_ctor(struct segment_list* sl, FILE* file, struct ndn* h, struct ndn_charbuf* name, bool sign_segments) {
struct file_writer* self = calloc(1, sizeof(*self));
self->h = h;
self->file = file;
self->name = ndn_charbuf_create();
ndn_charbuf_append_charbuf(self... |
yoursunny/carepo | segment/segment_test.c | #include <CUnit/CUnit.h>
#include "segment.h"
void test_segment_ctor(void) {
struct segment_list* sl = segment_list_ctor(2);
CU_ASSERT_PTR_NOT_NULL(sl);
CU_ASSERT_PTR_NOT_NULL(sl->list);
CU_ASSERT_EQUAL(sl->count, 2);
segment_list_dtor(&sl);
CU_ASSERT_PTR_NULL(sl);
segment_list_dtor(&sl);
CU_ASSERT_PTR... |
yoursunny/carepo | defs.h | #ifndef CAREPO_DEFS_H_
#define CAREPO_DEFS_H_
#include <assert.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdarg.h>
#include <unistd.h>
#include <ndn/ndn.h>
#include <ndn/uri.h>
static inline void LOG(const char* format, ...) {
va_list args;
v... |
yoursunny/carepo | segment/rabin_test.c | <reponame>yoursunny/carepo<filename>segment/rabin_test.c
#include <CUnit/CUnit.h>
#include "rabin.h"
#include "metadata.h"
void test_segment_rabin(void) {
FILE* file = fopen("waf", "r");
struct segment_list* sl = segment_rabin(file);
CU_ASSERT_PTR_NOT_NULL(sl);
fclose(file);
struct ndn_charbuf* c = ndn_ch... |
yoursunny/carepo | repo/ndnr_sync.h | /**
* @file ndnr_sync.h
*
* Part of ndnr - NDNx Repository Daemon.
*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011 Palo Alto Research Center, Inc.
*
* This work is free software; you can redistribute it and/or modify it u... |
yoursunny/carepo | repo/ndnr_sendq.c | <reponame>yoursunny/carepo<filename>repo/ndnr_sendq.c
/**
* @file ndnr_sendq.c
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011 Palo Alto Research Center, Inc.
*
* This w... |
yoursunny/carepo | repo/ndnr_store.c | /**
* @file ndnr_store.c
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011, 2013 Palo Alto Research Center, Inc.
*
* This work is free software; you can redistribute it an... |
yoursunny/carepo | command/unittest.c | #include <CUnit/CUnit.h>
#include <CUnit/Basic.h>
int main(void) {
CU_initialize_registry();
CU_pSuite suite;
#define SUITE(name) { suite = CU_add_suite(#name, NULL, NULL); }
#define TEST(f) { void test_##f(void); CU_add_test(suite, #f, test_##f); }
#include "segment/testsuite.h"
CU_basic_set_mode(CU_BRM... |
yoursunny/carepo | segment/testsuite.h | <gh_stars>0
SUITE(segment);
TEST(segment_ctor);
TEST(segment_rabin);
|
yoursunny/carepo | repo/ndnr_util.c | /**
* @file ndnr_util.c
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011 Palo Alto Research Center, Inc.
*
* This work is free software; you can redistribute it and/or mo... |
yoursunny/carepo | repo/ndnr_proto.c | <gh_stars>0
/**
* @file ndnr_proto.c
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011, 2013 Palo Alto Research Center, Inc.
*
* This work is free software; you can redist... |
yoursunny/carepo | command/rabinseg.c | // segment a file using Rabin Fingerprint, and print the segment offsets and hashes
#include "segment/rabin.h"
#include "segment/metadata.h"
void usage(void) {
printf("Usage: rabinseg [-h] filename\n");
}
int main(int argc, char** argv) {
bool human_readable = false;
int opt;
while (-1 != (opt = getopt(argc, ... |
yoursunny/carepo | command/caget.c | <reponame>yoursunny/carepo<filename>command/caget.c
// fetch a file based on metadata
#include "segment/fetcher.h"
void usage(void) {
printf("Usage: caget name metafile filename\n");
}
int main(int argc, char** argv) {
optind = 1;
if (argc-optind != 3) {
usage();
return 1;
}
const char* name_str = a... |
yoursunny/carepo | repo/ndnr_dispatch.c | <reponame>yoursunny/carepo
/**
* @file ndnr_dispatch.c
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011 Palo Alto Research Center, Inc.
*
* This work is free software; yo... |
yoursunny/carepo | repo/ndnr_forwarding.c | /**
* @file ndnr_forwarding.c
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011 Palo Alto Research Center, Inc.
*
* This work is free software; you can redistribute it and... |
yoursunny/carepo | segment/segment.h | #ifndef CAREPO_SEGMENT_SEGMENT_H_
#define CAREPO_SEGMENT_SEGMENT_H_
#include "defs.h"
#define SEGMENT_HASHSZ 32
struct segment {
uint64_t start;
uint16_t length;
uint8_t hash[SEGMENT_HASHSZ];
};
struct segment_list {
uint32_t count;
struct segment* list;
};
struct segment_list* segment_list_ctor(uint32_t c... |
yoursunny/carepo | repo/hash_store.h | <reponame>yoursunny/carepo
#ifndef CAREPO_REPO_HASH_STORE_H_
#define CAREPO_REPO_HASH_STORE_H_
#include "defs.h"
#include <ndn/btree.h>
#include "ndnr_private.h"
struct hash_store {
struct ndnr_handle* h;
struct ndn_btree* btree;
};
struct hash_store* hash_store_ctor(struct ndnr_handle* h);
void hash_store_dtor(s... |
yoursunny/carepo | repo/ndnr_match.h | /**
* @file ndnr_match.h
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011 Palo Alto Research Center, Inc.
*
* This work is free software; you can redistribute it and/or mo... |
yoursunny/carepo | repo/ndnr_stats.c | <reponame>yoursunny/carepo
/**
* @file ndnr_stats.c
*
* Statistics presentation for ndnr.
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011, 2013 Palo Alto Research Center... |
yoursunny/carepo | repo/ndnr_io.c | <filename>repo/ndnr_io.c
/**
* @file ndnr_io.c
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011, 2013 Palo Alto Research Center, Inc.
*
* This work is free software; you ... |
yoursunny/carepo | segment/rabin.c | <reponame>yoursunny/carepo
#include "rabin.h"
#include "rabin/rabin_polynomial.h"
#include <ndn/digest.h>
struct segment_list* segment_rabin(FILE* file) {
rabin_sliding_window_size = 31;
rabin_polynomial_max_block_size = 8192;
rabin_polynomial_min_block_size = 1024;
rabin_polynomial_average_block_size = 4096;
... |
yoursunny/carepo | repo/ndnr_dispatch.h | <gh_stars>0
/**
* @file ndnr_dispatch.h
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011 Palo Alto Research Center, Inc.
*
* This work is free software; you can redistribu... |
yoursunny/carepo | repo/ndnr_internal_client.h | /**
* @file ndnr_internal_client.h
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011 Palo Alto Research Center, Inc.
*
* This work is free software; you can redistribute it... |
yoursunny/carepo | rabin/rabin_polynomial_constants.h | <reponame>yoursunny/carepo
/*
* rabin_polynomial_constants.h
*
* Created by <NAME> on 09-May-2011.
*
* Copyright (c) 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:
*
... |
yoursunny/carepo | repo/ndnr_link.h | /**
* @file ndnr_link.h
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011 Palo Alto Research Center, Inc.
*
* This work is free software; you can redistribute it and/or mod... |
yoursunny/carepo | segment/fetcher.h | <reponame>yoursunny/carepo
#ifndef CAREPO_SEGMENT_WRITER_H_
#define CAREPO_SEGMENT_WRITER_H_
#include "metadata.h"
typedef uint8_t file_fetcher_req_status;
#define FILE_FETCHER_REQ_HWAIT 0
#define FILE_FETCHER_REQ_HSENT 1
#define FILE_FETCHER_REQ_NWAIT 2
#define FILE_FETCHER_REQ_NSENT 3
#define FILE_FETCHER_REQ_OK ... |
yoursunny/carepo | repo/ndnr_net.c | /**
* @file ndnr_net.c
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011-2012 Palo Alto Research Center, Inc.
*
* This work is free software; you can redistribute it and/o... |
yoursunny/carepo | segment/writer.h | <gh_stars>0
#ifndef CAREPO_SEGMENT_WRITER_H_
#define CAREPO_SEGMENT_WRITER_H_
#include "metadata.h"
struct file_writer {
struct ndn* h;
struct ndn_closure* closure;
FILE* file;
struct ndn_charbuf* name;// Name with version
struct ndn_indexbuf* name_comps;
struct segment_list* sl;
bool sign_segments;// us... |
yoursunny/carepo | segment/metadata.c | #include "metadata.h"
void segment_list_to_metadata(const struct segment_list* self, struct ndn_charbuf* c) {
ndnb_element_begin(c, NDN_DTAG_Collection);
ndnb_append_tagged_binary_number(c, NDN_DTAG_Count, self->count);
for (uint32_t i = 0; i < self->count; ++i) {
const struct segment* seg = self->list + i;
... |
yoursunny/carepo | segment/rabin.h | #ifndef CAREPO_SEGMENT_RABIN_H_
#define CAREPO_SEGMENT_RABIN_H_
#include "segment.h"
// segment a file according to Rabin Fingerprint boundary
struct segment_list* segment_rabin(FILE* file);
#endif//CAREPO_SEGMENT_RABIN_H_
|
yoursunny/carepo | repo/hash_store.c | #include "hash_store.h"
#include <ndn/digest.h>
#include <sys/stat.h>
#include <errno.h>
#include "segment/segment.h"
#include "ndnr_store.h"
#include <fcntl.h>
#include <unistd.h>
struct content_entry {
ndnr_accession accession;
ndnr_cookie cookie;
int flags;
int size;
struct ndn_charbuf* flatname;
struct... |
yoursunny/carepo | repo/ndnr_proto.h | /**
* @file ndnr_proto.h
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011 Palo Alto Research Center, Inc.
*
* This work is free software; you can redistribute it and/or mo... |
yoursunny/carepo | repo/ndnr_util.h | <gh_stars>0
/**
* @file ndnr_util.h
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011 Palo Alto Research Center, Inc.
*
* This work is free software; you can redistribute i... |
yoursunny/carepo | repo/ndnr_internal_client.c | <filename>repo/ndnr_internal_client.c
/**
* @file ndnr_internal_client.c
*
* Part of ndnr - NDNx Repository Daemon.
*
*/
/*
* Portions Copyright (C) 2013 Regents of the University of California.
*
* Based on the CCNx C Library by PARC.
* Copyright (C) 2011-2013 Palo Alto Research Center, Inc.
*
* This wo... |
yoursunny/carepo | command/caput.c | <filename>command/caput.c
// put a file and SHA256 metadata into repository
#include "segment/rabin.h"
#include "segment/writer.h"
void usage(void) {
printf("Usage: caput [-s] name filename\n");
}
int main(int argc, char** argv) {
bool sign_segments = false;
int opt;
while (-1 != (opt = getopt(argc, argv, "s"... |
acs6610987/SEAL | src/seal/secretkey.h | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#pragma once
#include "seal/randomgen.h"
#include "seal/plaintext.h"
#include "seal/memorymanager.h"
#include "seal/util/common.h"
#include <iostream>
#include <cstdint>
#include <cstddef>
#include <memory>
#include <rando... |
acs6610987/SEAL | src/seal/galoiskeys.h | <reponame>acs6610987/SEAL
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#pragma once
#include <iostream>
#include <vector>
#include <numeric>
#include "seal/ciphertext.h"
#include "seal/memorymanager.h"
#include "seal/encryptionparams.h"
namespace seal
{
/**
... |
acs6610987/SEAL | src/seal/context.h | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#pragma once
#include <unordered_map>
#include <functional>
#include <memory>
#include "seal/encryptionparams.h"
#include "seal/memorymanager.h"
#include "seal/util/smallntt.h"
#include "seal/util/baseconverter.h"
#include... |
wbhsm/react-native | ReactCommon/react/renderer/components/image/conversions.h | <gh_stars>1-10
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <better/map.h>
#include <folly/dynamic.h>
#include <react/debug/react_native_assert.h>
#inclu... |
sachinkesiraju/SKObserver | NSObject+SKObserver.h | //
// NSObject+SKObserver.h
// SKObserver
//
// Created by <NAME> on 1/19/17.
// Copyright © 2017 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface NSObject (SKObserver)
typedef void (^SKObserverBlock)(NSDictionary <NSKeyValueChangeKey, id> *change);
- (id) s... |
adaedra/ttyctl | ttyctl.c | #include <sys/ioctl.h>
#include <stdio.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
static char const * TTY_ERROR = "Cannot open TTY ";
static char const * TTY_PREFIX = "/dev/";
void strapnd(char ** ptr, char const * str) {
strcpy(*ptr, str);
*ptr += strlen(str);
**ptr... |
pipelining/POICore | POICore/UIImage+WGAddCorner.h | //
// UIImage+WGAddCorner.h
// 微感科技
//
// Created by 张冬冬 on 2016/12/28.
// Copyright © 2016年 张冬冬. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIImage (WGAddCorner)
- (instancetype)drawRectWithRoundedCornerRadius:(CGFloat)radius AndSize:(CGSize)sizeToFit;
@end
|
pipelining/POICore | POICore/UIView+BlurredImage.h | <filename>POICore/UIView+BlurredImage.h
//
// UIView+BlurredImage.h
//
#import <UIKit/UIKit.h>
@interface UIView (BlurredImage)
-(UIImage *)blurredImage;
-(UIImage *)imageWithBlur;
-(UIImage *)imageWithDarkEffect;
-(UIImage *)imageWithLightEffect;
-(UIImage *)imageWithExtraLightEffect;
-(UIImage *)imageWithTint:(UIC... |
pipelining/POICore | POICore/NSString+md5.h | //
// NSString+md5.h
// 微感科技
//
// Created by 张冬冬 on 2016/12/27.
// Copyright © 2016年 张冬冬. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (md5)
- (NSString *)md5String;
@end
|
pipelining/POICore | POICore/ZHNAlert.h | //
// ZHNAlert.h
// ZHNCosmos
//
// Created by zhn on 2018/1/17.
// Copyright © 2018年 zhn. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void(^ZHNAlertClickAction)();
@interface ZHNAlert : NSObject
/**
Show alert ,show one btn only
@param message message
@param confirmTitle confirm title
@param conf... |
pipelining/POICore | POICore/NSTimer+MFWeakTimer.h | //
// NSTimer+MFWeakTimer.h
// 软装
//
// Created by 张冬冬 on 2017/5/17.
// Copyright © 2017年 张冬冬. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSTimer (MFWeakTimer)
+ (NSTimer *)mf_scheduledTimerWithTimeInterval:(NSTimeInterval)interval repeats:(BOOL)repeats block:(void (^)(void))block;
@end
|
pipelining/POICore | POICore/MFDeviceInfoManager.h | // Copyright © 2017年 张冬冬. All rights reserved.
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface MFDeviceInfoManager : NSObject
//Screen scale
+ (CGFloat)scale;
//生成GUID
+ (NSString *)GUID;
//磁盘全部空间
+ (CGFloat)diskOfAllSizeGBytes;
//磁盘可用空间
+ (CGFloat)diskOfFreeSizeGBytes;
//获取文件大小
+ (long long)file... |
pipelining/POICore | POICore/MFManager.h | <filename>POICore/MFManager.h
//
// MFManager.h
// 微感科技
//
// Created by 张冬冬 on 2017/6/28.
// Copyright © 2017年 张冬冬. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface MFManager : NSObject
+ (NSArray *)distinctUnionOfArray:(NSArray *)originArray;
+ (UIImage *)getImageFromC... |
pipelining/POICore | POICore/UIImageView+WGAddCorner.h | <filename>POICore/UIImageView+WGAddCorner.h
//
// UIImageView+WGAddCorner.h
// 微感科技
//
// Created by 张冬冬 on 2016/12/28.
// Copyright © 2016年 张冬冬. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIImageView (WGAddCorner)
- (void)addCornerWithRadius:(CGFloat)radius;
@end
|
pipelining/POICore | POICore/UIColor+CustomColors.h | //
// UIColor+CustomColors.h
// 家装
//
// Created by 张冬冬 on 2016/12/15.
// Copyright © 2016年 张冬冬. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIColor (CustomColors)
+ (UIColor *)customGrayColor;
+ (UIColor *)customRedColor;
+ (UIColor *)customYellowColor;
+ (UIColor *)customGreenColor;
+ (UIColor *... |
pipelining/POICore | POICore/ZHNImageSaveToIphoneManager.h | <reponame>pipelining/POICore
//
// ZHNImageSaveToIphoneManager.h
// ZHNCosmos
//
// Created by zhn on 2017/11/23.
// Copyright © 2017年 zhn. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface ZHNImageSaveToIphoneManager : NSObject
+ (void)zhn_saveImageDataToIphone:(NSData *)imageDate
... |
pipelining/POICore | POICore/UIColor+HexColor.h | //
// UIColor+HexColor.h
// 家装
//
// Created by 张冬冬 on 2016/11/23.
// Copyright © 2016年 张冬冬. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIColor (HexColor)
+ (UIColor *)colorwithHexString:(NSString *)hexStr;
@end
|
tatsuhiroiida/mbed-os-pelion-sensor | MQTT_server_setting.h | #ifndef __MQTT_SERVER_SETTING_H__
#define __MQTT_SERVER_SETTING_H__
const char MQTT_SERVER_HOST_NAME[] = "<< REPLACE_HERE >>";
const char MQTT_CLIENT_ID[] = "device-1";
const char MQTT_TOPIC_CMD[] = "cmd/area-1/device-1";
const char MQTT_TOPIC_DATA[] = "data/area-1/device-1";
const int MQTT_SERVER_PORT = 8883;
/*
... |
WiseLabCMU/slam3d | particlefilter/include/pfRandom.h | /*
* pfRandom.h
* Created by <NAME> on 11/1/19.
*
* Copyright (c) 2019, Wireless Sensing and Embedded Systems Lab, Carnegie
* Mellon University
* All rights reserved.
*
* This source code is licensed under the BSD-3-Clause license found in the
* LICENSE file in the root directory of this source tree.
*/
#ifn... |
WiseLabCMU/slam3d | particlefilter/src/particleFilter.c | /*
* particleFilter.c
* Created by <NAME> on 11/1/18.
*
* Copyright (c) 2018, Wireless Sensing and Embedded Systems Lab, Carnegie
* Mellon University
* All rights reserved.
*
* This source code is licensed under the BSD-3-Clause license found in the
* LICENSE file in the root directory of this source tree.
*/... |
WiseLabCMU/slam3d | particlefilter/src/pfMeasurement.c | /*
* pfMeasurement.c
* Created by <NAME> on 11/1/19.
*
* Copyright (c) 2019, Wireless Sensing and Embedded Systems Lab, Carnegie
* Mellon University
* All rights reserved.
*
* This source code is licensed under the BSD-3-Clause license found in the
* LICENSE file in the root directory of this source tree.
*/
... |
WiseLabCMU/slam3d | particlefilter/include/particleFilter.h | /*
* particleFilter.h
* Created by <NAME> on 11/1/18.
*
* Copyright (c) 2018, Wireless Sensing and Embedded Systems Lab, Carnegie
* Mellon University
* All rights reserved.
*
* This source code is licensed under the BSD-3-Clause license found in the
* LICENSE file in the root directory of this source tree.
*... |
WiseLabCMU/slam3d | csvslam/csvslam.c | //
// csvslam.c
//
// Created by <NAME> on 11/1/18.
// Copyright � 2018 CMU. All rights reserved.
//
#include <assert.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "particleFilter.h"
#define DATA_DIR "../sampledata/"
#define TRACE_DIR DATA_DIR "cic... |
WiseLabCMU/slam3d | csvlocalize/csvlocalize.c | <filename>csvlocalize/csvlocalize.c
//
// csvlocalize.c
//
// Created by <NAME> on 11/1/18.
// Copyright � 2018 CMU. All rights reserved.
//
#include <assert.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "particleFilter.h"
//#define DATA_DIR "../sampledata/... |
WiseLabCMU/slam3d | mqttlocalize/mqttlocalize.c | //
// mqttlocalize.c
//
// Created by <NAME> on 11/1/18.
// Copyright � 2018 CMU. All rights reserved.
//
// Solver coordinates are "Z up";
// Coordinate input/output functions:
// _getVio(),
// _getDeployment(),
// _publishLoc()
// have to transform to/from this coordinate system
//
#include <a... |
WiseLabCMU/slam3d | particlefilter/include/pfResample.h | <gh_stars>1-10
/*
* pfResample.h
* Created by <NAME> on 11/1/19.
*
* Copyright (c) 2019, Wireless Sensing and Embedded Systems Lab, Carnegie
* Mellon University
* All rights reserved.
*
* This source code is licensed under the BSD-3-Clause license found in the
* LICENSE file in the root directory of this sourc... |
WiseLabCMU/slam3d | particlefilter/include/pfInit.h | /*
* pfInit.h
* Created by <NAME> on 11/1/19.
*
* Copyright (c) 2019, Wireless Sensing and Embedded Systems Lab, Carnegie
* Mellon University
* All rights reserved.
*
* This source code is licensed under the BSD-3-Clause license found in the
* LICENSE file in the root directory of this source tree.
*/
#ifnde... |
WiseLabCMU/slam3d | particlefilter/include/pfMeasurement.h | /*
* pfMeasurement.h
* Created by <NAME> on 11/1/19.
*
* Copyright (c) 2019, Wireless Sensing and Embedded Systems Lab, Carnegie
* Mellon University
* All rights reserved.
*
* This source code is licensed under the BSD-3-Clause license found in the
* LICENSE file in the root directory of this source tree.
*/
... |
WiseLabCMU/slam3d | ArSlam/app/src/main/jni/slam3d-jni.c | //
// slam3d-jni.c
//
// Created by <NAME> on 1/22/19.
// Copyright © 2019 CMU. All rights reserved.
//
#include <android/log.h>
#include <malloc.h>
#include <jni.h>
#include <particleFilter.h>
#define APPNAME "ArSlam"
JNIEXPORT jlong JNICALL Java_com_example_arslam_Slam3dJni_particleFilterNewPf(
JNIEnv* ... |
WiseLabCMU/slam3d | particlefilter/src/pfInit.c | <reponame>WiseLabCMU/slam3d
/*
* pfInit.c
* Created by <NAME> on 11/1/19.
*
* Copyright (c) 2019, Wireless Sensing and Embedded Systems Lab, Carnegie
* Mellon University
* All rights reserved.
*
* This source code is licensed under the BSD-3-Clause license found in the
* LICENSE file in the root directory of t... |
WiseLabCMU/slam3d | test/test.c | <gh_stars>1-10
/*
* test.c
* Created by <NAME> on 6/25/21.
*
* Copyright (c) 2021, Wireless Sensing and Embedded Systems Lab, Carnegie
* Mellon University
* All rights reserved.
*
* This source code is licensed under the BSD-3-Clause license found in the
* LICENSE file in the root directory of this source tree... |
ajbennieston/ssh-tunnel | ssh-tunneld/logging.h | <reponame>ajbennieston/ssh-tunnel<gh_stars>1-10
/*
* This file is part of ssh-tunnel.
* See the LICENSE file in the top-level directory
* of the source distribution for further details.
*/
#ifndef SSH_TUNNELD_LOGGING_H
#define SSH_TUNNELD_LOGGING_H
#include <stdio.h>
void write_log_connect(int num_connections);
... |
ajbennieston/ssh-tunnel | ssh-tunneld/ssh-control.h | <filename>ssh-tunneld/ssh-control.h
/*
* This file is part of ssh-tunnel.
* See the LICENSE file in the top-level directory
* of the source distribution for further details.
*/
#ifndef SSH_TUNNELD_SSHCONTROL_H
#define SSH_TUNNELD_SSHCONTROL_H
#include <sys/types.h>
pid_t start_ssh_tunnel(char* hostname, char* po... |
ajbennieston/ssh-tunnel | ssh-tunnelc/options.h | /*
* This file is part of ssh-tunnel.
* See the LICENSE file in the top-level directory
* of the source distribution for further details.
*/
#ifndef SSH_TUNNELC_OPTIONS_H
#define SSH_TUNNELC_OPTIONS_H
struct program_options {
/* Address of the proxy to connect to */
char* proxy_host;
char* proxy_port;... |
ajbennieston/ssh-tunnel | ssh-tunneld/logging.c | <filename>ssh-tunneld/logging.c
/*
* This file is part of ssh-tunnel.
* See the LICENSE file in the top-level directory
* of the source distribution for further details.
*/
#define _XOPEN_SOURCE 500
#include "logging.h"
#include <stdio.h>
#include <string.h>
#include <time.h>
/* Global variables */
FILE* logfil... |
ajbennieston/ssh-tunnel | ssh-tunneld/options.h | /*
* This file is part of ssh-tunnel.
* See the LICENSE file in the top-level directory
* of the source distribution for further details.
*/
#ifndef SSH_TUNNELD_OPTIONS_H
#define SSH_TUNNELD_OPTIONS_H
void print_usage(const char* program_name);
struct program_options {
/* Remote details */
char* remote_h... |
ajbennieston/ssh-tunnel | ssh-tunnelc/ssh-tunnelc.c | <reponame>ajbennieston/ssh-tunnel<filename>ssh-tunnelc/ssh-tunnelc.c
/*
* This file is part of ssh-tunnel.
* See the LICENSE file in the top-level directory
* of the source distribution for further details.
*/
#define _XOPEN_SOURCE 500
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>... |
ajbennieston/ssh-tunnel | ssh-tunnelc/control.h | /*
* This file is part of ssh-tunnel.
* See the LICENSE file in the top-level directory
* of the source distribution for further details.
*/
#ifndef SSH_TUNNELC_CONTROL_H
#define SSH_TUNNELC_CONTROL_H
void connection_start(void);
void connection_stop(void);
extern char* tunneld_host;
extern char* tunneld_port;
... |
ajbennieston/ssh-tunnel | ssh-tunnelc/control.c | <filename>ssh-tunnelc/control.c
/*
* This file is part of ssh-tunnel.
* See the LICENSE file in the top-level directory
* of the source distribution for further details.
*/
#define _XOPEN_SOURCE 500
#include "control.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <s... |
ajbennieston/ssh-tunnel | ssh-tunneld/ssh-control.c | /*
* This file is part of ssh-tunnel.
* See the LICENSE file in the top-level directory
* of the source distribution for further details.
*/
#define _XOPEN_SOURCE 500
#include "ssh-control.h"
#include "logging.h"
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
#include <signal.h>
pid_t start_ssh_t... |
ajbennieston/ssh-tunnel | ssh-tunneld/ssh-tunneld.c | <reponame>ajbennieston/ssh-tunnel<gh_stars>1-10
/*
* This file is part of ssh-tunnel.
* See the LICENSE file in the top-level directory
* of the source distribution for further details.
*/
#define _XOPEN_SOURCE 500
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <unistd.h>
... |
ajbennieston/ssh-tunnel | ssh-tunnelc/options.c | <filename>ssh-tunnelc/options.c
/*
* This file is part of ssh-tunnel.
* See the LICENSE file in the top-level directory
* of the source distribution for further details.
*/
#define _XOPEN_SOURCE 500
#define _POSIX_C_SOURCE 200809L
#include "options.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#in... |
ajbennieston/ssh-tunnel | ssh-tunneld/options.c | <filename>ssh-tunneld/options.c
/*
* This file is part of ssh-tunnel.
* See the LICENSE file in the top-level directory
* of the source distribution for further details.
*/
#define _XOPEN_SOURCE 500
#define _POSIX_C_SOURCE 200112L
#include "options.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#i... |
zj-insist/QSCommonViews | QSCommonViews/Classes/QSAlertView.h | //
// QSAlertView.h
// Pods-QSCommonViews_Example
//
// Created by ZJ-Jie on 2017/12/1.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSUInteger, QSAlertButtonStyle) {
QSAlertButtonStyleCancel,
QSAlertButtonStyleImport,
QSAlertButtonStyleNormal
};
@interface QSAlertButton : UIButton
+ (instancetype)crea... |
zj-insist/QSCommonViews | Example/Pods/Target Support Files/QSCommonViews/QSCommonViews-umbrella.h | #ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#import "QSAlertView.h"
#import "QSAlertViewsMacro.h"
#import "QSCommonViews.h"
#import "UIView+Tools.h"
FOUNDATION_EXPORT d... |
zj-insist/QSCommonViews | QSCommonViews/Classes/QSCommonViews.h | <gh_stars>0
//
// QSCommonViews.h
// Pods
//
// Created by ZJ-Jie on 2017/12/1.
//
#import <Foundation/Foundation.h>
#if __has_include(<QSCommonViews/QSCommonViews.h>)
#import <QSCommonViews/QSAlertView.h>
#else
#import "QSAlertView.h"
#endif
|
zj-insist/QSCommonViews | Example/QSCommonViews/QSViewController.h | <reponame>zj-insist/QSCommonViews<gh_stars>0
//
// QSViewController.h
// QSCommonViews
//
// Created by <EMAIL> on 12/01/2017.
// Copyright (c) 2017 <EMAIL>. All rights reserved.
//
@import UIKit;
@interface QSViewController : UIViewController
@end
|
zj-insist/QSCommonViews | QSCommonViews/Classes/QSAlertViewsMacro.h | <gh_stars>0
//
// QSAlertViewsMacro.h
// Pods
//
// Created by ZJ-Jie on 2017/12/1.
//
#ifndef QSAlertViewsMacro_h
#define QSAlertViewsMacro_h
//屏幕信息
#define Screen_Bounds [UIScreen mainScreen].bounds
#define Screen_Height [UIScreen mainScreen].bounds.size.height
#define Screen_Width [UIScreen mainScreen].bounds.s... |
zj-insist/QSCommonViews | Example/QSCommonViews/QSAppDelegate.h | //
// QSAppDelegate.h
// QSCommonViews
//
// Created by <EMAIL> on 12/01/2017.
// Copyright (c) 2017 <EMAIL>. All rights reserved.
//
@import UIKit;
@interface QSAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
melton1968/uSockets | tests/sni_test.c | <reponame>melton1968/uSockets
extern "C" {
void *sni_new();
void sni_free(void *sni, void (*cb)(void *user));
int sni_add(void *sni, const char *hostname, void *user);
void *sni_remove(void *sni, const char *hostname);
void *sni_find(void *sni, const char *hostname);
}
#include <assert.h>
#include <stdio.h>
/* Todo: ... |
lbruun/netbeans-profiler | profiler/lib.profiler/native/src-jdk15/config.c | #include <stdio.h>
#include "jni.h"
int main(int argc, char* argv[]) {
if (sizeof(jint) == sizeof(jmethodID)) {
puts("#undef NEEDS_CONVERSION");
} else {
puts("#define NEEDS_CONVERSION");
}
return 0;
}
|
guaraqe/qhull-simple | foreign-src/qhull_wrapper.c | <filename>foreign-src/qhull_wrapper.c
#define _POSIX_C_SOURCE 200809L
#include <stdio.h>
#include <libqhull/libqhull.h>
#include <libqhull/qset.h>
#include <libqhull/poly.h>
#include <pthread.h>
#include <errno.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "qhull_wrapper.h"
static pthread_m... |
guaraqe/qhull-simple | foreign-src/qhull_wrapper.h | <gh_stars>0
#pragma once
#include <stdbool.h>
int qhull_wrapper(int d, int m, double *indata, char *cmd, int *n, int **outdata, char **errmsg);
void cleanup();
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.