repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
tmytokai/template_12f683 | template.X/input.c | //
// デジタル入力
//
#include "setting.h"
#ifdef USE_INPUT
// デジタル入力初期化
void init_input(void)
{
// ポートの入出力設定を上書きします
// 0 にすると出力モード、1 にすると入力モードになります
// 詳しくはデータシート 34 p を参照してください
TRISIO = TRISIO | ? ;
// 内部プルアップ抵抗の設定です
// 1 をセットすると有効になります
// 詳しくはデータシート 36 p を参照してください
WPU = WPU | ? ;
... |
SilverFruity/iOS15BlockWriteSignature | iOS15BlockWriteSignature/SceneDelegate.h | <filename>iOS15BlockWriteSignature/SceneDelegate.h
//
// SceneDelegate.h
// iOS15BlockWriteSignature
//
// Created by Jiang on 2021/9/25.
//
#import <UIKit/UIKit.h>
@interface SceneDelegate : UIResponder <UIWindowSceneDelegate>
@property (strong, nonatomic) UIWindow * window;
@end
|
SilverFruity/iOS15BlockWriteSignature | iOS15BlockWriteSignature/AppDelegate.h | <reponame>SilverFruity/iOS15BlockWriteSignature
//
// AppDelegate.h
// iOS15BlockWriteSignature
//
// Created by Jiang on 2021/9/25.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@end
|
SilverFruity/iOS15BlockWriteSignature | iOS15BlockWriteSignature/ViewController.h | <gh_stars>1-10
//
// ViewController.h
// iOS15BlockWriteSignature
//
// Created by Jiang on 2021/9/25.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
|
dmtnikolaev/ai_labs | ai_lab2/src/asterisk.h | <gh_stars>0
#ifndef AI_LAB1_ASTERISK_H
#define AI_LAB1_ASTERISK_H
#include "deep.h"
#include "assessment.h"
class AsteriskTree : public DeepTree {
public:
AsteriskTree(const TagState& initial_state, Assessment* assessment)
: DeepTree(initial_state), assessment_(assessment) {}
protected:
bool OpenNode(... |
dmtnikolaev/ai_labs | ai_lab2/src/deep.h | #ifndef AI_LAB1_DEEP_H
#define AI_LAB1_DEEP_H
#include "tree.h"
class DeepTree : public Tree {
public:
explicit DeepTree(const TagState& initial_state);
bool BuildSolvingTree(const TagState& target) override;
protected:
bool OpenNode(Node* node) override;
};
#endif //AI_LAB1_DEEP_H
|
dmtnikolaev/ai_labs | ai_lab2/src/fabric.h | <reponame>dmtnikolaev/ai_labs
#ifndef AI_LAB1_FABRIC_H
#define AI_LAB1_FABRIC_H
#include <memory>
#include "tree.h"
enum class TreeType {
Deep,
Iterative,
AsteriskPlace,
AsteriskManhattan,
};
enum class HostType {
Debug,
Solution,
};
class TreeFabric {
public:
explicit TreeFabric(const T... |
dmtnikolaev/ai_labs | ai_lab2/src/host.h | <filename>ai_lab2/src/host.h
#ifndef AI_LAB1_HOST_H
#define AI_LAB1_HOST_H
#include "tag.h"
constexpr static int kMaxSolutionPath = 100;
class Host {
public:
virtual ~Host() = default;
virtual void Interrupt() const {};
virtual void PrintNewNode(const TagState& state) const {};
virtual void PrintRepe... |
dmtnikolaev/ai_labs | ai_lab2/src/conditions.h | <reponame>dmtnikolaev/ai_labs
#ifndef AI_LAB1_CONDITIONS_H
#define AI_LAB1_CONDITIONS_H
#include "tag.h"
struct Conditions {
constexpr static field_t init_field {{
{0, 4, 3},
{6, 2, 1},
{7, 5, 8}
}};
constexpr static field_t target_field {{
{1, 2, 3},
{4, 0, 5},
... |
dmtnikolaev/ai_labs | ai_lab2/src/assessment.h | #ifndef AI_LAB1_ASSESSMENT_H
#define AI_LAB1_ASSESSMENT_H
#include "tree.h"
#include "conditions.h"
class Assessment {
public:
virtual int GetEval(const TagState &state) = 0;
protected:
Conditions c = {};
TagState target_ = c.target_state;
};
class NotInPlace : public Assessment {
public:
int GetEval... |
dmtnikolaev/ai_labs | ai_lab2/src/tag.h | #ifndef AI_LAB1_TAG_H
#define AI_LAB1_TAG_H
#include <array>
#include <vector>
#include <string>
constexpr static int kFieldSize = 3;
constexpr static int kNextStatesMax = 4;
using field_t = std::array<std::array<int, kFieldSize>, kFieldSize>;
struct CellAddr {
int row;
int col;
};
class TagState {
frie... |
dmtnikolaev/ai_labs | ai_lab2/src/tree.h | #ifndef AI_LAB1_TREE_H
#define AI_LAB1_TREE_H
#include <stack>
#include <vector>
#include <string>
#include "tag.h"
#include "host.h"
class Tree {
public:
virtual ~Tree();
virtual bool BuildSolvingTree(const TagState& target) = 0;
void SetHost(Host* host);
void PrintSolution() const;
protected:
cl... |
dmtnikolaev/ai_labs | ai_lab2/src/iterative.h | #ifndef AI_LAB1_ITERATIVE_H
#define AI_LAB1_ITERATIVE_H
#include "deep.h"
class IterativeTree : public DeepTree {
public:
explicit IterativeTree(const TagState& initial_state);
bool BuildSolvingTree(const TagState& target) override;
protected:
int depth_limit_ = 0;
bool OpenNode(Node* node) override;... |
giomacre/Pangolin | include/pangolin/display/device/X11Window.h | <reponame>giomacre/Pangolin
/* This file is part of the Pangolin Project.
* http://github.com/stevenlovegrove/Pangolin
*
* Copyright (c) 2011 <NAME>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal i... |
Mikipaw/J4F | recursive.h | <reponame>Mikipaw/J4F<filename>recursive.h<gh_stars>1-10
//
// Created by mikhalinho on 30.09.2021.
//
#ifndef J4F_MYSTR_H
#define J4F_MYSTR_H
//This function finds size of string with number N
int counter(int N) {
int size = 0;
for (int j = 0; j < N; ++j) {
size = size * 2 + 1;
}
return size;... |
Mikipaw/J4F | ReversedPolishCalculator.h | //
// Created by mikhalinho on 08.10.2021.
//
#ifndef J4F_REVERSEDPOLISHCALCULATOR_H
#define J4F_REVERSEDPOLISHCALCULATOR_H
#include <iostream>
#include <cstdlib>
#include <sstream>
//Checking if str is an operator like '+', '-', '*' or '/'
bool is_oper(const std::string& str);
class calculator {
public:
calcul... |
Mikipaw/J4F | matrix.h | <gh_stars>1-10
//
// Created by mikhalinho on 20.09.2021.
//
#ifndef J4F_MATRIX_H
#define J4F_MATRIX_H
#include <cstdio>
#include <cstdlib>
enum ERROR_LIST{
ALL_OK,
INVALID_INPUT,
DIFFERENT_SIZES,
ZERO_PTR,
};
class matrix {
public:
matrix() = default;
matrix(size_t rows, size_t columns): ... |
Mikipaw/J4F | LinesPoints.h | //
// Created by mikhalinho on 30.09.2021.
//
#ifndef J4F_LINESPOINTS_H
#define J4F_LINESPOINTS_H
#endif //J4F_LINESPOINTS_H
|
cpurev/CS311 | Project2/ssarray.h | //ssarray.h
//<NAME>
//2021-9-11
//
//Template class SSArray(Somewhat Smart Array)
#ifndef _SSARRAY_H_
#define _SSARRAY_H_
#include <cstddef> // std::size_t
#include <algorithm> // std::copy
#include <utility> //std::swap
#include <cassert> //std::assert
// *******************************************... |
cpurev/CS311 | Project5/fstarray.h | <filename>Project5/fstarray.h
/*
* fsarray.h
* VERSION 6
* <NAME>
* Started: 2021-10-12
* Updated: 2021-10-20
*
* Finished by:
* <NAME> & <NAME>
* 2021/10/27
*
* For CS 311 Fall 2021
* Header for class FSTArray
* Frightfully smart array of int
* Preliminary to Project 5
*/
/*
* Histor... |
cpurev/CS311 | Project6/dp6.h | <reponame>cpurev/CS311
//dp6.h
// <NAME>
// Nov-1-2021
//
//Header for DP6
// A: Reversing Single List
// Efficient reversing function for a Linked List with smart pointers.
// B: Associative Dataset Class Template
// A class template that uses a Linked List to hold an associative dataset.
// Will also use... |
cpurev/CS311 | Project7/treesorter.h | // treesorter.h SKELETON
// <NAME>
// 2021-11-08
//
// For CS 311 Fall 2021
// Header for function template treesort
// There is no associated source file.
//
// <NAME>
// 2021-11-10
#ifndef FILE_TREESORTER_H_INCLUDED
#define FILE_TREESORTER_H_INCLUDED
#include <iterator> // For std::iterator_traits
#... |
cpurev/CS311 | Project6/llnode2.h | <gh_stars>0
// llnode2.h
// <NAME>
// Updated: 2021-10-25
// Started: 2021-10-22
//
// For CS 311 Fall 2021
// Header for struct LLNode2
// Singly Linked List node using smart pointers
// + associated functionality
// Based on llnode.h
// There is no associated source file.
#ifndef FILE_LLNODE2_H_INCLUDED... |
cpurev/CS311 | Project3/dp3.h | <gh_stars>0
// dp3.h
// <NAME>
// 2021-09-20
//
// For CS 311 Fall 2021
// Header for Project 3 functions
#ifndef FILE_DP3_H_INCLUDED
#define FILE_DP3_H_INCLUDED
#include "llnode.h" // For LLNode
#include <cstddef> // For std::size_t
#include <functional> // For std::function
#include <stdexcept... |
cpurev/CS311 | Project4/hdtcount.h | //hdtcount.h
//<NAME>
//2021-9-27
//
//Header for Holey Domino Tiling counting
#ifndef _HDTCOUNT_H_INCLUDED
#define _HDTCOUNT_H_INCLUDED
//Implementation in source file
int hdtCount(int dim_x, int dim_y,
int forbid1_x, int forbid1_y,
int forbid2_x, int forbid2_y);
#endif //_HD... |
cpurev/CS311 | Project 1/delivery.h | //delivery.h
//<NAME>
//2021-9-1
//Header for class Delivery
#ifndef DELIVERY_H
#define DELIVERY_H
#include <string> // std::string
#include <ostream> // std::ostream
#include <cassert> // For assert
// *********************************************************************
// class Delivery - Class defi... |
matejus/bcf-generic-node | app/application.c | <reponame>matejus/bcf-generic-node
#include <application.h>
#include <radio.h>
#define BATTERY_UPDATE_INTERVAL (60 * 60 * 1000)
#define TEMPERATURE_TAG_PUB_NO_CHANGE_INTEVAL (15 * 60 * 1000)
#define TEMPERATURE_TAG_PUB_VALUE_CHANGE 0.1f
#define TEMPERATURE_TAG_UPDATE_INTERVAL (2 * 1000)
#define HUMIDITY_TAG_PUB_NO_C... |
matejus/bcf-generic-node | app/application.h | <reponame>matejus/bcf-generic-node<gh_stars>0
#ifndef _APPLICATION_H
#define _APPLICATION_H
#ifndef FIRMWARE
#define FIRMWARE "generic-node"
#endif
#ifndef VERSION
#define VERSION "vdev"
#endif
#include <bcl.h>
typedef struct
{
uint8_t channel;
float value;
bc_tick_t next_pub;
} event_param_t;
typedef... |
Robotion-AI/Autobotware | gazebo_ros_lidar_plugin/include/gazebo_ros_lidar_plugin/custom_lidar.h | /*
* Desc: LiDAR sensor ROS Gazebo plugin.
* Author: <NAME>
* mail: <EMAIL>
* Date: 5 September 2020
*
* Copyright 2020 Robotion-AI. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a c... |
Robotion-AI/Autobotware | gazebo_ros_lidar_plugin/include/gazebo_ros_lidar_plugin/dataContainers.h | <filename>gazebo_ros_lidar_plugin/include/gazebo_ros_lidar_plugin/dataContainers.h
/*
* Desc: LiDAR sensor ROS Gazebo plugin.
* Author: <NAME>
* mail: <EMAIL>
* Date: 5 September 2020
*
* Copyright 2020 Robotion-AI. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you... |
Robotion-AI/Autobotware | gazebo_ros_lidar_plugin/include/gazebo_ros_lidar_plugin/gazebo_ros_lidar_plugin.h | /*
* Desc: LiDAR sensor ROS Gazebo plugin.
* Author: <NAME>
* mail: <EMAIL>
* Date: 5 September 2020
*
* Copyright 2020 Robotion-AI. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a c... |
kobunketsu/PrototypeMaker | PrototypeMaker/PMTagViewController.h | <gh_stars>0
//
// PMTagViewController.h
// PrototypeMaker
//
// Created by <NAME> on 6/13/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import "PMBasicInfoViewController.h"
@interface PMTagViewController : PMBasicInfoViewController
@property (weak, nonatomic) IBOutlet UITableView *tableView;
- (IBAc... |
kobunketsu/PrototypeMaker | PrototypeMaker/UIImage+Pixel.h | <reponame>kobunketsu/PrototypeMaker<gh_stars>0
//
// UIImage+Pixcel.h
// PaintProjector
//
// Created by <NAME> on 13-10-10.
// Copyright (c) 2013年 WenjiHu. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIImage (Pixel)
-(UIColor*)pickPixelAtX:(NSUInteger)x Y:(NSUInteger)y;
@end
|
kobunketsu/PrototypeMaker | PrototypeMaker/PMIdea.h | <reponame>kobunketsu/PrototypeMaker
//
// PMIdea.h
// PrototypeMaker
//
// Created by <NAME> on 6/13/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PMDetailInfo.h"
@class PMPrototype;
@class PMTag;
#define kChakra @"Chakra"
@interface PMIdea : PMDetailInfo
/... |
kobunketsu/PrototypeMaker | PrototypeMaker/PMSearchTableViewController.h | <filename>PrototypeMaker/PMSearchTableViewController.h
//
// PMSearchTableViewController.h
// PrototypeMaker
//
// Created by <NAME> on 6/16/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "PMBaseInfo.h"
typedef NS_ENUM(NSUInteger, PMSearchMode) {
PMSearchIdea,
PMS... |
kobunketsu/PrototypeMaker | PrototypeMaker/PMPrototype.h | <filename>PrototypeMaker/PMPrototype.h
//
// PMPrototype.h
// PrototypeMaker
//
// Created by <NAME> on 6/13/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PMDetailInfo.h"
typedef NS_ENUM(NSUInteger, ProtoRelatedType) {
RT_Idea,
};
@protocol NSString
@end
... |
kobunketsu/PrototypeMaker | PrototypeMaker/RemoteLog.h | //
// IBActionReport.h
// PaintProjector
//
// Created by <NAME> on 5/28/14.
// Copyright (c) 2014 WenjiHu. All rights reserved.
//
#import <Foundation/Foundation.h>
//#import <Crashlytics/Crashlytics.h>
//#import "Flurry.h"
@interface RemoteLog : NSObject
+ (void)logAction:(NSString *)name fromSender:(id)sender ... |
kobunketsu/PrototypeMaker | PrototypeMaker/PMDetailViewController.h | <reponame>kobunketsu/PrototypeMaker
//
// PMDetailViewController.h
// PrototypeMaker
//
// Created by <NAME> on 6/16/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "PMDetailInfo.h"
@interface PMDetailViewController : UIViewController
@property (weak, nonatomic) IBOutlet... |
kobunketsu/PrototypeMaker | PrototypeMaker/PMImageCollectionViewCell.h | //
// PMImageCollectionViewCell.h
// PrototypeMaker
//
// Created by <NAME> on 15/6/28.
// Copyright (c) 2015年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface PMImageCollectionViewCell : UICollectionViewCell
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@end
|
kobunketsu/PrototypeMaker | PrototypeMaker/PMCategory.h | //
// PMCategory.h
// PrototypeMaker
//
// Created by <NAME> on 6/20/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import "PMBaseInfo.h"
#import "PMTag.h"
@interface PMCategory : PMBaseInfo
/**
* 过滤出的标志
*/
@property(retain, nonatomic) NSMutableArray *tagIds;
- (void)addTag:(PMTag *)tag;
- (void)d... |
kobunketsu/PrototypeMaker | PrototypeMaker/PMIdeaViewController.h | <gh_stars>0
//
// PMIdeaViewController.h
// PrototypeMaker
//
// Created by <NAME> on 6/13/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import "PMBasicInfoViewController.h"
#import "PMPrototype.h"
@interface PMIdeaViewController : PMBasicInfoViewController
@property (assign, nonatomic) id delelgate;
... |
kobunketsu/PrototypeMaker | PrototypeMaker/PMDocument.h | //
// PMDocument.h
// PrototypeMaker
//
// Created by <NAME> on 15/6/27.
// Copyright (c) 2015年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "PMDataModel.h"
#define kPMDocumentDownloadedFromiCloud @"kPMDocumentDownloadedFromiCloud"
@interface PMDocument : UIDocument
@property (nonatomic, stron... |
kobunketsu/PrototypeMaker | PrototypeMaker/TimeDefines.h | //
// MiscDefines.h
// PaintProjector
//
// Created by kobunketsu on 9/19/14.
// Copyright (c) 2014 WenjiHu. All rights reserved.
//
#ifndef PaintProjector_TimeDefines_h
#define PaintProjector_TimeDefines_h
#define AnimDurationPreventBlack 0.1
#define AnimDurationDismissViewController 0.3
#define AnimDurationDism... |
kobunketsu/PrototypeMaker | MSCMoreOptionTableViewCell-master/MSCMoreOptionTableViewCellDemo/App/Sources/StandardTableViewCellController.h | <reponame>kobunketsu/PrototypeMaker
//
// StandardTableViewCellController.h
// MSCMoreOptionTableViewCellDemo
//
// Created by <NAME> (@scheinem) on 22.08.13.
// Copyright (c) 2013 <NAME> (@scheinem). All rights reserved.
//
@interface StandardTableViewCellController : UITableViewController
@end
|
kobunketsu/PrototypeMaker | PrototypeMaker/GlobalDefines.h | <gh_stars>0
//
// DebugLog.h
// PaintProjector
//
// Created by <NAME> on 8/19/14.
// Copyright (c) 2014 WenjiHu. All rights reserved.
//
#define DEBUG_SCREENLOG 0
#define ICLOUD_DATA_RESET 0
#define ICLOUD_ENABLE 1
#define IOSCapVersion 8.0
|
kobunketsu/PrototypeMaker | MSCMoreOptionTableViewCell-master/MSCMoreOptionTableViewCellDemo/App/AppDelegate.h | //
// AppDelegate.h
// MSCMoreOptionTableViewCellDemo
//
// Created by <NAME> (@scheinem) on 22.08.13.
// Copyright (c) 2013 <NAME> (@scheinem). All rights reserved.
//
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (nonatomic, strong) UIWindow *window;
@property (nonatomic, strong) UIView... |
kobunketsu/PrototypeMaker | PrototypeMaker/PMTag.h | //
// PMTag.h
// PrototypeMaker
//
// Created by <NAME> on 6/20/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import "PMBaseInfo.h"
@interface PMTag : PMBaseInfo
+ (PMTag *)tagOfId:(NSString *)indentifier;
+ (PMTag *)tagWithTitle:(NSString *)title;
@end
|
kobunketsu/PrototypeMaker | PrototypeMaker/Extension.h | //
// UIImage_Pixel.h
// PaintProjector
//
// Created by <NAME> on 13-10-10.
// Copyright (c) 2013年 WenjiHu. All rights reserved.
//
//#import "NGAParallaxMotion.h"
//#import "NSObject+PropertyAnimation.h"
//#import "NSString+Extension.h"
//#import "UIAlertView+error.h"
//#import "UIAlertController+Extension.h"
//#... |
kobunketsu/PrototypeMaker | PrototypeMaker/NSJSONSerialization+Extension.h | <gh_stars>0
//
// NSJSONSerialization+Extension.h
// PaintProjector
//
// Created by <NAME> on 3/4/16.
// Copyright © 2016 WenjiHu. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSJSONSerialization (Extension)
+(NSData *)dataWithJSONFilePath:(NSString *)filePath;
@end
|
kobunketsu/PrototypeMaker | PrototypeMaker/UIActivityViewController+Extension.h | <filename>PrototypeMaker/UIActivityViewController+Extension.h
//
// UIActivityViewController+Extension.h
// PaintProjector
//
// Created by <NAME> on 7/23/16.
// Copyright © 2016 WenjiHu. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIActivityViewController (Extension)
+ (void)airdropFileURL:(NSURL ... |
kobunketsu/PrototypeMaker | PrototypeMaker/PMRelatedViewController.h | //
// PMRelatedViewController.h
// PrototypeMaker
//
// Created by <NAME> on 15/7/1.
// Copyright (c) 2015年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "PMDetailInfo.h"
@interface PMRelatedViewController : UIViewController
@property (weak, nonatomic) IBOutlet UIBarButtonItem *sortButton;
@prop... |
kobunketsu/PrototypeMaker | PrototypeMaker/PMSetupTableViewCell.h | <reponame>kobunketsu/PrototypeMaker<gh_stars>0
//
// PMSetupTableViewCell.h
// PrototypeMaker
//
// Created by <NAME> on 6/17/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface PMSetupTableViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UISwitch *switcher;... |
kobunketsu/PrototypeMaker | PrototypeMaker/PMDataViewController.h | <filename>PrototypeMaker/PMDataViewController.h
//
// PMDataViewController.h
// PrototypeMaker
//
// Created by <NAME> on 6/17/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PMPrototype.h"
#import "PMRootTabBarController.h"
#import "PMCategory.h"
@interface PM... |
kobunketsu/PrototypeMaker | PrototypeMaker/PMNavigationController.h | //
// PMNavigationController.h
// PrototypeMaker
//
// Created by <NAME> on 15/7/6.
// Copyright (c) 2015年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface PMNavigationController : UINavigationController
@end
|
kobunketsu/PrototypeMaker | PrototypeMaker/PMDataModel.h | <gh_stars>0
//
// PMDataModel.h
// PrototypeMaker
//
// Created by <NAME> on 6/13/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PMIdea.h"
#import "PMPrototype.h"
#import "PMTag.h"
#import "PMCategory.h"
#import "JSONModel.h"
//@interface PMDataManager : NSObj... |
kobunketsu/PrototypeMaker | PrototypeMaker/DPiCloudHelper.h | <filename>PrototypeMaker/DPiCloudHelper.h
//
// PMiCloudHelper.h
// PrototypeMaker
//
// Created by <NAME> on 15/6/28.
// Copyright (c) 2015年 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface DPiCloudHelper : NSObject
+ (NSURL *)iCloudContainer;
+ (void)listAllFilesInDirectory:(NSURL*... |
kobunketsu/PrototypeMaker | PrototypeMaker/DPiCloudDocManager.h | //
// DPiCloudDocManager.h
// PrototypeMaker
//
// Created by <NAME> on 15/6/30.
// Copyright (c) 2015年 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "DPiCloudHelper.h"
@interface DPiCloudDocManager : NSObject
{
}
+(DPiCloudDocManager*)si;
- (void)saveDoc;
- (void)refresh;
- (NSURL... |
kobunketsu/PrototypeMaker | PrototypeMaker/NSString+Extension.h | //
// NSString+Extension.h
// PaintProjector
//
// Created by <NAME> on 4/5/15.
// Copyright (c) 2015 WenjiHu. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (Extension)
//+ (NSString*)unitStringFromFloat:(CGFloat)value;
- (Boolean)isEqualToString:(NSString *)string caseSensitive:(B... |
kobunketsu/PrototypeMaker | PrototypeMaker/PMRelatedTableViewCell.h | <reponame>kobunketsu/PrototypeMaker<gh_stars>0
//
// PMRelatedTableViewCell.h
// PrototypeMaker
//
// Created by <NAME> on 15/7/1.
// Copyright (c) 2015年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface PMRelatedTableViewCell : UITableViewCell
@end
|
kobunketsu/PrototypeMaker | MSCMoreOptionTableViewCell-master/MSCMoreOptionTableViewCell/MSCMoreOptionTableViewCellDelegate.h | //
// MSCMoreOptionTableViewCellDelegate.h
// MSCMoreOptionTableViewCell
//
// Created by <NAME> (@scheinem) on 20.08.13.
// Copyright (c) 2013 <NAME> (@scheinem). All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@protocol MSCMoreOptionTableViewCellDelegate<NSObject>
@optional
// ... |
kobunketsu/PrototypeMaker | PrototypeMaker/PMProtoCategoryTableViewController.h | <reponame>kobunketsu/PrototypeMaker
//
// PMProtoCategoryTableViewController.h
// PrototypeMaker
//
// Created by <NAME> on 6/20/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "PMCategory.h"
@interface PMProtoCategoryTableViewController : UITableViewController
@property (... |
kobunketsu/PrototypeMaker | PrototypeMaker/PMSwipeTableCell.h | //
// PMSwipeTableCell.h
// PrototypeMaker
//
// Created by <NAME> on 8/29/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import "MGSwipeTableCell.h"
@interface PMSwipeTableCell : MGSwipeTableCell
@property (weak, nonatomic) IBOutlet UIView *chakraView;
@end
|
kobunketsu/PrototypeMaker | PrototypeMaker/PMSearchResultsTableViewController.h | <reponame>kobunketsu/PrototypeMaker
//
// SearchResultsTableViewController.h
// Sample-UISearchController
//
// Created by <NAME> on 9/20/14.
// Copyright (c) 2014 Tapas Software. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "PMSearchTableViewController.h"
@interface PMSearchResultsTableViewController :... |
kobunketsu/PrototypeMaker | PrototypeMaker/PMPrototypeViewController.h | <reponame>kobunketsu/PrototypeMaker<gh_stars>0
//
// PMPrototypeViewController.h
// PrototypeMaker
//
// Created by <NAME> on 6/13/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import "PMBasicInfoViewController.h"
@interface PMPrototypeViewController : PMBasicInfoViewController
@property (assign, no... |
kobunketsu/PrototypeMaker | PrototypeMaker/PMDetailInfo.h | <filename>PrototypeMaker/PMDetailInfo.h
//
// PMDetailInfo.h
// PrototypeMaker
//
// Created by <NAME> on 15/6/28.
// Copyright (c) 2015年 <NAME>. All rights reserved.
//
#import "PMBaseInfo.h"
typedef NS_ENUM(NSUInteger, ChakraEnum) {
CharaSurvival,
CharaEmotion,
CharaPower,
CharaLove,
CharaCon... |
kobunketsu/PrototypeMaker | PrototypeMaker/PMRelation.h | <filename>PrototypeMaker/PMRelation.h
//
// PMConnection.h
// PrototypeMaker
//
// Created by <NAME> on 6/13/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface PMRelation : NSObject
@property (copy, nonatomic) NSString *keyIdentifier;
@property (copy, nonatomic)... |
kobunketsu/PrototypeMaker | PrototypeMaker/LogDefine.h | //
// DebugLog.h
// PaintProjector
//
// Created by <NAME> on 8/19/14.
// Copyright (c) 2014 WenjiHu. All rights reserved.
//
//debug color
#define XCODE_COLORS_ESCAPE @"\033["
#define XCODE_COLORS_RESET_FG XCODE_COLORS_ESCAPE @"fg;" // Clear any foreground color
#define XCODE_COLORS_RESET_BG XCODE_COLORS_ESCAP... |
kobunketsu/PrototypeMaker | PrototypeMaker/PMRootTabBarController.h | <reponame>kobunketsu/PrototypeMaker
//
// PMRootTabBarController.h
// PrototypeMaker
//
// Created by <NAME> on 6/13/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface PMRootTabBarController : UITabBarController
@end
|
kobunketsu/PrototypeMaker | PrototypeMaker/ADAlertController.h | //
// ADAlertController.h
// PaintProjector
//
// Created by <NAME> on 2/18/15.
// Copyright (c) 2015 WenjiHu. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void (^ADAlertViewActionHandler)(NSInteger actionIndex);
@interface ADAlertController : UIAlertController
@property (retain, nonatomic)UIColor *tit... |
kobunketsu/PrototypeMaker | PrototypeMaker/PMCompareViewController.h | <reponame>kobunketsu/PrototypeMaker
//
// PMCompareViewController.h
// PrototypeMaker
//
// Created by <NAME> on 15/7/5.
// Copyright (c) 2015年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "PMPrototype.h"
@interface PMCompareViewController : UIViewController
@property (weak, nonatomic) NSString ... |
kobunketsu/PrototypeMaker | PrototypeMaker/UIView+Extensions.h | //
// UIView+Extensions.h
// PaintProjector
//
// Created by <NAME> on 6/18/14.
// Copyright (c) 2014 WenjiHu. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIView (Extensions)
- (void)adjustInRect:(CGRect)rect;
//混合位置
- (void)setFrameLerpFromRect:(CGRect)fromRect toRect:(CGRect)toRect percentage:(C... |
kobunketsu/PrototypeMaker | PrototypeMaker/PMBasicInfoViewController.h | //
// PMBasicInfoViewController.h
// PrototypeMaker
//
// Created by <NAME> on 6/20/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface PMBasicInfoViewController : UIViewController
//retained全局数据将导致self无法有效释放,只有在curCollection 完全nil才会释放对象
//存储的是id列表
@property(retain, nonat... |
kobunketsu/PrototypeMaker | PrototypeMaker/ConstantsAndMacros.h | //
// Wavefront_OBJ_Loaderconstants.h
// Wavefront OBJ Loader
//
// Created by <NAME> on 12/14/08.
// Copyright <NAME> 2008. All rights reserved.
//
// How many times a second to refresh the screen
#define kRenderingFrequency 60.0
// Macros
#define DEGREES_TO_RADIANS(__ANGLE__) ((__ANGLE__) / 180.0 * M_PI)
#define... |
kobunketsu/PrototypeMaker | PrototypeMaker/PMSetupViewController.h | //
// PMSetViewController.h
// PrototypeMaker
//
// Created by <NAME> on 6/15/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface PMSetupViewController : UIViewController
@property (weak, nonatomic) IBOutlet UITableView *tableView;
@end
|
kobunketsu/PrototypeMaker | PrototypeMaker/UIViewController+Extension.h | //
// UIView+GLCoord.h
// PaintProjector
//
// Created by <NAME> on 6/12/14.
// Copyright (c) 2014 WenjiHu. All rights reserved.
//
#import <UIKit/UIKit.h>
static UIViewController *dismissDeepVC;
static UIView *dismissDeepFixView;
@interface UIViewController (Extension)
#pragma mark- Common
+ (UIViewController *)... |
kobunketsu/PrototypeMaker | MSCMoreOptionTableViewCell-master/MSCMoreOptionTableViewCellDemo/App/Sources/StoryboardTableViewCellController.h | <reponame>kobunketsu/PrototypeMaker
//
// CustomTableViewCellController.h
// MSCMoreOptionTableViewCellDemo
//
// Created by <NAME> (@scheinem) on 24.08.13.
// Copyright (c) 2013 <NAME> (@scheinem). All rights reserved.
//
@interface StoryboardTableViewCellController : UITableViewController
@end
|
kobunketsu/PrototypeMaker | PrototypeMaker/ADUltility.h | //
// Ultility.h
// PaintProjector
//
// Created by <NAME> on 12-12-21.
// Copyright (c) 2012年 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <ImageIO/ImageIO.h>
#import <MobileCoreServices/MobileCoreServices.h>
#import <GLKit/GLKit.h>
#import <QuartzCore/QuartzCore.h>
#include <mach/mac... |
kobunketsu/PrototypeMaker | PrototypeMaker/ADSimpleAlertView.h | <gh_stars>0
//
// ADAutoAlertView.h
// PaintProjector
//
// Created by kobunketsu on 9/19/14.
// Copyright (c) 2014 WenjiHu. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void (^AutoAlertViewClickHandler)(NSInteger index);
@interface ADSimpleAlertView : UIAlertView
<UIAlertViewDelegate>
{
}
@property ... |
kobunketsu/PrototypeMaker | PrototypeMaker/PMCompareDiffCollectionViewCell.h | <gh_stars>0
//
// PMCompareDiffCollectionViewCell.h
// PrototypeMaker
//
// Created by <NAME> on 15/7/6.
// Copyright (c) 2015年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface PMCompareDiffCollectionViewCell : UICollectionViewCell
@end
|
kobunketsu/PrototypeMaker | PrototypeMaker/PMTag1ViewController.h | <reponame>kobunketsu/PrototypeMaker
//
// PMTag1ViewController.h
// PrototypeMaker
//
// Created by <NAME> on 6/21/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface PMTag1ViewController : UIViewController
@property (weak, nonatomic) IBOutlet UITableView *tableView;
- (I... |
kobunketsu/PrototypeMaker | PrototypeMaker/PMBaseInfo.h | //
// PMBaseInfo.h
// PrototypeMaker
//
// Created by <NAME> on 6/14/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "JSONModel.h"
#define kIdentifierKey @"kIdentifierKey"
#define kTitleKey @"kTitleKey"
#define kDescKey @"kDescKey"
@interface PMBaseInfo : NSObj... |
x1ddos/bitbox02-firmware | src/ui/components/trinary_input_string.h | // Copyright 2019 Shift Cryptosecurity AG
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... |
x1ddos/bitbox02-firmware | src/apps/btc/btc_sign.c | // Copyright 2019 Shift Cryptosecurity AG
// Copyright 2020 Shift Crypto AG
//
// 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
//
// Unl... |
x1ddos/bitbox02-firmware | src/apps/btc/confirm_multisig.c | // Copyright 2019 Shift Cryptosecurity AG
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... |
x1ddos/bitbox02-firmware | test/unit-test/test_app_eth_sign_msg.c | <reponame>x1ddos/bitbox02-firmware<gh_stars>0
// Copyright 2019 Shift Cryptosecurity AG
//
// 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... |
x1ddos/bitbox02-firmware | src/workflow/restore_from_mnemonic.c | // Copyright 2019 Shift Cryptosecurity AG
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... |
x1ddos/bitbox02-firmware | src/apps/btc/btc_sign_msg.h | <filename>src/apps/btc/btc_sign_msg.h<gh_stars>1-10
// Copyright 2020 Shift Crypto AG
//
// 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... |
x1ddos/bitbox02-firmware | src/commander/commander_btc.c | // Copyright 2019 Shift Cryptosecurity AG
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... |
x1ddos/bitbox02-firmware | src/apps/btc/btc_common.c | <gh_stars>0
// Copyright 2019 Shift Cryptosecurity AG
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applic... |
x1ddos/bitbox02-firmware | src/workflow/trinary_input.h | // Copyright 2019 Shift Cryptosecurity AG
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... |
x1ddos/bitbox02-firmware | test/unit-test/test_app_btc_sign_msg.c | // Copyright 2020 Shift Crypto AG
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
MicroEJ/AbstractionLayer-Core-Zephyr | src/LLMJVM_ZephyrOS.c | /*
* C
*
* Copyright 2021 MicroEJ Corp. All rights reserved.
* This library is provided in source code for use, modification and test, subject to license terms.
* Any modification of the source code will break MicroEJ Corp. warranties on the whole library.
*/
/**
* @file
* @brief LLMJVM implementation over Zep... |
plitc/hello_world | hello_world.c | <filename>hello_world.c<gh_stars>1-10
/* hello_world.c -- hello, world! */
#include<stdio.h>
int main()
{
int i;
for (i = 0; i < 1000000; i++)
{
printf ("Hello\n");
printf ("World\n");
}
... |
markcaudill/satcom-relay | tests/wiring_private.h | <gh_stars>1-10
#ifndef WORKAROUND_WIRING_PRIVATE
#define WORKAROUND_WIRING_PRIVATE 1
#define PIO_SERCOM 0
#define pinPeripheral(_x, _y) { (void)_x; (void)_y; }
#endif
|
markcaudill/satcom-relay | tests/workarounds.h | #include <Arduino.h>
#include <cstdio>
// TODO: Adafruit GPS library uses min() with different types in parseStr()
inline long int min(long int x, int y) { return min(x, (long int)y); }
// TODO: move to library.
class Uart {
public:
Uart() { clear(); };
void begin(int _baud) { (void)_baud; };
bool avail... |
markcaudill/satcom-relay | satcom-relay/sensor-manager.h | #include <ArduinoJson.h>
const byte readBufferSize = 184;
class SensorSerialManager {
public:
SensorSerialManager(Uart *sensor, DynamicJsonDocument *doc);
void resetBuffer();
bool poll();
bool parse(bool *isHeartbeat);
char readBuffer[readBufferSize] = {0};
private:
byte i = 0;
Uart *_... |
markcaudill/satcom-relay | satcom-relay/sleepmanager.h | volatile uint32_t _awakeTimer = 0;
void setupInterruptSleep(byte pin, void (*isr)(void)) {
// whenever we get an interrupt, reset the awake clock.
attachInterrupt(digitalPinToInterrupt(pin), isr, CHANGE);
// Set external 32k oscillator to run when idle or sleep mode is chosen
SYSCTRL->XOSC32K.reg |= (SYSCTRL_... |
markcaudill/satcom-relay | satcom-relay/iridium-modem.h | <reponame>markcaudill/satcom-relay
class IridiumModem
{
public:
IridiumModem();
void begin(Uart *uart, byte wakeup_pin, byte rx_pin, byte tx_pin);
void wakeup();
void check();
void sendJSON(const DynamicJsonDocument &doc);
Uart *modemUart = NULL;
private:
bool wakeup_state = false;
b... |
markcaudill/satcom-relay | satcom-relay/timediff.h | #include "Arduino.h"
#include "limits.h"
unsigned long timeDiff(unsigned long x, unsigned long nowTime) {
if (nowTime >= x) {
return nowTime - x;
}
return (ULONG_MAX - x) + nowTime;
}
unsigned long nowTimeDiff(unsigned long x) {
return timeDiff(x, millis());
}
bool timeExpired(volatile unsigned long *x, ... |
GongChuanZan/JSOCInteraction | JSOCInteractionDemo/JSOCInteractionDemo/AppDelegate.h | //
// AppDelegate.h
// JSOCInteractionDemo
//
// Created by gongcz on 15/10/9.
// Copyright © 2015年 gongcz. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.