text
stringlengths
4
6.14k
#ifndef TUVOK_STACK_TIMER_H #define TUVOK_STACK_TIMER_H #include "Basics/PerfCounter.h" #include "Basics/Timer.h" #include "Controller.h" namespace tuvok { /// Simple mechanism for timing blocks of code. Create a StackTimer on /// the stack and it will record timing information when it goes out of /// scope. For e...
#ifndef _MESH_ #define _MESH_ /* External Variables */ extern int NNodes,NGEdges,NLoops,NSubBodies,NBodies; extern int NUMPTS,*N,*LIST,*BIN,*V,*E,NUMTRI,*NT; extern double hsize; extern double *X; extern double *coord; extern GEdge *GEdges; extern Loop *Loops; extern SubBody *SubBodies; extern Body *B...
#ifndef SMTL_BYTECODE_PARSER_H #define SMTL_BYTECODE_PARSER_H #include <string> using namespace std; #define SMTL_CPU_VMEM 59 #define SMTL_CPU_MEM 255 #define SMTL_CPU_BIOS 200 class SmtlCpu { private: int pc; unsigned char a,b,c,d; signed char s; char vmem[SMTL_CPU_VMEM]; void processOpcode(char opcode); ...
/* * Copyright (c) 2001-2003 Swedish Institute of Computer Science. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above cop...
/***************************************************************************** The following code is derived, directly or indirectly, from the SystemC source code Copyright (c) 1996-2011 by all Contributors. All Rights reserved. The contents of this file are subject to the restrictions and limitations ...
/* * apdu.c * * Created on: 30 Mar 2017 * Author: C. TORR, MAOSCO Ltd */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> // Used for Shared Memory #include <sys/ipc.h> // Used for Shared Memory #include <sys/shm.h> // Used for Shared Memory #include...
// // ViewController.h // WJEncryptionTools // // Created by Kevin on 15/4/4. // Copyright (c) 2015年 Kevin. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
#ifdef HAVE_CONFIG_H #include "../../../ext_config.h" #endif #include <php.h> #include "../../../php_ext.h" #include "../../../ext.h" #include <Zend/zend_operators.h> #include <Zend/zend_exceptions.h> #include <Zend/zend_interfaces.h> #include "kernel/main.h" /* This file is part of the php-ext-zendframework pac...
// // CTKeySet.h // ConfigurableTests // // Created by Sergey Mamontov on 3/11/14. // Copyright (c) 2014 Sergey Mamontov. All rights reserved. // #import <Foundation/Foundation.h> #pragma mark Public interface declaration @interface CTKeySet : NSObject #pragma mark - Properties @property (nonatomic, readonly...
/** * 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. * * What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20? */ #include <stdio.h> #include "common/eulersolution.h" struct euler_state_s { long answer;...
// // DDMIRequestHandle.h // HMLoginDemo // // Created by lilingang on 15/8/3. // Copyright (c) 2015年 lilingang. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSUInteger, DDMIErrorType) { DDMIErrorUnkwon, //**未知错误*/ DDMIErrorNetworkNotConnected, //**网络未连接*/ ...
// // DBViewController.h // DaBanShi // // Created by huangluyang on 14-2-19. // Copyright (c) 2014年 huangluyang. All rights reserved. // @interface DBTabController : UITabBarController { } // Create a view controller and setup it's tab bar item with a title and image -(UIViewController*) viewControllerWithTabTit...
#ifndef VALUES_H #define VALUES_H #include <memory> #include "utility.h" class State; class Basic; class ValueWrapper{ public: ValueWrapper(std::string name_): name{name_} {}; virtual ~ValueWrapper(){}; virtual void serialize(json& j) const = 0; void deserialize(const json& j, j...
// // MyAnnotation.h // Tsker // // Created by Donal Hanna on 29/05/2013. // Copyright (c) 2013 Donal Hanna. All rights reserved. // #import <Foundation/Foundation.h> #import <MapKit/MapKit.h> @interface MyAnnotation : NSObject <MKAnnotation> { CLLocationCoordinate2D coordinate; NSString *title; ...
#ifndef XENON_GPU_DRAWCALL_H #define XENON_GPU_DRAWCALL_H #include <Xenon/GPU/GPU.h> #include <Xenon/GPU/GLInclude.h> #include <Red/Util/IRefCounted.h> namespace Xenon { namespace GPU { class DrawCall : public virtual Red::Util :: IRefCounted { public: typedef GLenum DrawMode; static cons...
#ifndef MATRIX_H # define MATRIX_H # include "engine.h" typedef enum e_mtype { IDENTITY, SCALE, TRANSLATION, ROTATION, PROJECTION } t_mtype; class Matrix { public: double mat[4][4]; t_mtype type; Matrix(t_mtype type); // Identity Matrix Matrix(t_mtype type, double scale); // Scale Matrix Matr...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <unistd.h> #include "structure.h" #include "utilities.h" #include "lyrics_io.h" //Contains functions pertaining to file i/o void readLinesToStructure(structure *s, char *filename, int numLines){ //reads untagged lines from file in...
 #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef WIN32 #include <windows.h> #else #include <sys/time.h> #endif #include "match_tree.h" unsigned int current_millisecond() { unsigned long long now = 0; #ifdef WIN32 FILETIME ft; GetSystemTimeAsFileTime(&ft); now = ft.dwHighDateTime; now <<= 32; ...
