repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
rcstilborn/SecMon | src/GUI/Stream.h | /*
* Stream.h
*
* Created on: Aug 8, 2015
* Author: richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef GUI_STREAM_H_
#define GUI_STREAM_H_
#include <boost/core/noncopyable.hpp>
#include <boost/signals2/signal.hpp>
#include <boost/thread/pthread/mutex.hpp>
#include <vector>
#... |
rcstilborn/SecMon | src/ImageSource/Camera.h | /*
* Camera.h
*
* Created on: Jul 27, 2015
* Author: richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef IMAGESOURCE_CAMERA_H_
#define IMAGESOURCE_CAMERA_H_
#include <opencv2/videoio.hpp>
#include <string>
#include <memory>
class Scene;
class Frame;
class Camera {
public:
... |
rcstilborn/SecMon | src/Common.h | /*
* Common.h
*
* Created on: Nov 2, 2015
* Author: richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef COMMON_H_
#define COMMON_H_
#ifdef CPU_ONLY
#include <opencv2/core.hpp>
typedef cv::Mat Image;
#else
#include <opencv2/core/cuda.hpp>
typedef cv::cuda::GpuMat Image;
#endif... |
rcstilborn/SecMon | src/GUI/Request.h | /*
* Request.h
*
* Created on: Aug 8, 2015
* Author: richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef GUI_REQUEST_H_
#define GUI_REQUEST_H_
#include <string>
#include <vector>
#include "Header.h"
namespace http {
// I think this came from the Boost::asio demo code. It w... |
rcstilborn/SecMon | src/ImageProcessing/ImageProcessor.h | <gh_stars>1-10
/*
* ImageProcessor.h
*
* Created on: Aug 14, 2015
* Author: richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef IMAGEPROCESSING_IMAGEPROCESSOR_H_
#define IMAGEPROCESSING_IMAGEPROCESSOR_H_
#include <string>
#include <memory>
#include "../Component.h"
#include "... |
rcstilborn/SecMon | src/GUI/Header.h | <reponame>rcstilborn/SecMon
/*
* RequestHandler.h
*
* Created on: Aug 8, 2015
* Author: richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef GUI_HEADER_H_
#define GUI_HEADER_H_
#include <string>
namespace http {
struct Header {
explicit Header(const std::string& name = "",... |
rcstilborn/SecMon | src/Scene.h | /*
* Scene.h
*
* Created on: Jul 28, 2015
* Author: richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef SCENE_H_
#define SCENE_H_
#include <boost/asio/io_service.hpp>
#include <boost/any.hpp>
#include <cstdbool>
#include <string>
#include <memory>
#include <vector>
#include "... |
rcstilborn/SecMon | src/PerformanceMetrics.h | /*
* PerformanceMetrics.h
*
* Created on: Aug 4, 2015
* Author: richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef PERFORMANCEMETRICS_H_
#define PERFORMANCEMETRICS_H_
#include <stddef.h>
#include <boost/asio/steady_timer.hpp>
#include <boost/system/error_code.hpp>
#include <... |
rcstilborn/SecMon | src/ImageProcessing/MovementDetectorBasic.h | <gh_stars>1-10
/*
* MovementDetectorBasic.h
*
* Created on: Aug 14, 2015
* Author: richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef IMAGEPROCESSING_MOVEMENTDETECTORBASIC_H_
#define IMAGEPROCESSING_MOVEMENTDETECTORBASIC_H_
#include <opencv2/opencv.hpp>
#include <memory>
#i... |
rcstilborn/SecMon | src/GUI/StreamConnection.h | <gh_stars>1-10
/*
* StreamConnection.h
*
* Created on: Aug 10, 2015
* Author: richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef GUI_STREAMCONNECTION_H_
#define GUI_STREAMCONNECTION_H_
#include <boost/array.hpp>
#include <boost/asio/buffer.hpp>
#include <boost/asio/io_servic... |
rcstilborn/SecMon | src/GUI/Reply.h | <gh_stars>1-10
/*
* Reply.h
*
* Created on: Aug 8, 2015
* Author: richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef GUI_REPLY_H_
#define GUI_REPLY_H_
#include <boost/asio/buffer.hpp>
#include <string>
#include <vector>
#include "Header.h"
namespace http {
// I think this ... |
rcstilborn/SecMon | src/Pipeline/WorkWrapper.h | <filename>src/Pipeline/WorkWrapper.h
/*
* WorkWrapper.h
*
* Created on: Aug 27, 2017
* Author: Richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*
* This is a wrapper for the actual work functions of the pipeline. It provides the boost asio mechanism and
* the glue that holds the p... |
rcstilborn/SecMon | src/GUI/WebSocketServer.h | /*
* WebSocketServer.h
*
* Created on: Aug 4, 2015
* Author: richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef GUI_WEBSOCKETSERVER_H_
#define GUI_WEBSOCKETSERVER_H_
#include <boost/function/function_fwd.hpp>
#include <boost/function.hpp>
#include <boost/thread/pthread/mutex... |
rcstilborn/SecMon | src/ImageProcessing/MovementDetectorMOG2.h | /*
* MovementDetectorMOG2.h
*
* Created on: Oct 18, 2017
* Author: richard
*/
#ifndef SRC_IMAGEPROCESSING_MOVEMENTDETECTORMOG2_H_
#define SRC_IMAGEPROCESSING_MOVEMENTDETECTORMOG2_H_
#include "MovementDetector.h"
#include <opencv2/video/background_segm.hpp>
#include <memory>
class MovementDetectorMOG2 : pu... |
rcstilborn/SecMon | src/ObjectProcessing/OOI.h | /*
* OOI.h
*
* Created on: Oct 23, 2015
* Author: richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef OBJECTPROCESSING_OOI_H_
#define OBJECTPROCESSING_OOI_H_
#include <boost/core/noncopyable.hpp>
#include <opencv2/core/types.hpp>
#include <string>
enum struct OOI_State
: i... |
rcstilborn/SecMon | src/ScenePublisher.h | /*
* ScenePublisher.h
*
* Created on: Aug 13, 2015
* Author: richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef SCENEPUBLISHER_H_
#define SCENEPUBLISHER_H_
#include <boost/core/noncopyable.hpp>
#include <boost/signals2/signal.hpp>
#include <boost/thread/pthread/mutex.hpp>
#... |
rcstilborn/SecMon | src/GUI/StreamDirectory.h | <reponame>rcstilborn/SecMon
/*
* HTTPStreamServer.h
*
* Created on: Aug 8, 2015
* Author: richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef GUI_STREAMDIRECTORY_H_
#define GUI_STREAMDIRECTORY_H_
#include <boost/core/noncopyable.hpp>
#include <boost/thread/pthread/mutex.hpp>
... |
rcstilborn/SecMon | src/GUI/MimeTypes.h | <filename>src/GUI/MimeTypes.h
/*
* MimeTypes.h
*
* Created on: Aug 8, 2015
* Author: richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef GUI_MIMETYPES_H_
#define GUI_MIMETYPES_H_
#include <string>
namespace http {
namespace mime_types {
/// Convert a file extension into a M... |
rcstilborn/SecMon | src/Component.h | <gh_stars>1-10
/*
* Component.h
*
* Created on: Aug 30, 2017
* Author: Richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef COMPONENT_H_
#define COMPONENT_H_
#include <memory>
class Frame;
class Component {
public:
virtual ~Component() {}
virtual void process_next_frame... |
rcstilborn/SecMon | src/ImageSource/ImageSource.h | /*
* ImageSource.h
*
* Created on: Oct 23, 2015
* Author: richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef IMAGESOURCE_IMAGESOURCE_H_
#define IMAGESOURCE_IMAGESOURCE_H_
#include <memory>
#include <string>
#include "Camera.h"
#include "../Component.h"
class Frame;
class S... |
rcstilborn/SecMon | src/Pipeline/TimedWorkWrapper.h | /*
* TimedWorkWrapper.h
*
* Created on: Aug 27, 2017
* Author: vagrant
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef PIPELINE_TIMEDWORKWRAPPER_H_
#define PIPELINE_TIMEDWORKWRAPPER_H_
#include <boost/function.hpp>
#include <boost/asio/steady_timer.hpp>
#include <boost/asio/stran... |
rcstilborn/SecMon | src/GUI/RequestParser.h | /*
* RequestParser.h
*
* Created on: Aug 8, 2015
* Author: richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef GUI_REQUESTPARSER_H_
#define GUI_REQUESTPARSER_H_
#include <boost/logic/tribool.hpp>
#include <boost/tuple/tuple.hpp>
#include <boost/tuple/detail/tuple_basic.hpp>
... |
rcstilborn/SecMon | src/GUI/Connection.h | /*
* connection.h
*
* Created on: Aug 8, 2015
* Author: richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef GUI_CONNECTION_H_
#define GUI_CONNECTION_H_
#include <boost/array.hpp>
#include <boost/asio/io_service.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/strand... |
rcstilborn/SecMon | src/ImageProcessing/MovementDetector.h | /*
* MovementDetector.h
*
* Created on: Oct 7, 2015
* Author: richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef IMAGEPROCESSING_MOVEMENTDETECTOR_H_
#define IMAGEPROCESSING_MOVEMENTDETECTOR_H_
#include <memory>
#include "../Component.h"
class Frame;
class MovementDetector... |
rcstilborn/SecMon | src/SceneMonitor.h | <filename>src/SceneMonitor.h
/*
* SceneMonitor.h
*
* Created on: Jul 27, 2015
* Author: richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef SCENEMONITOR_H_
#define SCENEMONITOR_H_
#include <boost/core/noncopyable.hpp>
#include <boost/ptr_container/ptr_map.hpp>
#include <boost... |
rcstilborn/SecMon | src/Frame.h | <reponame>rcstilborn/SecMon
/*
* Frame.h
*
* Created on: Jul 27, 2015
* Author: richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef FRAME_H_
#define FRAME_H_
#include <opencv2/core/mat.hpp>
#include <opencv2/core/types.hpp>
#ifndef CPU_ONLY
#include <opencv2/core/cuda.hpp>
#e... |
rcstilborn/SecMon | src/GUI/RequestHandler.h | /*
* RequestHandler.h
*
* Created on: Aug 8, 2015
* Author: richard
*
* Copyright 2017 <NAME>
* Licensed under the MIT License
*/
#ifndef GUI_REQUESTHANDLER_H_
#define GUI_REQUESTHANDLER_H_
#include <boost/core/noncopyable.hpp>
#include <cstdbool>
#include <string>
#include "Connection.h"
#include "S... |
chenkjhadlinks/WeiHaiXiaoQuName | XiaoApple/XiaoApple/XiaoApple/ViewController.h | <reponame>chenkjhadlinks/WeiHaiXiaoQuName<gh_stars>0
//
// ViewController.h
// XiaoApple
//
// Created by chenkaijie on 16/3/13.
// Copyright © 2016年 HadLinks. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
|
luigoalma/3ds-tuneplayer | source/config.c | #include <3ds.h>
#include <stdio.h>
#include <string.h>
#include "config.h"
#include "fshelper.h"
#define CONFIG_VERSION 3
#define FSA_PATH 0x4152435A00000001LLU
static const char* const _config = "/config.bin"; //length 11 + 1 null
static const FS_Path configpath = {PATH_ASCII, 12, _config};
static const Extdata_Pat... |
luigoalma/3ds-tuneplayer | include/songview.h | <filename>include/songview.h
#pragma once
#include <3ds.h>
#include "linkedlist.h"
void show_playlist(LinkedList *, LLNode *, PrintConsole *, PrintConsole *, int *,int *);
|
luigoalma/3ds-tuneplayer | include/sndthr.h | <reponame>luigoalma/3ds-tuneplayer<filename>include/sndthr.h
#pragma once
#include <3ds.h>
#include <stdio.h>
#include <xmp.h>
#define CHANNEL 0x10
#define SAMPLE_RATE 48000
#define N3DS_BLOCK 4096
#define O3DS_BLOCK 8192
// can someone find sweet spot?
#define MS_TO_PCM16_SIZE(s, c, ms) ((uint32_t)((s) * 2 * (c) * ... |
luigoalma/3ds-tuneplayer | include/linkedlist.h | // Linkedlist.h made by LiquidFenrir; Thanks.
#pragma once
#include <stdlib.h>
#define NODE_QUIRKS_AMOUNT 2
typedef struct _LLNode {
char* track_path;
char* directory;
int track_quirk[NODE_QUIRKS_AMOUNT];
int reserved;
// don't set these yourself, let the functions do it
struct _LLNode* prev;
... |
luigoalma/3ds-tuneplayer | include/songhandler.h | #pragma once
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <xmp.h>
#include "linkedlist.h"
int loadSong(xmp_context c, struct xmp_module_info *mi, char *path, char *dir, int *isFT);
uint32_t searchsong(const char *searchPath, LinkedList *list);
//int loadSongMemory(char *path, char *dir);
int loa... |
luigoalma/3ds-tuneplayer | include/song_info.h | #pragma once
#include <3ds.h>
#include <stdio.h>
#include <xmp.h>
void show_generic_info(struct xmp_frame_info *, struct xmp_module_info *, PrintConsole *, PrintConsole *, int);
void show_channel_info(struct xmp_frame_info *, struct xmp_module_info *, PrintConsole *, PrintConsole *, int *, int, int);
void show_instrum... |
luigoalma/3ds-tuneplayer | include/player.h | #pragma once
#include <3ds.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <xmp.h>
#include "error.h"
#include "fastmode.h"
#include "linkedlist.h"
#include "sndthr.h"
#include "song_info.h"
#include "songhandler.h"
#include "songview.h"
#include "config.h"
void Player_AptHook(APT_HookType hook,... |
luigoalma/3ds-tuneplayer | include/error.h | <filename>include/error.h
#pragma once
#include <3ds.h>
static inline void sendError(char *error, int code) {
// Seems like it doesn't like error message;
errorConf err;
errorInit(&err, ERROR_TEXT, CFG_LANGUAGE_EN);
errorText(&err, error);
errorCode(&err, code);
errorDisp(&err);
}
|
luigoalma/3ds-tuneplayer | source/song_info.c | #include "song_info.h"
#include <3ds.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <xmp.h>
#include "fxhandler.h"
#include "player.h"
#define gotoxy(x, y) printf("\033[%d;%dH", (x), (y))
static const char *note_name[] = {"C-", "C#", "D-", "D#", "E-", "F-",
... |
luigoalma/3ds-tuneplayer | source/fxhandler.c | #include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <xmp.h>
bool handleFX(uint8_t fxt, uint8_t fxp, const char** p_arg1, char* _arg1, bool isFT) {
bool isBufferMem = false;
uint8_t h, l;
h = (fxp >> 4) & 0xF;
l = fxp & 0xF;
... |
luigoalma/3ds-tuneplayer | include/fshelper.h | <filename>include/fshelper.h<gh_stars>0
#pragma once
#include <3ds.h>
typedef struct __attribute__((packed, aligned(4))) {
uint32_t type;
uint64_t extdataId;
} Extdata_Path;
Result FSHelp_FormatExtdata(uint64_t id, FS_MediaType media, uint32_t directories, uint32_t files, uint64_t sizeLimit, uint32_t smdhSize... |
luigoalma/3ds-tuneplayer | source/main.c | #include <3ds.h>
#include <dirent.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <xmp.h>
#include "player.h"
#include "song_info.h"
#include "songhandler.h"
#include "songview.h"
#define gotoxy(x, y) printf("\033[%d;%dH", (x), (y))
// 3ds-tuneplayer backe... |
luigoalma/3ds-tuneplayer | source/songhandler.c | #include <dirent.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <xmp.h>
#include "linkedlist.h"
#include "sndthr.h"
//this undefined makes loading directory slower, but it's an option
#define DISABLE_LOADCHECK
#define MEMBLOCK_SIZE 2048
// on over 2MB song, this value will ... |
luigoalma/3ds-tuneplayer | include/config.h | #pragma once
typedef struct {
uint8_t version;
uint8_t debugmode; // 1= Enable Debug
int loopcheck;
int loadMode; // LoadMode; using new method or xmp mode
} PlayerConfig;
Result PlayerConfig_Load(PlayerConfig* config);
Result PlayerConfig_Save(PlayerConfig* config);
Result PlayerConfig_EnsuredLoad(... |
luigoalma/3ds-tuneplayer | source/sndthr.c | <gh_stars>0
#include <3ds.h>
#include <stdio.h>
#include <string.h>
#include <xmp.h>
#include "sndthr.h"
#include "player.h"
#define add_masked(x,y) (((x) + (y)) & 0x7)
Result setup_ndsp() {
Result res;
res = ndspInit();
if (R_FAILED(res)) return res;
ndspChnReset(CHANNEL);
ndspChnSetInterp(CHANN... |
luigoalma/3ds-tuneplayer | source/fastmode.c | <filename>source/fastmode.c
#include "fastmode.h"
#include <3ds.h>
#include <stdio.h>
int try_speedup() {
Result res;
uint8_t model;
int r = 0;
res = ptmSysmInit();
if (R_FAILED(res)) return -1;
res = cfguInit();
if (R_FAILED(res)) return -2;
CFGU_GetSystemModel(&model);
if (model =... |
luigoalma/3ds-tuneplayer | source/songview.c | <filename>source/songview.c
#include <3ds.h>
#include <stdio.h>
#include "linkedlist.h"
#define gotoxy(x, y) printf("\033[%d;%dH", (x), (y))
static uint32_t song_number_calc = 0;
void show_playlist(LinkedList *ll, LLNode *current,
PrintConsole *top, PrintConsole *bot, int *f, int *subscroll) {
c... |
luigoalma/3ds-tuneplayer | include/fxhandler.h | <filename>include/fxhandler.h
#include <stdint.h>
#include <stdlib.h>
bool handleFX(uint8_t fxt, uint8_t fxp, const char **p_arg1, char *_arg1, bool isFT); |
luigoalma/3ds-tuneplayer | source/fshelper.c | #include "fshelper.h"
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
extern int __system_argc;
extern char** __system_argv;
// taken part from ctrulib's "romfs_dev.c"
// needed since i needed to access smdh data
// and i don't think lib provides way for that..
#define _3DSX_MAGIC 0x585... |
luigoalma/3ds-tuneplayer | source/player.c | #include "player.h"
#include <3ds.h>
#include <unistd.h>
#include <wchar.h>
#include "fshelper.h"
#include "sndthr.h"
static inline int get_debug_testing_model() {
int model = -1;
#ifdef DEBUG
hidScanInput();
uint32_t h = hidKeysHeld();
if (h & KEY_R) {
model = 0;
printf("Model force 0.... |
luigoalma/3ds-tuneplayer | source/linkedlist.c | // Linkedlist.c made by LiquidFenrir; Thanks.
#include "linkedlist.h"
#include <stdlib.h>
#include <string.h>
LinkedList create_list() {
return (LinkedList){NULL, NULL, 0};
}
void free_list(LinkedList* list) {
if (list) {
LLNode* next = NULL;
LLNode* prev = NULL;
for (LLNode *front = l... |
luigoalma/3ds-tuneplayer | include/fastmode.h | int try_speedup();
|
southseaboy/WLED | wled00/audio_reactive.h | <filename>wled00/audio_reactive.h<gh_stars>0
/*
* This file allows you to add own functionality to WLED more easily
* See: https://github.com/Aircoookie/WLED/wiki/Add-own-functionality
* EEPROM bytes 2750+ are reserved for your custom use case. (if you extend #define EEPSIZE in const.h)
* bytes 2400+ are currently ... |
southseaboy/WLED | wled00/html_ui.h | /*
* Binary array for the Web UI.
* gzip is used for smaller size and improved speeds.
*
* Please see https://kno.wled.ge/advanced/custom-features/#changing-web-ui
* to find out how to easily modify the web UI source!
*/
// Autogenerated from wled00/data/index.htm, do not edit!!
const uint16_t PAGE_index_L = 377... |
southseaboy/WLED | wled00/usermod_touchbrightness.h | /*
usermod_touchbrightness.h
github.com/aircoookie/WLED
Created by <NAME> on 14.09.2020.
Copyright © 2020 NeariX. All rights reserved.
https://github.com/NeariX67/
Discord: @NeariX#4799
modified by <NAME> on 20.11.2020
to include 2nd touch pin for preset cycling
unsure of JK's license conditions so ... |
toma-i/TextAnalizer | src/Exceptions.h | //
// Created by Ivan on 04/02/2018.
//
#ifndef CPPPROJECTS_EXCEPTIONS_H
#define CPPPROJECTS_EXCEPTIONS_H
#endif //CPPPROJECTS_EXCEPTIONS_H
|
junwangInChina/JWBarCharts | JWBarCharts/JWBarCharts/JWBarCharts/JWYAxisView.h | //
// JWYAxisView.h
// JWBarCharts
//
// Created by wangjun on 2018/11/14.
// Copyright © 2018年 wangjun. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface JWYAxisView : UIView
@property (nonatomic, assign) CGFloat maxValue;
@property (nonatomic, assign) NSInteger minValue;
@property (nonatomic, strong) ... |
junwangInChina/JWBarCharts | JWBarCharts/JWBarCharts/JWBarCharts/JWBarChartsCell.h | //
// JWBarChartsCell.h
// JWBarCharts
//
// Created by wangjun on 2018/11/15.
// Copyright © 2018年 wangjun. All rights reserved.
//
#import <UIKit/UIKit.h>
@class JWBarChartsItem;
@interface JWBarChartsCell : UICollectionViewCell
- (void)configItem:(JWBarChartsItem *)item selected:(BOOL)selected;
@end
|
junwangInChina/JWBarCharts | JWBarCharts/JWBarCharts/JWBarCharts/JWBarCharts.h | <gh_stars>0
//
// JWBarCharts.h
// JWBarCharts
//
// Created by wangjun on 2018/11/14.
// Copyright © 2018年 wangjun. All rights reserved.
//
#import "JWBarChartsView.h"
#import "JWBarChartsItem.h"
|
junwangInChina/JWBarCharts | JWBarCharts/JWBarCharts/JWBarCharts/JWBarChartsView.h | //
// JWBarChartsView.h
// JWBarCharts
//
// Created by wangjun on 2018/11/14.
// Copyright © 2018年 wangjun. All rights reserved.
//
#import <UIKit/UIKit.h>
@class JWBarChartsItem;
typedef NS_ENUM(NSInteger, JWBarChartsBarType) {
JWBarChartsBarTypeStacking = 0, /* 多根柱子堆成一根 */
JWBarChartsBarTypeJu... |
junwangInChina/JWBarCharts | JWBarCharts/JWBarCharts/JWBarCharts/JWXSepartorView.h | <reponame>junwangInChina/JWBarCharts<filename>JWBarCharts/JWBarCharts/JWBarCharts/JWXSepartorView.h
//
// JWXSepartorView.h
// JWBarCharts
//
// Created by wangjun on 2018/11/16.
// Copyright © 2018年 wangjun. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface JWXSepartorView : UIView
@property (nonatomic... |
junwangInChina/JWBarCharts | JWBarCharts/JWBarCharts/JWBarCharts/JWBarChartsDefine.h | <reponame>junwangInChina/JWBarCharts
//
// JWBarChartsDefine.h
// JWBarCharts
//
// Created by wangjun on 2018/11/15.
// Copyright © 2018年 wangjun. All rights reserved.
//
#define JW_BARCHARTS_SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define JW_BARCHARTS_SCREEN_HEIGHT ([UIScreen mainScreen... |
junwangInChina/JWBarCharts | JWBarCharts/JWBarCharts/JWBarCharts/JWMaskView.h | <gh_stars>0
//
// JWMaskView.h
// JWBarCharts
//
// Created by wangjun on 2018/11/16.
// Copyright © 2018年 wangjun. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface JWMaskView : UIView
@property (nonatomic, strong) UIFont *maskFont;
@property (nonatomic, strong) UIColor *maskTextColor;
@property (nonat... |
junwangInChina/JWBarCharts | JWBarCharts/JWBarCharts/JWBarCharts/JWBarChartsItem.h | <filename>JWBarCharts/JWBarCharts/JWBarCharts/JWBarChartsItem.h
//
// JWBarChartsItem.h
// JWBarCharts
//
// Created by wangjun on 2018/11/14.
// Copyright © 2018年 wangjun. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface JWBarChartsItem : NSObject
@property (nonatomic, assign, readonly) CGFloat itemVa... |
madstk1/notif | notifd/dbus.c | #include <assert.h>
#include <gio/gio.h>
#include <notifd/dbus.h>
#include <notifd/common.h>
#include <notifd/notification.h>
u32 _ownerID, _regID;
GDBusConnection *_dbusConnection = NULL;
GDBusNodeInfo *_dbusData = NULL;
GError *_error = NULL;
GQueue *notificationQueue;
static const void (* onNotify)(notif_notificat... |
madstk1/notif | notifd/main.c | <gh_stars>0
#include <stdio.h>
#include <string.h>
#include <gio/gio.h>
#include <notifd/dbus.h>
#include <notifd/x11.h>
#include <notifd/notification.h>
void usage() {
printf("notif v" VERSION "\n");
printf("usage: notif [-v]\n");
}
int main(int argc, char **argv) {
if(argc > 1 && !strcmp(argv[1], "-v"))... |
madstk1/notif | notifd/x11.c | <filename>notifd/x11.c
#define XLIB_ILLEGAL_ACCESS
#include <stdio.h>
#include <string.h>
#include <notifd/x11.h>
#include <notifd/dbus.h>
#include <notifd/common.h>
#include <notifd/notification.h>
#include <notifd/config.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include <X11/Xft/Xft.h>... |
madstk1/notif | notifd/notification.c | <filename>notifd/notification.c
#include <stdio.h>
#include <stdlib.h>
#include <notifd/notification.h>
#include <notifd/dbus.h>
#include <notifd/x11.h>
u32 notifCounter = 1;
notif_notification_t *notif_notification_create() {
notif_notification_t *notif = calloc(1, sizeof(notif_notification_t));
if(!notif) ... |
madstk1/notif | notifd/x11.h | <reponame>madstk1/notif<filename>notifd/x11.h
#ifndef NOTIF_X11_H
#define NOTIF_X11_H
#include <gio/gio.h>
#define NOTIF_NAME "notif"
int notif_x11_initialize(void);
void notif_x11_cleanup(void);
void notif_x11_show(void);
void notif_x11_hide(void);
gboolean notif_x11_prepare(GSource *, int *);
gboolean noti... |
madstk1/notif | notifd/common.h | <gh_stars>0
#ifndef NOTIF_COMMON_H
#define NOTIF_COMMON_H
#include <stdint.h>
#include <sys/types.h>
#include <cairo/cairo.h>
#include <X11/Xft/Xft.h>
#ifdef MAX
#undef MAX
#endif
#ifdef MIN
#undef MIN
#endif
#define MAX(a, b) ((a > b) ? a : b)
#define MIN(a, b) ((a < b) ? a : b)
#define MAXSTR(a, b) ... |
madstk1/notif | notifd/config.def.h | <reponame>madstk1/notif
#ifndef NOTIF_CONFIG_H
#define NOTIF_CONFIG_H
#include <notifd/common.h>
static const char * const font = "monospace";
static const bool fontAntialias = true;
static const u32 fontsize = 14;
static const u32 textSpacing = 10;
static const u32 xPadding = 24;
static const u32 yPadding = 24;
st... |
madstk1/notif | notifd/dbus.h | <reponame>madstk1/notif
#include <stdio.h>
#include <stdlib.h>
#include <gio/gio.h>
extern GQueue *notificationQueue;
int notif_dbus_init(void);
int notif_dbus_cleanup(void);
|
madstk1/notif | notifd/notification.h | <gh_stars>0
#ifndef NOTIF_NOTIFICATION_H
#define NOTIF_NOTIFICATION_H
#include <gio/gio.h>
#include <notifd/common.h>
typedef struct {
u32 id;
const char *summary;
const char *body;
double timeout;
} notif_notification_t;
notif_notification_t *notif_notification_create();
void ... |
dbautsch/QtDatasetConverter | QtDatasetConverter/DatasetLoader.h | #pragma once
class DatasetLoader
{
};
|
dbautsch/QtDatasetConverter | QtDatasetConverter/MLClass.h | <gh_stars>0
#pragma once
#include <QList>
class MLEntity;
class MLClass
{
public:
QList < MLEntity > entities;
};
|
dbautsch/QtDatasetConverter | QtDatasetConverter/GeneratedFiles/ui_QtDatasetConverter.h | <reponame>dbautsch/QtDatasetConverter<filename>QtDatasetConverter/GeneratedFiles/ui_QtDatasetConverter.h
/********************************************************************************
** Form generated from reading UI file 'QtDatasetConverter.ui'
**
** Created by: Qt User Interface Compiler version 5.8.0
**
** WARNI... |
dbautsch/QtDatasetConverter | QtDatasetConverter/ImageProcessor.h | #pragma once
class ImageProcessor
{
};
|
dbautsch/QtDatasetConverter | QtDatasetConverter/DatasetEnumerator.h | #pragma once
#include <QThread>
#include <memory>
class MLDataset;
class DatasetEnumerator : public QThread
{
private:
Q_OBJECT
std::shared_ptr < MLDataset > dataset;
QString inputDir;
public:
DatasetEnumerator(QObject * parent = 0);
~DatasetEnumerator();
void SetInputDir(QString inputDir);
protected:
... |
dbautsch/QtDatasetConverter | QtDatasetConverter/DatasetConverter.h | <reponame>dbautsch/QtDatasetConverter
#pragma once
class DatasetConverter
{
};
|
dbautsch/QtDatasetConverter | QtDatasetConverter/MLDataset.h | <gh_stars>0
#pragma once
#include <QList>
class MLClass;
class MLDataset
{
public:
QList < MLClass > classes;
};
|
dbautsch/QtDatasetConverter | QtDatasetConverter/QtDatasetConverter.h | #pragma once
#include <QtWidgets/QMainWindow>
#include <memory>
#include "ui_QtDatasetConverter.h"
#include "DatasetEnumerator.h"
#include "DatasetLoader.h"
#include "DatasetConverter.h"
class QtDatasetConverter : public QMainWindow
{
Q_OBJECT
public:
QtDatasetConverter(QWidget *parent = Q_NULLPTR);
private:
U... |
dbautsch/QtDatasetConverter | QtDatasetConverter/MLEntity.h | <reponame>dbautsch/QtDatasetConverter
#pragma once
class MLEntity
{
};
|
rpuwuh/gnl-war-machine-v2021 | tests/main.c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: ... |
djpohly/swc | libswc/shm.c | <reponame>djpohly/swc<filename>libswc/shm.c
/* swc: libswc/shm.c
*
* Copyright (c) 2013-2020 <NAME>
*
* Based in part upon wayland-shm.c from wayland, which is:
*
* Copyright © 2008 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated doc... |
CarstenHoyer/openFrameworks | examples/templates/allAddonsExample/src/ofApp.h | <gh_stars>10-100
#pragma once
#include "ofMain.h"
#include "ofxOpenCv.h"
#include "ofxNetwork.h"
#include "ofxOsc.h"
#include "ofxXmlSettings.h"
#include "ofxAssimpModelLoader.h"
#include "ofxThreadedImageLoader.h"
#include "ofxKinect.h"
#include "ofxGui.h"
#include "ofxSvg.h"
#include "ofxXmlPoco.h"
class ofApp : pu... |
CarstenHoyer/openFrameworks | libs/openFrameworks/3d/ofEasyCam.h | #pragma once
#include "ofCamera.h"
#include "ofEvents.h"
#include "ofRectangle.h"
#include "glm/gtc/quaternion.hpp"
/// \brief A super simple camera for interacting with objects in 3D space.
class ofEasyCam : public ofCamera {
public:
/// \name Constructor and Destructor
/// \{
/// \brief Create a defau... |
CarstenHoyer/openFrameworks | libs/openFrameworks/types/ofParameter.h | #pragma once
#include "ofEvents.h"
#include "ofConstants.h"
#include "ofPoint.h"
#include "ofColor.h"
#include "ofLog.h"
#include <map>
template<typename ParameterType>
class ofParameter;
template<typename ParameterType, typename Friend>
class ofReadOnlyParameter;
class ofParameterGroup;
//----------------------... |
PervasiveDigital/netmf-interpreter | CLR/Include/TinyCLR_Handler.h | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
///////////////////////////////////////////////////////... |
PervasiveDigital/netmf-interpreter | tools/DisAsmPE/Include/Utilities.h | <gh_stars>100-1000
#ifndef _UTILITIES_H_
#define _UTILITIES_H_
////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft, Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use these files
/... |
PervasiveDigital/netmf-interpreter | DeviceCode/include/CPU_GPIO_decl.h | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
///////////////////////////////////////////////////////... |
PervasiveDigital/netmf-interpreter | DeviceCode/pal/PKCS11/Tokens/stubs/PKCS11_stub.h | <reponame>PervasiveDigital/netmf-interpreter
#include <PKCS11\CryptokiPAL.h>
#ifndef _PKCS11_STUB_H_
#define _PKCS11_STUB_H_ 1
struct PKCS11_Token_stub
{
static CK_RV Initialize();
static CK_RV Uninitialize();
static CK_RV InitializeToken(CK_UTF8CHAR_PTR pPin, CK_ULONG ulPinLen, CK_UTF8CHAR_PTR p... |
PervasiveDigital/netmf-interpreter | DeviceCode/Targets/OS/Win32/lwip_1_4_1_os/arch/TimeoutQueue.h | #pragma once
#include <cstdint>
#include <functional>
#include <utility>
#include <TinySupport.h>
#include <lwip/timers.h>
namespace Microsoft
{
namespace Win32
{
///<summary>Maintains an earliest deadline first ordered queue of timeout timers</summary>
///<remarks>
/// Thi... |
PervasiveDigital/netmf-interpreter | Solutions/STM32F4DISCOVERY/platform_selector.h | <reponame>PervasiveDigital/netmf-interpreter<gh_stars>100-1000
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// This file is part of the Microsoft .NET Micro Framework Porting Kit Code Samples and is unsupported.
// Copyr... |
PervasiveDigital/netmf-interpreter | Test/Native/Src/log/Log.h | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
///////////////////////////////////////////////////////... |
PervasiveDigital/netmf-interpreter | tools/UsbTest/stdafx.h | // stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#include <iostream>
#include <tchar.h>
// TODO: reference additional headers your program requires here
#include <windows.h>
#incl... |
PervasiveDigital/netmf-interpreter | CLR/Libraries/SecurityPkcs11/security_pkcs11.h | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
///////////////////////////////////////////////////////... |
PervasiveDigital/netmf-interpreter | DeviceCode/pal/lwip_1_4_1_os/config/lwipopts.h | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
///////////////////////////////////////////////////////... |
PervasiveDigital/netmf-interpreter | Solutions/Windows/TinyCLR/cmsis_os.h | <filename>Solutions/Windows/TinyCLR/cmsis_os.h
#ifndef _CMSIS_OS_H_
#define _CMSIS_OS_H_
#endif |
PervasiveDigital/netmf-interpreter | tools/DisAsmPE/Include/UnalignedAccess.h | #ifndef _UNALIGNED_ACCESS_H_
#define _UNALIGNED_ACCESS_H_
////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft, Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use these files
// exc... |
PervasiveDigital/netmf-interpreter | tools/UsbTest/excpt.h | <reponame>PervasiveDigital/netmf-interpreter
#pragma once
/*------------------------------------------------------------------------
Exception
------------------------------------------------------------------------*/
class Exception
{
public:
virtual DWORD GetErrorCode() const = 0;
virtual DWOR... |
PervasiveDigital/netmf-interpreter | DeviceCode/Drivers/Display/TX09D71VM1CCA/TX09D71VM1CCA.h | <filename>DeviceCode/Drivers/Display/TX09D71VM1CCA/TX09D71VM1CCA.h
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights... |
PervasiveDigital/netmf-interpreter | tools/scripts/port/Sample/InteropSample/InteropNativeCode/Spot_InteropSample_Native_Microsoft_SPOT_Interop_TestCallback.h | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
///////////////////////////////////////////////////////... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.