text stringlengths 4 6.14k |
|---|
/*
* Copyright (c) 2009, Natacha Porté
* Copyright (c) 2015, Vicent Marti
*
* 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
... |
#include <stdio.h>
#define TWO 2
#define OW "Consistency is the last refuge of the unimagina\
tive. - Oscar Wilde"
#define FOUR TWO*TWO
#define PX printf("%d\n", x)
#define HAL 'z'
#define HAP "Z"
#define SQUARE(x) ((x)*(x))
#define PRINTSQUARE(x) printf("%d is the square of " #x"\n", ((x)*(x)))
#define XNAME(n) x ## ... |
#include <util/cominc.h>
#include <util/bst_link.h>
#include <util/math.h>
inline struct bst_link* bst_min(struct bst_link* root) {
if (root == NULL) {
return NULL;
}
while (root->left != NULL) {
root = root->left;
}
return root;
}
inline struct bst_link* bst_max(struct bst_link* root) {
if (root == NULL... |
#if !defined(crunk_h)
#define crunk_h
#include <stdio.h>
#include <string>
bool read_crunk_block(FILE *f, std::string &okey, std::string &oinfo, float *&ovalue);
#endif // crunk_h
|
#include "stdio.h"
#include "string.h"
#include "stdlib.h"
#include "math.h"
struct Triplet
{
int e1;
int e2;
int e3;
}t;
void IsAsceding(struct Triplet t)
{
if (t.e1>t.e2)
printf("NO\n");
else if (t.e2>t.e3)
printf("NO\n");
else
printf("YES\n");
}
int main(int argc, char const *argv[])
{
scanf("%d... |
// Created by John Åkerblom 2012-07-??
#ifndef __INJECT_UTILS_H_DEF__
#define __INJECT_UTILS_H_DEF__
#include <windows.h>
BOOL inject_dll(HANDLE proc, const char *dll_path, DWORD timeout);
#endif |
// $(noheader)
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by oLauncher.rc
//
#define IDI_ICON1 101
#define IDI_APPICON 101
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_... |
// Start with a valid MBR
static uint8_t block_guess[512] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ... |
/*
* Copyright (C) 2012
* Dale Weiler
*
* 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, ... |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2012 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any... |
// -*- C++ -*-
//=============================================================================
/**
* @file Flows_T.h
*
* $Id: Flows_T.h 935 2008-12-10 21:47:27Z mitza $
*
* @author Nagarajan Surendran <naga@cs.wustl.edu>
*/
//=============================================================================
#i... |
#pragma once
#include "pco-interfaces.h"
#include <engine/pco-core_Pitch.h>
#include <io/cake_Analog.h>
BEGIN_PCO_INTERFACES_NAMESPACE
// Expected Traits content:
// static const byte sNumBits Used for oversampling filter (must be > 10)
// typedef [cake::AnalogPin] AdcPin Pin to be used for ADC readings
tem... |
/*
* This file is part of Pwxe, a PHP extension to stop execution
* of writable files.
*
* Author: Varga Bence <vbence@czentral.org>
*/
#ifndef PHP_PWXE_H
#define PHP_PWXE_H 1
#define PHP_PWXE_VERSION "0.1"
#define PHP_PWXE_EXTNAME "PWXE"
extern void pwxe_zend_init(TSRMLS_D);
extern void pwxe_zend_shutdown(TSR... |
/*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
#pragma once
#include <vector>
#include <mapnik/featureset.hpp>
class CachedFeatureset : public mapnik::Featureset {
public:
CachedFeatureset(mapnik::featureset_ptr fs);
mapnik::feature_ptr next() override;
private:
using cached_features_t = std::vector<mapnik::feature_ptr>;
cached_features_t cache... |
#pragma once
#include <string>
namespace ni {
class FileDesc {
public:
FileDesc(int fd);
FileDesc(const std::string& filePath, int mode);
FileDesc(const FileDesc& source);
FileDesc& operator=(const FileDesc& source);
~FileDesc();
operator int() const;
void close();
bool good() const;
private:
int... |
/*
* gpsdclient.h -- common functions for GPSD clients
*
* This file is Copyright (c) 2010 by the GPSD project
* BSD terms apply: see the file COPYING in the distribution root for details.
*
*/
#ifndef _GPSD_GPSDCLIENT_H_
#define _GPSD_GPSDCLIENT_H_
struct exportmethod_t
/* describe an export method */
{
co... |
//
// Created by Ivan on 14-8-27.
//
//
#import <Foundation/Foundation.h>
@interface UIImageView (SYTheme)
@property(assign, nonatomic) NSInteger stretchLeft; //image 拉伸的参数
@property(assign, nonatomic) NSInteger stretchTop; //image 拉伸的参数
@property(assign, nonatomic) NSInteger highlighted_stretchLeft; /... |
//
// WDeComPayPal.h
// WDeCom
//
// Created by Vrana, Jozef on 23/04/2018.
// Copyright © 2018 Wirecard Technologies GmbH. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for WDeComPayPal.
FOUNDATION_EXPORT double WDeComPayPalVersionNumber;
//! Project version string for WDeComPayPal.... |
#ifndef LIBXAOS_CORE_STRINGS_POOLED_STRING_H
#define LIBXAOS_CORE_STRINGS_POOLED_STRING_H
#include <cstddef>
namespace libxaos {
namespace strings {
// Forward declare StringPool
class StringPool;
/**
* @brief Represents a string in a StringPool.
*
* ... |
#ifndef FRACTALBUILDER_H
#define FRACTALBUILDER_H
#include <QVector>
#include <QRectF>
#include <QLineF>
#include "Util/channel.h"
/**
* @brief The FractalBuilder class - strategy pattern, calculates lines which we will paint
*/
class FractalBuilder
{
public:
virtual void getFractal(Channel<QLineF>& channel, uin... |
/*-------------------------------------------------------------------------
This source file is a part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2016 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obtaini... |
/*-----------------------------------------------------------------------*/
/* Low level disk I/O module skeleton for FatFs (C)ChaN, 2007 */
/*-----------------------------------------------------------------------*/
/* This is a stub disk I/O module that acts as front end of the existing */
/* disk I/O modu... |
//
// Stately.h
// Stately
//
// Created by Brian Lambert on 10/4/16.
// See the LICENSE.md file in the project root for license information.
//
#import <Foundation/Foundation.h>
//! Project version number for Stately.
FOUNDATION_EXPORT double StatelyVersionNumber;
//! Project version string for Stately.
FOUNDAT... |
//
// CCVirtualItemBuilder.hpp
// ee-x
//
// Created by Le Van Kiet on 9/14/18.
//
#ifndef SOOMLA_VIRTUAL_ITEM_BUILDER_HPP
#define SOOMLA_VIRTUAL_ITEM_BUILDER_HPP
#ifdef __cplusplus
#include <optional>
#include <string>
#include "soomla/domain/CCVirtualItem.h"
namespace soomla {
template <class T>
class Virtual... |
/*
module.h
Container for parsing commandline data and running function on given arguments
Copyright (c) 2013 - 2018 Jason Lee @ calccrypto at gmail.com
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 Sof... |
//
// Felucia.h
// Felucia
//
// Created by Michał Tynior on 19/10/15.
// Copyright © 2015 Michał Tynior. All rights reserved.
//
@import Foundation;
//! Project version number for Felucia.
FOUNDATION_EXPORT double FeluciaVersionNumber;
//! Project version string for Felucia.
FOUNDATION_EXPORT const unsigned cha... |
/*
* imovablestream.h
* Declares a class that represents a movable input window stream
* Created by Andrew Davis
* Created on 7/13/2017
* Open source (MIT license)
*/
//disallow reinclusion
#ifndef CPP_CUR_I_MOVE_STREAM_H
#define CPP_CUR_I_MOVE_STREAM_H
//includes
#include <curses.h>
#include "iwindowstream.h"
... |
#ifndef FUZZYTERM_H
#define FUZZYTERM_H
//-----------------------------------------------------------------------------
//
// Name: FuzzyTerm.h
//
// Author: Mat Buckland (www.ai-junkie.com)
//
// Desc: abstract class to provide an interface for classes able to be
// used as terms in a fuzzy if-then rul... |
//
// AppDelegate.h
// Example
//
// Created by Vladimir Angelov on 2/23/14.
// Copyright (c) 2014 Vladimir Angelov. All rights reserved.
//
#import <UIKit/UIKit.h>
@class VLDUserService;
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property (stro... |
//
// IWOAuthResponder.h
// IWOAuth
//
// Copyright (c) 2015 Intuit Inc.
//
// 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
/... |
#pragma once
#include <stdint.h>
#include <string>
#include <vector>
#include <utility>
#include <functional>
#include <boost/shared_ptr.hpp>
#include <opencv2/opencv.hpp>
namespace caffe
{
template <typename Dtype>
class Net;
class NetParameter;
};
class Waifu2x
{
public:
enum eWaifu2xError
{
eWaifu2xError_... |
//
// IMAccommodationPhotoView.h
// IMMS Manager
//
// Created by Mario Yohanes on 10/8/13.
// Copyright (c) 2013 Mario Yohanes. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface IMAccommodationPhotoView : UIView
@property (nonatomic, strong) NSString *photoPath;
@property (nonatomic, strong) UIImageVie... |
#include "common_vector_math.h"
#include <math.h>
uint64_t get_nnz_uint64_array(uint64_t* array, uint64_t no_elements) {
uint64_t nnz, j;
nnz = 0;
for (j = 0; j < no_elements; j++) {
if (array[j] != 0) {
nnz += 1;
}
}
return nnz;
}
VALUE_TYPE calculate_squared_vector_le... |
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2011-2013 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
/** This is generated, do not edit by hand. **/
#include <jni.h>
#include "Prox... |
/*--------------------------------------------
Created by Sina on 06/29/16.
Copyright (c) 2013 MIT. All rights reserved.
--------------------------------------------*/
#ifndef __MAPP__gcmc__
#define __MAPP__gcmc__
#include "global.h"
#include "mpi_compat.h"
namespace MAPP_NS
{
enum{NOEX_MODE,DEL_MODE,INS_MODE};
... |
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0... |
/*
Copyright (C) 2014 Eric Wasylishen
Date: February 2014
License: MIT (see COPYING)
*/
#import <Cocoa/Cocoa.h>
@interface EWTextView : NSTextView
@end
|
#pragma once
#ifndef WIN32 // pretty sure linux and windows are the only OSs ever
#include "platform_interface.h"
#include <string>
struct GLFWwindow;
struct GLFWmonitor;
namespace fd {
class PlatformWindow {
private:
public:
// HWND m_hWnd;
int m_width;
int m_height;
bool m_fullscreen;
bool m_cursorCapt... |
#include <stdio.h>
#include "add.h"
#include "sub.h"
#include "mux.h"
#include "div.h"
int main(void)
{
int a = 20;
int b = 10;
printf("a = %d\n", a);
printf("b = %d\n", b);
printf("a + b = %d\n", add(a,b)); //求a b之和
printf("a - b = %d\n", sub(a,b)); //求a b之差
printf("a * b = %d\n", mux(a,b)); //求a b之积
pri... |
// STStateDescription.h
// Copyright (c) 2016 Eden Vidal
//
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
@import Foundation;
/// Represents a State model. Each state has a title and an unique identifier.
@interface STStateDescription : NSOb... |
//
// MMXNavigationController.h
// MathMatch
//
// Created by Kyle O'Brien on 2014.1.21.
// Copyright (c) 2014 Computer Lab. All rights reserved.
//
@interface MMXNavigationController : UINavigationController <UINavigationControllerDelegate>
@property (nonatomic, strong) NSManagedObjectContext *managedObjectConte... |
//
// NSArray+CWAdditions.h
// CWFoundation
//
// Created by Guojiubo on 14-8-30.
// Copyright (c) 2014年 CocoaWind. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSArray (CWAdditions)
/**
* Use isEqualToString: to compare, which is faster than containsObject:
*/
- (BOOL)cw_containsStrin... |
#ifndef __SOLVING__CLASP_OUTPUT_PARSING_H
#define __SOLVING__CLASP_OUTPUT_PARSING_H
#include <ginkgo/solving/Process.h>
#include <ginkgo/solving/Satisfiability.h>
namespace ginkgo
{
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// ClaspOutputParsing
//
//////... |
//
// LeftViewController.h
// SlideMenuControllerOC
//
// Created by ChipSea on 16/2/27.
// Copyright © 2016年 pluto-y. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ImageHeaderView.h"
typedef enum : NSInteger{
LeftMenuMain = 0,
LeftMenuSwift,
LeftMenuJava,
LeftMenuGo,
LeftMenuNonMen... |
//
// AppDelegate.h
// MHWAlertToLink
//
// Created by 橋本学 on 2016/05/09.
// Copyright © 2016年 MANABU HASHIMOTO WORKS. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
#ifndef _MATRIX3_H_
#define _MATRIX3_H_
#include <iostream>
#include <assert.h>
/*
COLLUM ORDER:
0 3 6
1 4 7
2 5 8
ROW ORDER
0 1 2
3 4 5
6 7 8
*/
class vec3;
// Row-major order Matrix3x3f
class mat3 {
public:
// Internal data
float m[9];
mat3();
mat3(float identity);
mat3(float a, float b, float c,
... |
/*
* Copyright (C) 2009 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 copyright
* notice, this list of conditio... |
//
// UITableViewCell2.h
// ZWUtilityKit
//
// Created by 陈正旺 on 15/3/2.
// Copyright (c) 2015年 zwchen. All rights reserved.
//
/* ------------------------------------------------------
*
* @description:UITableViewCell对象分割线不被遮挡
*
* @update time: 2015-03-02
*
* -------------------------------------------------... |
//
// YLActionContext.h
// YLActionContextDemo
//
// Created by IceCreamWu on 2017/5/10.
// Copyright © 2017年 IceCreamWu. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef id(^YLActionContextCallback)(id data);
/*
* YLActionContext暂时只支持一对一的行为,如果注册同一个action则会覆盖掉上个注册
* (需要一对多应该使用NSNotification或者另... |
void inc(int* i)
//@ requires integer(i, ?v);
//@ ensures integer(i, v+1);
{
(*i) = (*i) + 1;
}
void address_of_param(int x)
//@ requires true;
//@ ensures true;
{
x = 5;
int* ptr = &x;
inc(ptr);
int z = x;
assert(z == 6);
}
void address_of_local()
//@ requires tr... |
#include<stdio.h>
int main()
{
int a=3,b=4;
printf("a=%d,b=%d\n",a,b);
a= a+b;
b =a-b;
a =a-b;
#if 0
a=a^b;
b=b^a;
a=a^b;
#endif
printf("a=%d,b=%d\n",a,b);
return 0;
}
|
#ifndef __PROJECT_EULER_PROBLEM428_H__
#define __PROJECT_EULER_PROBLEM428_H__
/*
* ProjectEuler/include/c/ProjectEuler/Problem428.h
*
* Necklace of circles
* ===================
* Published on Sunday, 19th May 2013, 01:00 am
*
* Let a, b and c be positive numbers. Let W, X, Y, Z be four collinear points
* whe... |
//
// HotelMap.h
// iGuidFC
//
// Created by dampier on 15/5/29.
// Copyright (c) 2015年 Artur Mkrtchyan. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#import "ELongHotelData.h"
@interface HotelMap : UIViewController
@property (nonatomic, strong) IBOutlet MKMapView* mapView;
@property... |
#import <UIKit/UIFont.h>
#import <Artsy+UIColors/UIColor+ArtsyColors.h>
#if __has_include(<Artsy+UIFonts/UIFont+ArtsyFonts.h>)
#import <Artsy+UIFonts/UIFont+ArtsyFonts.h>
#endif
#if __has_include(<Artsy+UIFonts/UIFont+OSSArtsyFonts.h>)
#import <Artsy+UIFonts/UIFont+OSSArtsyFonts.h>
#endif
|
//
// StyleKit
//
// Copyright Graphiclife 2013. All Rights Reserved.
//
// The copyright to the computer program(s) herein
// is the property of Graphiclife, Sweden. The
// program(s) may be used and/or copied only with the
// written permission of Graphiclife or in accordance
// with the terms and conditions stipulat... |
#ifndef RAID_DISK_STUB_H
#define RAID_DISK_STUB_H
#include "warped.h"
#include "ObjectStub.h"
#include <string>
#include <sstream>
class SimulationObject;
/** The class RAIDDiskStub.
*/
class RAIDDiskStub : public ObjectStub {
public:
RAIDDiskStub(FactoryImplementationBase *owner) : ObjectStub(owner){}
~RAIDDis... |
//
// QRSecondClass.h
// personly
//
// Created by 秦榕 on 2017/5/24.
// Copyright © 2017年 秦榕. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface QRSecondClass : UIView
@property(strong,nonatomic)NSArray* arr2;
@property(strong,nonatomic)NSArray* arr3;
@end
|
//
// Adafruit invests time and resources providing this open source code.
// Please support Adafruit and open source hardware by purchasing
// products from Adafruit!
//
// Copyright (c) 2015-2016 Adafruit Industries
// Authors: Tony DiCola, Todd Treece
// Licensed under the MIT license.
//
// All text above must be i... |
//
// UIImageView+cachedImageRequest.h
// SocialSoccer
//
// Created by Paulo Mendes on 4/10/14.
// Copyright (c) 2014 Movile. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIImageView (cachedImageRequest)
- (void)ett_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholderImage;
- (void... |
//
// PPPerfectManager.h
// PerfectPixel-Project
//
// Created by Yuri on 4/30/15.
// Copyright (c) 2015 Yuri Kobets. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class PIXELWindow;
@interface PIXELPerfect : NSObject
@property (nonatomic,strong) PIXELWindow *overlayWindow;
... |
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12).
//
// Copyright (C) 1997-2019 Steve Nygard.
//
#import <IDEKit/NSObject-Protocol.h>
@class DVTDocumentLocation, DVTFilePath, NSURL;
@protocol IDEIndexSymbol;
@protocol IDEIndexSymbolOccurrence <NSObject>
@property(readonly... |
/**
* @author J. Santos <jamillo@gmail.com>
* @date November 21, 2016
*/
#ifndef WALKING_DATA_JSON_H
#define WALKING_DATA_JSON_H
#include <json/json.h>
namespace mote
{
class json
{
public:
static void serialize(const Json::Value &json, std::string &msg);
static bool unserialize(char *buffer, unsigned int len,... |
/*
MIT License
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, sublicense, and/or ... |
/************************************************************************************
* The MIT License (MIT) *
* *
* Copyright (c) 2016 Bertrand Martel ... |
#ifndef __RESOURCE_TEXTURE_LOADER_H__
#define __RESOURCE_TEXTURE_LOADER_H__
#include "ResourceLoader.h"
#include "Resource.h"
#include <vector>
class ResourceTexture;
struct TextureInfo
{
TextureInfo() {};
TextureInfo(const TextureInfo& copy) { id = copy.id; size_x = copy.size_x; size_y = copy.size_y;
};
Texture... |
#ifndef GLOBAL_VALUE_H
#define GLOBAL_VALUE_H
class GlobalValue
{
public:
static GlobalValue *sharedValue();
static void destroy();
public:
bool m_bMusicOn;
private:
static GlobalValue *pValue;
GlobalValue(){ m_bMusicOn = true;}
~GlobalValue(){}
};
#endif //GLOBAL_VALUE_H |
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12).
//
// Copyright (C) 1997-2019 Steve Nygard.
//
#import <IDEKit/IDEAlertViewController.h>
@class NSMutableArray, NSPopUpButton, NSSound;
@interface IDESoundAlertViewController : IDEAlertViewController
{
NSPopUpButton *_... |
//
// PCSideMenuPresentationController.h
// Pods
//
// Created by Ryan Fitzgerald on 8/10/16.
//
//
#import <UIKit/UIKit.h>
#import "PCSideMenuTransitionDelegate.h"
@interface PCSideMenuPresentationController : UIPresentationController
@property (nonatomic) PCSideMenuPosition menuPosition;
@property (nonatomic, s... |
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import "NSObject.h"
@class AFVoiceInfo, NSArray, NSObject<OS_dispatch_queue>, NSXPCConnection;
@interface AFSettingsConnection : NSObject
{
NSXPCConnection *_connection;
... |
//
// PPVinOcrParserFactory.h
// BlinkIdFramework
//
// Created by Dino on 20/06/16.
// Copyright © 2016 MicroBlink Ltd. All rights reserved.
//
#import "PPOcrParserFactory.h"
PP_CLASS_AVAILABLE_IOS(6.0) @interface PPVinOcrParserFactory : PPOcrParserFactory
@end
|
#include <stdio.h>
#include <string.h>
#include <CoreServices/CoreServices.h>
#include <CoreAudio/CoreAudioTypes.h>
#include <AudioToolbox/AudioToolbox.h>
#include <CoreServices/CoreServices.h>
#define LOG(f,s) fprintf(stderr,f,s);fflush(stderr);
#define QUERY_TEMPLATE "kMDItemContentTypeTree == 'public.audio' && (kM... |
//
// Data.h
// Congstar Counter
//
// Created by Josa Gesell on 10/10/14.
// Copyright (c) 2014 Josa Gesell. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <sqlite3.h>
@class FMDatabase;
@interface Data : NSObject {
// sqlite3 *mySqliteDB;
}
@property (nonatomic) NSInteger ID;
@property ... |
//
// FilesListViewController.h
// ResourceLoader
//
// Created by Artem Meleshko on 1/31/15.
// Copyright (c) 2015 LeshkoApps ( http://leshkoapps.com ). All rights reserved.
//
#import <UIKit/UIKit.h>
@class YDSession;
@protocol FilesListViewControllerDelegate;
@interface FilesListViewController : UIViewContro... |
// EdUtils.h
// Guy Simmons, 5th April 1997.
#include "c:\fallen\headers\structs.h"
//#define GAME_SCALE 2560.0
extern SLONG current_element;
extern struct KeyFrameElement *the_elements;
void read_object_name(FILE *file_handle,CBYTE *dest_string);
void load_multi_vue(struct KeyFrameChunk *the_chunk,float scal... |
// SLFunctions.h
//
// Copyright (c) 2014 Antti Laitala (https://github.com/anlaital)
//
// 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 t... |
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "utils.h"
rgb_pixel int2RgbPixel(const int value) {
int r = (value & 0x00FF0000) >> 16;
int g = (value & 0x0000FF00) >> 8;
int b = value & 0x000000FF;
return rgb2RgbPixel(r, g, b);
}
int rgbPixel2Int(const rgb_pixel value) {
return rgb2Int((unsig... |
//
// EmptyStateView.h
// ListingBot
//
// Created by Andrew Robinson on 9/4/15.
// Copyright (c) 2015 Robinson Bros. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface EmptyStateView : UIView <UITextFieldDelegate>
@property (weak, nonatomic) IBOutlet UITextField *addItem;
@property (weak, nonatomic) IBO... |
#include "../emdns.h"
#ifdef _WIN32
#include <winsock2.h>
#include <IPHlpApi.h>
#include <WS2tcpip.h>
#include <string.h>
#pragma comment(lib, "ws2_32.lib")
#pragma comment(lib, "iphlpapi.lib")
#define MDNS_PORT 5353
#define IPV4_MCAST 0xE00000FB
static unsigned char g_ipv6_mcast[16] = {0xFF, 0x02, 0, 0, 0, 0, 0, 0,... |
#include <assert.h>
#include <string.h>
#include "dict.h"
#include "dictglobal.h"
static int streq(const char* s1, const char* s2, size_t len) {
if (s1 == s2)
return 1;
if (s1 == NULL || s2 == NULL)
return 0;
return strncmp(s1, s2, len) == 0;
}
int main() {
unsigned long d1, d2, d3;
... |
//
// OHAlertView.h
// AliSoftware
//
// Created by Olivier on 30/12/10.
// Copyright 2010 AliSoftware. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, OHAlertViewStyle) {
OHAlertViewStyleDefault = 0,
OHAlertViewStyleSecureTextInput,
OHAlert... |
#import "TKSTableViewCell.h"
#import "TKSTaxiHeaderCellVM.h"
@interface TKSTaxiHeaderCell : TKSTableViewCell <TKSTaxiHeaderCellVM *>
@end
|
#include "types.h"
#include "x86.h"
#include "defs.h"
#include "param.h"
#include "memlayout.h"
#include "mmu.h"
#include "proc.h"
int
sys_fork(void)
{
return fork();
}
int
sys_exit(void)
{
exit();
return 0; // not reached
}
int
sys_wait(void)
{
return wait();
}
int
sys_kill(void)
{
int pid;
if(argint... |
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import "SBStarkLauncherViewController.h"
#import "SBStarkKnobLauncherCellDelegate-Protocol.h"
#import "UIGestureRecognizerDelegate-Protocol.h"
#import "UITableViewDataSource-Pr... |
#include "kr_flow.h"
T_KRFlow *kr_flow_construct(T_KRParam *ptParam, T_KRModule *ptModule)
{
//TODO:this is a dummy now
T_KRFlow *ptFlow = kr_calloc(sizeof(*ptFlow));
if (ptFlow == NULL) {
KR_LOG(KR_LOGERROR, "kr_calloc ptFlow failed!");
return NULL;
}
ptFlow->tConstructTime = kr_p... |
#ifndef LUAGLUE_APPLYTUPLE_GLUEOBJSPTRCONSTFUNC_H_GUARD
#define LUAGLUE_APPLYTUPLE_GLUEOBJSPTRCONSTFUNC_H_GUARD
/**
* LuaGlueTypeValue<shared_ptr> const Function Tuple Argument Unpacking
*
* This recursive template unpacks the tuple parameters into
* variadic template arguments until we reach the count of 0 where ... |
int getColumnValue(
struct qryData *query,
char *inputFileName,
long offset,
int columnIndex
) {
FILE *inputFile = NULL;
char *output = NULL;
size_t strSize = 0;
int currentColumn = 0;
struct inputTable table;
int gotColumn;
MAC_YIELD
if(inputSeek(query, inputFileName, &offset, &inputF... |
/****************************************************************************
Copyright (c) 2010 cocos2d-x.org
http://www.cocos2d-x.org
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 res... |
#pragma once
#include "CHash.h"
class CMD4 : public CHash
{
public:
CMD4();
virtual ~CMD4();
private:
inline DWORD F(DWORD x, DWORD y, DWORD z) { return ((x & y) | (~x & z)); }
inline DWORD G(DWORD x, DWORD y, DWORD z) { return ((x & y) | (x & z) | (y & z)); }
inline DWORD H(DWORD x, DWORD y, DWO... |
#pragma once
#include <d3d9.h>
#include "GameResource.h"
#include "vector"
using namespace std;
class VertexBufferResource : public GameResource
{
public:
// ctor & dtor
VertexBufferResource();
// GameResource
virtual bool InitResource(LPDIRECT3DDEVICE9 d3dDevice) override;
virtual void ReleaseResource() overri... |
//
// DisableLibraryValidation.c
// DisableLibraryValidation
//
// Created by Oliver Kuckertz on 15.07.17.
// Copyright © 2017 Oliver Kuckertz. All rights reserved.
//
#include <mach/mach_types.h>
#include <sys/types.h>
#include <sys/systm.h>
#include <IOKit/IOLib.h> // for IOLog
#include <i386/proc_reg.h> // for ... |
#include <stdio.h>
#include "wich.h"
#include "refcounting.h"
int
main(int ____c, char *____v[])
{
setup_error_handlers();
ENTER();
VECTOR(x);
VECTOR(y);
x = Vector_new((double[]) {
1, 2, 3}, 3);
REF((void *)x.vector);
y = PVector_copy(x);
REF((void *)y.vector);
se... |
#IFNDEF PARSER_H_
#define PARSER_H
#include <QSyntaxHighlighter>
#include <QWidget>
#include <QWidgets>
class Parser: public QWidget
{
Q_OBJECT
public:
explicit Parser(QWidget *parent = nullptr);
public slots:
};
#endif
|
//-----------------------------------------------------------------------------
// MurmurHash2, by Austin Appleby
// Note - This code makes a few assumptions about how your machine behaves -
// 1. We can read a 4-byte value from any address without crashing
// 2. sizeof(int) == 4
// And it has a few limitations -
/... |
// Copyright (c) 2011 Seiya Tokui <beam.web@gmail.com>. All Rights Reserved.
// This source code is distributed under MIT License in LICENSE file.
#ifndef ELOG_GET_TIME_POSIX_H_
#define ELOG_GET_TIME_POSIX_H_
#include <sys/time.h>
namespace LOG {
inline double GetTimeSec() {
timeval tv;
gettimeofday(&tv, 0);
... |
#include <stdio.h>
#include <string.h>
#include "PCIE.h"
#if defined(__GNUC__)
#include <dlfcn.h> // dlopen/dlclsoe for linxu
#else
#define dlopen(x,y) ::LoadLibrary(x)
#define dlclose ::FreeLibrary
#define dlsym ::GetProcAddress
#define dlerror() "LoadLibrary failed"
#endif //
LPPCI... |
#ifndef _commandmgr_h_
#define _commandmgr_h_
#include <queue>
#include "tokenizer.h"
#include "gamecommand.h"
class ActorParams;
class ItemParams;
typedef std::queue<GameCommand*> GameCommandQueue;
class CommandMgr
{
public:
// returns singleton instance
static CommandMgr& Instance() { static CommandMgr instance;... |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "NSObject.h"
@interface EditImageReport : NSObject
{
}
+ (void)EditImageReportOverallSendingEditedImage:(unsigned int)arg1 withAllImage:(unsigned int)arg2 fromScene:(unsig... |
#ifndef ZEPHYR_MAKE_UNIQUE_H
#define ZEPHYR_MAKE_UNIQUE_H
#include <memory>
#include <type_traits>
#include <utility>
namespace zephyr
{
template <typename T, typename... Args>
std::unique_ptr<T> make_unique_helper(std::false_type, Args&&... args)
{
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
}
... |
//
// BottomCollectionViewCell.h
// 乐趣做
//
// Created by 王新伟 on 2017/5/16.
// Copyright © 2017年 王新伟. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ShopListModel.h"
#import "HotListModel.h"
@interface BottomCollectionViewCell : UICollectionViewCell
/**传商家model*/
@property (nonatomic,strong) ShopListModel... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.