repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
P8P-7/core
src/modules/led-strip-controller/include/goliath/led-strip-controller/led_strip_controller.h
<reponame>P8P-7/core #pragma once #include <goliath/i2c.h> #include <cstdint> #include <vector> namespace goliath::led_controller { using LedId = std::uint8_t; using Hue = std::uint8_t; using Saturation = std::uint8_t; using Value = std::uint8_t; using Place = std::uint8_t; enum class Lighti...
P8P-7/core
src/controller/include/goliath/controller/repositories/log_repository.h
#pragma once #include <goliath/foundation.h> #include <boost/log/trivial.hpp> #include <boost/log/core.hpp> #include <boost/log/sinks.hpp> #include <repositories/LogRepository.pb.h> #include <thread> namespace goliath::repositories { class LogRepository : public Repository { public: explicit LogReposi...
P8P-7/core
src/modules/servo/include/goliath/servo/servo_handle.h
#pragma once #include <goliath/foundation.h> #include "dynamixel/Dynamixel.h" /** * @file servo_handle.h * @author Group 7 - Informatica */ namespace goliath::handles { /** * @class goliath::handles::servo_handle * @brief Handle that locks servos */ class ServoHandle : public Handle { p...
P8P-7/core
src/modules/openal/include/goliath/openal/device.h
<reponame>P8P-7/core #pragma once #include <iostream> #include <AL/al.h> #include <AL/alc.h> /** * @file device.h * @author Group 7 - Informatica */ namespace goliath::openal { /** * @class goliath::openal::Device * @brief Base class for any audio device */ class Device { public: ...
P8P-7/core
src/modules/vision/include/goliath/vision/util/vision_utilities.h
#pragma once /** * @file vision_utilities.h * @author Group 7 - Informatica */ namespace goliath::util { /** * @class goliath::util::VisionUtilities * @brief Contains useful utility function for vision calculations */ class VisionUtilities { public: /** * @brief Maps a n...
P8P-7/core
src/controller/include/goliath/controller/commands/queue_command.h
#pragma once #include <thread> #include "command.h" namespace goliath::commands { /** * @class goliath::commands::QueueCommand executes the incoming command in a worker thread. */ class QueueCommand : public Command { public: QueueCommand(const size_t &id, const std::vector<size_t> &req...
P8P-7/core
src/controller/include/goliath/controller/commands/move_arm_command.h
#pragma once #include <goliath/servo.h> #include "basic_command.h" #include "../handles.h" namespace goliath::commands { class MoveArmCommand : public BasicCommand { public: explicit MoveArmCommand(const size_t &id); private: void execute(handles::HandleMap &handles, const proto::Command...
P8P-7/core
src/modules/transitions/include/goliath/transitions/util/transition_utilities.h
#pragma once /** * @file transition_utilities.h * @author Group 7 - Informatica */ namespace goliath::util { /** * @class goliath::util::TransitionUtilities * @brief Contains utilities for transitions */ class TransitionUtilities { public: template<typename T> static T ma...
P8P-7/core
src/controller/include/goliath/controller/commands/shutdown_command.h
<reponame>P8P-7/core<filename>src/controller/include/goliath/controller/commands/shutdown_command.h #pragma once #include "../watcher.h" #include <goliath/zmq-messaging.h> #include <boost/asio/io_service.hpp> #include "basic_command.h" /** * @file shutdown_command.h * @author Group 7 - Informatica */ namespace ...
P8P-7/core
src/modules/vision/include/goliath/vision/webcam.h
#pragma once #include <opencv2/opencv.hpp> #include <boost/optional.hpp> #include <goliath/vision/processors/roi_processor.h> /** * @file webcam.h * @author Group 7 - Informatica */ namespace goliath::vision { /** * @class goliath::vision::Webcam * @brief Wrapper class around VideoCapture */ ...
P8P-7/core
src/controller/include/goliath/controller/command_executor.h
<gh_stars>1-10 #pragma once #include <boost/asio.hpp> #include "command_map.h" #include "handle_map.h" /** * @file command_executor.h * @author Group 7 - Informatica */ using namespace goliath::handles; namespace goliath::commands { /** * @class goliath::commands::CommandExecutor * @brief Takes in ...
P8P-7/core
src/controller/include/goliath/controller/command_map.h
#pragma once #include "command_item.h" #include "commands/command.h" #include "repositories/command_status_repository.h" /** * @file command_map.h * @author Group 7 - Informatica */ namespace goliath::commands { /** * @class goliath::commands::CommandMap * @brief Wrapper around a map storing indexes...
P8P-7/core
src/modules/vision/include/goliath/vision/processors/canny_processor.h
<reponame>P8P-7/core<filename>src/modules/vision/include/goliath/vision/processors/canny_processor.h #pragma once #include "processor.h" /** * @file canny_processor.h * @author Group 7 - Informatica */ namespace goliath::vision { /** * @brief Default kernel size */ const int DEFAULT_CANNY_KERNE...
P8P-7/core
src/modules/i2c/include/goliath/i2c/handles/i2c_bus_handle.h
#pragma once #include <string> #include <goliath/foundation.h> /** * @file i2c_bus_handle.h * @author Group 7 - Informatica */ namespace goliath::handles { class I2cBusHandle : public Handle { public: I2cBusHandle(const size_t &id, const std::string &device); /** * @return path ...
P8P-7/core
src/controller/include/goliath/controller/commands/dance_command.h
#pragma once #include <goliath/servo/wings/wing_command.h> #include <goliath/servo/wings/wing_controller.h> #include <goliath/servo/repositories/wing_state_repository.h> #include <goliath/motor-controller.h> #include "../handles.h" #include "basic_command.h" /** * @file dance_command.h * @author Group 7 - Informat...
P8P-7/core
src/modules/transitions/include/goliath/transitions/methods/eases.h
#pragma once /** * @file eases.h * @author Group 7 - Informatica */ /** * @namespace goliath::transitions::methods * @brief Contains methods for transitioning a phase */ namespace goliath::transitions::methods { double easeInQuad(double value); double easeOutQuad(double value); double easeInOut...
P8P-7/core
src/modules/servo/src/wings/wings/deadzone_transition.h
<gh_stars>1-10 #pragma once #include <goliath/servo.h> namespace goliath::servo { class DeadzoneTransitionController { public: DeadzoneTransitionController( WingController *controller, handles::WingHandle &handle, Direction direction, std...
P8P-7/core
src/controller/include/goliath/controller/commands/basic_command.h
<gh_stars>1-10 #pragma once #include "command.h" namespace goliath::commands { class BasicCommand : public Command { public: BasicCommand(const size_t &id, const std::vector<size_t> &requiredHandles); void run(handles::HandleMap &handles, const proto::CommandMessage &message) override; pr...
kippler/HostsToggler
resource.h
<reponame>kippler/HostsToggler //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by resource.rc // #define IDC_MYICON 2 #define IDD_HBITMAPSAMPLE_DIALOG 102 #define IDM_ABOUT 104 #define IDI_HBITMAPSAMPLE 107 #define IDI_SMALL ...
kippler/HostsToggler
Global.h
#pragma once extern UINT WM_TASKBARCREATED; extern UINT WM_TRAY_NOTIFY; BOOL Tray_NotifyDelete(HWND hWnd, UINT uID); BOOL Tray_NotifyAdd(HWND hWnd, UINT uID, HICON hIcon, LPCTSTR lpszTip); BOOL Tray_NotifyModify(HWND hWnd, UINT uID, HICON hIcon, LPCTSTR lpszTip); BOOL IsFile(LPCTSTR szPathName); BOOL GetFileCRC(LP...
kippler/HostsToggler
stdafx.h
<reponame>kippler/HostsToggler<gh_stars>1-10 #pragma once #ifndef WINVER // Specifies that the minimum required platform is Windows Vista. #define WINVER 0x0600 // Change this to the appropriate value to target other versions of Windows. #endif #ifndef _WIN32_WINNT // Specifies t...
Cydox/DesignAndConstruction
main.c
#include <stdio.h> #include <stdbool.h> #include <math.h> #define PI 3.141592653589 #define PANEL_WIDTH 400 #define PANEL_LENGTH 500 #define C 4 #define RIVET_C 2.1 #define RIVET_SAFETY 0.8 #define BUCKLING_REQUIREMENT 15000 #define FAILURE_REQUIREMENT 30000 typedef struct material{ char* name; double E; double...
Praj41/MergeSort_threads
Timer.h
#pragma once #include <iostream> #include <chrono> class Timer { std::chrono::time_point< std::chrono::high_resolution_clock> StartTimePoint; unsigned int _step; public: Timer() : _step(0) { StartTimePoint = std::chrono::high_resolution_clock::now(); } ~Timer() { auto EndTimePoint ...
Praj41/MergeSort_threads
RNG.h
#include <iostream> #include <chrono> #include <random> long long int* RNG(unsigned int nos = 10, int min = 0, int max = 1000) { std::random_device rd; std::mt19937::result_type seed = rd() ^ ( (std::mt19937::result_type) std::chrono::duration_cast<std::chrono::seconds>( ...
borjaf696/Compact_Flye
src/repeat_graph/repeat_resolver.h
<gh_stars>0 //(c) 2016 by Authors //This file is a part of ABruijn program. //Released under the BSD license (see LICENSE file) //Does the "conventional" resolution of bridged repeats. //Also, classifies edges into unique and repetitive based //on read alignment #pragma once #include "repeat_graph.h" #include "read_...
borjaf696/Compact_Flye
src/repeat_graph/multiplicity_inferer.h
//(c) 2016 by Authors //This file is a part of ABruijn program. //Released under the BSD license (see LICENSE file) #pragma once #include "repeat_graph.h" #include "read_aligner.h" //A simple class that assigns edges multiplicity based on the coverage //and copmutes the mean coverage of all edges class MultiplicityI...
borjaf696/Compact_Flye
src/sequence/Optionk30.h
//(c) 2019 by Authors //This file is a part of ABruijn program. //Released under the BSD license (see LICENSE file) #include <stdio.h> #include <string.h> #include <stdint.h> #include <vector> #include "unistd.h" #include "kmer.h" #include "math.h" #include <iostream> #include <fstream> #include <tuple> #include <sdsl/...
BastienC09/JUCE
extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited JUCE is an open source library subject to commercial or open-source licensing. By using JUCE, you agree to the terms of...
BastienC09/JUCE
modules/juce_gui_basics/windows/juce_TooltipWindow.h
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited JUCE is an open source library subject to commercial or open-source licensing. By using JUCE, you agree to the terms of...
GMahmoud/cartographer_android
src/cartographer/to_string.h
<filename>src/cartographer/to_string.h #ifndef CARTOGRAPHER_CUSTOM_TOSTR #define CARTOGRAPHER_CUSTOM_TOSTR #include <sstream> template <typename T> std::string to_string(const T& value) { std::stringstream ss; ss << value; return ss.str(); } #endif //CARTOGRAPHER_CUSTOM_TOSTR
GMahmoud/cartographer_android
src/cartographer_generic/test_heritage.h
<reponame>GMahmoud/cartographer_android /* * test_header.h * * Created on: Aug 7, 2017 * Author: maghob */ #ifndef SRC_CARTOGRAPHER_GENERIC_TEST_HERITAGE_H_ #define SRC_CARTOGRAPHER_GENERIC_TEST_HERITAGE_H_ #include <cstdarg> #include <string> #include "ceres/internal/port.h" #include <vector> #include "...
GMahmoud/cartographer_android
src/cartographer_generic/test.h
#ifndef SRC_CARTOGRAPHER_GENERIC_TEST_H_ #define SRC_CARTOGRAPHER_GENERIC_TEST_H_ #include "cartographer_generic/test_heritage.h" #include <cmath> #include <string> #include <vector> #include "ceres/crs_matrix.h" #include "ceres/internal/macros.h" #include "ceres/internal/port.h" #include "ceres/iteration_callback.h" ...
GMahmoud/cartographer_android
src/cartographer_generic/sensor_bridge.h
/* * Copyright 2016 The Cartographer Authors * * 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...
GMahmoud/cartographer_android
src/cartographer_generic/map_builder_bridge.h
<gh_stars>1-10 /* * Copyright 2016 The Cartographer Authors * * 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...
GMahmoud/cartographer_android
src/cartographer/sensor/collator.h
/* * Copyright 2016 The Cartographer Authors * * 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...
GMahmoud/cartographer_android
src/cartographer/io/color.h
/* * Copyright 2017 The Cartographer Authors * * 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...
GMahmoud/cartographer_android
src/cartographer/mapping/trajectory_builder.h
<gh_stars>1-10 /* * Copyright 2016 The Cartographer Authors * * 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...
GMahmoud/cartographer_android
src/cartographer_generic_msgs/impl/PointCloud2Iterator.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2013, Open Source Robotics Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of so...
GMahmoud/cartographer_android
src/cartographer_generic/node.h
<filename>src/cartographer_generic/node.h /* * Copyright 2016 The Cartographer Authors * * 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...
GMahmoud/cartographer_android
src/cartographer_generic/trajectory_options.h
<gh_stars>1-10 /* * Copyright 2016 The Cartographer Authors * * 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...
GMahmoud/cartographer_android
src/cartographer_generic_msgs/PointCloud2Iterator.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2013, Open Source Robotics Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of so...
GMahmoud/cartographer_android
src/cartographer/mapping_3d/local_trajectory_builder.h
<reponame>GMahmoud/cartographer_android /* * Copyright 2016 The Cartographer Authors * * 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...
GMahmoud/cartographer_android
src/cartographer_generic/msg_conversion.h
/* * Copyright 2016 The Cartographer Authors * * 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...
heaven-hq/minizip
minizip.c
<reponame>heaven-hq/minizip /* minizip.c Version 2.9.2, February 12, 2020 part of the MiniZip project Copyright (C) 2010-2020 <NAME> https://github.com/nmoinvaz/minizip Copyright (C) 1998-2010 <NAME> https://www.winimage.com/zLibDll/minizip.html This program is distributed under the terms of ...
kenoph/miasm-stuff
tutorial/simplevm/vm.c
#include <stdbool.h> #include <stdio.h> #include <stdint.h> enum Opcode { EXIT = 0, ADDI, GETC, HASH, JNZ, PUTC, SUBM, }; typedef struct Instruction_t { int opcode; int arg0; int arg1; int arg2; } Instruction; #define MEM_SIZE 0x100 #define ADDR_STR 0x00 #define REG_STRLEN 0x09 #defi...
ryancwicks/aravis-rs
aravis-sys/tests/manual.h
// Feel free to edit this file, it won't be regenerated by gir generator unless removed. #include <arv.h> #define ARV_H_INSIDE #include <arvgcstringnode.h> #undef ARV_H_INSIDE
ryancwicks/aravis-rs
aravis-sys/tests/layout.c
// Generated by gir (https://github.com/gtk-rs/gir @ e8f82cf) // from ../gir-files (@ 6f12897) // DO NOT EDIT #include "manual.h" #include <stdalign.h> #include <stdio.h> int main() { printf("%s;%zu;%zu\n", "ArvAcquisitionMode", sizeof(ArvAcquisitionMode), alignof(ArvAcquisitionMode)); printf("%s;%zu;%zu\n", ...
ryancwicks/aravis-rs
aravis-sys/tests/constant.c
// Generated by gir (https://github.com/gtk-rs/gir @ e8f82cf) // from ../gir-files (@ 6f12897) // DO NOT EDIT #include "manual.h" #include <stdio.h> #define PRINT_CONSTANT(CONSTANT_NAME) \ printf("%s;", #CONSTANT_NAME); \ printf(_Generic((CONSTANT_NAME), \ char *: "%s", \ ...
Mandrilux/game_pendu
check.c
/* ** check.c for in /home/baptiste/rendu/game_pendu ** ** Made by ** Login <<EMAIL>> ** ** Started on Sun May 29 18:01:54 2016 ** Last update Thu Jun 2 20:45:18 2016 */ #include "my.h" int count_tab(char **tab) { int i = -1; if (tab == NULL) return (0); while (tab[++i] != NULL); return (i); ...
Mandrilux/game_pendu
init.c
<filename>init.c /* ** init.c for in /home/baptiste/rendu/game_pendu ** ** Made by ** Login <<EMAIL>> ** ** Started on Sun May 29 17:50:12 2016 ** Last update Sun May 29 18:56:55 2016 */ #include "my.h" char *init_word() { int fd; char **tab_word = NULL; char *line; if ((fd = open("word.txt", O_RDONLY)) ...
Mandrilux/game_pendu
main.c
/* ** main.c for in /home/baptiste/rendu/game_pendu ** ** Made by ** Login <<EMAIL>> ** ** Started on Sun May 29 17:48:59 2016 ** Last update Thu Jun 2 20:57:07 2016 */ #include "my.h" int main() { char *word; char *search; char *c; int end; end = 10; if ((word = init_word()) == NULL) { ...
Mandrilux/game_pendu
include/my.h
<reponame>Mandrilux/game_pendu<gh_stars>0 /* ** my.h for in /home/baptiste/project/clean_project ** ** Made by ** Login <<EMAIL>> ** ** Started on Wed May 18 12:49:26 2016 ** Last update Sun May 29 18:42:32 2016 */ #ifndef MY_H_ #define MY_H_ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <t...
Mandrilux/game_pendu
str.c
<reponame>Mandrilux/game_pendu /* ** str.c for in /home/baptiste/rendu/game_pendu ** ** Made by ** Login <<EMAIL>> ** ** Started on Sun May 29 18:00:57 2016 ** Last update Thu Jun 2 21:00:25 2016 */ #include "my.h" char **alloc(char **re_write, char *name) { int i; char **tmp; i = -1; if (re_writ...
jonahisadev/nitrogen
include/Nitrogen/Context.h
#ifndef NITROGEN_CONTEXT_H #define NITROGEN_CONTEXT_H #include <cstdlib> #include <cstring> #include <Nitrogen/Util.h> #include <Nitrogen/List.h> #include <Nitrogen/Token.h> #include <Nitrogen/Compiler.h> #include <Nitrogen/Type.h> namespace Nitrogen { class Context { private: LinkedList<Token*>* tokens; List...
jonahisadev/nitrogen
include/Nitrogen/Type.h
<filename>include/Nitrogen/Type.h #ifndef NITROGEN_TYPE_H #define NITROGEN_TYPE_H #include <cstring> #include <cstdlib> #include <cstdio> #include <Nitrogen/List.h> namespace Nitrogen { struct Type { const char* name; int size; bool primitive; Type(const char* name, int size, bool primitive) { this->...
jonahisadev/nitrogen
include/Nitrogen/LinkedList.h
#ifndef NITROGEN_LINKEDLIST_H #define NITROGEN_LINKEDLIST_H #include <cstdio> namespace Nitrogen { template <class T> struct LinkData { LinkData<T>* parent; LinkData<T>* child; T data; LinkData(LinkData<T>* parent, LinkData<T>* child, T data) { this->parent = parent; this->child = child; this->da...
jonahisadev/nitrogen
include/Nitrogen/Expression.h
#ifndef NITROGEN_EXPRESSION_H #define NITROGEN_EXPRESSION_H #include <Nitrogen/Token.h> #include <Nitrogen/Util.h> #include <Nitrogen/List.h> #include <Nitrogen/Type.h> #include <Nitrogen/Compiler.h> #include <cstdio> namespace Nitrogen { struct ExprNode { ExprNode* parent = nullptr; ExprNode* left = nullptr; ...
jonahisadev/nitrogen
include/Nitrogen/Parser.h
<gh_stars>1-10 #ifndef NITROGEN_PARSER_H #define NITROGEN_PARSER_H #include <cstdio> #include <cstdlib> #include <cstring> #include <Nitrogen/List.h> #include <Nitrogen/Token.h> #include <Nitrogen/Util.h> #include <Nitrogen/Context.h> #include <Nitrogen/LinkedList.h> namespace Nitrogen { class Parser { private: ...
jonahisadev/nitrogen
include/Nitrogen/Util.h
<reponame>jonahisadev/nitrogen<filename>include/Nitrogen/Util.h #ifndef NITROGEN_UTIL_H #define NITROGEN_UTIL_H #include <cstdio> #include <cstdlib> #include <cstring> #define TEMP_BUF_SIZE 256 #define error(...) fprintf(stderr, "\033[1;31m"); fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\033[0m"); exit(1); names...
jonahisadev/nitrogen
include/Nitrogen/Template.h
#ifndef NITROGEN_TEMPLATE_H #define NITROGEN_TEMPLATE_H namespace Nitrogen { static const char* VM_START = R"str(; Auto generated by Nitrogen Compiler ; Do NOT edit! #include "tests/lib/nitrogen.nvm" #section TEXT )str"; static const char* VM_START_END = R"str( call @_main mov ebx erx exit )str"; static c...
jonahisadev/nitrogen
include/Nitrogen/Compiler.h
#ifndef NITROGEN_COMPILER_H #define NITROGEN_COMPILER_H #include <cstdio> #include <cstdlib> #include <Nitrogen/Util.h> #include <Nitrogen/Token.h> #include <Nitrogen/List.h> #include <Nitrogen/Template.h> #include <Nitrogen/Type.h> #include <Nitrogen/Struct.h> #include <Nitrogen/Expression.h> namespace Nitrogen { ...
jonahisadev/nitrogen
include/Nitrogen/Token.h
<reponame>jonahisadev/nitrogen #ifndef NITROGEN_TOKEN_H #define NITROGEN_TOKEN_H #include <Nitrogen/List.h> #include <Nitrogen/LinkedList.h> namespace Nitrogen { enum TokenType { KEYWORD, NUMBER, SPECIAL, OP, EXPR, NAME, ID, TYPE, VAR, // Generic GVAR, // Global PVAR, // Parameter L...
jonahisadev/nitrogen
include/Nitrogen/Struct.h
<reponame>jonahisadev/nitrogen #ifndef NITROGEN_STRUCT_H #define NITROGEN_STRUCT_H #include <cstdio> #include <cstdlib> #include <cstring> #include <Nitrogen/Util.h> #include <Nitrogen/List.h> #include <Nitrogen/Type.h> namespace Nitrogen { class Struct { public: char* name; List<Variable*>* vars; List<Func...
iLambda/ym2612-glue
src/ym2612.c
#include "ym2612.h" uint8_t ym2612_init(uint8_t* cb, uint8_t* cd, uint8_t* db, uint8_t* dd) { // Save buses controlbus = (ymcontrolbus_t*)(void*)cb; controldir = cd; databus = db; datadir = dd; // Direction setup *controldir = 0x00; *datadir = 0x00; // Bus setup controlbus->ic = 1; ...
iLambda/ym2612-glue
inc/ym2612.h
<reponame>iLambda/ym2612-glue #ifndef YM2612_INCLUDE_ #define YM2612_INCLUDE_ #ifndef NULL #define NULL 0 #endif #include <xc.h> #include <stdint.h> #include <stdlib.h> /* * REGISTERS & COMMANDS */ // HARDWARE COMMANDS #define YM2612_CMD_SELREG1 0x08 #define YM2612_CMD_WRTREG1 0x0A #define YM2612...
iHamburg/FZSoundManager
BLCloudStoreSoundManager/BLCloudStoreSoundManager/BLSMessageSoundPlayManager.h
// // BLSMessageSoundPlayManager.h // BLCloudStoreSoundManager // // Created by 张怡清 on 2017/8/16. // Copyright © 2017年 BLS. All rights reserved. // #import <Foundation/Foundation.h> @interface BLSMessageSoundPlayManager : NSObject + (instancetype)sharedInstance; /* * 根据type播放语音文件 */ -(void)playMessageSoundWith...
samuliL/raytracer
src/rtscene.h
<filename>src/rtscene.h #ifndef __RTSCENE_H_INCLUDED__ #define __RTSCENE_H_INCLUDED__ #include "rtcamera.h" #include "rtcanvas.h" #include "rtobjects.h" class RTScene{ private: vector<RTObject*> object_list; //vector<RTLightSource> lights_list; RTCamera camera; public: RTScen...
samuliL/raytracer
src/rtvector.h
#ifndef __RTVECTOR_H_INCLUDED__ #define __RTVECTOR_H_INCLUDED__ #include <iostream> #include <vector> #include <cmath> #include <string> using namespace std; const double PI = 3.14159265; class RTVector { private: double x, y, z; public: double getX() const {return x;} double getY() c...
samuliL/raytracer
src/rtobjects.h
<filename>src/rtobjects.h #ifndef __RTOBJECTS_H_INCLUDED__ #define __RTOBJECTS_H_INCLUDED__ #include "rtvector.h" #include "rgbvalue.h" class RTObject{ protected: RTVector location; double reflectionRate; // value between 0.0 and 1.0, 0.0 - does not reflect light, 1.0 reflects everything R...
samuliL/raytracer
src/rgbvalue.h
#ifndef __RGBVALUE_H_INCLUDED__ #define __RGBVALUE_H_INCLUDED__ using namespace std; class RGBValue { private: unsigned char red, green, blue; public: unsigned char getRed() {return red;} unsigned char getGreen() {return green;} unsigned char getBlue() {return blue;} ...
samuliL/raytracer
src/rtcamera.h
#ifndef __RTCAMERA_H_INCLUDED__ #define __RTCAMERA_H_INCLUDED__ #include "rtvector.h" class RTCamera{ private: RTVector location; RTVector direction; double lensCurvature; // value between 0.0 and 1.0, 0.0 no curvature, 1.0 maximal curvature double lensSize; public: RT...
samuliL/raytracer
src/rtcanvas.h
#ifndef __RTCANVAS_H_INCLUDED__ #define __RTCANVAS_H_INCLUDED__ #include "rgbvalue.h" class RTCanvas{ private: int xSize, ySize; RGBValue *colors; public: int getXSize() {return xSize;} RTCanvas(const int xS, const int yS); ~RTCanvas(); RGBValue *getCol(int x, ...
roddyyaga/ocaml-zmq
zmq/src/msg.h
<reponame>roddyyaga/ocaml-zmq /* * Copyright (c) 2011 <NAME> and contributors */ #ifndef CAML_ZMQ_MSG_H_ #define CAML_ZMQ_MSG_H_ #include <caml/mlvalues.h> #define CAML_ZMQ_Msg_val(v) (*((void **) Data_custom_val(v))) value caml_zmq_copy_msg(void *zmq_msg); #endif /* CAML_ZMQ_MSG_H_ */
roddyyaga/ocaml-zmq
zmq/src/msg.c
/* * Copyright (c) 2011 <NAME> and contributors */ #include "msg.h" #include <caml/custom.h> #include <caml/memory.h> #include <zmq.h> static void custom_finalize_msg(value msg) { if (CAML_ZMQ_Msg_val(msg)) { zmq_msg_close(CAML_ZMQ_Msg_val(msg)); free(CAML_ZMQ_Msg_val(msg)); CAML_ZMQ_M...
roddyyaga/ocaml-zmq
zmq/src/socket.c
<gh_stars>10-100 /* * Copyright (c) 2011 <NAME> and contributors */ #include "socket.h" #include "fail.h" #include <caml/memory.h> #include <caml/custom.h> #include <caml/alloc.h> #include <zmq.h> static void custom_finalize_socket(value socket) { if (CAML_ZMQ_Socket_val(socket)) { fprintf(stderr, "Err...
roddyyaga/ocaml-zmq
zmq/src/poll.h
<filename>zmq/src/poll.h #ifndef CAML_ZMQ_POLL_H_ #define CAML_ZMQ_POLL_H_ #include <caml/mlvalues.h> #include <zmq.h> struct caml_zmq_poll { zmq_pollitem_t *poll_items; int num_elems; }; #define CAML_ZMQ_Poll_val(v) ((struct caml_zmq_poll *) Data_custom_val(v)) value caml_zmq_poll_of_pollitem_array(value ...
roddyyaga/ocaml-zmq
zmq/src/caml_zmq_stubs.c
<gh_stars>10-100 /* * Copyright (C) 2011 <NAME> and contributors */ #include <stdlib.h> #include <stdint.h> #include <string.h> #include <stdio.h> #include <stdbool.h> #include <assert.h> #include <caml/mlvalues.h> #include <caml/alloc.h> #include <caml/fail.h> #include <caml/callback.h> #include <caml/memory.h> #i...
roddyyaga/ocaml-zmq
zmq/src/fail.h
<gh_stars>10-100 /* * Copyright (c) 2011 <NAME> and contributors */ #ifndef CAML_ZMQ_FAIL_H_ #define CAML_ZMQ_FAIL_H_ void caml_zmq_raise(int err_no, const char *err_str, const char *name); void caml_zmq_raise_if(int condition, const char *name); #endif /* CAML_ZMQ_FAIL_H_ */
roddyyaga/ocaml-zmq
zmq/src/poll.c
<gh_stars>10-100 #include "poll.h" #include <caml/memory.h> #include <caml/custom.h> #include <caml/threads.h> #include <caml/fail.h> #include <caml/alloc.h> #include <caml/unixsupport.h> #include "fail.h" #include "socket.h" #include <stdio.h> static void custom_finalize_poll(value poll) { free(CAML_ZMQ_Poll_v...
roddyyaga/ocaml-zmq
zmq/src/socket.h
/* * Copyright (c) 2011 <NAME> and contributors */ #ifndef CAML_ZMQ_SOCKET_H_ #define CAML_ZMQ_SOCKET_H_ #include <caml/mlvalues.h> #define CAML_ZMQ_Socket_val(v) (*((void **) Data_custom_val(v))) value caml_zmq_copy_socket(void *zmq_socket); #endif /* CAML_ZMQ_SOCKET_H_ */
roddyyaga/ocaml-zmq
zmq/src/context.c
<gh_stars>10-100 /* * Copyright (c) 2011 <NAME> and contributors */ #include "context.h" #include <caml/custom.h> #include <caml/memory.h> #include <zmq.h> static void custom_finalize_context(value context) { if (CAML_ZMQ_Context_val(context)) { fprintf(stderr, "Error: Context not closed before finali...
roddyyaga/ocaml-zmq
zmq/src/context.h
/* * Copyright (c) 2011 <NAME> and contributors */ #ifndef CAML_ZMQ_CONTEXT_H_ #define CAML_ZMQ_CONTEXT_H_ #include <caml/mlvalues.h> #define CAML_ZMQ_Context_val(v) (*((void **) Data_custom_val(v))) value caml_zmq_copy_context(void *zmq_context); #endif /* CAML_ZMQ_CONTEXT_H_ */
roddyyaga/ocaml-zmq
zmq/src/fail.c
/* * Copyright (c) 2011 <NAME> and contributors */ #include "fail.h" #include <zmq.h> #include <caml/callback.h> #include <caml/alloc.h> #include <caml/fail.h> #include <caml/memory.h> #include <caml/unixsupport.h> /* This table must be synchronized with Zmq.internal_error. */ static int const caml_zmq_error_tabl...
pniekamp/datum-studio
src/common/qcdoubleslider.h
<gh_stars>1-10 // // QcDoubleSlider // #pragma once #include <QSlider> //---------------- QcDoubleSlider ---------------------- //------------------------------------------------------ class QcDoubleSlider : public QSlider { Q_OBJECT public: QcDoubleSlider(QWidget *parent = 0); QcDoubl...
pniekamp/datum-studio
src/plugins/edit/editorapi.h
<filename>src/plugins/edit/editorapi.h<gh_stars>1-10 // // Editor API // // // Copyright (C) 2016 <NAME> // #pragma once #include "api.h" #if defined(EDITPLUGIN) # define EDITPLUGIN_EXPORT Q_DECL_EXPORT #else # define EDITPLUGIN_EXPORT Q_DECL_IMPORT #endif namespace Studio { //-------------------------- EditorM...
pniekamp/datum-studio
src/plugins/animation/animationview.h
// // Animation View // // // Copyright (C) 2017 <NAME> // #pragma once #include "animation.h" #include "viewport.h" //-------------------------- AnimationView ---------------------------------- //--------------------------------------------------------------------------- class AnimationView : public Viewport { ...
pniekamp/datum-studio
src/plugins/sprite/spriteproperties.h
// // Sprite Properties // // // Copyright (C) 2016 <NAME> // #pragma once #include "spritesheet.h" #include "ui_spriteproperties.h" #include <QDockWidget> //-------------------------- SpriteProperties ------------------------------- //--------------------------------------------------------------------------- cla...
pniekamp/datum-studio
src/common/qcdoublespinbox.h
// // QcDoubleSpinBox // #pragma once #include <QDoubleSpinBox> //---------------- QcDoubleSpinBox --------------------- //------------------------------------------------------ class QcDoubleSpinBox : public QDoubleSpinBox { Q_OBJECT public: QcDoubleSpinBox(QWidget *parent = 0); dou...
pniekamp/datum-studio
include/projectapi.h
#include "../src/plugins/project/projectapi.h"
pniekamp/datum-studio
src/plugins/terrain/terrainmaterial.h
<gh_stars>1-10 // // Terrain Material Build // // // Copyright (C) 2017 <NAME> // #pragma once #include "documentapi.h" #include "datum/math.h" #include "packapi.h" #include <string> //-------------------------- TerrainMaterialDocument ------------------------ //-----------------------------------------------------...
pniekamp/datum-studio
src/plugins/build/buildmanager.h
// // Build Management // // // Copyright (C) 2016 <NAME> // #pragma once #include "api.h" #include "buildapi.h" #include <leap/threadcontrol.h> #include <QDir> #include <QUuid> #include <QThreadPool> class BuildManager; //-------------------------- Builder ---------------------------------------- //--------------...
pniekamp/datum-studio
src/plugins/skybox/skybox.h
// // Skybox Build // // // Copyright (C) 2016 <NAME> // #pragma once #include "documentapi.h" #include "packapi.h" #include <string> //-------------------------- SkyboxDocument --------------------------------- //--------------------------------------------------------------------------- class SkyboxDocument : pu...
pniekamp/datum-studio
src/plugins/animation/animationviewer.h
// // Animation Viewer // // // Copyright (C) 2016 <NAME> // #pragma once #include "documentapi.h" #include "animationview.h" #include "animationproperties.h" #include <QMainWindow> #include <QToolBar> #include <QLabel> #include <QSlider> //-------------------------- AnimationViewer --------------------------------...
pniekamp/datum-studio
src/plugins/skybox/skyboxeditor.h
<filename>src/plugins/skybox/skyboxeditor.h<gh_stars>1-10 // // Skybox Editor // // // Copyright (C) 2016 <NAME> // #pragma once #include "documentapi.h" #include "skyboxview.h" #include "skyboxproperties.h" #include "qcslider.h" #include "qcdoubleslider.h" #include <QMainWindow> #include <QToolBar> //-------------...
pniekamp/datum-studio
src/plugins/pack/packapi.h
// // Pack API // // // Copyright (C) 2016 <NAME> // #pragma once #include "api.h" #include "documentapi.h" #include <fstream> #if defined(PACKPLUGIN) # define PACKPLUGIN_EXPORT Q_DECL_EXPORT #else # define PACKPLUGIN_EXPORT Q_DECL_IMPORT #endif namespace Studio { struct PackerState { uint32_t id; QStr...
pniekamp/datum-studio
src/platform.h
<reponame>pniekamp/datum-studio // // Datum Platform // // // Copyright (C) 2016 <NAME> // #pragma once #include "api.h" #include "datum.h" #include "datum/renderer.h" namespace Studio { class STUDIO_EXPORT Platform : public QObject { Q_OBJECT public: static const uint32_t RenderQueue = 0; ...
pniekamp/datum-studio
include/platform.h
#include "../src/platform.h"
pniekamp/datum-studio
src/plugins/font/fontview.h
// // FontView // // // Copyright (C) 2016 <NAME> // #pragma once #include "font.h" #include <leap/concurrentqueue.h> #include <QAbstractScrollArea> //-------------------------- FontView --------------------------------------- //--------------------------------------------------------------------------- class Font...
pniekamp/datum-studio
src/plugins/particle/particleproperties.h
// // Particle Properties // // // Copyright (C) 2017 <NAME> // #pragma once #include "particlesystem.h" #include "ui_particleproperties.h" #include <QDockWidget> //-------------------------- ParticleProperties ----------------------------- //-------------------------------------------------------------------------...
pniekamp/datum-studio
src/common/viewport.h
<filename>src/common/viewport.h // // Datum Viewport // // // Copyright (C) 2016 <NAME> // #pragma once #include "datum.h" #include "platform.h" #include "documentapi.h" #include <QWidget> //-------------------------- Viewport --------------------------------------- //-----------------------------------------------...