repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
patwonder/pbrt-v2-skin | src/shapes/trianglemesh.h | <reponame>patwonder/pbrt-v2-skin
/*
pbrt source code Copyright(c) 1998-2012 <NAME> and <NAME>.
This file is part of pbrt.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
- Redistributions of source... |
patwonder/pbrt-v2-skin | src/multipole/MultipoleProfileCalculator/numutil.h | <reponame>patwonder/pbrt-v2-skin
/*
Copyright(c) 2013-2014 <NAME>.
This file is part of fork of pbrt (pbrt-v2-skin).
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
- Redistributions of source code... |
patwonder/pbrt-v2-skin | src/core/geometry.h |
/*
pbrt source code Copyright(c) 1998-2012 <NAME> and <NAME>.
This file is part of pbrt.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
- Redistributions of source code must retain the above copyr... |
patwonder/pbrt-v2-skin | src/renderers/mcprofile.h |
/*
Copyright(c) 2013-2014 <NAME>.
This file is part of fork of pbrt (pbrt-v2-skin).
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
- Redistributions of source code must retain the above copyright
... |
n4226/SwiftyMetal | Sources/SwiftyMetal-C/include/shaderTypes.h |
#ifndef ShaderTypes_h
#define ShaderTypes_h
#ifdef __METAL_VERSION__
#define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type
#define NSInteger metal::int32_t
#else
#import <Foundation/Foundation.h>
#endif
#include <simd/simd.h>
typedef NS_ENUM(NSInteger, VertexAttribute)
{
VertexAttributePositio... |
n4226/SwiftyMetal | Sources/SwiftyMetal-C/include/argumentBuffers.h |
#ifdef __METAL_VERSION__
#ifndef Header_h
#define Header_h
typedef struct {
render_pipeline_state pipelinestate [[id(MatArgIdPipeline)]];
texture2d<half,access::sample> albedo [[id(MatArgIdAlbedo)]]; // float3
texture2d<half,access::sample> metallic [[id(MatArgIdMetallic)]];
texture2d<half,access::sample> norm... |
akshaykumar23399/DOTS | jmtpfs/src/jmtpfs-0.5/src/mtpFilesystemErrors.h | /*
* mtpFilesystemErrors.h
*
* Author: <NAME>
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 as published by the Free Software Foundation.
*
* This software is distributed in the hope that it will be useful,
* b... |
akshaykumar23399/DOTS | jmtpfs/src/jmtpfs-0.5/src/MtpFuseContext.h | <reponame>akshaykumar23399/DOTS<filename>jmtpfs/src/jmtpfs-0.5/src/MtpFuseContext.h
/*
* MtpFuseContext.h
*
* Author: <NAME>
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 as published by the Free Software Foundati... |
akshaykumar23399/DOTS | jmtpfs/src/jmtpfs-0.5/src/MtpRoot.h | <gh_stars>0
/*
* MtpRoot.h
*
* Author: <NAME>
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 as published by the Free Software Foundation.
*
* This software is distributed in the hope that it will be useful,
* b... |
akshaykumar23399/DOTS | jmtpfs/src/jmtpfs-0.5/src/MtpFile.h | <filename>jmtpfs/src/jmtpfs-0.5/src/MtpFile.h
/*
* MtpFile.h
*
* Author: <NAME>
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 as published by the Free Software Foundation.
*
* This software is distributed in the... |
akshaykumar23399/DOTS | jmtpfs/src/jmtpfs-0.5/src/MtpFolder.h | <gh_stars>0
/*
* MtpFolder.h
*
* Author: <NAME>
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 as published by the Free Software Foundation.
*
* This software is distributed in the hope that it will be useful,
*... |
akshaykumar23399/DOTS | jmtpfs/src/jmtpfs-0.5/src/MtpNode.h | /*
* MtpNode.h
*
* Author: <NAME>
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 as published by the Free Software Foundation.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT A... |
akshaykumar23399/DOTS | jmtpfs/src/jmtpfs-0.5/src/Mutex.h | /*
* Mutex.h
*
* Author: <NAME>
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 as published by the Free Software Foundation.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY... |
akshaykumar23399/DOTS | jmtpfs/src/jmtpfs-0.5/src/MtpLocalFileCopy.h | /*
* MtpLocalFileCopy.h
*
* Author: <NAME>
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 as published by the Free Software Foundation.
*
* This software is distributed in the hope that it will be useful,
* but ... |
akshaykumar23399/DOTS | jmtpfs/src/jmtpfs-0.5/src/MtpStorage.h | /*
* MtpStorage.h
*
* Author: <NAME>
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 as published by the Free Software Foundation.
*
* This software is distributed in the hope that it will be useful,
* but WITHOU... |
akshaykumar23399/DOTS | jmtpfs/src/jmtpfs-0.5/src/TemporaryFile.h | /*
* TempFile.h
*
* Author: <NAME>
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 as published by the Free Software Foundation.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ... |
akshaykumar23399/DOTS | jmtpfs/src/jmtpfs-0.5/src/FuseHeader.h | <reponame>akshaykumar23399/DOTS<gh_stars>0
/*
* FuseHeader.h
*
* Author: <NAME>
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 as published by the Free Software Foundation.
*
* This software is distributed in the... |
akshaykumar23399/DOTS | jmtpfs/src/jmtpfs-0.5/src/MtpLibLock.h | <reponame>akshaykumar23399/DOTS
/*
* MtpLibLock.h
*
* Author: <NAME>
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 as published by the Free Software Foundation.
*
* This software is distributed in the hope that ... |
akshaykumar23399/DOTS | jmtpfs/src/jmtpfs-0.5/src/MtpDevice.h | /*
* MtpDevice.h
*
* Author: <NAME>
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 as published by the Free Software Foundation.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT... |
akshaykumar23399/DOTS | jmtpfs/src/jmtpfs-0.5/src/MtpMetadataCache.h | <reponame>akshaykumar23399/DOTS<gh_stars>0
/*
* MtpMetadataCache.h
*
* Author: <NAME>
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 as published by the Free Software Foundation.
*
* This software is distributed ... |
akshaykumar23399/DOTS | jmtpfs/src/jmtpfs-0.5/src/ConnectedMtpDevices.h | <reponame>akshaykumar23399/DOTS
/*
* ConnectedMtpDevices.h
*
* Author: <NAME>
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 as published by the Free Software Foundation.
*
* This software is distributed in the h... |
akshaykumar23399/DOTS | jmtpfs/src/jmtpfs-0.5/src/MtpNodeMetadata.h | <gh_stars>0
/*
* MtpNoteMetadata.h
*
* Author: <NAME>
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 as published by the Free Software Foundation.
*
* This software is distributed in the hope that it will be usef... |
akshaykumar23399/DOTS | jmtpfs/src/jmtpfs-0.5/src/MtpFilesystemPath.h | /*
* MtpFilesystemPath.h
*
* Author: <NAME>
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 as published by the Free Software Foundation.
*
* This software is distributed in the hope that it will be useful,
* but... |
KittyMac/pony.apple | libapple/libapple-osx/libapple_osx.h | //
// libapple_osx.h
// libapple-osx
//
// Created by <NAME> on 5/4/20.
// Copyright © 2020 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for libapple_osx.
FOUNDATION_EXPORT double libapple_osxVersionNumber;
//! Project version string for libapple_osx.
FOUNDATION_EX... |
KittyMac/pony.apple | libapple/libapple/libapple.h | <reponame>KittyMac/pony.apple<gh_stars>0
//
// libapple.h
// libapple
//
// Created by <NAME> on 5/4/20.
// Copyright © 2020 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for libapple.
FOUNDATION_EXPORT double libappleVersionNumber;
//! Project version string for li... |
KittyMac/pony.apple | libapple/src/libapple.h | //
// libapple.h
// libapple
//
// Created by <NAME> on 4/25/20.
// Copyright © 2020 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
#include "atomics.h"
#include "pony.h"
void pony_retain_actor(pony_ctx_t * ctx, void * obj);
void pony_release_actor(pony_ctx_t * ctx, void * obj);
|
colinw7/CTabWebPage | src/CTabWebPage.h | #ifndef CTabWebPage_H
#define CTabWebPage_H
#include <string>
#include <vector>
#include <map>
class CFile;
class CTabWebPage {
public:
enum class Type {
NONE,
TAB,
ACCORDION,
IMAGE
};
enum class Orientation {
HORIZONTAL,
VERTICAL
};
public:
CTabWebPage();
const Orientation &... |
michalsvento/Digital-electronics_2 | Homeworks/Knightrider/Knightrider/main.c | <filename>Homeworks/Knightrider/Knightrider/main.c
/***********************************************************************
*
* Knightrider leds
* ATmega328P (Arduino Uno), 16 MHz, AVR 8-bit Toolchain 3.6.2
*
* Copyright (c) 2018-2020 <NAME>
* Dept. of Radio Electronics, Brno University of Technology, Czechia
*... |
michalsvento/Digital-electronics_2 | Homeworks/EXAMPLES/PWM/PWM/main.c | <reponame>michalsvento/Digital-electronics_2
/*
* PWM.c
*
* Created: 18. 10. 2020 21:40:52
* Author : Michal
*/
#define LED_D1 PB2
#include <avr/io.h>
#include <avr/interrupt.h>
#include "timer.h"
#include "gpio.h"
int main(void)
{
GPIO_config_output(&DDRB,LED_D1);
GPIO_write_low(&PORTB, LED_D1);
TCCR1A... |
michalsvento/Digital-electronics_2 | Labs/07-uart/07-uart/07-uart/main.c | /***********************************************************************
*
* Analog-to-digital conversion with displaying result on LCD and
* transmitting via UART.
* ATmega328P (Arduino Uno), 16 MHz, AVR 8-bit Toolchain 3.6.2
*
* Copyright (c) 2018-2020 <NAME>
* Dept. of Radio Electronics, Brno University of ... |
michalsvento/Digital-electronics_2 | Homeworks/EXAMPLES/05-segment/05-segment/main.c | /*
* 05-segment.c
*
* Created: 21. 10. 2020 11:12:15
* Author : Michal
*/
#include <avr/io.h>
int main(void)
{
/* Replace with your application code */
while (1)
{
}
}
|
michalsvento/Digital-electronics_2 | Homeworks/Snake2/Snejk/Snejk/main.c | <gh_stars>0
/***********************************************************************
*
* Decimal counter with 7-segment output.
* ATmega328P (Arduino Uno), 16 MHz, AVR 8-bit Toolchain 3.6.2
*
* Copyright (c) 2018-2020 <NAME>
* Dept. of Radio Electronics, Brno University of Technology, Czechia
* This work is lic... |
michalsvento/Digital-electronics_2 | Labs/06-lcd/06-lcd/06-lcd/main.c | <reponame>michalsvento/Digital-electronics_2<filename>Labs/06-lcd/06-lcd/06-lcd/main.c<gh_stars>0
/***********************************************************************
*
* Stopwatch with LCD display output.
* ATmega328P (Arduino Uno), 16 MHz, AVR 8-bit Toolchain 3.6.2
*
* Copyright (c) 2017-2020 <NAME>
* Dept... |
michalsvento/Digital-electronics_2 | Homeworks/Snake/Snake/Snake/segment.h | #ifndef SEGMENT_H
#define SEGMENT_H
/***********************************************************************
*
* Seven-segment display library for AVR-GCC.
* ATmega328P (Arduino Uno), 16 MHz, AVR 8-bit Toolchain 3.6.2
*
* Copyright (c) 2019-2020 <NAME>
* Dept. of Radio Electronics, Brno University of Technology... |
michalsvento/Digital-electronics_2 | Labs/05-segments/05-segment/05-segment/main.c | /***********************************************************************
*
* Decimal counter with 7-segment output.
* ATmega328P (Arduino Uno), 16 MHz, AVR 8-bit Toolchain 3.6.2
*
* Copyright (c) 2018-2020 <NAME>
* Dept. of Radio Electronics, Brno University of Technology, Czechia
* This work is licensed under ... |
shsanek/HRLog | HRLoger/HRLoger/HRViewerViewController.h | //
// ViewController.h
// HRLogViewer
//
// Created by <NAME> on 24/02/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "HRKeyDefine.h"
@class HRLogbookManager;
@class HRLogbook;
HRIntefaceKey(kHRViewerViewControllerOpenNotification);
@interface HRViewerViewController : NS... |
shsanek/HRLog | HRLoger/Pods/HRSocket/HRSocket/HRSocket.h | //
// HRSocket.h
// HRLog
//
// Created by <NAME> on 28/02/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "HRQueue.h"
@class HRSocket;
@protocol HRSocketDelegate <NSObject>
- (void) contentSocket:(HRSocket*) socket;
- (void) socket:(HRSocket*) socket didRecivDa... |
shsanek/HRLog | HRLog/logs/HRLog.h | //
// HRLog.h
// Pods
//
// Created by <NAME> on 21/02/2017.
//
//
#ifndef HRLog_h
#define HRLog_h
#define HRPositionString [NSString stringWithFormat:@"<FILE '%s', ROW %d>",__FILE__,__LINE__]
#define HRCheckErrorLog(error) if (error) {\
HRLog(@"<ERROR IN %@:\n%@",HRPositionString,error);\
\
};
void HRLog(NSStri... |
shsanek/HRLog | HRLoger/HRLoger/AppDelegate.h | //
// AppDelegate.h
// HRLoger
//
// Created by <NAME> on 21/02/2017.
// Copyright © 2017 hr. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
shsanek/HRLog | HRLog/logs/HRLogViewController.h | //
// HRLogView.h
// HRLoger
//
// Created by <NAME> on 21/02/2017.
// Copyright © 2017 hr. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface HRLogViewController : UIViewController
+ (void) setAppName:(NSString*) appName withEmail:(NSString*) email;
+ (void) addGestureShowInWindow:(UIWindow*) window;
@e... |
shsanek/HRLog | HRLog/logs/HRLoger.h | <filename>HRLog/logs/HRLoger.h
//
// HRLoger.h
// HRLoger
//
// Created by <NAME> on 21/02/2017.
// Copyright © 2017 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "HRLog.h"
@class HRLogSession;
@protocol HRLogSessionDelegate <NSObject>
@optional
- (void) logSession:(HRLogSession*) se... |
smokey-edgy/DayZ-ModStarter | DayZModStarter/5_Mission/server.c | modded class MissionServer
{
void MissionServer()
{
/* This message will appear in the server's script.log
and indicates that the mod was loaded on the server side */
Print("DayZModStarter loaded!");
}
}
|
smokey-edgy/DayZ-ModStarter | DayZModStarter/5_Mission/client.c | <reponame>smokey-edgy/DayZ-ModStarter
modded class MissionGameplay
{
void MissionGameplay()
{
}
override void TickScheduler(float timeslice)
{
/* This code runs on the client and should show a system message saying 'Tick'.
This will prove your client side code is running properly. */
GetGame(... |
ludwick/pebble-kexp-now-playing | src/kexp_now_playing_main.c | /*
* Copyright (C) 2015, <NAME>
* Licensed under the terms of the MIT License.
*/
#include <pebble.h>
static Window *window;
static TextLayer *title_text_layer;
static ScrollLayer *current_info_scroll_layer;
static TextLayer *current_info_text_layer;
static GRect bounds;
static char current_info[255] = "--\n--\n-... |
jrahlf/3D-Non-Contact-Laser-Profilometer | xpcc/ext/lpc11xx/cmsis/system_LPC11xx.h | /**************************************************************************//**
* $Id:: $
*
* @file system_LPC11xx.h
* @brief CMSIS Cortex-M0 Device Peripheral Access Layer Header File
* for the NXP LPC11xx Device Series
* @ve... |
jrahlf/3D-Non-Contact-Laser-Profilometer | xpcc/src/xpcc/architecture/platform/arm7/at91/startup/at91_init.c | // coding: utf-8
// ----------------------------------------------------------------------------
/* Copyright (c) 2011, Roboterclub Aachen e.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
... |
jrahlf/3D-Non-Contact-Laser-Profilometer | pc/pcDaemon2/mainwindow.h | <reponame>jrahlf/3D-Non-Contact-Laser-Profilometer
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "myThread.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
Ui::MainWindow *ui;
explicit MainWindow(QWidget *parent = 0);
~Mai... |
jrahlf/3D-Non-Contact-Laser-Profilometer | pc/pcDaemon2/infolog.h | <filename>pc/pcDaemon2/infolog.h
#ifndef INFOLOG_H
#define INFOLOG_H
#include <QMainWindow>
namespace Ui {
class InfoLog;
}
class InfoLog : public QMainWindow
{
Q_OBJECT
public:
explicit InfoLog(QWidget *parent = 0);
~InfoLog();
public slots:
void append(QString);
private:
Ui::InfoLog ... |
jrahlf/3D-Non-Contact-Laser-Profilometer | microcontroller/transform.h | <reponame>jrahlf/3D-Non-Contact-Laser-Profilometer<filename>microcontroller/transform.h
/*
* transform.h
*
* Created on: Jan 23, 2014
* Author: jonas
*/
#ifndef TRANSFORM_H_
#define TRANSFORM_H_
#include "project.h"
struct Transform{
static int mmToEncoder(float mm){
return int(MOTOR_ENC_PER_REV*MOTOR_... |
jrahlf/3D-Non-Contact-Laser-Profilometer | microcontroller/rectangle.h | /*
* rectangle.h
*
* Created on: Feb 1, 2014
* Author: jonas
*/
#ifndef RECTANGLE_H_
#define RECTANGLE_H_
#include "pattern.h"
class Quadrangle{
private:
static int x, y, width, height;
public:
/**
* Units in mm
* @param x
* @param y
* @param width
* @param height
*/
static void configure(... |
jrahlf/3D-Non-Contact-Laser-Profilometer | xpcc/src/xpcc/architecture/platform/cortex_m3/stm32/stm32f2_4/startup/startup.c | <filename>xpcc/src/xpcc/architecture/platform/cortex_m3/stm32/stm32f2_4/startup/startup.c
// coding: utf-8
// ----------------------------------------------------------------------------
/* Copyright (c) 2011, Roboterclub Aachen e.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with ... |
jrahlf/3D-Non-Contact-Laser-Profilometer | microcontroller/control.h | <gh_stars>1-10
/*
* control.h
*
* Created on: Nov 24, 2013
* Author: jonas
*/
#ifndef CONTROL_H_
#define CONTROL_H_
#include "project.h"
#include <xpcc/math/filter/pid.hpp>
template<Axis axis>
class Control{
friend class Control<ALL>;
private:
static volatile int pos_shall;
static volatile int v_is;... |
jrahlf/3D-Non-Contact-Laser-Profilometer | xpcc/src/xpcc/architecture/platform/cortex_m3/stm32/device.h | <gh_stars>1-10
// coding: utf-8
// ----------------------------------------------------------------------------
/* Copyright (c) 2011, Roboterclub Aachen e.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condi... |
jrahlf/3D-Non-Contact-Laser-Profilometer | xpcc/src/xpcc/architecture/platform/avr/atmega/uart/uart_defines.h | // coding: utf-8
// ----------------------------------------------------------------------------
/* Copyright (c) 2011, Roboterclub Aachen e.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:... |
jrahlf/3D-Non-Contact-Laser-Profilometer | microcontroller/securityController.h | /*
* securityController.h
*
* Created on: Dec 28, 2013
* Author: jonas
*/
#ifndef SECURITYCONTROLLER_H_
#define SECURITYCONTROLLER_H_
#include "project.h"
#include "hallSensor.h"
#include "state.h"
template <Axis axis> class HallSensor;
template<Axis axis>
class SecurityController{
public:
template<typ... |
jrahlf/3D-Non-Contact-Laser-Profilometer | xpcc/src/xpcc/architecture/platform/arm7/lpc/device/lpc213x.h | <filename>xpcc/src/xpcc/architecture/platform/arm7/lpc/device/lpc213x.h
/**
* @file lpc21xx.h
* @brief Header file for Philips LPC2131/32/34/36/38
*
*/
#ifndef LPC213x_REGISTERS_H
#define LPC213x_REGISTERS_H
/* Vectored Interrupt Controller (VIC) */
#define VICIRQStatus (*((volatile unsigned long *) ... |
jrahlf/3D-Non-Contact-Laser-Profilometer | microcontroller/motor.h | /*
* motor.h
*
* Created on: Nov 24, 2013
* Author: jonas
*/
#ifndef MOTOR_H_
#define MOTOR_H_
#include "project.h"
#include "control.h"
template<Axis axis>
class Motor {
friend class Control<axis>;
friend class Motor<ALL>;
public:
static bool init();
struct Ext{
/**
* Brakes the motor
*/
s... |
jrahlf/3D-Non-Contact-Laser-Profilometer | microcontroller/quadrangleZigZag.h | <reponame>jrahlf/3D-Non-Contact-Laser-Profilometer
/*
* RectangleZigZag.h
*
* Created on: Jan 18, 2014
* Author: jonas
*/
#ifndef RECTANGLEZIGZAG_H_
#define RECTANGLEZIGZAG_H_
#include "pattern.h"
#include "Trigger.h"
class QuadrangleZigZag{
private:
static int startX, stopX, startY, stopY;
static int s... |
jrahlf/3D-Non-Contact-Laser-Profilometer | microcontroller/control_impl.h | /*
* control.cpp
*
* Created on: Nov 25, 2013
* Author: jonas
*/
#include "project.h"
#include "control.h"
#include "motor.h"
#include "hallSensor.h"
#include "securityController.h"
template<Axis axis>
class Motor;
template<Axis axis>
bool Control<axis>::init(){
Control<axis>::v_is = 0;
Control<axis>:... |
jrahlf/3D-Non-Contact-Laser-Profilometer | microcontroller/state.h | <reponame>jrahlf/3D-Non-Contact-Laser-Profilometer
/*
* state.h
*
* Created on: Dec 30, 2013
* Author: jonas
*/
#ifndef STATE_H_
#define STATE_H_
class State{
public:
static const int INITIALIZING = 0x0;
static const int READY = 0x1;
static const int MOTOR_LIMITED = 0x1<<1;
static const int SCANNING_R... |
jrahlf/3D-Non-Contact-Laser-Profilometer | microcontroller/atof.h | /*
* atof.h
*
* Created on: Jan 3, 2014
* Author: jonas
*/
#ifndef ATOF_H_
#define ATOF_H_
/**
* Takes a pointer to a string and converts the
* first number found into an int and returns it
* If the number is a fractional number, it is expected to
* have exactly 2 decimal digits. The value is multiplie... |
jrahlf/3D-Non-Contact-Laser-Profilometer | microcontroller/Trigger.h | /*
* Trigger.h
*
* Created on: Jan 16, 2014
* Author: jonas
*/
#ifndef TRIGGER_H_
#define TRIGGER_H_
/**
* Used in conjunction with the laser and sends the current
* measurement + position if the stage moved by a certain threshold
*/
class Trigger {
private:
public:
/**
* Should be called from main l... |
jrahlf/3D-Non-Contact-Laser-Profilometer | xpcc/src/xpcc/architecture/platform/arm7/lpc/uart/uart_settings.h | <reponame>jrahlf/3D-Non-Contact-Laser-Profilometer
#ifndef UART_SETTINGS_H
#define UART_SETTINGS_H
#include "lpc24xx_registers.h"
/** Setup for UART-Interface ********************/
/* Settings for 250000 Baud (at 72 MHz)
* UxPCLK setCCLKD4
* UxDLLVAL 0x03
* UxDLMVAL 0x00
* UxDIVMUL 0x21
*
* Setting... |
jrahlf/3D-Non-Contact-Laser-Profilometer | microcontroller/pcInterface.h | <filename>microcontroller/pcInterface.h
/*
* pcInterface.h
*
* Created on: Dec 30, 2013
* Author: jonas
*/
#ifndef PCINTERFACE_H_
#define PCINTERFACE_H_
#include "project.h"
#include "checksum.h"
#ifdef __arm__
#include <xpcc/architecture.hpp>
extern xpcc::stm32::BufferedUsart2 uart;
#endif
static const ... |
jrahlf/3D-Non-Contact-Laser-Profilometer | pc/pcDaemon2/debuglog.h | <filename>pc/pcDaemon2/debuglog.h
#ifndef DEBUGLOG_H
#define DEBUGLOG_H
#include <QMainWindow>
namespace Ui {
class debugLog;
}
class debugLog : public QMainWindow
{
Q_OBJECT
public:
Ui::debugLog *ui;
explicit debugLog(QWidget *parent = 0);
~debugLog();
public slots:
void append(QString);
... |
jrahlf/3D-Non-Contact-Laser-Profilometer | microcontroller/linePattern.h | <gh_stars>1-10
/*
* linePattern.h
*
* Created on: Mar 7, 2014
* Author: jonas
*/
#ifndef LINEPATTERN_H_
#define LINEPATTERN_H_
#include "project.h"
class LinePattern{
public:
static void configure(Point points[2]);
static void sample();
};
#endif /* LINEPATTERN_H_ */
|
jrahlf/3D-Non-Contact-Laser-Profilometer | microcontroller/hallSensor.h | /*
* hallSensor.h
*
* Created on: Dec 23, 2013
* Author: jonas
*/
#ifndef HALLSENSOR_H_
#define HALLSENSOR_H_
//#pragma GCC push_options
//#pragma GCC optimize ("O0")
#include "project.h"
#include "control.h"
template<Axis axis>
class HallSensor{
private:
static volatile bool triggered[2];
static volat... |
jrahlf/3D-Non-Contact-Laser-Profilometer | xpcc/ext/lpc11xx/cmsis/system_LPC11xx.c | /**************************************************************************//**
* $Id:: $
*
* @file system_LPC11xx.c
* @brief CMSIS Cortex-M0 Device Peripheral Access Layer Source File
* for the NXP LPC11xx Device Series
* @ve... |
jrahlf/3D-Non-Contact-Laser-Profilometer | pc/pcDaemon2/slantCorrection.h | <gh_stars>1-10
#pragma once
#include <string>
namespace SlantCorrect{
bool init(std::string);
void correct(double x, double y, double& z);
}
|
jrahlf/3D-Non-Contact-Laser-Profilometer | microcontroller/project.h | <filename>microcontroller/project.h
/*
* project.h
*
* Created on: Dec 29, 2013
* Author: jonas
*/
#ifndef PROJECT_H_
#define PROJECT_H_
enum Axis{
X = 0,
Y = 2,
Z = 4, //unused
ALL
};
struct Point{
int x,y;
};
#ifdef __arm__
#include <xpcc/architecture.hpp>
/**
* position-out, similar to mout, ... |
jrahlf/3D-Non-Contact-Laser-Profilometer | xpcc/tools/bootloader/can/at90can/main.c | <filename>xpcc/tools/bootloader/can/at90can/main.c
// coding: utf-8
// ----------------------------------------------------------------------------
/* Copyright (c) 2010, Roboterclub Aachen e.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are p... |
jrahlf/3D-Non-Contact-Laser-Profilometer | microcontroller/pattern.h | /*
* pattern.h
*
* Created on: Jan 18, 2014
* Author: jonas
*/
#ifndef PATTERN_H_
#define PATTERN_H_
#include "control.h"
#include "project.h"
#include "state.h"
#include "pcInterface.h"
class QuadrangleZigZag;
class Pattern{
static void (*func)(void);
static bool running;
static bool paused;
public:
... |
jrahlf/3D-Non-Contact-Laser-Profilometer | microcontroller/laserInterface.h | <filename>microcontroller/laserInterface.h
/*
* laserInterface.h
*
* Created on: Dec 30, 2013
* Author: jonas
*/
#ifndef LASERINTERFACE_H_
#define LASERINTERFACE_H_
#include "project.h"
class Laser{
public:
class DoubleBuffer{
public:
static unsigned char buf1[LASER_INPUT_BUFFER_SIZE+1];
static uns... |
jrahlf/3D-Non-Contact-Laser-Profilometer | microcontroller/commandHandlers.h | /*
* commandHandlers.h
*
* Created on: Jan 23, 2014
* Author: jonas
*/
#ifndef COMMANDHANDLERS_H_
#define COMMANDHANDLERS_H_
#include <xpcc/architecture.hpp>
#include "project.h"
#include "control.h"
#include "atof.h"
#include "limits.h"
#include "transform.h"
#include "motor.h"
#include "laserInterface.... |
jrahlf/3D-Non-Contact-Laser-Profilometer | xpcc/src/xpcc/architecture/platform/arm7/lpc/device/lpc21xx.h | <reponame>jrahlf/3D-Non-Contact-Laser-Profilometer
/**
* @file lpc21xx.h
* @brief Header file for Philips LPC2114 / LPC2119 / LPC2124 / LPC2129 / LPC2194
*
*/
#ifndef LPC21xx_REGISTERS_H
#define LPC21xx_REGISTERS_H
/* Vectored Interrupt Controller (VIC) */
#define VICIRQStatus (*((volatile unsigned l... |
jrahlf/3D-Non-Contact-Laser-Profilometer | microcontroller/checksum.h | <gh_stars>1-10
/*
* checksum.cpp
*
* Created on: Feb 11, 2014
* Author: jonas
*/
#pragma once
struct Checksum{
/**
* @brief getFor: Returns the checksum for a message
* @param data message the checksum shall be calculated for
* @param length number of characters, the newline character sh... |
jrahlf/3D-Non-Contact-Laser-Profilometer | xpcc/src/xpcc/architecture/platform/cortex_m3/stm32/stm32f3/startup/startup.c | // coding: utf-8
// ----------------------------------------------------------------------------
/* Copyright (c) 2011, Roboterclub Aachen e.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
... |
jrahlf/3D-Non-Contact-Laser-Profilometer | xpcc/src/xpcc/architecture/platform/arm7/lpc/uart/uart.h |
#ifndef UART_BASE_H
#define UART_BASE_H
#include <stdint.h>
/**
* @brief Abstract base class for UART drivers
*
* @date May 2011
* @author <NAME>
*/
class UartInterface
{
public:
/**
* @brief Initialize the hardware
*
* Sets the registers etc.
*
* With the trigger level it is possible to make a tr... |
jrahlf/3D-Non-Contact-Laser-Profilometer | microcontroller/encoder.h | /*
* encoder.h
*
* Created on: Nov 26, 2013
* Author: jonas
*/
#ifndef ENCODER_H_
#define ENCODER_H_
#include <xpcc/architecture.hpp>
namespace Encoder{
/**
* Initializes Timer 2 and Timer 5 to be used to decode quadrature
* encoder signal in 4x decoding
* @return
*/
bool init();
/**
* Zeros the in... |
jrahlf/3D-Non-Contact-Laser-Profilometer | microcontroller/utils.h | <reponame>jrahlf/3D-Non-Contact-Laser-Profilometer<gh_stars>1-10
/*
* utils.h
*
* Created on: Feb 1, 2014
* Author: jonas
*/
#ifndef UTILS_H_
#define UTILS_H_
namespace Utils{
void enableSystick();
void disableSystick();
void startLoggingControl();
/**
* Drives to position (0,0), that is the most lef... |
jrahlf/3D-Non-Contact-Laser-Profilometer | microcontroller/hallSensor_impl.h | /*
* hallSensor_impl.h
*
* Created on: Jan 1, 2014
* Author: jonas
*/
#ifndef HALLSENSOR_IMPL_H_
#define HALLSENSOR_IMPL_H_
#include "project.h"
template<Axis axis>
bool HallSensor<axis>::checkFrontState(){
//coutRaw << "a " << Control<axis>::getIsPosition() - triggeredPosition[0] << endl;
if(Control<ax... |
jrahlf/3D-Non-Contact-Laser-Profilometer | pc/pcDaemon2/myThread.h | #ifndef MYTHREAD_H
#define MYTHREAD_H
#include <QtCore>
class myThread : public QThread{
Q_OBJECT
signals:
void appendDLog(QString);
void appendELog(QString);
void appendILog(QString);
void setX(double);
void setY(double);
void setZ(double);
private slots:
void handleUpdateButton();
... |
jrahlf/3D-Non-Contact-Laser-Profilometer | pc/pcDaemon2/errorlog.h | #ifndef ERRORLOG_H
#define ERRORLOG_H
#include <QMainWindow>
namespace Ui {
class ErrorLog;
}
class ErrorLog : public QMainWindow
{
Q_OBJECT
public:
explicit ErrorLog(QWidget *parent = 0);
~ErrorLog();
public slots:
void append(QString);
private:
Ui::ErrorLog *ui;
};
#endif // ERRORLO... |
jrahlf/3D-Non-Contact-Laser-Profilometer | xpcc/tools/bootloader/can/mcp2515/main.c | <reponame>jrahlf/3D-Non-Contact-Laser-Profilometer<filename>xpcc/tools/bootloader/can/mcp2515/main.c<gh_stars>1-10
// coding: utf-8
// ----------------------------------------------------------------------------
/* Copyright (c) 2010, Roboterclub Aachen e.V.
* All rights reserved.
*
* Redistribution and use in ... |
jrahlf/3D-Non-Contact-Laser-Profilometer | xpcc/src/xpcc/architecture/platform/arm7/common/abort.h | // coding: utf-8
// ----------------------------------------------------------------------------
/* Copyright (c) 2010, Roboterclub Aachen e.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
... |
jrahlf/3D-Non-Contact-Laser-Profilometer | xpcc/src/xpcc/architecture/platform/cortex_m3/stm32/stm32f1/startup/startup.c | <reponame>jrahlf/3D-Non-Contact-Laser-Profilometer
// coding: utf-8
// ----------------------------------------------------------------------------
/* Copyright (c) 2011, Roboterclub Aachen e.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitt... |
jrahlf/3D-Non-Contact-Laser-Profilometer | xpcc/src/xpcc/architecture/platform/arm7/common/constants.h | // coding: utf-8
// ----------------------------------------------------------------------------
/* Copyright (c) 2011, Roboterclub Aachen e.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
... |
jrahlf/3D-Non-Contact-Laser-Profilometer | xpcc/src/xpcc/architecture/platform/cortex_m0/lpc/startup/startup.c | <reponame>jrahlf/3D-Non-Contact-Laser-Profilometer
// coding: utf-8
// ----------------------------------------------------------------------------
/* Copyright (c) 2012, Roboterclub Aachen e.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are p... |
Crest/upload | upload.c | #include <stdio.h>
#include <string.h>
#include <errno.h>
static const int line_max = 200;
int
main(int argc, const char *argv[])
{
FILE *file = NULL;
int status = 0;
if ( argc < 2 ) {
fprintf(stderr, "usage: %s <file>...\n", argv[1]);
return 1;
}
for ( int i = 1; i < argc && !status; i++ ) {
const ... |
Gnaiqing/gStore | Server/Socket.h | <reponame>Gnaiqing/gStore<gh_stars>0
/*
* Socket.h
*
* Created on: 2014-10-14
* Author: hanshuo
*/
#ifndef _SERVER_SOCKET_H
#define _SERVER_SOCKET_H
#include "../Util/Util.h"
class Socket
{
public:
Socket();
~Socket();
bool create();
bool close();
bool bind(const u... |
Gnaiqing/gStore | Trie/Trie.h | /*===========================================================================
* Filename: Trie.h
* Author: <NAME>
* Mail: <EMAIL>
* Last modified 2018-01-15
* Description:
* This data structure is used to extract common prefixes from a given dataset,
* and compress/uncompress the dataset according to those prefi... |
RHQNew/RHQCocoapods | Example/RHQCocoapods/RHQViewController.h | //
// RHQViewController.h
// RHQCocoapods
//
// Created by 倩 on 06/14/2021.
// Copyright (c) 2021 倩. All rights reserved.
//
@import UIKit;
@interface RHQViewController : UIViewController
@end
|
RHQNew/RHQCocoapods | Example/RHQCocoapods/RHQRootViewController.h | //
// RHQRootViewController.h
// RHQCocoapods_Example
//
// Created by 倩 on 2021/6/14.
// Copyright © 2021 倩. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface RHQRootViewController : UINavigationController
@end
NS_ASSUME_NONNULL_END
|
RHQNew/RHQCocoapods | Example/RHQCocoapods/RHQAppDelegate.h | //
// RHQAppDelegate.h
// RHQCocoapods
//
// Created by 倩 on 06/14/2021.
// Copyright (c) 2021 倩. All rights reserved.
//
@import UIKit;
@interface RHQAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
RHQNew/RHQCocoapods | Example/Pods/Target Support Files/Pods-RHQCocoapods_Tests/Pods-RHQCocoapods_Tests-umbrella.h | <gh_stars>0
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
FOUNDATION_EXPORT double Pods_RHQCocoapods_TestsVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_RHQCoc... |
AndrejGajdos/C-assignments | histogram/equalize.c | #include <stdio.h>
#include <stdlib.h>
#include "processing.h"
const size_t INPUT_BUFFER = 1024;
const size_t INPUT_MAX = 255;
void LoadImage(const char *fileName, unsigned char *image, size_t *imgSize);
void SaveImage(const char *fileName, unsigned char *image, size_t imgSize);
/************************************... |
AndrejGajdos/C-assignments | priorityQueue/priority_queue.c | <reponame>AndrejGajdos/C-assignments<gh_stars>0
/*
============================================================================
Name : priority_queue.c
Author : 359234
Copyright : <EMAIL>
Description : Queue logic
==========================================================================... |
AndrejGajdos/C-assignments | base64/myBase64.c | <gh_stars>0
/*
============================================================================
Name : myBase64.c
Author : 359234
Version : 10.3.2010
Copyright : <EMAIL>
Description : Base64 encoding
============================================================================
*/
#in... |
AndrejGajdos/C-assignments | histogram/processing.h | <filename>histogram/processing.h
/** @file processing.h*/
/**
* Compute histogram of the given image
*
* @param [out] hist histogram to compute
* @param [in] img input image
* @param [in] histSize histogram size
* @param [in] imgSize image size
* @return nothing
*... |
AndrejGajdos/C-assignments | histogram/processing.c | <filename>histogram/processing.c<gh_stars>0
/*
============================================================================
Name : processing.c
Author : 359234
Copyright : <EMAIL>
Description : Histogram processing
=========================================================================... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.