#pragma once namespace OSGeo { namespace Ogr { /// <summary>The data source capabilities.</summary> [System::Flags] public enum class DataSourceCapabilities : int { /// <summary>The data source has no specific capabilities.</summary> None = 0, /// <summary>The data source can create new layers.</s...
// // GLBinding.h // jstest // // Created by jie on 13-7-25. // Copyright (c) 2013年 jie. All rights reserved. // #ifndef __js11__GLBinding__ #define __js11__GLBinding__ #include <v8.h> #include "../app/node.h" #include "../core/Module.h" using namespace v8; #define DEFINE_GL(name) static void name##Callback(con...
// // MyFavListInteractorImpl.h // TianJiCloud // // Created by 朱鹏 on 2017/8/8. // Copyright © 2017年 TianJiMoney. All rights reserved. // #import <Foundation/Foundation.h> #import "MyFavListConfigurateProtocol.h" #import "MyFavListPrivateProtocol.h" @interface MyFavListInteractorImpl : NSObject<MyFavListInteract...
#ifndef __ZIP_PIC_VIEW_APP_H__ #define __ZIP_PIC_VIEW_APP_H__ #include <wx/wx.h> #include <wx/log.h> class ZipPicViewApp : public wxApp { public: virtual bool OnInit(); virtual int OnExit(); private: wxLog *log; }; #endif
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef __cplusplus # error This header can only be compiled as C++. #endif #ifnd...
#ifndef SERVER_H_ #define SERVER_H_ struct Server_arg { int listen; }; void * server_start(void *); #endif
/* * throw.h * * Created on: 23 Oct 2009 * Author: David */ #ifndef THROW_H_ #define THROW_H_ #include <stdbool.h> #include "data_structures/vector.h" struct mouse_state; struct disc; /* * THROW * * Represents a throw in the game, there will only be one of these at a time * and it will be stored in t...
#ifndef VIX_PRIMITIVE_CONE_H #define VIX_PRIMITIVE_CONE_H #include <vix_platform.h> #include <vix_gl.h> #include <vix_glbuffers.h> #include <vix_glcamera3d.h> #include <vix_glshaderprogram.h> #include <vix_vertex_defs.h> #include <vix_color.h> #include <vector> namespace Vixen { class VIX_API PrimitiveCone { publ...
#ifndef RABIT_LEARN_IO_IO_INL_H_ #define RABIT_LEARN_IO_IO_INL_H_ /*! * \file io-inl.h * \brief Input/Output utils that handles read/write * of files in distrubuted enviroment * \author Tianqi Chen */ #include <cstring> #include "./io.h" #if RABIT_USE_HDFS #include "./hdfs-inl.h" #endif #include "./file-in...
// // RecordViewController.h // EZAudioRecordExample // // Created by Syed Haris Ali on 12/1/13. // Copyright (c) 2013 Syed Haris Ali. 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...
// // MTFValueTransformerErrorHandling.h // Motif // // Created by Eric Horacek on 12/24/15. // Copyright © 2015 Eric Horacek. All rights reserved. // @import Foundation; NS_ASSUME_NONNULL_BEGIN @protocol MTFValueTransformerErrorHandling <NSObject> /// Transforms a value, returning any error that occurred durin...
// // DJTableViewVMTextFieldCell.h // DJComponentTableViewVM // // Created by Dokay on 2017/2/16. // Copyright © 2017年 dj226. All rights reserved. // @import Foundation; #import "DJTableViewVMCell.h" #import "DJTableViewVMTextFieldRow.h" NS_ASSUME_NONNULL_BEGIN @interface DJTableViewVMTextFieldCell : DJTableView...
// // AVAssetExportSession+Extension.h // CocoaBloc // // Created by Mark Glagola on 12/15/14. // Copyright (c) 2014 StageBloc. All rights reserved. // #import <AVFoundation/AVFoundation.h> @class RACSignal; @interface AVAssetExportSession (Extension) + (instancetype) exportSessionWithAsset:(AVAsset *)asset pre...
// // PlayRTCFactory.h // PlayRTC // // Created by ds3grk on 2014. 7. 17.. // Copyright (c) 2014년 playrtc. All rights reserved. // #ifndef __PlayRTCFactory_h__ #define __PlayRTCFactory_h__ #import <Foundation/Foundation.h> #import "PlayRTCDefine.h" #import "PlayRTCObserver.h" #import "PlayRTCSettings.h" #import "...
/*-------------------------------------------------------------------------*/ /** @file l_splash_renderer.h @author P. Batty @brief The renderer This module implements the renderer lua bindings */ /*--------------------------------------------------------------------------*/ #ifndef L_SPLASH_RENDER...
extern int foo; void print_foo(); void print(int);
/* * Copyright (C) 2007-2014 The Android Open Source Project * * 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 b...
// // MXUtils.h // Pods // // Created by 吴星煜 on 15/4/26. // // #import <Foundation/Foundation.h> #import <CommonCrypto/CommonDigest.h> #import <UIKit/UIKit.h> #import "OpenUDID.h" static inline NSString* randomString() { int NUMBER_OF_CHARS = 10; char data[NUMBER_OF_CHARS]; for (int x=0;x<NUMBER_OF_CHA...
#ifndef MGSORT_H #define MGSORT_H int mgsort(void *data, int size, int esize, int i, int k, int (*compare)(const void *key1, const void *key2)); #endif
// -*- mode: ObjC -*- // This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files. // Copyright (C) 1997-1998, 2000-2001, 2004-2013 Steve Nygard. #import "CDOCProtocol.h" #import "CDTopologicalSortProtocol.h" @interface CDOCClass : CDOCProtocol <CDTopologicalSort> @propert...
#include <stdbool.h> #include <stdint.h> #include "inc/hw_memmap.h" #include "driverlib/adc.h" #include "driverlib/aes.h" #include "driverlib/can.h" #include "driverlib/comp.h" #include "driverlib/cpu.h" #include "driverlib/crc.h" #include "driverlib/debug.h" #include "driverlib/des.h" #include "driverlib/eeprom.h" #i...
// -*- C++ -*- // =================================================================== /** * @file HTIOP_Transport.h * * $Id: HTIOP_Transport.h 2179 2013-05-28 22:16:51Z mesnierp $ * * @author Originally by Fred Kuhns <fredk@cs.wustl.edu> * @author Modified by Balachandran Natarajan <bala@cs.wustl.edu> */ ...
#ifndef __GRID_CHART_H #define __GRID_CHART_H #include <QWidget> #include <QtDesigner/QDesignerExportWidget> #include <vector> #include <memory> #include <chartwork/Chart.h> #include <chartwork/elements/Background.h> #include <chartwork/elements/Key.h> namespace chartwork { ////////////////////////////////////////...
// // BootstrapAppDelegate.h // iOSBootstrap // // Created by Yaming on 10/05/2015. // Copyright (c) 2015 Yaming. All rights reserved. // @import UIKit; #import "iOSBootstrap/AppBootstrap.h" @interface BootstrapAppDelegate : AppBootstrap @end
// // CYPNowWeatherBriefViewController.h // WhatWeather // // Created by Chen Yongping on 6/22/14. // Copyright (c) 2014 AllRoudHut. All rights reserved. // #import <UIKit/UIKit.h> #import "CYPNowWeatherChildViewController.h" @interface CYPNowWeatherBriefViewController :CYPNowWeatherChildViewController @end
// Copyright (c) 2014 Yohsuke Yukishita // This software is released under the MIT License: http://opensource.org/licenses/mit-license.php #import <Foundation/Foundation.h> #import "TGLBindable.h" @interface TGLVertexArrayObject : NSObject<TGLBindable> + (TGLVertexArrayObject *)create; @end
// // Copyright (c) articy Software GmbH & Co. KG. All rights reserved. // #pragma once #include "ArticyBaseObject.h" #include "ArticyBaseTypes.h" #include "ArticyPrimitive.generated.h" /** * A more lightweight base class for objects imported from articy. */ UCLASS(BlueprintType) class ARTICYRUNTIME_API UArti...
#include <stdio.h> #include <string.h> #include "hidapi.h" #include "co20_hid.h" hid_device *co20_handle; int co20_init() { // open the device using the VID, PID, co20_handle = hid_open(0x3eb, 0x2013, NULL); if(!co20_handle) { printf("device not found\n"); return 1; } return 0...
/* * libusb example program to list devices on the bus * Copyright © 2007 Daniel Drake <dsd@gentoo.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the Licen...
// // LaserDot.h // // Created by Seb Lee-Delisle on 01/08/2013. // // #pragma once #include "ofxLaserShape.h" namespace ofxLaser { class Dot : public Shape{ public : Dot(const ofPoint& dotPosition, const ofColor& dotColour, float dotIntensity, string profilelabel); void appendPointsToVector(vector<of...
// Copyright Daniel Mouritzen, Niels Bang and Mathias Bredholt 2015 #include <sio.h> #ifndef _ANSI_H_ #define _ANSI_H_ #define ESC 0x1B void fg_color(int foreground); void bg_color(int background); void color(int foreground, int background); void reset_bg_color(); void clr_scr(); void hide_scr(); void clear_e...
void routeTone(OSCMessage &msg, int addrOffset ) { display.clearDisplay(); display.setTextSize(2); display.setCursor(0, 0); display.println(msg.getInt(0)); display.display(); } void stripName(OSCMessage &msg, int addrOffset ){ int stripId = msg.getInt(0); char stripName[16]; Se...
#ifndef _NAVIGATION_H_ #define _NAVIGATION_H_ #include <joyos.h> #include <motor.h> #include <math.h> #include "vector_tools.h" // TODO: this does not belong v2d robot_position_estimate() { v2d v = {0,0}; return v; } struct lock nav_lock; bool target_pos_active = false; v2d target_pos; void set_wheels(float v...
// // TUSuperDBCell.h // // // Created by 3dlabuser on 14-6-2. // // #import <UIKit/UIKit.h> @interface TUSuperDBCell : UITableViewCell @property (strong, nonatomic) UILabel *label; @property (strong, nonatomic) UITextField *textField; @property (strong, nonatomic) NSString *key; @property (strong, nonatomic) i...
#ifndef FAMILIATARGARYEN_H #define FAMILIATARGARYEN_H #include <string> #include "Dothraki.h" #include "Dragon.h" using namespace std; class FamiliaTargaryen{ private: string reina; string animal; string lema; Dothraki* ejercitoDothraki; Dragon* ejercitoDragon; int barcos; int sizeEjercito; public: ...
#include <exec/types.h> #include <proto/exec.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "NiKomLib.h" struct Library *NiKomBase; void printUsage(void) { printf("Usage: One of the following\n"); printf(" NiKomFido UpdateFido\n"); printf(" NiKomFido RescanConf <conf number>\n"); pr...
// // SpeechSynthesizer.h // AMapNaviKit // // Created by 刘博 on 16/4/1. // Copyright © 2016年 AutoNavi. All rights reserved. // #import <UIKit/UIKit.h> #import <AVFoundation/AVFoundation.h> /** * iOS7及以上版本可以使用 AVSpeechSynthesizer 合成语音 * * 或者采用"科大讯飞"等第三方的语音合成服务 */ @interface SpeechSynthesizer : NSObject + (i...
/* * Copyright 2004-2016 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/lice...
// // 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, SCNAction; @protocol SCNActionable <NSObject> - (void)removeAllActions; - (void)removeActionForKey:(NSString *)arg1; - (SCNAction *)actionFor...
/** * This header is generated by class-dump-z 0.2a. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: (null) */ #import <XXUnknownSuperclass.h> // Unknown library #import "UITextViewDelegate.h" #import "ChineseSkillNew-Structs.h" @class NSURLConnection, NSMutableData, UIButton,...
// // ____ _ __ _ _____ // / ___\ /_\ /\/\ /\ /\ /__\ /_\ \_ \ // \ \ //_\\ / \ / / \ \ / \// //_\\ / /\/ // /\_\ \ / _ \ / /\/\ \ \ \_/ / / _ \ / _ \ /\/ /_ // \____/ \_/ \_/ \/ \/ \___/ \/ \_/ \_/ \_/ \____/ // // Copyright S...
#pragma once #include "style.h" #include "typedMesh.h" #include "glfontstash.h" #include "tile/labels/labelContainer.h" #include <memory> class TextStyle : public Style { protected: struct PosTexID { float pos_x; float pos_y; float tex_u; float tex_v; float fsID; }; ...
// Copyright (c) 2009-2015 The PlanBcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_QT_TEST_URITESTS_H #define BITCOIN_QT_TEST_URITESTS_H #include <QObject> #include <QTest> class URITests : pub...
#ifndef RPCCONSOLE_H #define RPCCONSOLE_H #include <QDialog> namespace Ui { class RPCConsole; } class ClientModel; /** Local Rotocoin RPC console. */ class RPCConsole: public QDialog { Q_OBJECT public: explicit RPCConsole(QWidget *parent = 0); ~RPCConsole(); void setClientModel(ClientModel *mod...
/******************************************************************************** * The MIT License (MIT) * * * * Copyright (C) 2016 Alex Nolasco ...
// // CKCoursesTableViewController.h // CanvasKit 2.0 Example // // Created by rroberts on 9/17/13. // Copyright (c) 2013 Instructure. All rights reserved. // #import <UIKit/UIKit.h> @interface CKCoursesTableViewController : UITableViewController @property (nonatomic, strong) NSMutableArray *courses; @end
/* CoreAnimation - CAEAGLLayer.h Copyright (c) 2007-2016, Apple Inc. All rights reserved. */ #import <QuartzCore/CALayer.h> #import <OpenGLES/EAGLDrawable.h> NS_ASSUME_NONNULL_BEGIN /* CAEAGLLayer is a layer that implements the EAGLDrawable protocol, * allowing it to be used as an OpenGLES render target. Use...
// // RLSlideAnimatingTableViewController.h // RLooking // // Created by Madimo on 14/12/5. // Copyright (c) 2014 Madimo. All rights reserved. // #import <UIKit/UIKit.h> #import "RLTableViewController.h" @interface RLSlideAnimatingTableViewController : RLTableViewController @property (nonatomic) BOOL stopSlideAn...
/** * problem: * Reverse a singly linked list. * examples: * 1 => 1 (single node) * 1 -> 2 => 2 -> 1 (two nodes) * 1 -> 2 -> 3 => 3 -> 2 -> 1 (multiple nodes) * * complexity: * time = O(N) * space = O(1) **/ #include "test.h" /* typedef struct N...
// // STAButton.h // STAControls // // Created by Aaron Jubbal on 5/18/15. // Copyright (c) 2015 Aaron Jubbal. All rights reserved. // #import <UIKit/UIKit.h> @interface STAButton : UIButton - (void)setBackgroundColor:(UIColor *)backgroundColor forState:(UIControlState)state; /** @param title...
// // HelloWorldLayer.h // TP2 // // Created by AdminMacLC02 on 11/7/13. // Copyright bb 2013. All rights reserved. // #import <GameKit/GameKit.h> // When you import this file, you import all the cocos2d classes #import "cocos2d.h" // Importing Chipmunk headers #import "chipmunk.h" @interface HelloWorldLayer2 :...
/** ****************************************************************************** * @file stm8l_eval_i2c_ee.h * @author MCD Application Team * @version V1.2.1 * @date 30-September-2014 * @brief This file contains all the functions prototypes for the stm8_eval_i2c_ee * firmware driver. ...
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently #pragma once #ifndef VC_EXTRALEAN #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers #endif // Modify the following defines if you have to ...
// // ValidationCallbackHandler.h // Miruken // // Created by Craig Neuwirt on 2/4/13. // Copyright (c) 2013 Craig Neuwirt. All rights reserved. // #import "MKDynamicCallbackHandler.h" #import "MKValidation.h" @interface MKValidateCallbackHandler : MKDynamicCallbackHandler <MKValidation> @end
// // VESiteOperator.h // V2EX // // Created by baiyang on 8/29/15. // Copyright (c) 2015 owl. All rights reserved. // #import <Foundation/Foundation.h> @interface VESiteOperator : NSObject + (NSURLSessionDataTask *)siteInfoWithBlock:(void (^)(id siteInfo, NSError *error))block; + (NSURLSessionDataTask *)siteSta...
#include "global.h" void orthosetup(){ glLoadIdentity(); glDisable(GL_DEPTH_TEST); glMatrixMode(GL_PROJECTION); glPushMatrix(); glLoadIdentity(); glOrtho(0,xres,0,yres,-1,1); glMatrixMode(GL_MODELVIEW); glPushMatrix(); glLoadIdentity(); } void orthoreset(){ glMatrixMode(GL_PROJECTION); glPopMatr...
#ifndef BASICBUTTON_H_INCLUDED #define BASICBUTTON_H_INCLUDED #include "Button.h" namespace GUI { class BasicButton : public Button { public: BasicButton(const std::string& text, std::function<void(void)> function); void onClick() override; ...
// // ContentfulModelGenerator.h // ContentfulPlugin // // Created by Boris Bügling on 10/11/14. // Copyright (c) 2014 Contentful GmbH. All rights reserved. // #import <CoreData/CoreData.h> #import <Foundation/Foundation.h> @class CMAClient; typedef void(^CDAModelGenerationHandler)(NSManagedObjectModel* model, N...
// Copyright (c) 2016 Niklas Rosenstein // // 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, pub...
#include <msp430g2553.h> #include "uart.h" void UART_Init() { P1SEL |= BIT1 + BIT2; P1SEL2 |= BIT1 + BIT2; UCA0CTL0 &= ~UC7BIT; UCA0CTL1 |= UCSSEL_2 + UCSWRST; UCA0BR0 = 52; UCA0BR1 = 0; UCA0MCTL = UCBRS0 + UCBRF1 + UCOS16; } void UART_Enable() { UCA0CTL1 &= ~UCSWRST; } void UART_Disable() { UCA0C...
#ifndef _DECK_ #define _DECK_ #include "card.h" enum PokerRank {Nothing, Pair, TwoPair, ThreeOfAKind, Straight, Flush, FullHouse, FourOfAKind, StraightFlush, RoyalFlush}; class Deck { private: Card theDeck[52]; int size; public: // Build a proper deck with size=52 Deck(); // Build a proper deck but a...
#pragma once #include <QObject> // the base type of all the objects in the application that whises to use // the reflection layer // it also supplies each object with a unique ID class Type : public QObject { Q_OBJECT public: Type(); virtual ~Type(){} size_t getID(); private: size_t mUID; // un...
#pragma once //#pragma warning( disable : 4201) //#pragma warning( disable : 4514) #include "ModelBase/BioSIMModelBase.h" //#include "ContinuingRatio.h" namespace WBSF { class CSBWEldonModel : public CBioSIMModelBase { public: enum TSpecies { BALSAM_FIR, WHITE_SPRUCE, NB_SPECIES }; enum TP...
#ifndef TYPES_H #define TYPES_H #include <stdint.h> #include "common/iter.h" #include "console/types.h" typedef Common::Point16 Point; using Common::Point32; using Common::Rect16; using Common::Rect32; using Common::Rect; using Common::x16u; using Common::x32; using Common::y16u; using Common::y32; using xuint = Com...
// // ViewController.h // 效果集1 // // Created by Jacob_Liang on 16/10/16. // Copyright © 2016年 Jacob. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
#ifndef POMDP_ENVIRONMENT_H_ #define POMDP_ENVIRONMENT_H_ #include <string> #include <fstream> #include <sstream> #include <iostream> #include <algorithm> #include <string> #include <vector> #include <Eigen/Eigen> using std::string ; using std::getline ; using std::stringstream ; using std::ifstream ; using std::vect...
// // Text.h // ChilliSource // Created by Ian Copland on 05/11/2014. // // The MIT License (MIT) // // Copyright (c) 2014 Tag Games Limited // // 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 t...
// // WCProjectContainer.h // WabbitStudio // // Created by William Towe on 1/13/12. // Copyright (c) 2012 Revolution Software. // // 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 re...
// design rationale: now COW-Idiom here, is too complicated to get right and might lead to unexpected behaviour (that is, it // can cost the original owner(-thread) of the image cpu time in case he is first to modifiy the image and then needs to // copy it. Also, a user would have to declare the copied image constant ...
#ifndef _core_h #define _core_h #define SIMULATE_QRS 0 #define SIMULATE_G1 0x0010 #define SIMULATE_G2 0x0020 #define SIMULATE_G3 0x0040 #define FPS 60.0 #define G2_FPS 61.68 #define RECENT_FRAMES 60 #define FRAMEDELAY_ERR 0 #define BUTTON_PRESSED_THIS_FRAME 2 #define JOYSTICK_DEAD_ZONE...
#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 Pods_Emmlytics_ExampleVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_Emmlytics_ExampleVe...
/* * Generated by class-dump 3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2012 by Steve Nygard. */ #import "NSView.h" @interface RoundedCornersView : NSView { } - (void)drawRect:(struct CGRect)arg1; @end
// // MRCSearchBar.h // MVVMReactiveCocoa // // Created by leichunfeng on 15/11/15. // Copyright © 2015年 leichunfeng. All rights reserved. // #import <UIKit/UIKit.h> @interface MRCSearchBar : UISearchBar - (UIImageView *)imageView; @end
/* * SpanDSP - a series of DSP components for telephony * * g711.c - A-law and u-law transcoding routines * * Written by Steve Underwood <steveu@coppice.org> * * Copyright (C) 2006 Steve Underwood * * Despite my general liking of the GPL, I place this code in the * public domain for the benefit of all manki...
// // DASravnenieNavigationBar.h // AMSlideMenu // // Created by Егор on 8/26/14. // Copyright (c) 2014 Artur Mkrtchyan. All rights reserved. // #import <UIKit/UIKit.h> @interface DASravnenieNavigationItem : UINavigationItem @end
// // NeoHttpFormTask.h // TestLibuv // // Created by Ryou Zhang on 6/14/14. // Copyright (c) 2014 Ryou Zhang. All rights reserved. // #import "NeoHttpTask.h" @interface NeoHttpFormTask : NeoHttpTask { @private struct curl_httppost *_formData; } @end
// // DZAdjustFrame.h // Pods // // Created by stonedong on 16/5/4. // // #ifndef DZAdjustFrame_h #define DZAdjustFrame_h #import "AdjustFrame.h" #import "DZGrowImageView.h" #import "DZGrowTextView.h" #import "DZGrowLabel.h" #import "DZAdjustTableView.h" #endif /* DZAdjustFrame_h */
/* * FTGL - OpenGL font library * * Copyright (c) 2001-2004 Henry Maddocks <ftgl@opengl.geek.nz> * Copyright (c) 2008 Sam Hocevar <sam@zoy.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 th...
/* * ProjectEuler/src/c/Problem063.c * * Powerful digit counts * ===================== * Published on Friday, 13th February 2004, 06:00 pm * * The 5-digit number, 16807=75, is also a fifth power. Similarly, the 9-digit * number, 134217728=89, is a ninth power. How many n-digit positive integers * exist which ...
/* * Copyright (c) 2012 Rafael Rivera * * 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, m...
// // ZNGContactGroup.h // Pods // // Created by Jason Neel on 6/15/17. // // #import <Mantle/Mantle.h> @class ZNGCondition; @interface ZNGContactGroup : MTLModel <MTLJSONSerializing> @property (nonatomic, copy, nonnull) NSString * groupId; @property (nonatomic, copy, nullable) NSString * displayName; @property ...
#ifndef CController_H #define CController_H //turn off the warnings for the STL #pragma warning (disable : 4786) //------------------------------------------------------------------------ // // Name: CController.h // // Author: Mat Buckland 2002 // // Desc: controller class for the RecognizeIt mouse gesture recogni...