repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
maurerpower12/GUI
Study_Smart/notecard.h
/************************************************************* * Author: <NAME> * Filename: notecard.h * Date Created: 4/14/16 * Modifications: 4/14/16 Basic class layout **************************************************************/ #ifndef NOTECARD_H #define NOTECARD_H #include <QString> #inc...
maurerpower12/GUI
Study_Smart/random.h
<reponame>maurerpower12/GUI /************************************************************************ * Class: Random * Overview: * Constructors: * Random() * Seed for random-number generation. * * Mutators: * None. * * Methods: * unsigned GetRandom(int n) const * Returns a random integer using time as a standard. * ...
maurerpower12/GUI
Study_Smart/deck.h
<gh_stars>0 /************************************************************************ * Class: Deck * Updates: * * * Overview: * * * Constructors: * Deck() * * * Mutators: * None. * * Methods: * void Shuffle() * This method randomly shuffles the deck. * Card Deal(int m_currentCard) * Deals one card but does not displ...
hxfxjun/oneflow
oneflow/core/kernel/kernel_util.h
<filename>oneflow/core/kernel/kernel_util.h<gh_stars>0 /* Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses...
hxfxjun/oneflow
oneflow/core/thread/thread.h
/* Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
hxfxjun/oneflow
oneflow/user/kernels/loss_kernel_util.h
<gh_stars>0 /* Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable...
hxfxjun/oneflow
oneflow/core/primitive/include/add.h
/* Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
paypal/seifnode
src/seifecc.h
<reponame>paypal/seifnode /** @file eccisaac.h * @brief Class header for native object wrapped in javascript object * responsible for performing Crypto++ ECC cryptography functions * * @author <NAME> * @author <NAME> * * The MIT License (MIT) * * Copyright (c) 2015, 2016, 2017 PayPal * * Permission i...
paypal/seifnode
src/rng.h
<gh_stars>100-1000 /** @file rng.h * @brief Class header for native object wrapped in javascript object * responsible for generating random numbers (isaac) based on a given * seed and saving/restoring the RNG state to the disk. The class also * provides the ability to accept a secret key to encrypt the...
paypal/seifnode
src/seifsha3.h
<gh_stars>100-1000 /** @file seifsha3.h * @brief Class header for native object wrapped in javascript object * responsible for performing Crypto++ SHA3 hash function * * @author <NAME> * @author <NAME> * * The MIT License (MIT) * * Copyright (c) 2015, 2016, 2017 PayPal * * Permission is hereby grante...
paypal/seifnode
src/aesxor.h
/** @file aesxor.h * @brief Class header for native object wrapped in javascript object * responsible for performing Crypto++ AES cryptography functions * * @author <NAME> * @author <NAME> * * The MIT License (MIT) * * Copyright (c) 2015, 2016, 2017 PayPal * * Permission is hereby granted, free of ch...
paypal/seifnode
src/util.h
<gh_stars>100-1000 /** @file util.h * @brief header/implementation file for utility functions used by the node * module * * @author <NAME> * @author <NAME> * * The MIT License (MIT) * * Copyright (c) 2015, 2016, 2017 PayPal * * Permission is hereby granted, free of charge, to any person obtaining a c...
zhanglei1949/fastFFI
binding-generator/src/test/resources/generator_test.h
/* * Copyright 1999-2021 Alibaba Group Holding Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
zhanglei1949/fastFFI
samples/simdjson-demo/src/main/native/benchmarks.h
/* * Copyright 1999-2021 Alibaba Group Holding Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
zhanglei1949/fastFFI
test/src/main/native/ffitest.h
/* * Copyright 1999-2021 Alibaba Group Holding Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
zhanglei1949/fastFFI
test/src/main/native/FullFeature.h
<reponame>zhanglei1949/fastFFI /* * Copyright 1999-2021 Alibaba Group Holding Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
sanjayklaus/SL-assgn2
palindrome.c
#include<stdio.h> int main() { int n, num, rev, rem; printf("Enter the Number: "); scanf("%d", &n); num = n; while( n > 0) { rem = n % 10; rev = rev*10 + rem; n = n / 10; } if( num == rev) { printf("The number is palindrome"); } else ...
emclient/cef
libcef/browser/main_runner.h
<filename>libcef/browser/main_runner.h // Copyright 2020 The Chromium Embedded Framework Authors. // Portions copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CEF_LIBCEF_BROWSER_MAIN_RUNNER_H_ #defi...
emclient/cef
libcef/browser/simple_menu_model_impl.h
// Copyright (c) 2021 The Chromium Embedded Framework Authors. // Portions copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CEF_LIBCEF_BROWSER_SIMPLE_MENU_MODEL_IMPL_H_ #define CEF_LIBCEF_BROWSE...
emclient/cef
include/base/cef_ref_counted.h
<reponame>emclient/cef<gh_stars>1000+ // Copyright (c) 2014 <NAME>. Portions copyright (c) 2012 // Google Inc. 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 sou...
emclient/cef
include/base/cef_atomic_flag.h
// Copyright (c) 2014 <NAME>. Portions copyright (c) 2011 // Google Inc. 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 copyrig...
emclient/cef
libcef_dll/ctocpp/test/translator_test_ctocpp.h
<filename>libcef_dll/ctocpp/test/translator_test_ctocpp.h // Copyright (c) 2021 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. // // --------------------------------------------------------------------...
emclient/cef
libcef/browser/extensions/extension_background_host.h
<gh_stars>1000+ // Copyright 2017 the Chromium Embedded Framework Authors. Portions copyright // 2013 The Chromium Authors. All rights reserved. Use of this source code is // governed by a BSD-style license that can be found in the LICENSE file. #ifndef CEF_LIBCEF_BROWSER_EXTENSIONS_EXTENSION_BACKGROUND_HOST_H_ #defin...
emclient/cef
libcef_dll/ctocpp/context_menu_params_ctocpp.h
<gh_stars>1000+ // Copyright (c) 2021 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. // // --------------------------------------------------------------------------- // // This file was generated by t...
emclient/cef
include/capi/views/cef_window_capi.h
// Copyright (c) 2021 <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 t...
emclient/cef
libcef/browser/net_service/proxy_url_loader_factory.h
// Copyright (c) 2019 The Chromium Embedded Framework Authors. Portions // Copyright (c) 2018 The Chromium Authors. All rights reserved. Use of this // source code is governed by a BSD-style license that can be found in the // LICENSE file. #ifndef CEF_LIBCEF_BROWSER_NET_SERVICE_PROXY_URL_LOADER_FACTORY_H_ #define CEF...
emclient/cef
libcef/browser/print_settings_impl.h
<reponame>emclient/cef // Copyright (c) 2014 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. #ifndef CEF_LIBCEF_BROWSER_PRINT_SETTINGS_IMPL_H_ #define CEF_LIBCEF_BROWSER_PRINT_SETTINGS_IMPL_H_ #pragma ...
emclient/cef
libcef/browser/chrome/chrome_browser_host_impl.h
// Copyright 2020 The Chromium Embedded Framework Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CEF_LIBCEF_BROWSER_CHROME_CHROME_BROWSER_HOST_IMPL_H_ #define CEF_LIBCEF_BROWSER_CHROME_CHROME_BROWSER_HOST_IMPL_H_ #pragma onc...
emclient/cef
libcef/browser/chrome/views/toolbar_view_impl.h
<filename>libcef/browser/chrome/views/toolbar_view_impl.h // Copyright 2021 The Chromium Embedded Framework Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file. #ifndef CEF_LIBCEF_BROWSER_CHROME_VIEWS_TOOLBAR_VIEW_IMPL_H_ #define CEF_LIBC...
emclient/cef
libcef/browser/browser_manager.h
<reponame>emclient/cef // Copyright 2021 The Chromium Embedded Framework Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CEF_LIBCEF_BROWSER_BROWSER_MANAGER_H_ #define CEF_LIBCEF_BROWSER_BROWSER_MANAGER_H_ #include "cef/libce...
emclient/cef
libcef/browser/chrome/chrome_browser_context.h
// Copyright 2020 The Chromium Embedded Framework Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CEF_LIBCEF_BROWSER_CHROME_CHROME_BROWSER_CONTEXT_H_ #define CEF_LIBCEF_BROWSER_CHROME_CHROME_BROWSER_CONTEXT_H_ #pragma once #...
emclient/cef
libcef/browser/alloy/alloy_dialog_util.h
// Copyright 2021 The Chromium Embedded Framework Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file. #ifndef CEF_LIBCEF_BROWSER_ALLOY_ALLOY_DIALOG_UTIL_H_ #define CEF_LIBCEF_BROWSER_ALLOY_ALLOY_DIALOG_UTIL_H_ #pragma once #include <str...
emclient/cef
include/base/cef_cxx17_backports.h
// Copyright (c) 2021 <NAME>. Portions copyright (c) 2021 // Google Inc. 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 copyrig...
emclient/cef
libcef/browser/native/cursor_util.h
<filename>libcef/browser/native/cursor_util.h // Copyright 2020 The Chromium Embedded Framework Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CEF_LIBCEF_BROWSER_NATIVE_CURSOR_UTIL_H_ #define CEF_LIBCEF_BROWSER_NATIVE_CURSOR...
emclient/cef
libcef_dll/ctocpp/server_ctocpp.h
<gh_stars>1000+ // Copyright (c) 2021 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. // // --------------------------------------------------------------------------- // // This file was generated by t...
emclient/cef
libcef/browser/request_context_handler_map.h
<filename>libcef/browser/request_context_handler_map.h<gh_stars>1000+ // Copyright (c) 2019 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. #ifndef CEF_LIBCEF_BROWSER_REQUEST_CONTEXT_HANDLER_MAP_ #defi...
emclient/cef
libcef/browser/net_service/stream_reader_url_loader.h
// Copyright (c) 2019 The Chromium Embedded Framework Authors. Portions // Copyright (c) 2018 The Chromium Authors. All rights reserved. Use of this // source code is governed by a BSD-style license that can be found in the // LICENSE file. #ifndef CEF_LIBCEF_BROWSER_NET_SERVICE_STREAM_READER_URL_LOADER_H_ #define CEF...
emclient/cef
tests/cefclient/browser/root_window.h
// Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. #ifndef CEF_TESTS_CEFCLIENT_BROWSER_ROOT_WINDOW_H_ #define CEF_TESTS_CEFCLIENT_BROWSER_ROOT_WINDOW_H_ #pragma once #include <memor...
emclient/cef
libcef/browser/chrome/views/toolbar_view_view.h
// Copyright 2021 The Chromium Embedded Framework Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file. #ifndef CEF_LIBCEF_BROWSER_CHROME_VIEWS_TOOLBAR_VIEW_VIEW_H_ #define CEF_LIBCEF_BROWSER_CHROME_VIEWS_TOOLBAR_VIEW_VIEW_H_ #pragma once ...
emclient/cef
libcef_dll/ctocpp/value_ctocpp.h
<filename>libcef_dll/ctocpp/value_ctocpp.h // Copyright (c) 2021 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. // // --------------------------------------------------------------------------- // // T...
emclient/cef
libcef_dll/ctocpp/views/browser_view_delegate_ctocpp.h
<gh_stars>1000+ // Copyright (c) 2021 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. // // --------------------------------------------------------------------------- // // This file was generated by t...
emclient/cef
include/cef_browser.h
// Copyright (c) 2012 <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 t...
emclient/cef
include/capi/cef_frame_handler_capi.h
<filename>include/capi/cef_frame_handler_capi.h // Copyright (c) 2021 <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 co...
goshhhy/m1n1
src/hv.c
/* SPDX-License-Identifier: MIT */ #include "hv.h" #include "assert.h" #include "cpu_regs.h" #include "gxf.h" #include "pcie.h" #include "smp.h" #include "usb.h" #include "utils.h" #define HV_TICK_RATE 1000 void hv_enter_guest(u64 x0, u64 x1, u64 x2, u64 x3, void *entry); extern char _hv_vectors_start[0]; u64 hv_t...
goshhhy/m1n1
src/kboot.h
<filename>src/kboot.h /* SPDX-License-Identifier: MIT */ #ifndef KBOOT_H #define KBOOT_H #include "types.h" struct kernel_header { u32 code[2]; /* Executable code */ u64 text_offset; /* Image load offset, little endian */ u64 image_size; /* Effective Image size, little endian */ u64 flags; ...
goshhhy/m1n1
src/cpio.h
<gh_stars>0 /* SPDX-License-Identifier: MIT */ #ifndef CPIO_H #define CPIO_H #include "types.h" #include "utils.h" struct cpio; struct cpio *cpio_init(void); int cpio_add_file(struct cpio *c, const char *name, const u8 *bfr, size_t sz); int cpio_add_dir(struct cpio *c, const char *name); size_t cpio_get_size(struct...
goshhhy/m1n1
src/cpio.c
<filename>src/cpio.c /* SPDX-License-Identifier: MIT */ #include <string.h> #include "cpio.h" #include "malloc.h" #include "types.h" #include "utils.h" #define CPIO_MAX_FILES 20 #define CPIO_MODE_DIR 0040755 #define CPIO_MODE_FILE 0100644 #define CPIO_HEADER_MAGIC "070701" struct cpio_header { char magic[6];...
refraincc/CFFoundation
CFFoundation/Classes/Category/NSDate+CFCategory.h
<gh_stars>1-10 // // NSDate+CFCategory.h // CFFoundation // // Created by refraincc on 2019/3/26. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface NSDate (CFCategory) /*! 年 */ - (NSInteger)CF_getYear; /*! 月 */ - (NSInteger)CF_getMonth; /*! 日 */ - (NSInteger)CF_getDay; /*! 时 */ ...
refraincc/CFFoundation
Example/CFFoundation/CFViewController.h
<reponame>refraincc/CFFoundation // // CFViewController.h // CFFoundation // // Created by refraincc on 03/26/2019. // Copyright (c) 2019 refraincc. All rights reserved. // @import UIKit; @interface CFViewController : UIViewController @end
refraincc/CFFoundation
CFFoundation/Classes/Category/NSDateFormatter+CFCategory.h
<filename>CFFoundation/Classes/Category/NSDateFormatter+CFCategory.h // // NSDateFormatter+CFCategory.h // CFFoundation // // Created by refraincc on 2019/3/26. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface NSDateFormatter (CFCategory) + (NSDateFormatter *)CF_formatterWithFormat:(NSStri...
refraincc/CFFoundation
CFFoundation/Classes/CFFoundation.h
// // CFFoundation.h // Pods // // Created by refraincc on 2019/4/2. // #import <Foundation/Foundation.h> #import "CFWeakProxy.h" #import "NSDate+CFCategory.h" #import "NSString+CFCategory.h" #import "NSDateFormatter+CFCategory.h" #import "NSArray+CFCategory.h" #import "NSData+CC_Core.h"
refraincc/CFFoundation
CFFoundation/Classes/Category/NSArray+CFCategory.h
<gh_stars>1-10 // // NSArray+CFCategory.h // CFFoundation // // Created by cc on 2020/4/28. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface NSArray (CFCategory) /// 删除数组中重复元素 - (NSArray *)cc_removeRepetitionObjects; - (NSArray *)cc_removeRepetitionObjectsWithKey:(NSString *)key; @en...
refraincc/CFFoundation
Example/CFFoundation/Base/CFPerson.h
<reponame>refraincc/CFFoundation // // CFPerson.h // CFKit_Example // // Created by cc on 2020/4/28. // Copyright © 2020 Guhuotaren. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface CFPerson : NSObject <NSCoding, NSCopying> @property (nonatomic, copy) NSString *name;...
refraincc/CFFoundation
Example/CFFoundation/CFAppDelegate.h
// // CFAppDelegate.h // CFFoundation // // Created by refraincc on 03/26/2019. // Copyright (c) 2019 refraincc. All rights reserved. // @import UIKit; @interface CFAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
refraincc/CFFoundation
CFFoundation/Classes/Category/NSData+CC_Core.h
// // NSData+CC_Core.h // CFFoundation // // Created by cc on 2020/4/28. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface NSData (CC_Core) /// JPEG (jpg),文件头:FFD8*** - (BOOL)cc_isJPEG; /// PNG (png),文件头:8950*** - (BOOL)cc_isPNG; /// GIF (gif),文件头:474946*** - (BOOL)cc_isGIF; /// TI...
refraincc/CFFoundation
Example/CFFoundation/Base/CFFruits.h
<reponame>refraincc/CFFoundation<gh_stars>1-10 // // CFFruits.h // CFFoundation_Example // // Created by cc on 2020/4/28. // Copyright © 2020 <EMAIL>. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface CFFruits : NSObject @end NS_ASSUME_NONNULL_END
refraincc/CFFoundation
CFFoundation/Classes/CFWeakProxy.h
// // CFWeakProxy.h // CFFoundation // // Created by refraincc on 2019/3/26. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface CFWeakProxy : NSProxy /** 利用NSProxy实现对target的弱引用 @param target 需要被弱引用的target @return CFWeakProxy对象 */ + (instancetype)weakProxyForObject:(id)target; @end N...
refraincc/CFFoundation
CFFoundation/Classes/Category/NSString+CFCategory.h
<reponame>refraincc/CFFoundation<gh_stars>1-10 // // NSString+CFCategory.h // CFFoundation // // Created by refraincc on 2019/3/26. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface NSString (CFCategory) @end @interface NSString (CFEncrypt) - (NSString *)CF_MD5String; - (NSString *)CF_U...
waydechou1994/LWCoreDataManager
Example/LWCoreDataManager/LWViewController.h
<filename>Example/LWCoreDataManager/LWViewController.h // // LWViewController.h // LWCoreDataManager // // Created by waydechou1994 on 09/08/2017. // Copyright (c) 2017 waydechou1994. All rights reserved. // @import UIKit; @interface LWViewController : UIViewController @end
waydechou1994/LWCoreDataManager
Example/LWCoreDataManager/LWAppDelegate.h
<filename>Example/LWCoreDataManager/LWAppDelegate.h // // LWAppDelegate.h // LWCoreDataManager // // Created by waydechou1994 on 09/08/2017. // Copyright (c) 2017 waydechou1994. All rights reserved. // @import UIKit; @interface LWAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIW...
waydechou1994/LWCoreDataManager
LWCoreDataManager/Classes/NSPredicate+CoreData.h
// // NSPredicate+CoreData.h // vCare_BT // // Created by Wayde on 06/09/2017. // Copyright © 2017 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface NSPredicate (CoreData) + (NSPredicate *_Nonnull)vc_predicateWithFormat:(NSString *_Nonnull)format ...
waydechou1994/LWCoreDataManager
Example/LWCoreDataManager/ProfileModel.h
// // ProfileModel.h // vCare // // Created by wYz on 15/10/27. // Copyright © 2015年 wYz. All rights reserved. // #import <Foundation/Foundation.h> @interface ProfileModel : NSObject //档案详情的模型 @property (nonatomic, strong) NSString *iD; ///< 档案的id @property (nonatomic, strong) NSString *creator; ///< 创建者ID(需确认是不...
waydechou1994/LWCoreDataManager
LWCoreDataManager/Classes/LWCoreDataHeader.h
// // LWCoreDataHeader.h // CarePatch // // Created by Wayde on 05/09/2017. // Copyright © 2017 Hangzhou Proton Technology Co., Ltd. All rights reserved. // #ifndef LWCoreDataHeader_h #define LWCoreDataHeader_h #import "NSObject+LWConverter.h" #import "NSPredicate+CoreData.h" #import "LWCoreDataManager+Actions.h"...
waydechou1994/LWCoreDataManager
LWCoreDataManager/Classes/LWCoreDataManager+Actions.h
<reponame>waydechou1994/LWCoreDataManager // // LWCoreDataManager+Actions.h // CarePatch // // Created by Wayde on 05/09/2017. // Copyright © 2017 Hangzhou Proton Technology Co., Ltd. All rights reserved. // #import "LWCoreDataManager.h" #import "NSPredicate+CoreData.h" @interface LWCoreDataManager (Actions) #pr...
waydechou1994/LWCoreDataManager
LWCoreDataManager/Classes/LWCoreDataConverter.h
<reponame>waydechou1994/LWCoreDataManager // // LWCoreDataConverter.h // CarePatch // // Created by Wayde on 05/09/2017. // Copyright © 2017 Hangzhou Proton Technology Co., Ltd. All rights reserved. // #import <Foundation/Foundation.h> @interface LWCoreDataConverter : NSObject + (NSDictionary *)lw_dictionaryFrom...
waydechou1994/LWCoreDataManager
Example/LWCoreDataManager/NSObject+Converter.h
<filename>Example/LWCoreDataManager/NSObject+Converter.h // // NSObject+Converter.h // LWCoreDataManager // // Created by Wayde on 09/11/2017. // #import <Foundation/Foundation.h> @interface NSObject (Converter) - (NSDictionary *)covertToDictionary; - (SEL)propertySetterByKey:(NSString *)key; @end
waydechou1994/LWCoreDataManager
LWCoreDataManager/Classes/NSObject+LWConverter.h
<reponame>waydechou1994/LWCoreDataManager<filename>LWCoreDataManager/Classes/NSObject+LWConverter.h<gh_stars>0 // // NSObject+LWConverter.h // CarePatch // // Created by Wayde on 05/09/2017. // Copyright © 2017 Hangzhou Proton Technology Co., Ltd. All rights reserved. // #import <Foundation/Foundation.h> @interfa...
waydechou1994/LWCoreDataManager
Example/LWCoreDataManager/ReportModel.h
// // ECGReportModel.h // vCare // // Created by zhailiangjie on 16/7/9. // Copyright © 2016年 ZLJ. All rights reserved. // #import <Foundation/Foundation.h> #import "ProfileModel.h" @interface ReportModel : NSObject /* creator = 255; data = { "conception_rate" = 35; "heart_rate_avg" = "37.5"; "temp_b...
waydechou1994/LWCoreDataManager
LWCoreDataManager/Classes/LWCoreDataManager.h
// // LWCoreDataManager.h // CarePatch // // Created by Wayde on 05/09/2017. // Copyright © 2017 Hangzhou Proton Technology Co., Ltd. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreData/CoreData.h> typedef void(^LWCoreDataBlock)(id _Nonnull object, NSManagedObject * _Nullable managedObject...
waydechou1994/LWCoreDataManager
Example/Pods/Target Support Files/LWCoreDataManager/LWCoreDataManager-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 "LWCoreDataConverter.h" #import "LWCoreDataHeader.h" #import "LWCoreDataManager+Actions.h" #import "LWCoreDataManager...
SzymonKatra/KochCurve
main.c
#include <stdio.h> #include <math.h> #include <allegro5/allegro.h> #include <allegro5/allegro_primitives.h> #include <allegro5/allegro_font.h> #include <allegro5/allegro_ttf.h> #define SCREEN_WIDTH 640 #define SCREEN_HEIGHT 480 #define F_EPSILON 0.0001 typedef struct { float x; float y; float originX; ...
trongdth/iOS-Webp
iOS-webp/iOS-webp-Bridging-Header.h
<gh_stars>0 // // iOS-webp-Bridging-Header.h // iOS-webp // // Created by <NAME> on 2/15/18. // Copyright © 2018 Mroom Software. All rights reserved. // #import "UIImage+WebP.h"
trongdth/iOS-Webp
iOS-webp/iOS-webp/WebP-UIImage/ImageToWebPDataTransformer.h
// ImageToWebPDataTransformer.h // // Created by <NAME> on 01.08.13. // Copyright (c) 2013 <NAME>. All rights reserved. #import <Foundation/Foundation.h> @interface ImageToWebPDataTransformer : NSValueTransformer { } @end
trongdth/iOS-Webp
iOS-webp/iOS-webp/WebP-UIImage/UIImage+WebP.h
// // UIImage+WebP.h // // Created by <NAME> <<EMAIL>> // Much inspiration for code comes from <NAME> // his website is http://www.ioncannon.net // // Modified (encoding added) by <NAME>, <EMAIL> #import <UIKit/UIKit.h> #import <WebP/decode.h> #import <WebP/encode.h> @interface UIImage (WebP) - (NSData *)dataWebPWithQ...
gvol/redux
examples/hello-world-0/hello.c
/* This program prints a greeting */ #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { fprintf(stdout, "hello world\n"); exit(0); }
agalan33/HighPerformanceProject
MergeSortMPI.c
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <mpi.h> void merge(int *, int *, int, int, int); void mergeSort(int *, int *, int, int); FILE * fp; /********** Merge Function **********/ void merge(int *a, int *b, int l, int m, int r) { int h, i, j, k; h = l; i = l; j = m + 1; while((h <= m...
agalan33/HighPerformanceProject
LinearSearch.c
<filename>LinearSearch.c #include "stdio.h" #include "stdlib.h" #include "omp.h" #include "mpi.h" FILE *fp; void printArray(int *arr, int size); int linearSearch(int x, int *arr, int size) { int i; for (i = 0; i < size; i++) { if (arr[i] == x) return i; } return -1; } int linearSearchOMP(...
agalan33/HighPerformanceProject
BinarySearchMPI.c
#include <time.h> #include <stdio.h> #include <stdlib.h> #include <mpi.h> void benchMark(int max){ int *a = (int *)malloc(max*sizeof(int)); for(int i = 0; i < max; i++){ arr[i] = rand()%1000; } clock_t begin = clock(); for(int i = 0; i < 1000; i++){ int result = binarySearch(arr, ...
agalan33/HighPerformanceProject
BinarySearchOMP.c
//Author: <NAME> //The following program is parallized version of search algorithm #include <stdio.h> #include <omp.h> #include <stdlib.h> #include <time.h> #define MAXTHREADS 10 FILE * fp; void binarySearch(int key, int *a, int size){ int found = 0; int i; for(int j=1;j<=5;j++){ omp_set_num_thre...
agalan33/HighPerformanceProject
BinarySearch.c
<gh_stars>0 #include <stdlib.h> #include <stdio.h> #include <time.h> FILE * fp; // A recursive binary search function. It returns // location of x in given array arr[l..r] is present, // otherwise -1 int binarySearch(int *arr, int l, int r, int x){ if (r >= l) { int mid = l + (r - l)/2; ...
agalan33/HighPerformanceProject
QuickSortBM.c
<reponame>agalan33/HighPerformanceProject<filename>QuickSortBM.c #include <stdio.h> #include <stdlib.h> #include <mpi.h> #include "omp.h" #define ROOT_RESULT 666 #define GROUP_EXCHANGE 667 FILE *fp; void printArray(int *arr, int size) { int i; for (i = 0; i < size; i++) { printf("%d ", arr[i]); }...
gamgyul/chat_test
src/common/logger.h
#ifndef LOGGER_H_ #define LOGGER_H_ #include "common.h" #define LOG_TEMP GetLogger().WriteLog(__FILE__, __LINE__) namespace server { class Log { private: std::ostream &log_stream_; public: Log(); ~Log(); std::ostream &WriteLog(std::string_view filename, int line); }; } //namespace server ser...
gamgyul/chat_test
src/server/room.h
<reponame>gamgyul/chat_test #ifndef ROOM_H_ #define ROOM_H_ #include "common.h" namespace server { class Session; class Room { private: std::string name_; int participant_; std::list<std::shared_ptr<Session>> session_list_; public: Room(); void JoinSession(std::shared_ptr<Session> ses...
gamgyul/chat_test
src/include/common.h
#ifndef COMMON_H_ #define COMMON_H_ #include <iostream> #include <string> #include <string_view> #include <vector> #include <list> #include <queue> #include <thread> #include <memory> #include <functional> #include "proj_type.h" #endif // COMMON_H
gamgyul/chat_test
src/server/server.h
#ifndef SERVER_ACCEPTOR_H #define SERVER_ACCEPTOR_H #include "common.h" #include <map> #include <boost/asio.hpp> #include <boost/bind.hpp> #include "dispatcher.h" namespace Asio = boost::asio; using Tcp = boost::asio::ip::tcp; namespace server { class Session; class Room; class Server{ private: //asio 관련 변수 ...
gamgyul/chat_test
src/common/msg_controller.h
<gh_stars>0 #ifndef MSG_CONTROLLER_H_ #define MSG_CONTROLLER_H_ #include "common.h" #include "proto/message_protocol.pb.h" namespace common { class MsgController { private: int header_; std::array<char, kMaxBufferSize> read_buf_; std::array<char, kMaxBufferSize> write_buf_; public: // ChatProtocol:...
gamgyul/chat_test
src/server/session.h
#ifndef SESSION_H_ #define SESSION_H_ #include "common.h" #include <memory> #include <boost/asio.hpp> #include "common/msg_controller.h" namespace Asio = boost::asio; using Tcp = boost::asio::ip::tcp; namespace server { class Server; class Session : public std::enable_shared_from_this<Session> { private: int...
gamgyul/chat_test
src/server/dispatcher.h
#ifndef DISPATCHER_H_ #define DISPATCHER_H_ #include "common.h" #include <condition_variable> #include "proto/message_protocol.pb.h" namespace server { class Server; class Session; class Dispatcher{ private: std::queue<std::pair<int,MessagePtr>> msg_queue_; std::mutex lock_; std::condition_variable cv...
gamgyul/chat_test
src/include/proj_type.h
#ifndef PROJ_TYPE_H_ #define PROJ_TYPE_H_ // #include "proto/message_protocol.pb.h" namespace google { namespace protobuf { class MessageLite; } } class MessageLite; namespace ChatProtocol{ class Packet; } using MessageBase = google::protobuf::MessageLite; using MessagePtr = std::shared_ptr<MessageBase>; using Pa...
mrabe89sigma/rdm-meta-jens
recipes-core/psplash/files/psplash-poky-img.h
/* GdkPixbuf RGB C-Source image dump 1-byte-run-length-encoded */ #define POKY_IMG_ROWSTRIDE (5760) #define POKY_IMG_WIDTH (1920) #define POKY_IMG_HEIGHT (1080) #define POKY_IMG_BYTES_PER_PIXEL (3) /* 3:RGB, 4:RGBA */ #define POKY_IMG_RLE_PIXEL_DATA ((uint8*) \ "\377\377\377\377\377\377\377\377\377\377\377\377\377\3...
remoe/bsf
Source/Foundation/bsfCore/Particles/BsParticleEmitter.h
<reponame>remoe/bsf //************************************ bs::framework - Copyright 2018 <NAME> **************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// #pragma once #include "BsCorePrerequisites.h" #include "...
remoe/bsf
Source/Foundation/bsfCore/Private/RTTI/BsVectorFieldRTTI.h
//************************************ bs::framework - Copyright 2018 <NAME> **************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// #pragma once #include "BsCorePrerequisites.h" #include "Reflection/BsRTTITyp...
remoe/bsf
Source/Foundation/bsfUtility/Prerequisites/BsRTTIPrerequisites.h
<filename>Source/Foundation/bsfUtility/Prerequisites/BsRTTIPrerequisites.h //************************************ bs::framework - Copyright 2018 <NAME> **************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// #p...
fuchina/FSPassword
FSPasswordSample/Pods/Headers/Public/FSJZBus/FSHTTP.h
<reponame>fuchina/FSPassword<filename>FSPasswordSample/Pods/Headers/Public/FSJZBus/FSHTTP.h<gh_stars>0 // // FSHTTP.h // myhome // // Created by fudon on 2017/6/8. // Copyright © 2017年 fuhope. All rights reserved. // /* 参考: http://www.jianshu.com/p/fafc67475c73 */ #import <Foundation/Foundation.h> typedef N...
fuchina/FSPassword
FSPasswordSample/Pods/Headers/Public/FSJZBus/FSLocationModel.h
// // FSLocationModel.h // myhome // // Created by FudonFuchina on 2017/5/16. // Copyright © 2017年 fuhope. All rights reserved. // #import <Foundation/Foundation.h> @interface FSLocationModel : NSObject @property (nonatomic,strong) NSNumber *aid; @property (nonatomic,copy) NSString *time; @property (nonato...
fuchina/FSPassword
FSPasswordSample/Pods/Headers/Public/FSLocation/FSLocationSupport.h
// // FSLocationSupport.h // FSCalculator // // Created by fudongdong on 2019/1/9. // #import <Foundation/Foundation.h> #import <MapKit/MapKit.h> NS_ASSUME_NONNULL_BEGIN @interface FSLocationSupport : NSObject // 导航,coordinate为目的地 + (void)navigationToMapsWithDestination:(CLLocationCoordinate2D)coordinate; @end ...
fuchina/FSPassword
FSPasswordSample/Pods/Headers/Public/FSPassword/FSQueryPwdController.h
// // FSQueryPwdController.h // myhome // // Created by FudonFuchina on 2017/2/27. // Copyright © 2017年 fuhope. All rights reserved. // #import <UIKit/UIKit.h> @interface FSQueryPwdController : UIViewController @end
fuchina/FSPassword
FSPasswordSample/Pods/Headers/Public/FSJZBus/FSMultiPeerController.h
<gh_stars>0 // // FSMultiPeerController.h // myhome // // Created by FudonFuchina on 2017/10/21. // Copyright © 2017年 fuhope. All rights reserved. // #import "FSBaseController.h" @interface FSMultiPeerController : FSBaseController @end
fuchina/FSPassword
FSPasswordSample/Pods/Headers/Public/FSJZBus/FSCardModel.h
<filename>FSPasswordSample/Pods/Headers/Public/FSJZBus/FSCardModel.h // // FSCardModel.h // myhome // // Created by FudonFuchina on 2018/3/3. // Copyright © 2018年 fuhope. All rights reserved. // #import <Foundation/Foundation.h> @interface FSCardModel : NSObject @property (nonatomic,strong) NSNumber *aid; @pro...
fuchina/FSPassword
FSPassword/classes/FSAddPwdBookController.h
// // FSAddPwdBookController.h // myhome // // Created by FudonFuchina on 2017/8/13. // Copyright © 2017年 fuhope. All rights reserved. // #import "FSBaseController.h" #import "FSPwdBookModel.h" @interface FSAddPwdBookController : FSBaseController @property (nonatomic,copy) NSString *password; @property ...