repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
SethRobinson/ardumanarduman_arduboylib11 | ardu_main.h | #ifndef ardu_main_h__
#define ardu_main_h__
//game settings
#ifdef _DEBUG
#define SKIP_INTRO
#endif
//#define SHOW_PELLET_COUNT
//#define CHEAT_ALWAYS_HAVE_POWER_PILL
//the highscore system is the same as the breakout example - pick an unused eeprom slot!
#define EEPROM_HIGH_SCORE_SAVE_SLOT 8
#define LIVES_COUNT 3... |
payload-code/payload-ios | Payload/Payload.h | <reponame>payload-code/payload-ios
//
// Payload.h
// Payload
//
// Created by Payload on 9/22/20.
//
#import <Foundation/Foundation.h>
//! Project version number for Payload.
FOUNDATION_EXPORT double PayloadVersionNumber;
//! Project version string for Payload.
FOUNDATION_EXPORT const unsigned char PayloadVersio... |
jonri/StuntPlayground | StuntPlayground/src/Prop.h | /*
Stunt Playground
Prop
*/
#ifndef _STUNTPLAYGROUND_PROP_
#define _STUNTPLAYGROUND_PROP_
#include <OgreNewt.h>
#include <Ogre.h>
#include "WorldRecorder.h"
namespace StuntPlayground
{
/*
Stunt Playground
Prop class
all in-game jumps and other physics props
*/
class Prop
{
... |
jonri/StuntPlayground | StuntPlayground/src/FollowCamera.h | <gh_stars>1-10
/*
Stunt Playground
FollowCamera
*/
#ifndef _STUNTPLAYGROUND_FOLLOWCAMERA_
#define _STUNTPLAYGROUND_FOLLOWCAMERA_
#include <Ogre.h>
namespace StuntPlayground
{
/* my custom follow camera class. this class lets you "assign" a node to the camera, and it will
follow it. it also... |
jonri/StuntPlayground | StuntPlayground/include/WalaberOgreFrameListener.h | <gh_stars>1-10
/*
WalaberOgreFrameListener
basic frame listener, with mouse/keyboard input. nothing else :)
*/
#ifndef __WALABER_OGRE_FRAMELISTENER_H__
#define __WALABER_OGRE_FRAMELISTENER_H__
#include "Ogre.h"
#include "OgreKeyEvent.h"
#include "OgreEventListeners.h"
#include "OgreStringConverter.h"
... |
jonri/StuntPlayground | StuntPlayground/src/PropListItem.h | /*
Stunt Playground
PropListItem
*/
#ifndef _STUNTPLAYGROUND_PROPLISTITEM_
#define _STUNTPLAYGROUND_PROPLISTITEM_
#include <CEGUI.h>
#include "elements/CEGUIListboxTextItem.h"
namespace StuntPlayground
{
class PropListItem : public CEGUI::ListboxTextItem
{
private:
Ogre::String mBOD_File;... |
jonri/StuntPlayground | StuntPlayground/include/line3D.h | <gh_stars>1-10
#ifndef __LINE3D_H__
#define __LINE3D_H__
#include "Ogre.h"
#include <vector>
using namespace Ogre;
using namespace std;
#define POSITION_BINDING 0
#define TEXCOORD_BINDING 1
class Line3D:public SimpleRenderable
{
public:
Line3D(void);
~Line3D(void);
void addPoint(const Ve... |
jonri/StuntPlayground | StuntPlayground/src/StuntPlaygroundApplication.h | /*
Stunt Playground
StuntPlaygroundApplication
*/
#ifndef _STUNTPLAYGROUNDAPPLICATION_
#define _STUNTPLAYGROUNDAPPLICATION_
#include "Prereq.h"
#include "CEGUI.h"
#include "OgreCEGUIRenderer.h"
#include "OgreCEGUIResourceProvider.h"
#include "WalaberOgreApplication.h"
#include ".\CEGUIFrameListene... |
jonri/StuntPlayground | StuntPlayground/src/AABB.h | /*
Stunt Playground
DummyBody
*/
#ifndef _STUNTPLAYGROUND_AABB_
#define _STUNTPLAYGROUND_AABB_
#include <Ogre.h>
namespace StuntPlayground
{
/*
Stunt Playground
AABB class
simple AABB - visualizer, used to highliting objects, etc.
*/
class MyAABB
{
Ogre::SceneNode* mNode;
... |
jonri/StuntPlayground | StuntPlayground/src/CEGUIFrameListener.h | /*
Stunt Playground
CEGUIFrameListener
*/
#ifndef _STUNTPLAYGROUND_CEGUIFRAMELISTENER_
#define _STUNTPLAYGROUND_CEGUIFRAMELISTENER_
#include "CEGUI.h"
#include "WalaberOgreFrameListener.h"
#include "OgreEventQueue.h"
///////////////////////////////////////////////////////////////////////////////////... |
jonri/StuntPlayground | StuntPlayground/src/PropManager.h | /*
Stunt Playground
PropManager
*/
#ifndef _STUNTPLAYGROUND_PROPMANAGER_
#define _STUNTPLAYGROUND_PROPMANAGER_
#include "Prop.h"
namespace StuntPlayground
{
// Prop manager - for adding/removing/managing props in the arena.
class PropManager
{
public:
struct PropDefinition
{
std... |
jonri/StuntPlayground | StuntPlayground/src/MainFrameListener.h | /*
Stunt Playground
MainFrameListener
*/
#ifndef _MAINFRAMELISTENER_
#define _MAINFRAMELISTENER_
#include "WalaberOgreFrameListener.h"
#include ".\StuntPlayground.h"
#include ".\FollowCamera.h"
namespace StuntPlayground
{
class MainFrameListener :
public WalaberOgreFrameListener
{
protected:... |
jonri/StuntPlayground | StuntPlayground/src/DummyBody.h | /*
Stunt Playground
DummyBody
*/
#ifndef _STUNTPLAYGROUND_DUMMYBODY_
#define _STUNTPLAYGROUND_DUMMYBODY_
#include <Ogre.h>
#include <OgreNewt.h>
#include <OgreNewt_Body.h>
namespace StuntPlayground
{
/*
Stunt Playground
DummyBody class
dummy rigid body, used for prop placement coll... |
jonri/StuntPlayground | StuntPlayground/src/CollisionCallbacks.h | <gh_stars>1-10
/*
Stunt Playground
Collision Callbacks
*/
#ifndef _STUNTPLAYGROUND_COLLISIONCALLBACKS_
#define _STUNTPLAYGROUND_COLLISIONCALLBACKS_
#include <OgreNewt.h>
#include <Ogre.h>
#include "SoundManager.h"
namespace StuntPlayground
{
// collision calback for the DummyBody.
class... |
jonri/StuntPlayground | StuntPlayground/src/vehicle.h | <reponame>jonri/StuntPlayground
/*
Stunt Playground
Vehicle
*/
#ifndef _STUNTPLAYGROUND_VEHICLE
#define _STUNTPLAYGROUND_VEHICLE
#include <OgreNewt.h>
#include <Ogre.h>
#include "StuntPlayground.h"
#include "WorldRecorder.h"
#include "SoundManager.h"
namespace StuntPlayground
{
/* Car c... |
jonri/StuntPlayground | StuntPlayground/src/ReflectionRenderTarget.h | /*
Stunt Playground
ReflectionRenderTarget
*/
#ifndef _STUNTPLAYGROUND_REFLECTION_RENDER_TARGET_
#define _STUNTPLAYGROUND_REFLECTION_RENDER_TARGET_
#include <Ogre.h>
namespace StuntPlayground
{
class ReflectionRenderTarget : public Ogre::RenderTargetListener
{
public:
ReflectionRenderTarge... |
jonri/StuntPlayground | StuntPlayground/src/SoundManager.h | /*
Stunt Playground
SoundManager
*/
#ifndef _STUNTPLAYGROUND_SOUNDMANAGER_
#define _STUNTPLAYGROUND_SOUNDMANAGER_
#include <Ogre.h>
#include <fmod.h>
namespace StuntPlayground
{
// basic sound class, represents a short sound clip.
class Sound
{
public:
enum PlayState
{
PS_STOPPED, ... |
jonri/StuntPlayground | StuntPlayground/src/BodyIterators.h | <gh_stars>1-10
/*
Stunt Playground
StuntPlayground:: BodyIterators
*/
#ifndef _STUNTPLAYGROUND_BODYITERATORS_
#define _STUNTPLAYGROUND_BODYITERATORS_
#include "OgreNewt.h"
#include "OgreNewt_Body.h"
namespace StuntPlayground
{
class iteratorRemoveProps : public OgreNewt::BodyIterator
{
publi... |
jonri/StuntPlayground | StuntPlayground/src/WorldRecorder.h | /*
Stunt Playground
WorldRecorder
*/
#ifndef _STUNTPLAYGROUND_WORLDRECORDER_
#define _STUNTPLAYGROUND_WORLDRECORDER_
#include <Ogre.h>
#include <OgreNewt.h>
#include <OgreNewt_Body.h>
#include <tinyxml.h>
namespace StuntPlayground
{
/*
Stunt Playground
WorldREcorder class
Single... |
jonri/StuntPlayground | StuntPlayground/src/Prereq.h | // stuff that goes at the top!
# pragma warning (disable : 4018) |
jonri/StuntPlayground | StuntPlayground/src/HighScore.h | <reponame>jonri/StuntPlayground
/*
Stunt Playground
MainFrameListener
*/
#ifndef _STUNTPLAYGROUND_HIGHSCORE_
#define _STUNTPLAYGROUND_HIGHSCORE_
#include <Ogre.h>
namespace StuntPlayground
{
// simple class for storing high scores.
class HighScore
{
public:
void load( std::string filen... |
jonri/StuntPlayground | StuntPlayground/src/Dialogs.h | /*
Stunt Playground
StuntPlaygroundApplication
*/
#ifndef _STUNTPLAYGROUND_DIALOGS_
#define _STUNTPLAYGROUND_DIALOGS_
#include <Ogre.h>
#include "CEGUI.h"
#include "StandardButton.h"
#include "SoundManager.h"
#include "Settings.h"
namespace StuntPlayground
{
//////////////////////////////////... |
jonri/StuntPlayground | StuntPlayground/src/Settings.h | <filename>StuntPlayground/src/Settings.h
/*
Stunt Playground
Settings
*/
#ifndef _STUNTPLAYGROUND_SETTINGS_
#define _STUNTPLAYGROUND_SETTINGS_
#include "Ogre.h"
namespace StuntPlayground
{
class GameSettings
{
public:
void load( const Ogre::String& filename );
void save( const Ogre::S... |
jonri/StuntPlayground | StuntPlayground/src/StandardButton.h | <reponame>jonri/StuntPlayground<gh_stars>1-10
/*
Stunt Playground
StandardButton
*/
#ifndef _STUNTPLAYGROUND_STANDARDBUTTON_
#define _STUNTPLAYGROUND_STANDARDBUTTON_
#include <CEGUI.h>
namespace StuntPlayground
{
class StandardButton
{
CEGUI::PushButton* mButton;
public:
StandardB... |
jonri/StuntPlayground | StuntPlayground/src/StuntPlayground.h | #pragma once
#ifndef _STUNTPLAYGROUND_
#define _STUNTPLAYGROUND_
namespace StuntPlayground
{
// ProgState is used to track the applications general state
enum ProgState { PS_LOGO, PS_WAITING, PS_PLACING, PS_CHOOSING, PS_PLAYING, PS_REPLAYING };
// various general types for rigid bodies.
enum BodyTyp... |
jonri/StuntPlayground | StuntPlayground/src/RigidBodyLoader.h | <reponame>jonri/StuntPlayground
/*
Stunt Playground
RigidBodyLoader function.
*/
#ifndef _STUNTPLAYGROUND_RIGIDBODYLOADER
#define _STUNTPLAYGROUND_RIGIDBODYLOADER
#include <OgreNewt.h>
#include <Ogre.h>
#include "StuntPlayground.h"
namespace StuntPlayground
{
OgreNewt::Body* loadRigidBody( Ogre... |
wangsjoy/Tipdip | Tipdip/AppDelegate.h | //
// AppDelegate.h
// Tipdip
//
// Created by <NAME> on 6/22/21.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@end
|
wangsjoy/Tipdip | Tipdip/TipdipViewController.h | //
// TipdipViewController.h
// Tipdip
//
// Created by <NAME> on 6/22/21.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface TipdipViewController : UIViewController
@end
NS_ASSUME_NONNULL_END
|
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/Utility/RootPopViewController.h | //
// RootPopViewController.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/6.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ToolsImageView.h"
@interface RootPopViewController : UIViewController
@property (nonatomic, strong) ToolsImageView *toolsImageView;
@e... |
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/Views/AlbumCell.h | <filename>guodegangjingxuanji/guodegangjingxuanji/Views/AlbumCell.h
//
// AlbumCell.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/7.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "AlbumModel.h"
@interface AlbumCell : UITableViewCell
@property (nonatomic, stro... |
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/Views/ProgrammeHeadView.h | //
// ProgrammeHeadView.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/7.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ProgrammeModel.h"
@interface ProgrammeHeadView : UIView
@property (nonatomic, strong) ProgrammeModel *model;
@end
|
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/Utility/RootViewController.h | <gh_stars>0
//
// RootViewController.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/2.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TabBarImageView.h"
#import "TabBarButtomView.h"
@interface RootViewController : UIViewController
@property (nonatomic, strong)... |
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/Utility/ToolsImageView.h | <reponame>lynnx4869/guodegangjingxuanji
//
// ToolsImageView.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/6.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ToolsImageView : UIImageView
@property (nonatomic, strong) NSMutableArray *btnsArray;
@end
|
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/ViewControllers/MainTabbarViewController.h | <reponame>lynnx4869/guodegangjingxuanji
//
// MainTabbarViewController.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/2.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MainTabbarViewController : UITabBarController
@end
|
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/Views/HomeCell.h | //
// HomeCell.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/6.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "HomeModel.h"
@interface HomeCell : UITableViewCell
@property (nonatomic, strong) HomeModel *model;
@end
|
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/Utility/NavViewController.h | //
// NavViewController.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/6.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface NavViewController : UINavigationController
@end
|
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/ViewControllers/ProgrammeViewController.h | //
// ProgrammeViewController.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/7.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import "RootPopViewController.h"
@interface ProgrammeViewController : RootPopViewController
@property (nonatomic, copy) NSString *albumId;
@end
|
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/Utility/MyAudioPlayer.h | //
// MyAudioPlayer.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/9.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import "ProgrammeModel.h"
@interface MyAudioPlayer : NSObject <AVAudioPlayerDele... |
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/ViewControllers/CategoryViewController.h | //
// CategoryViewController.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/2.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import "RootViewController.h"
@interface CategoryViewController : RootViewController
@end
|
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/ViewControllers/AlbumViewController.h | <gh_stars>0
//
// AlbumViewController.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/6.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import "RootPopViewController.h"
@interface AlbumViewController : RootPopViewController
@property (nonatomic, copy) NSString *uid;
@end
|
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/Views/ProgrammeSectionView.h | <gh_stars>0
//
// ProgrammeSectionView.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/7.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol SelectTabDelegate <NSObject>
- (void)selectTabWithLeft:(BOOL)isLeft;
@end
@interface ProgrammeSectionView : UIView
@prop... |
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/ViewControllers/DownloadViewController.h | <gh_stars>0
//
// DownloadViewController.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/2.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import "RootViewController.h"
@interface DownloadViewController : RootViewController
@end
|
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/Utility/TabBarImageView.h | <reponame>lynnx4869/guodegangjingxuanji
//
// TabBarImageView.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/2.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TabBarImageView : UIImageView
@property (nonatomic, strong) NSMutableArray *btnsArray;
@end
|
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/Views/ProgrammeCell.h | //
// ProgrammeCell.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/7.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ProgrammeModel.h"
@interface ProgrammeCell : UITableViewCell
@property (nonatomic, strong) Programme *model;
@end
|
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/Models/ProgrammeModel.h | //
// ProgrammeModel.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/7.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface ProgrammeModel : NSObject
@property (nonatomic, copy) NSString *nickname;
@property (nonatomic, copy) NSString *uid;
@property (no... |
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/ViewControllers/SubscribeViewController.h | //
// SubscribeViewController.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/2.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import "RootViewController.h"
@interface SubscribeViewController : RootViewController
@end
|
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/Views/AlbumTopCell.h | //
// AlbumTopCell.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/7.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AlbumTopCell : UITableViewCell
@property (nonatomic, copy) NSString *largeLogo;
@property (nonatomic, strong) UIButton *btn;
@end
|
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/Utility/TabBarButtomView.h | <gh_stars>0
//
// TabBarButtomView.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/2.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TabBarButtomView : UIView
@property (nonatomic, assign) BOOL isSelected;
@property (nonatomic, strong) UIImageView *image;
@p... |
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/Utility/MyUtil.h | <filename>guodegangjingxuanji/guodegangjingxuanji/Utility/MyUtil.h
//
// MyUtil.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/8.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface MyUtil : NSObject
+ (NSString *)getDateFromTime:(NSString *)times;
+ (... |
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/ViewControllers/PlayerViewController.h | <gh_stars>0
//
// PlayerViewController.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/8.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface PlayerViewController : UIViewController
@property (nonatomic, copy) NSString *trackId;
@property (nonatomic, strong) NSArr... |
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/Utility/Const.h | <filename>guodegangjingxuanji/guodegangjingxuanji/Utility/Const.h
//
// Const.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/2.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#ifndef guodegangjingxuanji_Const_h
#define guodegangjingxuanji_Const_h
//首页
#define lHomeUrl @"http://app.9nali.com/in... |
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/Models/HomeModel.h | <reponame>lynnx4869/guodegangjingxuanji<filename>guodegangjingxuanji/guodegangjingxuanji/Models/HomeModel.h
//
// HomeModel.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/6.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface HomeModel : NSObject
@prope... |
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/Models/AlbumModel.h | <gh_stars>0
//
// AlbumModel.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/6.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface AlbumModel : NSObject
@property (nonatomic, copy) NSString *uid;
@property (nonatomic, copy) NSString *nickname;
@property... |
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/ViewControllers/HomeViewController.h | //
// HomeViewController.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/2.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import "RootViewController.h"
@interface HomeViewController : RootViewController
@end
|
lynnx4869/guodegangjingxuanji | guodegangjingxuanji/guodegangjingxuanji/ViewControllers/SynopsisViewController.h | <reponame>lynnx4869/guodegangjingxuanji
//
// SynopsisViewController.h
// guodegangjingxuanji
//
// Created by qianfeng on 15/9/7.
// Copyright (c) 2015年 lyning. All rights reserved.
//
#import "RootPopViewController.h"
@interface SynopsisViewController : RootPopViewController
@property (nonatomic, copy) NSStrin... |
lgarithm/crystalnet | include/crystalnet.h | <reponame>lgarithm/crystalnet<filename>include/crystalnet.h
#pragma once
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
extern const char *version();
typedef struct dtypes_t dtypes_t;
struct dtypes_t {
const uint8_t u8;
const uint8_t i8;
const uint8_t i16;
const uint8_t i32;
const u... |
lgarithm/crystalnet | include/crystalnet-contrib/yolo/route_layer.h | <gh_stars>10-100
#pragma once
#include <crystalnet-ext.h>
#ifdef __cplusplus
extern "C" {
#endif
extern symbol route_1(context_t *, symbol);
extern symbol route_2(context_t *, symbol, symbol);
#ifdef __cplusplus
}
#endif
|
lgarithm/crystalnet | include/crystalnet-contrib/yolo/pool_layer.h | <reponame>lgarithm/crystalnet
#pragma once
#include <crystalnet-ext.h>
#ifdef __cplusplus
extern "C" {
#endif
extern s_layer_t *pool(uint32_t /* size */, uint32_t /* stride */);
#ifdef __cplusplus
}
#endif
|
lgarithm/crystalnet | src/crystalnet-contrib/yolo/yolov2.c | #include <stddef.h>
#include <stdio.h>
#include <crystalnet-contrib/yolo/conv_layer.h>
#include <crystalnet-contrib/yolo/pool_layer.h>
#include <crystalnet-contrib/yolo/region_layer.h>
#include <crystalnet-contrib/yolo/reorg_layer.h>
#include <crystalnet-contrib/yolo/route_layer.h>
#include <crystalnet-contrib/yolo/yo... |
lgarithm/crystalnet | examples/imagenet/src/alexnet.h | #pragma once
#include <stdint.h>
#include <crystalnet-ext.h>
#ifdef __cplusplus
extern "C" {
#endif
const uint32_t alexnet_image_size = 227;
const uint32_t alexnet_class_number = 1000;
// https://papers.nips.cc/paper/4824-imagenet-classification-with-deep-convolutional-neural-networks.pdf
s_model_t *alexnet(context... |
lgarithm/crystalnet | include/crystalnet-contrib/yolo/reorg_layer.h | #pragma once
#include <crystalnet-ext.h>
#ifdef __cplusplus
extern "C" {
#endif
extern s_layer_t *make_reorg_layer();
#ifdef __cplusplus
}
#endif
|
lgarithm/crystalnet | examples/imagenet/src/alexnet.c | <filename>examples/imagenet/src/alexnet.c
#include <stdio.h>
#include <crystalnet-ext.h>
#include "alexnet.h"
// https://papers.nips.cc/paper/4824-imagenet-classification-with-deep-convolutional-neural-networks.pdf
s_model_t *alexnet(context_t *ctx, const shape_t *image_shape, uint32_t arity)
{
s_layer_t *c1 = n... |
lgarithm/crystalnet | examples/imagenet/src/vgg16.h | #pragma once
#include <stdint.h>
#include <crystalnet-ext.h>
#ifdef __cplusplus
extern "C" {
#endif
const uint32_t vgg16_image_size = 224;
const uint32_t vgg16_class_number = 1000;
// https://www.cs.toronto.edu/~frossard/post/vgg16/
s_model_t *vgg16(context_t *, const shape_t *, uint32_t);
#ifdef __cplusplus
}
#en... |
lgarithm/crystalnet | examples/imagenet/src/imagenet.h | #pragma once
#include <crystalnet-ext.h>
#include <opencv2/opencv.hpp>
cv::Mat square_normalize(const cv::Mat &, int r);
void info(const cv::Mat &, const std::string &);
std::size_t to_hwc(const cv::Mat &, const tensor_ref_t *);
|
lgarithm/crystalnet | include/crystalnet-internal.h | <filename>include/crystalnet-internal.h
#pragma once
#include <crystalnet.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct model_t model_t;
typedef struct model_ctx_t model_ctx_t;
typedef struct parameter_ctx_t parameter_ctx_t;
extern model_t *realize(parameter_ctx_t *, const s_model_t *, uint32_t);
// tes... |
lgarithm/crystalnet | tests/src/crystalnet/core/tensor_test.c | <gh_stars>10-100
#include <stdint.h> // for uint8_t
#include <crystalnet.h>
void test_1()
{
const shape_t *shape = new_shape(4, 2, 3, 4, 5);
tensor_t *tensor = new_tensor(shape, dtypes.f32);
del_tensor(tensor);
del_shape(shape);
}
int main()
{
test_1();
return 0;
}
|
lgarithm/crystalnet | include/crystalnet-contrib/darknet/darknet.h | // https://github.com/pjreddie/darknet.git
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
extern void reorg_cpu(float *x, int w, int h, int c, int batch, int stride,
int forward, float *out);
#ifdef __cplusplus
}
#endif
|
lgarithm/crystalnet | src/crystalnet-contrib/darknet/darknet.c | // https://github.com/pjreddie/darknet.git
#include <float.h>
#include <crystalnet-contrib/darknet/darknet.h>
// the original implementation, which is likely wrong.
void reorg_cpu(float *x, int w, int h, int c, int batch, int stride,
int forward, float *out)
{
int b, i, j, k;
int out_c = c / (... |
lgarithm/crystalnet | examples/c/mnist_cnn.c | #include <stddef.h>
#include <stdint.h>
#include <crystalnet-ext.h>
// l1 = pool(relu(conv(x)))
// l2 = pool(relu(conv(l1)))
// y = softmax(dense(relu(dense(l2))))
typedef shape_t const *p_shape_t;
s_model_t *cnn(context_t *ctx, const shape_t *image_shape, uint32_t arity)
{
s_layer_t *c1 = new_layer_conv_nhwc(5... |
lgarithm/crystalnet | examples/c/cifar_slp.c | <reponame>lgarithm/crystalnet
#include <crystalnet.h>
// y = softmax(flatten(x) * w + b)
s_model_t *slp(context_t *ctx, const shape_t *image_shape, uint8_t arity)
{
symbol x = var(ctx, image_shape);
symbol x_ = reshape(ctx, mk_shape(ctx, 1, shape_dim(image_shape)), x);
symbol w = covar(ctx, mk_shape(ctx, 2... |
lgarithm/crystalnet | src/crystalnet-contrib/yolo/cmath.c | <reponame>lgarithm/crystalnet
#include <math.h>
#include <crystalnet-contrib/yolo/cmath.h>
float c_exp(float x) { return exp(x); }
float c_logistic(float x) { return 1. / (1. + exp(-x)); }
|
lgarithm/crystalnet | tests/src/crystalnet/ops/conv_test.c | #include <assert.h>
#include <stdio.h>
#include <crystalnet-internal.h>
typedef shape_t const *p_shape_t;
void test_1()
{
context_t *ctx = new_context();
const shape_list_t *shape_list = mk_shape_list( //
ctx, (p_shape_t[]){
mk_shape(ctx, 3, 28, 28, 32),
mk_shape(ct... |
lgarithm/crystalnet | examples/c/alexnet.c | <reponame>lgarithm/crystalnet
#include <stdio.h>
#include <crystalnet-ext.h>
typedef shape_t const *p_shape_t;
// https://papers.nips.cc/paper/4824-imagenet-classification-with-deep-convolutional-neural-networks.pdf
s_model_t *alexnet(context_t *ctx, const shape_t *image_shape, uint32_t arity)
{
s_layer_t *c1 = ... |
lgarithm/crystalnet | tests/src/crystalnet/symbol/symbol_test.c | <reponame>lgarithm/crystalnet
#include <assert.h>
#include <crystalnet-internal.h>
// y = softmax(flatten(x) * w + b)
s_model_t *slp(context_t *ctx, const shape_t *image_shape, uint8_t arity)
{
const shape_t *lable_shape = new_shape(1, arity);
const shape_t *weight_shape = new_shape(2, shape_dim(image_shape),... |
lgarithm/crystalnet | include/crystalnet-contrib/yolo/yolo.h | <reponame>lgarithm/crystalnet
#pragma once
#include <crystalnet-ext.h>
#ifdef __cplusplus
extern "C" {
#endif
extern const uint32_t yolov2_input_size;
extern s_model_t *yolov2(context_t *);
extern s_model_t *yolov3(context_t *); // TODO
#ifdef __cplusplus
}
#endif
|
lgarithm/crystalnet | include/crystalnet-contrib/yolo/conv_layer.h | #pragma once
#include <crystalnet-ext.h>
#ifdef __cplusplus
extern "C" {
#endif
extern s_layer_t *conv(uint32_t /* filters */, uint32_t /* size */,
uint32_t /* stride */, uint32_t /* padding */);
extern s_layer_t *conv_linear_act(uint32_t /* filters */, uint32_t /* size */,
... |
lgarithm/crystalnet | include/crystalnet-contrib/yolo/region_layer.h | <gh_stars>10-100
#pragma once
#include <crystalnet-ext.h>
#ifdef __cplusplus
extern "C" {
#endif
s_layer_t *make_region_layer(int w, int h, int n, int classes, int coords);
#ifdef __cplusplus
}
#endif
|
lgarithm/crystalnet | include/crystalnet-contrib/yolo/cmath.h | #pragma once
#ifdef __cplusplus
extern "C" {
#endif
extern float c_exp(float x);
extern float c_logistic(float x);
#ifdef __cplusplus
}
#endif
|
lgarithm/crystalnet | include/crystalnet-ext.h | <filename>include/crystalnet-ext.h
#pragma once
#include <stdint.h>
#include <crystalnet.h>
#ifdef __cplusplus
extern "C" {
#endif
// layer APIs
typedef struct s_layer_t s_layer_t;
extern void del_s_layer(s_layer_t *);
extern s_layer_t *const new_layer_dense(uint32_t /* n */);
extern s_layer_t *const new_layer_relu(... |
lgarithm/crystalnet | examples/imagenet/src/vgg16.c | <reponame>lgarithm/crystalnet
#include <stdio.h>
#include <crystalnet-ext.h>
#include "vgg16.h"
// https://www.cs.toronto.edu/~frossard/post/vgg16/
s_model_t *vgg16(context_t *ctx, const shape_t *image_shape, uint32_t arity)
{
s_layer_t *c1 = new_layer_conv2d( //
mk_shape(ctx, 3, 3, 3, 64), ... |
lgarithm/crystalnet | tests/src/crystalnet/core/shape_test.c | #include <assert.h>
#include <stdio.h>
#include <crystalnet.h>
void test_1()
{
{
const shape_t *shape = new_shape(0);
assert(shape_dim(shape) == 1);
assert(shape_rank(shape) == 0);
del_shape(shape);
}
{
const shape_t *shape = new_shape(4, 2, 3, 4, 5);
assert... |
lgarithm/crystalnet | tests/src/crystalnet/data/idx_test.c | #include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <crystalnet.h>
tensor_t *_load_mnist(const char *const name)
{
const char *const prefix = "var/data/mnist";
char filename[1024];
sprintf(filename, "%s/%s/%s", getenv("HOME"), prefix, name);
printf("%s\n", filename);
tensor_t *t = ... |
lgarithm/crystalnet | tests/src/crystalnet/ops/pool_test.c | #include <assert.h>
#include <stdio.h>
#include <crystalnet-internal.h>
typedef shape_t const *p_shape_t;
void test_1()
{
context_t *ctx = new_context();
const shape_list_t *shape_list = mk_shape_list( //
ctx, (p_shape_t[]){
mk_shape(ctx, 3, 28, 28, 32),
NULL,
... |
lgarithm/crystalnet | tests/src/crystalnet/layers/layers_test.c | #include <crystalnet-ext.h>
void test_1()
{
s_layer_t *l1 = new_layer_dense(10);
del_s_layer(l1);
}
int main()
{
test_1();
return 0;
}
|
stbrumme/practical-string-searching | search.c | <gh_stars>1-10
// //////////////////////////////////////////////////////////
// search.c
// Copyright (c) 2014,2019 <NAME>. All rights reserved.
// see http://create.stephan-brumme.com/disclaimer.html
//
// compiles with: gcc -Wall
// pretty much every decent C compiler should be able to eat this code, too
// note: so... |
stbrumme/practical-string-searching | search.h | // //////////////////////////////////////////////////////////
// search.h
// Copyright (c) 2014,2019 <NAME>. All rights reserved.
// see http://create.stephan-brumme.com/disclaimer.html
//
#pragma once
#include <stddef.h> // size_t
// all functions are declared similar to strstr
/// naive approach (for C strings)
c... |
stbrumme/practical-string-searching | mygrep.c | <gh_stars>1-10
// //////////////////////////////////////////////////////////
// mygrep.c
// Copyright (c) 2014,2019 <NAME>. All rights reserved.
// see http://create.stephan-brumme.com/disclaimer.html
//
// gcc -O3 -std=c99 -Wall -pedantic search.c mygrep.c -o mygrep
// file size limited to available memory size becau... |
Johan-Mi/C64DvdLogo | main.c | #include <stdlib.h>
#include <peekpoke.h>
#include <string.h>
#include <conio.h>
char spriteData[] = {
31,255,248,31,255,252,0,15,252,62,7,252,62,3,254,124,
3,222,124,7,158,124,15,159,124,63,15,127,252,15,255,240,
15,0,0,7,0,0,6,0,0,4,3,255,255,63,255,255,
255,255,224,255,255,224,63,255,255,3,255,255,0,0,0,6,
7,2... |
nikramakrishnan/freetype2 | include/freetype/internal/services/svgxval.h | <filename>include/freetype/internal/services/svgxval.h
/****************************************************************************
*
* svgxval.h
*
* FreeType API for validating TrueTypeGX/AAT tables (specification).
*
* Copyright 2004-2018 by
* <NAME>, Red Hat K.K.,
* <NAME>, <NAME>, and <NAME>.
*
* This ... |
nikramakrishnan/freetype2 | include/freetype/t1tables.h | /****************************************************************************
*
* t1tables.h
*
* Basic Type 1/Type 2 tables definitions and interface (specification
* only).
*
* Copyright 1996-2018 by
* <NAME>, <NAME>, and <NAME>.
*
* This file is part of the FreeType project, and may only be used,
* mod... |
nikramakrishnan/freetype2 | include/freetype/internal/services/svcid.h | /****************************************************************************
*
* svcid.h
*
* The FreeType CID font services (specification).
*
* Copyright 2007-2018 by
* <NAME> and <NAME>.
*
* This file is part of the FreeType project, and may only be used,
* modified, and distributed under the terms of th... |
nikramakrishnan/freetype2 | src/autofit/afglobal.c | /****************************************************************************
*
* afglobal.c
*
* Auto-fitter routines to compute global hinting values (body).
*
* Copyright 2003-2018 by
* <NAME>, <NAME>, and <NAME>.
*
* This file is part of the FreeType project, and may only be used,
* modified, and distrib... |
nikramakrishnan/freetype2 | src/autofit/afmodule.c | <filename>src/autofit/afmodule.c
/****************************************************************************
*
* afmodule.c
*
* Auto-fitter module implementation (body).
*
* Copyright 2003-2018 by
* <NAME>, <NAME>, and <NAME>.
*
* This file is part of the FreeType project, and may only be used,
* modified... |
nikramakrishnan/freetype2 | src/gxvalid/gxvmorx2.c | /****************************************************************************
*
* gxvmorx2.c
*
* TrueTypeGX/AAT morx table validation
* body for type2 (Ligature Substitution) subtable.
*
* Copyright 2005-2018 by
* <NAME>, <NAME>, Red Hat K.K.,
* <NAME>, <NAME>, and <NAME>.
*
* This file is part of the Fr... |
nikramakrishnan/freetype2 | src/gxvalid/gxvtrak.c | <reponame>nikramakrishnan/freetype2<filename>src/gxvalid/gxvtrak.c
/****************************************************************************
*
* gxvtrak.c
*
* TrueTypeGX/AAT trak table validation (body).
*
* Copyright 2004-2018 by
* <NAME>, <NAME>, Red Hat K.K.,
* <NAME>, <NAME>, and <NAME>.
*
* This fi... |
nikramakrishnan/freetype2 | include/freetype/ftmm.h | /****************************************************************************
*
* ftmm.h
*
* FreeType Multiple Master font interface (specification).
*
* Copyright 1996-2018 by
* <NAME>, <NAME>, and <NAME>.
*
* This file is part of the FreeType project, and may only be used,
* modified, and distributed unde... |
nikramakrishnan/freetype2 | include/freetype/internal/services/svcfftl.h | /****************************************************************************
*
* svcfftl.h
*
* The FreeType CFF tables loader service (specification).
*
* Copyright 2017-2018 by
* <NAME>, <NAME>, and <NAME>.
*
* This file is part of the FreeType project, and may only be used,
* modified, and distributed un... |
helix-datasets/blind-helix | evaluation/data/manual-labels/semantic/gcj-2020-00000000003775e9/MicGor.c | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef pair<int, int> PII;
#define sz(x) (int)(x).size()
#define all(x) (x).begin(), (x).end()
void solve()
{
LL n, d;
cin >> n >> d;
LL x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
LL k1 = abs(x1 + y1 - (x2 + y2)), k2 = abs(x1 ... |
helix-datasets/blind-helix | evaluation/data/manual-labels/semantic/gcj-2020-00000000003775e9/minQZ.c | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define X first
#define Y second
#define mp make_pair
typedef long long ll;
int n;
ll d;
ll ans;
ll myabs(ll a) { return a > 0 ? a : -a; }
ll mygcd(ll a, ll b) { return a % b ? mygcd(b, a%b) : b; }
void init() {
}
void solve() {
scanf("%d %d", &n,... |
helix-datasets/blind-helix | evaluation/data/manual-labels/semantic/gcj-2012-1475486/iPeter.c | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<iostream>
#include<algorithm>
using namespace std;
int n,s[2000],p[2000],q[2000];
int cmp(int a, int b){
if(p[a] == p[b]){
if(s[a] == s[b])
return a < b;
return s[a] > s[b];
}
return p[a] > p[b];
}
int main(void){
int t;
sca... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.