text stringlengths 4 6.14k |
|---|
#pragma once
#include <stdlib.h>
namespace daw {
namespace radio {
namespace medtronic {
namespace packets {
namespace types {
enum MedtronicPacketType: uint8_t {
Pump = 0xA2,
Glucometre = 0xA5,
EnliteSensorWarmup = 0xAA,
EnliteSensor = 0xAB
};
}
struct __attribute_... |
BOOLEAN OpenNvapi_Initialize();
UINT8 OpenNvapi_GetLoad();
UINT16 OpenNvapi_GetEngineClock();
UINT16 OpenNvapi_GetMemoryClock();
UINT16 OpenNvapi_GetMaxEngineClock();
UINT16 OpenNvapi_GetMaxMemoryClock();
UINT64 OpenNvapi_GetTotalMemory();
UINT64 OpenNvapi_GetFreeMemory();
UINT8 OpenNvapi_GetTemperature();
VOID OpenNv... |
//
// SSZipArchive.h
// SSZipArchive
//
// Created by Sam Soffes on 7/21/10.
// Copyright (c) Sam Soffes 2010-2015. All rights reserved.
//
#ifndef _SSZIPARCHIVE_H
#define _SSZIPARCHIVE_H
#import <Foundation/Foundation.h>
#include "SSZipCommon.h"
NS_ASSUME_NONNULL_BEGIN
extern NSString *const SSZipArchiveErrorD... |
#include <pololu/orangutan.h>
#include <stdio.h> // for printf()
/*
* pushbuttons2: for the Orangutan LV, SV, SVP, X2, and 3pi robot.
*
* This example uses the OrangutanPushbuttons library to detect user input
* from the pushbuttons. Each button press and release triggers an event
* (the buzzer plays a n... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* term.h :+: :+: :+: ... |
#ifndef _MONSTER_AVENGERS_DATASET_CORE_ARMOR_SET_H_
#define _MONSTER_AVENGERS_DATASET_CORE_ARMOR_SET_H_
#include <array>
#include "base/properties.h"
namespace monster_avengers {
namespace dataset {
typedef std::vector<int> JewelSet;
struct ArmorSet {
ArmorSet() = default;
std::array<int, PART_NUM> ids;
std:... |
#pragma once
#include "pch.h"
#include <string>
#include "IEntityComponent.h"
#include "Resources\BitmapResourceHandle.h"
using namespace PinnedDownClient::Resources;
using namespace PinnedDownCore;
namespace PinnedDownClient
{
namespace Components
{
class SpriteComponent : public PinnedDownCore::IEntityComponen... |
/**
MIT License
Copyright (c) 2017 Douglas Chidester
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, c... |
#import <CoreData/CoreData.h>
@interface SSManagedObject : NSManagedObject
+ (id)objectWithID:(NSString *)objectID;
+ (id)objectWithID:(NSString *)objectID inContext:(NSManagedObjectContext *)context;
+ (NSArray *)objectsWithIDs:(NSSet *)objectIDs;
+ (NSArray *)objectsWithIDs:(NSSet *)objectIDs inContext:(NSManagedOb... |
/*
* 2015/11/22
* Tony Guo
* R04458006
*
* HW4
*
*/
#ifndef _COMPRESSION_
#define _COMPRESSION_
#include <iostream>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <string>
#include <vector>
#include <bitset>
#include <map>
#include <cmath>
#include <memory>
enum{
FULL = 0,
FAST
... |
// Copyright (C) 2002-2011 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_OS_OPERATOR_H_INCLUDED__
#define __I_OS_OPERATOR_H_INCLUDED__
#include "IReferenceCounted.h"
#include "irrString.h"
namespace irr
{
//... |
//https://code.google.com/p/nya-engine/
#pragma once
//write_to_buf return used size or 0 if failed
//to_data size should be allocated with enough size
#include <vector>
#include <string>
#include <stddef.h>
#include "math/vector.h"
#include "math/quaternion.h"
namespace nya_formats
{
struct nms
{... |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "CDStructures.h"
#import "DVTInvalidation-Protocol.h"
@class DVTBorderedView, DVTObservingToken, DVTStackBacktrace, DVTTextCompletionSession, DVTTextCompletionWindowResize... |
/*
Copyright (c) 2013 Pauli Nieminen <suokkos@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 Software without restriction, including without limitation the rights
to use, copy, modify, merge, p... |
//
// WeatherNowItemView.h
// WeatherDemo
//
// Created by Kireto on 8/9/14.
// Copyright (c) 2014 No Name. All rights reserved.
//
#import <UIKit/UIKit.h>
@class AirportModel;
@class WeatherModel;
@interface WeatherNowItemView : UIView
- (void)customizeForAirport:(AirportModel*)airport andWeather:(WeatherModel*... |
//
// SAButton.h
// CoolSnail
//
// Created by quqi on 15/10/10.
// Copyright © 2015年 牵着蜗牛走的我. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SAButton : UIButton
@end
|
#ifndef SCOPEGRAPH_AGENT_BASE_H__
#define SCOPEGRAPH_AGENT_BASE_H__
#include <cohear/Sender.h>
#include <cohear/Receiver.h>
namespace sg {
namespace detail {
class AgentBase {
public:
AgentBase() {
_sender.registerSlot(_agendAdded);
}
void connect(AgentBase& other) {
getSender().connect(other.getReceiver... |
/*
* PlayDirector.h
*
* Created on: 12.5.2015
* Author: mikko
*/
#ifndef PLAYDIRECTOR_H_
#define PLAYDIRECTOR_H_
#include "Stage.h"
#include "Robot.h"
#include "Script.h"
#include "MVision.h"
#include "ArduinoConnection.h"
#include <thread>
class PlayDirector
{
Script* script;
Stage* stage;
MVision*... |
@interface MyClassControll : NSObject <SomeProtocol>
@property(nonatomic, strong) IBOutlet UILabel *label;
- (void)fuga;
@end
|
//
// RDThomas.h
// Thomas
//
// Created by lihui on 2017/1/5.
// Copyright © 2017年 org.richard. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "RDMacros.h"
//! Project version number for RDSysUrlSchemeSession.
FOUNDATION_EXPORT double RDSysUrlSchemeSessionVersionNumber;
//! Project version s... |
//
// DDPSMBFileHashCache.h
// DanDanPlayForiOS
//
// Created by JimHuang on 2017/11/21.
// Copyright © 2017年 JimHuang. All rights reserved.
//
#import "DDPBase.h"
@interface DDPSMBFileHashCache : DDPBase
@property (copy, nonatomic) NSString *key;
@property (copy, nonatomic) NSString *md5;
@property (strong, non... |
// -*- C++ -*-
//$Id: config-borland-common.h 79134 2007-07-31 18:23:50Z johnnyw $
// The following configuration file contains defines for Borland compilers.
#ifndef ACE_CONFIG_BORLAND_COMMON_H
#define ACE_CONFIG_BORLAND_COMMON_H
#include /**/ "ace/pre.h"
#define ACE_HAS_CUSTOM_EXPORT_MACROS
#define ACE_P... |
#ifndef _IMPORTERMATERIAL_H_
#define _IMPORTERMATERIAL_H_
#include "Importer.h"
#include <string>
namespace ImporterMaterial
{
bool Import(const char* file_name, std::string& output);
bool Load(const char* file_name, int * texture);
};
#endif // !
|
/*
* frame.h
*
* Created on: Feb 18, 2017
* Author: Brian Schnepp
* License: See 'LICENSE' in root of this repository.
*/
#ifndef FRAME_H_
#define FRAME_H_
#include "PfInstance.h"
#include "component.h"
#include <string>
#include <X11/Xlib.h>
#include <xcb/xcb.h>
/**
* Base class for a frame on Pat... |
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sys/socket.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/l2cap.h>
int main(int argc, char **argv)
{
struct sockaddr_l2 loc_addr = { 0 }, rem_addr = { 0 };
char buf[1024] = { 0 };
int s, client, bytes_read;
unsign... |
/*
Fibonacci number generation
The program takes an input N from the command line
It uses a non-recursive technique to generate the value of N
Checks for conditions mentioned in the coding challenge.
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
// Checks if a number is prime
int isPrime(long long n){
... |
#include <linux/module.h>
#include <linux/init.h>
MODULE_LICENSE("Dual MIT/GPL");
static int symple_driver_init(void)
{
printk(KERN_ALERT "driver loaded\n");
return 0;
}
static void simple_driver_exit(void)
{
printk(KERN_ALERT "driver unloaded\n");
}
module_init(symple_driver_init);
module_exit(simple_driver_exi... |
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import "UITextField.h"
@interface PUOffsetTextField : UITextField
{
}
- (struct CGRect)editingRectForBounds:(struct CGRect)arg1;
@end
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bplustree.h"
#include "pdfindex.h"
#include "pdfmem.h"
#include "pdfread.h"
#include "pdffilter.h"
#include "pdfdoc.h"
extern pdf_parser *parser_inst;
pdf_map *
pdf_map_create()
{
pdf_map * m = pdf_malloc(sizeof(pdf_map));
if (m)
... |
/*
Write a program to read two floating point number and find the sum of it's squares and print it.
*/
#include <stdio.h>
int main () {
float a, b, sum;
printf("Enter any two floating numbers: ");
scanf("%f %f", &a, &b);
sum = (a * a) + (b * b);
printf("The sum of squares of %.2f and %.2f is %... |
#pragma once
class cMapController : public common::cObservable2
,public common::cSingleton<cMapController>
{
public:
cMapController(void);
~cMapController(void);
bool CreateDefaultTerrain();
bool LoadTRNFile(const string &fileName);
bool LoadHeightMap(const string &fileName);
bool LoadHeightMapTextur... |
/* bit-array.h
* Reseni IJC-DU1, priklad a) b), 28.2.2013
* Autor: Michal Kozubik, FIT, xkozub03@stud.fit.vutbr.cz
* Prelozeno: gcc 4.7.2
* Hlavickovy soubor s definicemi maker a inline funkci pro praci s bitovym
* polem. Vyber maker/inline funkci je realizovan definovanim USE_INLINE pri
* prekladu programu
*/
... |
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
* 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/. */
... |
//
// OpenGLView.h
// LearnOpenGLES01
//
// Created by 黄维平 on 2017/4/19.
// Copyright © 2017年 hwp. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface OpenGLView : UIView
@end
|
/*
* heartbeat.h - Heart-beat task SiriDB.
*
* There is one and only one heart-beat task thread running for SiriDB. For
* this reason we do not need to parse data but we should only take care for
* locks while writing data.
*/
#ifndef SIRI_HEARTBEAT_H_
#define SIRI_HEARTBEAT_H_
#include <siri/siri.h>
void siri_... |
#include <stdio.h>
#include <time.h>
// 159.335 assignment 3
// This is a working memory allocation program
// but it is slow and uses lots of memory.
// Martin Johnson 2000-2014
// the following is fixed by the OS
// you are not allowed to change it
#define PAGESIZE 4096
// you may want to change the following lines... |
/*
* image_pointcloud_nodelet.h
*
* Created on: 11.08.2014
* Author: fnolden
*/
#ifndef SYNC_REMAP_NODELET_H_
#define SYNC_REMAP_NODELET_H_
#include <ros/ros.h>
#include <sstream>
#include <string.h>
#include <map>
#include <iostream>
#include <functional>
#include <image_transport/image_transport.h>
#inc... |
//
// SBUIMenuLogoController.h
// slingball
//
// Created by Jacob Hauberg Hansen on 2/26/10.
// Copyright 2010 Novasa Interactive. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "SBUIMenuController.h"
@interface SBUIMenuLogoController : SBUIMenuController {
}
@end
|
#pragma once
#include <reflectionzeug/base/template_helpers.h>
#include <reflectionzeug/property/PropertySignedIntegral.h>
#include <reflectionzeug/property/PropertyUnsignedIntegral.h>
#include <reflectionzeug/property/PropertyFloatingPoint.h>
#include <reflectionzeug/property/PropertyBool.h>
#include <reflectionzeu... |
void testFunction(char c1,int i1)
{
switch(c1){ // GOOD
case 12:
break;
case 10:
break;
case 9:
break;
}
switch(i1){ // GOOD
for(i1=0;i1<20;i1++){
case 12:
case 10:
case 9:
}
}
switch(c1){ // BAD
case 12:
break;
case 10:
break;
... |
/*!
* Gauged
* https://github.com/chriso/gauged (MIT Licensed)
* Copyright 2014 (c) Chris O'Hara <cohara87@gmail.com>
*/
#ifndef GAUGED_SORT_H_
#define GAUGED_SORT_H_
#include <stdint.h>
/**
* Various sorting strategies.
*/
typedef struct gauged_mergesort_s {
uint32_t *buffer;
uint32_t *output;
si... |
//
// Circular.h
// GSTween
//
// Created by Garrit Schaap on 13.02.14.
// Copyright (c) 2014 Garrit Schaap. All rights reserved.
//
//
//#import <UIKit/UIKit.h>
typedef CGFloat (^easeBlock)(CGFloat time);
@interface Circular : NSObject
+ (easeBlock)easeIn;
+ (easeBlock)easeOut;
+ (easeBlock)easeInOut;
@end
|
#include <log.h>
#include <lib/tree.h>
#include <beryllium/device.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <mutex.h>
tree_t * device_tree = NULL;
device_t * dev_root = NULL;
device_t * kernel_ns = NULL;
void device_tree_enumerate(tree_node_t * node, size_t height)
{
if (!node) r... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_QT_WALLETVIEW_H
#define BITCOIN_QT_WALLETVIEW_H
#include "amount.h"
#include "masternodelist.h"
#include <Q... |
//
// NTDataNetwork.h
// notes
//
// Created by Nate on 12/1/14.
// Copyright (c) 2014 ifcantel. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIImage.h>
NSString *const NTDataCollectorErrorRetrieveImage;
NSString *const NTDataCollectorErrorDataType;
NSString *const NTDataCollectorError... |
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include "parse.h"
void debug_out(const char *msg, ...) {
static FILE *logfile = NULL;
if (logfile == NULL) {
logfile = fopen("debug.log", "wt");
setvbuf(logfile, NULL, _IONBF, 0);
}
va_list args;
va_start(args, msg);
... |
//
// Identical.h
// NSUnit
//
// Created by Jackson Harper on 8/21/12.
// Copyright (c) 2012 Jackson Harper. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol OperationProtocol;
@interface TheSame : NSObject
+ (NSObject<OperationProtocol> *) as:(NSObject *) other;
@end
|
/*
** mrb_sample.h - Sample class
**
** See Copyright Notice in LICENSE
*/
#ifndef MRB_SAMPLE_H
#define MRB_SAMPLE_H
void mrb_mruby_sample_gem_init(mrb_state *mrb);
#endif
|
//
// WHScrollAndPageView.h
// ChatDemo-UI2.0
//
// Created by Jason on 15-5-9.
// Copyright (c) 2015年 Jason. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol WHcrollViewViewDelegate;
@interface WHScrollAndPageView : UIView <UIScrollViewDelegate>
{
__unsafe_unretained id <WHcrollViewViewDelegate> _d... |
// This file contains tests for the sizeof() function and operator.
#include <stdio.h>
#include "tests.h"
#define check_sizes(type, size) \
is_eq(sizeof(type), size); \
is_eq(sizeof(unsigned type), size); \
is_eq(sizeof(signed type), size); \
is_eq(sizeof(const type), size); \
... |
//
// FLGridlines.h
// Fliegen
//
// Created by Abhishek Moothedath on 10/7/14.
// Copyright (c) 2014 Abhishek Moothedath. All rights reserved.
//
#import <SceneKit/SceneKit.h>
@interface FLGridlines : SCNNode
@end
|
/*
* Copyright (c) 2012 Mario Negro Martín
*
* 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,... |
//
// UIAlertView+BBUAdditions.h
// SoundCloudChallenge
//
// Created by Boris Bügling on 26.06.13.
// Copyright (c) 2013 Boris Bügling. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIAlertView (BBUAdditions)
+(UIAlertView*)bbu_showAlertWithError:(NSError*)error;
@end
|
#ifndef CGnuPlotTitle_H
#define CGnuPlotTitle_H
#include <CGnuPlotColorSpec.h>
#include <CGnuPlotPosition.h>
#include <CFont.h>
class CGnuPlotGroup;
class CGnuPlotRenderer;
class CGnuPlotTitleData {
public:
CGnuPlotTitleData() { }
const std::string &text() const { return text_; }
void setText(const std::stri... |
//
// DCHDribbbleShotCollectionViewCell.h
// FireBalllooon
//
// Created by Derek Chen on 8/13/15.
// Copyright (c) 2015 CHEN. All rights reserved.
//
#import <UIKit/UIKit.h>
@class DCHShotUIModel;
@interface DCHDribbbleShotCollectionViewCell : UICollectionViewCell
- (void)updateWithUIModel:(DCHShotUIModel *)ui... |
//
// AppDelegate.h
// Scorll
//
// Created by 鲍先生 on 15/5/18.
// Copyright (c) 2015年 鲍先生. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property (readonly, strong, nonat... |
//
// AppDelegate.h
// testTableView
//
// Created by ioszhe on 16/1/25.
// Copyright © 2016年 ioszhe. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
//
// EAAppDelegate.h
// EAResistantScrollView
//
// Created by CocoaPods on 03/05/2015.
// Copyright (c) 2014 Edgar Antunes. All rights reserved.
//
@interface EAAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
/*
* This file is part of Poedit (http://poedit.net)
*
* Copyright (C) 2000-2016 Vaclav Slavik
*
* 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 wit... |
#pragma once
#include <node.h>
class Contracts
{
public:
static bool RequireNumberOfArguments(const v8::FunctionCallbackInfo<v8::Value>& args, int requiredNumberOfArguments);
static bool RequireObjectArgument(const v8::FunctionCallbackInfo<v8::Value>& args, int argumentIndex);
static bool RequireNumberAr... |
#include <csv.h>
#include "../rt.h"
#include "module.h"
#define BUFFER_SIZE 1024
enum {
PARSE_OP_THIS = 2,
PARSE_OP_ENTRY = 4,
PARSE_OP_END,
PARSE_OP_BEGIN
};
typedef struct {
int col;
int row;
int status; /* GLA_SUCCESS, GLA_VM (error in cb handler), GLA_END (parsing aborted by handler) */
HSQUIRRELVM vm;... |
#pragma once
#include<vector>
#include<string>
#include<cstring>
#include<climits>
#include<algorithm>
#include<cmath>
#include<stack>
#include <numeric>
#include<unordered_map>
#include<unordered_set>
#include<sstream>
using namespace std;
class Solution {
public:
int f[1000] = {0};
int numTrees(int n) {
if (n ... |
#include<stdio.h>
void swapValue(int arr[], int i, int j)
{
int t = arr[i];
arr[i] = arr[j];
arr[j] = t;
}
void bubbleSort(int arr[], int arrLength)
{
int indexOfLastUnsortedElement = arrLength;
int swapped = 0;
while (swapped == 0)
{
swapped = 1;
for (int i = 0; i < indexO... |
#ifndef _rpi_i2c_c
#define _rpi_i2c_c
#define byte unsigned char
#ifdef __cplusplus
extern "C" {
#endif
extern int openBus (char*);
extern int closeBus (int);
extern int writeBytes (int, int, byte*, int);
extern int readBytes (int, int, byte*, int);
extern int write_word_read_byte(int, int, byte*, int, byte*, int, i... |
//
// WSWebkitMicro.h
// Pods
//
// Created by winter on 16/8/11.
//
//
#ifndef WSWebkitMicro_h
#define WSWebkitMicro_h
#endif /* WSWebkitMicro_h */
|
#include "aligned_storer.h"
#include <cstddef>
template<typename T> class AB;
///// length and alignment information
template <typename TT>
class LenAlign {
template<typename T> friend class AB;
static const std::size_t len;
static const std::size_t align;
};
template<>
class LenAlign<int> {
te... |
#import <UIKit/UIKit.h>
@interface DistributionDetailsViewController : UIViewController <UITableViewDataSource,UITableViewDelegate>
@property (nonatomic, strong) NSMutableArray *dataSources;
@property (nonatomic, strong) M2XDistribution *distribution;
@property (weak, nonatomic) IBOutlet UITableView *tableViewDataSo... |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "NSTextFieldCell.h"
@class NSArray, NSButtonCell, NSString;
@interface DVTFilePathFieldCell : NSTextFieldCell
{
NSButtonCell *_chooseButtonCell;
NSButtonCell *_lin... |
//
// TLDDrawNode.h
// TLGLDraw
//
// Created by Ruben Nine on 24/04/14.
// Copyright (c) 2014 Ruben Nine. All rights reserved.
//
#import "TLDNode.h"
@interface TLDDrawNode : TLDNode <TLDDrawableNode>
@property (assign, nonatomic) TLDColor color;
- (instancetype)init NS_DESIGNATED_INITIALIZER;
- (instancetype)... |
#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
FOUNDATION_EXPORT double LIHImageSliderVersionNumber;
FOUNDATION_EXPORT const unsigned char LIHImageSliderVersionString[];
|
#ifndef _COMPUTE_RIGID_TRANSFORM_H_
#define _COMPUTE_RIGID_TRANSFORM_H_
#include <Eigen/Dense>
#include <vector>
////////////////////////////////////////////////////////////////////////////////////////////////////
/// @fn static bool ComputeRigidTransform(const std::vector<Eigen::Vector3d>& src, const std::vector<Ei... |
/*
* Node.h
*
* Created on: Nov 6, 2013
* Author: jasonr
*/
#ifndef CORE_PARTITION_NODE_H_
#define CORE_PARTITION_NODE_H_
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <vector>
#include <sg/classPointers.h>
#include <sg/node.h>
#include "autoreg.h"
#include "classPointers.h"
#include "meshDat... |
/*
* Copyright (c) Meta Platforms, Inc. and 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 <quic/codec/PacketNumberCipher.h>
#include <folly/ssl/OpenSSLPtrTypes.h>
namespace quic {
class Aes128P... |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "MMUIViewController.h"
#import "UITableViewDataSource.h"
#import "UITableViewDelegate.h"
#import "WCFacadeExt.h"
@class MMTableView, MMUIWindow, MMWebImageView, NSString, ... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "dbg.h"
#include "stats.h"
void usage()
{
fprintf(stderr,
"usage: desc [-hs] DATAFILE\n\n"
"desc analyse the data in DATAFILE and prints summary statistics\n"
"that describe the data.\n\n"
"The input... |
//
// 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"
@class NSString, UIImage;
@protocol SightCaptureDelegate <NSObject>
- (void)onRecorderFinished:(unsigned int)arg1 moviePath:(NSString *)arg2 withThumb:(UIImag... |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "CDStructures.h"
@interface _IDEWorkspaceDocumentInternalContextWrapper : NSObject
{
id wrappedDelegate;
SEL wrappedSelector;
void *wrappedContextInfo;
}
@end... |
//
// UIWebView+loadURL.h
// TXCategories (https://github.com/tlsion/TXCategories)
//
// Created by 王-庭协 on 14/12/15.
// Copyright (c) 2014年 www.skyfox.org. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIWebView (TXLoad)
/**
* @brief 读取一个网页地址
*
* @param URLString 网页地址
*/
- (void)tx_loadURL:(N... |
//
// Created by Harrison on 9/8/2016.
//
#ifndef CS430_PROJ1_IMAGES_PPM3_H
#define CS430_PROJ1_IMAGES_PPM3_H
#include <stdio.h>
#include "ppm_header.h"
#include "helpers.h"
/**
* Provided a file stream, a loaded PpmHeader, and an allocated color grid of proper size, this function
* parses the data from the file a... |
/*************************************************************************
> File Name: echoser.c
> Author: Simba
> Mail: dameng34@163.com
> Created Time: Fri 01 Mar 2013 06:15:27 PM CST
************************************************************************/
#include<stdio.h>
#include<sys/types.h>
#include<sys... |
//
// Generated by the J2ObjC translator. DO NOT EDIT!
// source: android/libcore/luni/src/main/java/java/util/HugeEnumSet.java
//
#ifndef _JavaUtilHugeEnumSet_H_
#define _JavaUtilHugeEnumSet_H_
#include "J2ObjC_header.h"
#include "java/util/EnumSet.h"
@class IOSClass;
@class IOSObjectArray;
@class JavaLangEnum;
... |
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 6.00.0366 */
/* Compiler settings for mimeinfo.idl:
Oicf, W1, Zp8, env=Win32 (32b run)
protocol : dce , ms_ext, c_ext
error checks: allocation ref bounds_check enum stub_data
VC __... |
#pragma once
#include <GL\glew.h>
#include <glm/gtc/type_ptr.hpp>
class LeapData
{
public:
inline LeapData(){};
inline ~LeapData(){};
LeapData* ptr = this;
glm::vec3 palmPosition = glm::vec3(0.0f, 0.0f, 0.0f);
glm::vec3 tempPalmPosition = glm::vec3(0.0f, 0.0f, 0.0f);
glm::vec3 palmNormal = glm::vec3(0.0f... |
/*
** Copyright 2012 by Kvaser AB, Mölndal, Sweden
** http://www.kvaser.com
**
** This software is dual licensed under the following two licenses:
** BSD-new and GPLv2. You may use either one. See the included
** COPYING file for details.
**
** License: BSD-new
** =================... |
//
// FDPayParamsModel.h
// FDSDK
//
// Created by 熙文 张 on 2017/01/11.
// Copyright © 2017年 熙文 张. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface FDPayParamsModel : NSObject
/**
* 订单编号
*/
@property (nonatomic, strong) NSString *orderId;
/**
* 订单金额(大于等于1的整数)
*/
@property (nonatomic, assign) int... |
//
// 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 BlueProfilePedometerInfo : NSObject
{
int _Step;
int _Calorie;
int _Distance;
}
@property int Distance; // @synthesize Distance=_Distan... |
/*
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... |
#pragma once
#ifndef H_DISTANCE
#define H_DISTANCE
#include "map.h"
int get_crow_distance_between(Location from, Location to);
int get_shortest_distance_between(Location from, Location to, int cutoff);
MotionWord get_direction_from(Location from, Location to);
bool is_adjacent_to(Location from, Location to);
#endif ... |
#include <stdio.h>
int main() {
const long double PI = 3.141592653590L;
const int DAYS_IN_WEEK = 7;
const SUNDAY = 0; // by default int
DAYS_IN_WEEK = 7; // error
return 0;
}
|
//
// ZNGMockEventClient.h
// ZingleSDK
//
// Created by Jason Neel on 3/7/17.
// Copyright © 2017 Zingle. All rights reserved.
//
#import <ZingleSDK/ZNGEventClient.h>
@class ZNGEvent;
@interface ZNGMockEventClient : ZNGEventClient
/**
* Events to be returned by spoofed methods, ordered oldest to newest (i.e.... |
/*
* A naive algorithm for circular string matching with k mismatches.
*/
#include <stddef.h>
static unsigned char *P;
static size_t m;
void prep(unsigned char *P_, size_t m_, size_t k)
{
P = P_; m = m_; (void)k;
}
size_t exec(unsigned char *T, size_t n, size_t k)
{
size_t i, j, r, neq, occ = 0;
for (... |
#include "frameon.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <linux/fb.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <errno.h>
#define true 1
#define false 0
int frameon_putvinfo(struct fb_var_screeninfo *put){
int res = ioctl(frameon_fbfd... |
#include <stdio.h>
#include <stdlib.h>
#include <smack.h>
struct str {
int x ;
int * y ;
};
struct str* foo(int b, int* a) {
if (b == 0) {
return NULL;
}
struct str* s = malloc (sizeof(struct str));
(*s).x = b ;
(*s).y = a ;
return s;
}
void func(int* w) {
struct str * s = foo(*w, w);
(*s).x = 1;
}
|
/*
* grove_digital_light.h
*
* Copyright (c) 2012 seeed technology inc.
* Website : www.seeed.cc
* Author : Jacky Zhang
*
* The MIT License (MIT)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to d... |
#include "Performance.h"
uint64 GetPerformanceCounter(void)
{
LARGE_INTEGER i;
if(!QueryPerformanceCounter(&i))
{
error();
}
#if 0
if(i.QuadPart <= 0i64)
{
error();
}
#endif
return (uint64)i.QuadPart;
}
uint64 GetPerformanceFrequency(void)
{
static uint64 freq;
if(freq == 0ui64)
{
LARGE_INTEGER i;
... |
//
// Created by azu on 2014/09/08.
//
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
// fetch all -> filter by predicate
@interface RequestInMemory : NSObject
// initialize class + fetch data from CoreData
+ (instancetype)memoryEntityDescription:(NSEntityDescription *) entityDescription context:(NS... |
//
// PJAppDelegate.h
// ScrollViewerAutoLayout
//
// Created by Paul Jackson on 11/12/2013.
// Copyright (c) 2013 PaulJ. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface PJAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
//
// OCExampleResult.h
// SpecRunner
//
// Created by John Clayton on 12/23/2008.
// Copyright 2008 Fivesquare Software, LLC. All rights reserved.
//
/*
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... |
/* Hello World program */
#include<stdio.h>
/*
void print_bits(unsigned int num)
{
unsigned int size = sizeof(unsigned int);
unsigned int maxPow = 1<<(size*8-1);
int i = 0;
for(;i<size*8;++i){
// print last bit and shift left.
printf("%u ",num&maxPow ? 1 : 0);
num = num<<1;
... |
// 22 may 2015
#include "test.h"
static void openFile(uiButton *b, void *data)
{
char *fn;
fn = uiOpenFile();
if (fn == NULL)
uiLabelSetText(uiLabel(data), "(cancelled)");
else {
uiLabelSetText(uiLabel(data), fn);
uiFreeText(fn);
}
}
static void saveFile(uiButton *b, void *data)
{
char *fn;
fn = uiSave... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.