repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
madhupolisetti/iossdk | SMSCountryApi/Classes/BaseResponse.h | //
// BaseResponse.h
// SMSCountryApi
//
// Created by <NAME> on 03/10/16.
// Copyright © 2016 SMS Country. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface BaseResponse: NSObject
@property (nonatomic, strong) NSString *apiId;
@property (nonatomic, strong) NSString *success;
@property (nonatom... |
madhupolisetti/iossdk | SMSCountryApi/Classes/SMSCountryApi.h | <gh_stars>0
//
// SMSCountryApi.h
// Pods
//
// Created by <NAME> on 03/10/16.
// Copyright © 2016 SMS Country. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <RestKit/RestKit.h>
@interface SMSCountryApi : NSObject
@property (nonatomic, strong) NSString *baseUrl;
@property (nonatomic, strong) N... |
madhupolisetti/iossdk | Example/Pods/Target Support Files/SMSCountryApi/SMSCountryApi-umbrella.h | #import <UIKit/UIKit.h>
FOUNDATION_EXPORT double SMSCountryApiVersionNumber;
FOUNDATION_EXPORT const unsigned char SMSCountryApiVersionString[];
|
madhupolisetti/iossdk | SMSCountryApi/Classes/SendSMSRequest.h | //
// SendSMSRequest.h
// SMSCountryApi
//
// Created by <NAME> on 03/10/16.
// Copyright © 2016 SMS Country. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface SendSMSRequest: NSObject
@property (nonatomic, strong) NSString *text;
@property (nonatomic, strong) NSString *number;
@property (nonat... |
H2CO3/yajl-sparkling | yajl_sparkling.c | //
// yajl_sparkling.c
// YAJL bindings for Sparkling
//
// Created by <NAME>
// on 22/02/2015
//
// Licensed under the 2-clause BSD License
//
#include <assert.h>
#include <yajl/yajl_parse.h>
#include <yajl/yajl_gen.h>
#include <spn/ctx.h>
#include <spn/str.h>
// the special 'null' value
static const SpnValue null... |
LuaDist-testing/lua-libmodbus | lua-libmodbus.c | /*
lua-libmodbus.c - Lua bindings to libmodbus
Copyright (c) 2016 <NAME> <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation t... |
LuaDist-testing/lua-libmodbus | compat.h | <reponame>LuaDist-testing/lua-libmodbus<filename>compat.h
#if LUA_VERSION_NUM < 502
# define luaL_newlib(L,l) (lua_newtable(L), luaL_register(L,NULL,l))
# define luaL_setfuncs(L,l,n) (assert(n==0), luaL_register(L,NULL,l))
#endif
|
EwanMcA/GameEngine | BlueMarble/src/BlueMarble/entryPoint.h | <reponame>EwanMcA/GameEngine
#pragma once
#ifdef BM_PLATFORM_WINDOWS
extern BlueMarble::Application* BlueMarble::CreateApplication();
int main(int argc, char** argv)
{
BlueMarble::Log::Init();
BM_CORE_WARN("Init Log");
BM_INFO("Init Log");
auto app = BlueMarble::CreateApplication();
app->Run();
delete app;
... |
EwanMcA/GameEngine | BlueMarble/src/BlueMarble.h | #pragma once
// For use by BlueMarble Applications
#include "BlueMarble/application.h"
#include "BlueMarble/layer.h"
#include "BlueMarble/Log.h"
#include "BlueMarble/ecs.h"
#include "BlueMarble/component.h"
#include "BlueMarble/Core/timeStep.h"
#include "BlueMarble/input.h"
#include "BlueMarble/keyCodes.h"
#includ... |
EwanMcA/GameEngine | Sandbox/src/systems/PlayerInputSystem.h | <reponame>EwanMcA/GameEngine
#pragma once
#include <BlueMarble.h>
#include "components/components.h"
using BlueMarble::Entity;
using BlueMarble::Ref;
class PlayerInputSystem : public BlueMarble::System
{
public:
PlayerInputSystem(std::shared_ptr<BlueMarble::GameCamera> camera)
: oCamera(camera) {}
... |
EwanMcA/GameEngine | BlueMarble/src/Platform/OpenGL/glError.h | <filename>BlueMarble/src/Platform/OpenGL/glError.h
#pragma once
#include <glad/glad.h>
#include <BlueMarble/log.h>
#define GL_CALL(fn) do { BlueMarble::GLClearError(); \
fn;\
BM_CORE_ASSERT(BlueMarble::GLLogCall(#fn, __FILE__, __LINE__), "OpenGL Error: ");\
} while (0)
namespace BlueMarble {
... |
EwanMcA/GameEngine | BlueMarble/src/BlueMarble/input.h | <reponame>EwanMcA/GameEngine
#pragma once
#include "BlueMarble/core.h"
#include "BlueMarble/Renderer/camera.h"
namespace BlueMarble {
class Input
{
public:
inline static bool IsKeyPressed(int keycode) { return cInstance->IsKeyPressedImpl(keycode); }
inline static bool IsMouseButtonPressed(int button) { ret... |
EwanMcA/GameEngine | BlueMarble/src/BlueMarble/Events/keyEvent.h | #pragma once
#include "event.h"
namespace BlueMarble {
class KeyEvent : public Event
{
public:
inline int GetKeyCode() const { return m_KeyCode; }
virtual int GetCategoryFlags() const override {
return (EventCategoryKeyboard | EventCategoryInput);
}
protected:
KeyEvent(int keycode)
: m_KeyCode(key... |
EwanMcA/GameEngine | BlueMarble/src/BlueMarble/Renderer/renderer.h | #pragma once
#include "camera.h"
#include "material.h"
#include "renderCommand.h"
#include "shader.h"
#include "texture.h"
namespace BlueMarble {
class Renderer
{
public:
static void Init();
//TODO take in the rest of the scene parameters
static void BeginScene(Camera& camera);
... |
EwanMcA/GameEngine | BlueMarble/src/BlueMarble/core.h | #pragma once
#include <memory>
#ifdef BM_PLATFORM_WINDOWS
#ifdef BM_BUILD_DLL
#define BLUEMARBLE_API __declspec(dllexport)
#endif
#else
#error BlueMarble currently only supports Windows.
#endif
#ifdef BM_DEBUG
#define BM_ENABLE_ASSERTS
#endif
#ifdef BM_ENABLE_ASSERTS
#define BM_ASSERT(x, ...) { if(!(x)) { BM... |
EwanMcA/GameEngine | Sandbox/src/systems/renderSystem.h | #pragma once
#include <BlueMarble.h>
using BlueMarble::Entity;
using BlueMarble::Ref;
class RenderSystem : public BlueMarble::System
{
public:
RenderSystem(std::shared_ptr<BlueMarble::GameCamera> camera)
: oCamera(camera) {}
virtual ~RenderSystem() = default;
virtual void OnUpdate(BlueMarble::T... |
EwanMcA/GameEngine | BlueMarble/src/Platform/Windows/windowsInput.h | <reponame>EwanMcA/GameEngine
#pragma once
#include "BlueMarble/application.h"
#include "BlueMarble/input.h"
namespace BlueMarble {
class WindowsInput : public Input
{
protected:
virtual bool IsKeyPressedImpl(int keycode) override;
virtual bool IsMouseButtonPressedImpl(int button) override;
virtual st... |
EwanMcA/GameEngine | BlueMarble/src/BlueMarble/application.h | #pragma once
#include "core.h"
#include "Window.h"
#include "BlueMarble/layerStack.h"
#include "BlueMarble/Events/event.h"
#include "BlueMarble/Events/applicationEvent.h"
#include "BlueMarble/Core/timeStep.h"
#include "BlueMarble/ImGui/imGuiLayer.h"
namespace BlueMarble {
class Application
{
public:
Applicati... |
EwanMcA/GameEngine | Sandbox/src/components/components.h | #pragma once
#include <BlueMarble.h>
class MapPositionComponent : public BlueMarble::Component
{
public:
MapPositionComponent(int x, int y)
: oX(x), oY(y) {}
int oX, oY;
};
class PopulationComponent : public BlueMarble::Component
{
public:
PopulationComponent(uint32_t population = 0)
:... |
EwanMcA/GameEngine | BlueMarble/src/Platform/OpenGL/openGLBuffer.h | #pragma once
#include "BlueMarble/Renderer/buffer.h"
namespace BlueMarble {
class OpenGLVertexBuffer : public VertexBuffer
{
public:
OpenGLVertexBuffer(float* vertices, uint32_t size);
virtual ~OpenGLVertexBuffer();
virtual void Bind() const override;
virtual void Unbind(... |
EwanMcA/GameEngine | BlueMarble/src/Platform/OpenGL/openGLVertexArray.h | #pragma once
#include "BlueMarble/Renderer/vertexArray.h"
namespace BlueMarble {
class OpenGLVertexArray : public VertexArray
{
public:
OpenGLVertexArray();
virtual ~OpenGLVertexArray();
virtual void Bind() const override;
virtual void Unbind() const override;
vi... |
EwanMcA/GameEngine | BlueMarble/src/BlueMarble/Core/timeStep.h | <gh_stars>1-10
#pragma once
namespace BlueMarble {
class TimeStep
{
public:
TimeStep(float time = 0.0f)
: oTime(time)
{}
operator float() const { return oTime; }
float GetSeconds() const { return oTime; }
float GetMilliseconds() const { return oTime * ... |
EwanMcA/GameEngine | BlueMarble/src/BlueMarble/mouseCodes.h | #pragma once
// From glfw3.h
#define BM_MOUSE_BUTTON_1 0
#define BM_MOUSE_BUTTON_2 1
#define BM_MOUSE_BUTTON_3 2
#define BM_MOUSE_BUTTON_4 3
#define BM_MOUSE_BUTTON_5 4
#define BM_MOUSE_BUTTON_6 5
#define BM_MOUSE_BUTTON_7 6
#define BM_MOUSE_BUTTON_8 7
#d... |
EwanMcA/GameEngine | BlueMarble/src/Platform/OpenGL/openGLMaterial.h | #pragma once
#include <map>
#include "BlueMarble/Renderer/material.h"
#include "Platform/OpenGL/openGLShader.h"
#include "Platform/OpenGL/openGLTexture.h"
namespace BlueMarble {
class OpenGLMaterial : public Material
{
public:
OpenGLMaterial(Ref<OpenGLShader> shader)
: oShader(shade... |
EwanMcA/GameEngine | BlueMarble/src/BlueMarble/ImGui/imGuiLayer.h | #pragma once
#include "BlueMarble/layer.h"
#include "BlueMarble/Events/applicationEvent.h"
#include "BlueMarble/Events/keyEvent.h"
#include "BlueMarble/Events/mouseEvent.h"
namespace BlueMarble {
class ImGuiLayer : public Layer
{
public:
ImGuiLayer();
~ImGuiLayer();
virtual void OnAttach() override;
virt... |
EwanMcA/GameEngine | BlueMarble/src/BlueMarble/ecs.h | #pragma once
#include "Core/timeStep.h"
#include "entity.h"
#include <vector>
namespace BlueMarble {
class System
{
public:
System() = default;
virtual ~System() = default;
virtual void OnUpdate(TimeStep ts, std::vector<Ref<Entity>>& entities) = 0;
};
class EntityCompon... |
EwanMcA/GameEngine | BlueMarble/src/BlueMarble/layer.h | <filename>BlueMarble/src/BlueMarble/layer.h
#pragma once
#include "BlueMarble/core.h"
#include "BlueMarble/Events/event.h"
#include "BlueMarble/Core/timeStep.h"
namespace BlueMarble {
class Layer
{
public:
Layer(const std::string& name = "Layer");
virtual ~Layer();
virtual void OnAttach() {}
virtual void... |
EwanMcA/GameEngine | Sandbox/src/systems/territorySystem.h | #pragma once
#include <BlueMarble.h>
using BlueMarble::Entity;
using BlueMarble::Ref;
class TerritorySystem : public BlueMarble::System
{
public:
TerritorySystem(std::shared_ptr<BlueMarble::GameCamera> camera)
: oCamera(camera) {}
virtual ~TerritorySystem() = default;
virtual void OnUpdate(Blue... |
EwanMcA/GameEngine | BlueMarble/src/BlueMarble/component.h | #pragma once
#include <atomic>
#include <vector>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "BlueMarble/Renderer/material.h"
#include "BlueMarble/Renderer/vertexArray.h"
namespace BlueMarble {
extern std::atomic<uint32_t> TypeIdCounter;
template <typename T>
int GetType... |
EwanMcA/GameEngine | BlueMarble/src/BlueMarble/Events/applicationEvent.h | #pragma once
#include "Event.h"
namespace BlueMarble {
class WindowResizeEvent : public Event
{
public:
WindowResizeEvent(unsigned int width, unsigned int height)
: oWidth(width), oHeight(height) {}
inline unsigned int GetWidth() const { return oWidth; }
inline unsigned int GetHeight() const { return oH... |
EwanMcA/GameEngine | BlueMarble/src/Platform/OpenGL/OpenGLRendererAPI.h | #pragma once
#include "BlueMarble/Renderer/RendererAPI.h"
namespace BlueMarble {
class OpenGLRendererAPI : public RendererAPI
{
public:
virtual void Init() override;
virtual void SetClearColor(const glm::vec4& color) override;
virtual void Clear() override;
virtual vo... |
EwanMcA/GameEngine | BlueMarble/src/BlueMarble/Renderer/camera.h | #pragma once
#include "BlueMarble/Core/timeStep.h"
#include <glm/glm.hpp>
namespace BlueMarble {
class Camera
{
public:
Camera(glm::mat4 projectionMatrix, glm::mat4 viewMatrix)
: oProjectionMatrix(projectionMatrix), oViewMatrix(viewMatrix)
{
oPVMatrix = oProject... |
EwanMcA/GameEngine | BlueMarble/src/BlueMarble/keyCodes.h | #pragma once
// From glfw3.h
#define BM_KEY_SPACE 32
#define BM_KEY_APOSTROPHE 39 /* ' */
#define BM_KEY_COMMA 44 /* , */
#define BM_KEY_MINUS 45 /* - */
#define BM_KEY_PERIOD 46 /* . */
#define BM_KEY_SLASH 47 /* / */
#define BM_KEY_0 ... |
EwanMcA/GameEngine | Sandbox/src/gameLayer.h | #pragma once
#include <BlueMarble.h>
#include "imgui/imgui.h"
#include "imgui/misc/cpp/imgui_stdlib.h"
#include "glm/gtc/matrix_transform.hpp"
#include "glm/gtc/type_ptr.hpp"
class GameLayer : public BlueMarble::Layer
{
public:
GameLayer(const uint32_t xCount,
const uint32_t yCount,
... |
EwanMcA/GameEngine | Sandbox/src/mapLayer.h | <reponame>EwanMcA/GameEngine<filename>Sandbox/src/mapLayer.h
#pragma once
#include <BlueMarble.h>
class MapLayer : public BlueMarble::Layer
{
public:
enum MODE {
PLAYING = 0,
EDITING = 1
};
enum DATA_LAYER {
HEIGHT = 0,
MOISTURE = 1,
HEAT = 2
};
enum EDIT... |
EwanMcA/GameEngine | Sandbox/src/city.h | <gh_stars>1-10
#pragma once
#include <BlueMarble.h>
#include "components/components.h"
using BlueMarble::Ref;
class City : public BlueMarble::Entity
{
public:
City(uint32_t playerID, uint32_t initialPop, glm::vec3& position = glm::vec3(0))
{
auto va = BlueMarble::Ref<BlueMarble::VertexArray>(BlueMar... |
EwanMcA/GameEngine | Sandbox/src/systems/citySystem.h | #pragma once
#include <BlueMarble.h>
using BlueMarble::Entity;
using BlueMarble::Ref;
class CitySystem : public BlueMarble::System
{
public:
CitySystem(std::shared_ptr<BlueMarble::GameCamera> camera)
: oCamera(camera) {}
virtual ~CitySystem() = default;
virtual void OnUpdate(BlueMarble::TimeSte... |
EwanMcA/GameEngine | BlueMarble/src/BlueMarble/Renderer/RenderCommand.h | <reponame>EwanMcA/GameEngine
#pragma once
#include "RendererAPI.h"
namespace BlueMarble {
class RenderCommand
{
public:
inline static void Init()
{
cRendererAPI->Init();
}
inline static void SetClearColor(const glm::vec4& color)
{
cRender... |
EwanMcA/GameEngine | Sandbox/src/sandbox.h | <reponame>EwanMcA/GameEngine
#pragma once
#include <BlueMarble.h>
#include "gameLayer.h"
#include "mapLayer.h"
#include "systems/renderSystem.h"
#include "systems/citySystem.h"
#include "systems/playerInputSystem.h"
#include "systems/territorySystem.h"
#define X_VERTICES 256
#define Y_VERTICES 256
class Sandbox : p... |
EwanMcA/GameEngine | BlueMarble/src/Platform/OpenGL/openGLTexture.h | <reponame>EwanMcA/GameEngine
#pragma once
#include "BlueMarble/core.h"
#include "BlueMarble/Renderer/texture.h"
namespace BlueMarble {
class OpenGLTexture2D : public Texture2D
{
public:
OpenGLTexture2D(const std::string& path);
virtual ~OpenGLTexture2D();
virtual uint32_t Get... |
EwanMcA/GameEngine | BlueMarble/src/BlueMarble/Events/mouseEvent.h | <reponame>EwanMcA/GameEngine
#pragma once
#include "event.h"
namespace BlueMarble {
class MouseMoveEvent : public Event
{
public:
MouseMoveEvent(float x, float y)
: oMouseX(x), oMouseY(y) {}
inline float GetX() const { return oMouseX; }
inline float GetY() const { return oMouseY; }
std::string ToStri... |
EwanMcA/GameEngine | BlueMarble/src/BlueMarble/Renderer/material.h | <filename>BlueMarble/src/BlueMarble/Renderer/material.h<gh_stars>1-10
#pragma once
#include "shader.h"
#include "texture.h"
#include <string>
#include "glm/glm.hpp"
namespace BlueMarble {
class Material
{
public:
virtual ~Material() = default;
static Material* Create(Ref<Shader> shader)... |
EwanMcA/GameEngine | BlueMarble/src/BlueMarble/Events/event.h | #pragma once
#include "bmpch.h"
#include "BlueMarble/core.h"
namespace BlueMarble {
enum class EventType
{
None = 0,
MousePress,
MouseRelease,
MouseMove,
MouseScroll,
KeyPress,
KeyRelease,
KeyType,
WindowClose,
WindowFocus,
WindowResize,
WindowLostFocus,
WindowMove
};
enum EventCategor... |
EwanMcA/GameEngine | BlueMarble/src/BlueMarble/log.h | <reponame>EwanMcA/GameEngine
#pragma once
#include "core.h"
#include "spdlog/spdlog.h"
#include "spdlog/fmt/ostr.h"
namespace BlueMarble {
class Log
{
public:
static void Init();
inline static std::shared_ptr<spdlog::logger>& GetCoreLogger() { return cCoreLogger; }
inline static std::shared_ptr<spdlog::log... |
EwanMcA/GameEngine | BlueMarble/src/BlueMarble/window.h | <gh_stars>1-10
#pragma once
#include "bmpch.h"
#include "BlueMarble/Core.h"
#include "BlueMarble/Events/Event.h"
namespace BlueMarble {
struct WindowProps
{
std::string Title;
unsigned int Width;
unsigned int Height;
WindowProps(const std::string& title = "BlueMarble Engine",
unsigned int width = 1600... |
EwanMcA/GameEngine | BlueMarble/src/BlueMarble/terrain.h | #pragma once
#include <memory>
#include <vector>
#include "BlueMarble/entity.h"
#include "BlueMarble/Renderer/shader.h"
#include "BlueMarble/Renderer/vertexArray.h"
#include "BlueMarble/Renderer/texture.h"
namespace BlueMarble {
class BMPHeightMap
{
public:
BMPHeightMap(const std::string& path);
... |
EwanMcA/GameEngine | BlueMarble/src/BlueMarble/layerStack.h | <filename>BlueMarble/src/BlueMarble/layerStack.h
#pragma once
#include "BlueMarble/core.h"
#include "layer.h"
#include <vector>
namespace BlueMarble {
class LayerStack
{
public:
LayerStack();
~LayerStack();
void PushLayer(Layer* layer);
void PushOverlay(Layer* overlay);
void PopLayer(Layer* layer);
... |
EwanMcA/GameEngine | BlueMarble/src/BlueMarble/entity.h | <filename>BlueMarble/src/BlueMarble/entity.h<gh_stars>1-10
#pragma once
#include <map>
#include "component.h"
namespace BlueMarble {
class Entity
{
public:
Entity(long id = 0) : oID(id) {}
virtual ~Entity() = default;
long GetID() { return oID; }
template <typename T>
... |
erikalveflo/parallella-remapper | include/pcg.h | <filename>include/pcg.h
#pragma once
#include <stdint.h>
// *Really* minimal PCG32 code / (c) 2014 <NAME> / pcg-random.org
// Licensed under Apache License 2.0 (NO WARRANTY, etc. see website)
typedef struct { uint64_t state; uint64_t inc; } pcg32_random_t;
#define PCG32_INITIALIZER { 0x853c49e6748fea9bULL... |
erikalveflo/parallella-remapper | src/remapping.c | #include "remapping.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
// A function pointer to a comparison function used when sorting a list.
typedef e_bool_t (*w_compare_func_t)(w_list_element_t, w_list_element_t);
///////////////////////////////////////... |
erikalveflo/parallella-remapper | include/remapping.h | <filename>include/remapping.h
#pragma once
#include "pcg.h"
#include <e-hal.h>
#include <e-loader.h>
// Used for documentation purposes to brand functions that can fail.
typedef int w_error_code_t;
typedef uint16_t w_matrix_element_t;
typedef uint16_t w_list_element_t;
typedef uint16_t w_core_id_t;
typed... |
erikalveflo/parallella-remapper | example/ping-pong/shared.h | <gh_stars>0
#pragma once
#define _MAILBOX_ADDRESS 0x7000u
typedef struct {
char ping;
char pong;
} Mailbox;
|
erikalveflo/parallella-remapper | example/links/shared.h | <filename>example/links/shared.h
#pragma once
#define _MAILBOX_ADDRESS 0x7000u
typedef struct {
char counter;
char go;
char done;
unsigned int next_mailbox; // Don't use a Mailbox pointer here.
} Mailbox;
|
erikalveflo/parallella-remapper | example/links/e_main.c | <filename>example/links/e_main.c<gh_stars>0
#include "e_lib.h"
#include "shared.h"
int main(void)
{
volatile Mailbox *mailbox;
volatile Mailbox *next;
mailbox = (Mailbox *)_MAILBOX_ADDRESS;
next = (Mailbox *)mailbox->next_mailbox;
while (mailbox->go == 0) {}
next->counter = mailbox->counter + 1... |
erikalveflo/parallella-remapper | example/ping-pong/e_main.c | <filename>example/ping-pong/e_main.c
#include "e_lib.h"
#include "shared.h"
int main(void)
{
volatile Mailbox *mailbox;
mailbox = (Mailbox *)_MAILBOX_ADDRESS;
while (mailbox->ping == 0) {}
mailbox->pong = 1;
return 0;
}
|
erikalveflo/parallella-remapper | example/links/main.c | //
// Links example.
//
// Copyright (c) 2015, <NAME>.
//
#include <stdlib.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/time.h>
#include <stdint.h>
#include <math.h>
#include <assert.h>
#include <e-hal.h>
#include <e-loader.h>
#include <remapping.... |
felixerdy/circuitpython | supervisor/shared/external_flash/external_flash.c | <reponame>felixerdy/circuitpython
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2016, 2017 <NAME> for Adafruit Industries
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated do... |
felixerdy/circuitpython | ports/raspberrypi/common-hal/nvm/ByteArray.c | /*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2020 microDev
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software... |
felixerdy/circuitpython | shared-bindings/bitmaptools/__init__.c | <reponame>felixerdy/circuitpython
/*
* This file is part of the Micro Python project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softw... |
felixerdy/circuitpython | ports/raspberrypi/boards/pimoroni_tiny2040/mpconfigboard.h | <filename>ports/raspberrypi/boards/pimoroni_tiny2040/mpconfigboard.h<gh_stars>0
#define MICROPY_HW_BOARD_NAME "Pimoroni Tiny 2040"
#define MICROPY_HW_MCU_NAME "rp2040"
#define MICROPY_HW_LED_R (&pin_GPIO18)
#define MICROPY_HW_LED_G (&pin_GPIO19)
#define MICROPY_HW_LED_B (&pin_GPIO20)
#define MICROPY_HW_USER_SW (&pin_... |
felixerdy/circuitpython | shared-module/bitops/__init__.c | <reponame>felixerdy/circuitpython<gh_stars>0
/*
* This file is part of the Circuit Python project, https://github.com/adafruit/circuitpython
*
* The MIT License (MIT)
*
* Copyright (c) 2021 <NAME> for Adafruit Industries
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this ... |
felixerdy/circuitpython | ports/raspberrypi/common-hal/audiobusio/I2SOut.c | <reponame>felixerdy/circuitpython
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2021 <NAME> for Adafruit Industries
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated document... |
felixerdy/circuitpython | ports/raspberrypi/boards/adafruit_feather_rp2040/mpconfigboard.h | #define MICROPY_HW_BOARD_NAME "Adafruit Feather RP2040"
#define MICROPY_HW_MCU_NAME "rp2040"
#define MICROPY_HW_NEOPIXEL (&pin_GPIO16)
#define DEFAULT_I2C_BUS_SCL (&pin_GPIO3)
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO2)
#define DEFAULT_SPI_BUS_SCK (&pin_GPIO18)
#define DEFAULT_SPI_BUS_MOSI (&pin_GPIO19)
#define DEFAULT... |
felixerdy/circuitpython | shared-module/displayio/TileGrid.c | /*
* This file is part of the Micro Python project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2018 <NAME> for Adafruit Industries
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to ... |
felixerdy/circuitpython | shared-module/adafruit_bus_device/SPIDevice.c | <filename>shared-module/adafruit_bus_device/SPIDevice.c
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2020 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentat... |
felixerdy/circuitpython | ports/raspberrypi/boards/raspberry_pi_pico/mpconfigboard.h | <filename>ports/raspberrypi/boards/raspberry_pi_pico/mpconfigboard.h
// LEDs
// #define MICROPY_HW_LED_STATUS (&pin_PA17)
#define MICROPY_HW_BOARD_NAME "Raspberry Pi Pico"
#define MICROPY_HW_MCU_NAME "rp2040"
// #define DEFAULT_I2C_BUS_SCL (&pin_PA23)
// #define DEFAULT_I2C_BUS_SDA (&pin_PA22)
// #define DEFAULT_S... |
felixerdy/circuitpython | shared-module/bitmaptools/__init__.c | /*
* This file is part of the Micro Python project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software ... |
felixerdy/circuitpython | supervisor/shared/display.c | /*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2019 <NAME> for Adafruit Industries
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to d... |
felixerdy/circuitpython | ports/raspberrypi/boards/pimoroni_picosystem/mpconfigboard.h | #define MICROPY_HW_BOARD_NAME "Pimoroni PicoSystem"
#define MICROPY_HW_MCU_NAME "rp2040"
#define MICROPY_HW_VBUS_DETECT (&pin_GPIO2)
#define MICROPY_HW_LCD_RESET (&pin_GPIO4)
#define MICROPY_HW_LCD_CS (&pin_GPIO5)
#define MICROPY_HW_LCD_SCLK (&pin_GPIO6)
#define MICROPY_HW_LCD_MOSI (&pin_GPIO7)
#define MICROPY_HW_LCD... |
felixerdy/circuitpython | py/builtinevex.c | <reponame>felixerdy/circuitpython<filename>py/builtinevex.c
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* SPDX-FileCopyrightText: Copyright (c) 2013, 2014 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this ... |
jonas054/printelbrot | mandelbrot.c | <gh_stars>1-10
#if 0
gcc -pthread -O2 -o mandelbrot mandelbrot.c && ./mandelbrot "$@"
exit
#endif
// Good spots:
// X:-2.349932e-01 Y:8.281560e-01 S:2.622605e-07 M:4644
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <sys/ioctl.h>
#include <unistd.h>
int wi... |
605294156/XCModuleManager | XCModuleManager/XCModuleManager.h | //
// XCModuleManager.h
//
//
// Created by XiaoCheng on 05/08/2019.
// Copyright © 2019 赵思集团. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@import UIKit;
@protocol XCModule <UIApplicationDelegate>
@end
@interface XCModuleManager : NSObject<UIApplicationDelegate>
+ (insta... |
hananiahhsu/OpenCAD | XUXUCAM/CamCores/CamGeneration/cam_xmloutput.h | #ifndef CAM_XMLOUTPUT_H
#define CAM_XMLOUTPUT_H
/*
************************************
*** @<NAME>
*** @2017.05.10
*** @NanJing,China
*** @<EMAIL>
************************************
*/
#endif // CAM_XMLOUTPUT_H
|
hananiahhsu/OpenCAD | XUXUCAM/CamCores/CamEng/cam_pen.h | #ifndef CAM_PEN_H
#define CAM_PEN_H
/*
************************************
*** @<NAME>
*** @2017.05.10
*** @NanJing,China
*** @<EMAIL>
************************************
*/
class Cam_Pen
{
public:
Cam_Pen() {}
virtual~Cam_Pen();
public:
};
... |
hananiahhsu/OpenCAD | XUXUCAM/CamCores/CamEng/cam_entity.h | #ifndef CAM_ENTITY_H
#define CAM_ENTITY_H
#include "CamCores/CamEng/cam_entity_container.h"
#include "CamCores/CamEng/cam_vector.h"
/*
************************************
*** @<NAME>
*** @2017.05.10
*** @NanJing,China
*** @<EMAIL>
************************************
*/
//Abstr virtual Class(interf... |
hananiahhsu/OpenCAD | XUXUCAM/CamCores/CamEng/cam_layerlist.h | #ifndef CAM_LAYERLIST_H
#define CAM_LAYERLIST_H
/*
************************************
*** @<NAME>
*** @2017.05.10
*** @NanJing,China
*** @<EMAIL>
************************************
*/
class Cam_LayerList
{
public:
Cam_LayerList() {}
virtual ~Cam_LayerList();
public:
... |
hananiahhsu/OpenCAD | XUXUCAM/CamCores/CamEng/cam_math.h | #ifndef CAM_MATH_H
#define CAM_MATH_H
#include <vector>
class Cam_Vector;
//class RS_VectorSolutions;
class QString;
class Cam_Math {
private:
Cam_Math() = delete;
public:
static int round(double v);
static double pow(double x, double y);
static Cam_Vector pow(Cam_Vector x, double y);... |
hananiahhsu/OpenCAD | XUXUCAM/dxfSrc/dl_creationadapter.h | /****************************************************************************
** $Id: dl_creationadapter.h 8865 2008-02-04 18:54:02Z andrew $
**
** Copyright (C) 2001-2003 RibbonSoft. All rights reserved.
**
** This file is part of the dxflib project.
**
** This file may be distributed and/or modified under the terms o... |
hananiahhsu/OpenCAD | XUXUCAM/CamDxf/camleads.h | <reponame>hananiahhsu/OpenCAD
#ifndef CAMLEADS_H
#define CAMLEADS_H
/*
************************************
*** @<NAME>
*** @2017.05.10
*** @NanJing,China
*** @<EMAIL>
************************************
*/
#include "CamDxf/qpointfwithparent.h"
#include "CamDxf/campart.h"
#include <QtGui>
... |
hananiahhsu/OpenCAD | XUXUCAM/CamUi/CamUiForms/cam_blockdlg.h | #ifndef CAM_BLOCKDLG_H
#define CAM_BLOCKDLG_H
/*
************************************
*** @<NAME>
*** @2017.05.10
*** @NanJing,China
*** @<EMAIL>
************************************
*/
#endif // CAM_BLOCKDLG_H
|
hananiahhsu/OpenCAD | XUXUCAM/CamCores/CamInfo/cam_position.h | <filename>XUXUCAM/CamCores/CamInfo/cam_position.h
#ifndef CAM_POSITION_H
#define CAM_POSITION_H
/*
************************************
*** @<NAME>
*** @2017.05.10
*** @NanJing,China
*** @<EMAIL>
************************************
*/
#end... |
hananiahhsu/OpenCAD | XUXUCAM/CamCores/CamEng/cam_entity_container.h | <reponame>hananiahhsu/OpenCAD
#ifndef CAM_ENTITY_CONTAINER_H
#define CAM_ENTITY_CONTAINER_H
/*
************************************
*** @<NAME>
*** @2017.05.10
*** @NanJing,China
*** @<EMAIL>
************************************
*/
class Cam_Entity_Container
{
public:
Cam_Entity_Container();
... |
hananiahhsu/OpenCAD | XUXUCAM/CamUi/CamUiBasic/cam_workshop.h | #ifndef CAM_WORKSHOP_H
#define CAM_WORKSHOP_H
/*
************************************
*** @<NAME>
*** @2017.05.10
*** @NanJing,China
*** @<EMAIL>
************************************
*/
#endif // CAM_WORKSHOP_H
|
hananiahhsu/OpenCAD | XUXUCAM/CamCores/CamDebug/cam_debug.h | <reponame>hananiahhsu/OpenCAD
#ifndef CAM_DEBUG_H
#define CAM_DEBUG_H
#endif // CAM_DEBUG_H
|
hananiahhsu/OpenCAD | XUXUCAM/CamDxf/camscene.h | <gh_stars>10-100
#ifndef CAMSCENE_H
#define CAMSCENE_H
/*
************************************
*** @<NAME>
*** @2017.05.10
*** @NanJing,China
*** @<EMAIL>
************************************
*/
#include <QtGui>
#include <QWidget>
#include <QGraphicsScene>
#include <QGraphicsLineItem>
#include <... |
hananiahhsu/OpenCAD | XUXUCAM/dxfSrc/dl_dxf.h | <gh_stars>10-100
/****************************************************************************
** $Id: dl_dxf.h 8865 2008-02-04 18:54:02Z andrew $
**
** Copyright (C) 2001-2003 RibbonSoft. All rights reserved.
**
** This file is part of the dxflib project.
**
** This file may be distributed and/or modified under the te... |
hananiahhsu/OpenCAD | XUXUCAM/CamDxf/campart.h | <filename>XUXUCAM/CamDxf/campart.h
#ifndef CAMPART_H
#define CAMPART_H
/*
************************************
*** @<NAME>
*** @2017.05.10
*** @NanJing,China
*** @<EMAIL>
************************************
*/
#include "CamDxf/qpointfwithparent.h"
#include "camleads.h"
#include <QtGui>
#include ... |
hananiahhsu/OpenCAD | XUXUCAM/cam_newprt.h | #ifndef CAM_NEWPRT_H
#define CAM_NEWPRT_H
/*
************************************
*** @<NAME>
*** @2017.06.6
*** @NanJing,China
*** @<EMAIL>
*** HardWriting Ui
************************************
*/
#include <QDialog>
#include <QCloseEvent>
#include <QPushButton>
#include <QLineEdit>
#include <... |
hananiahhsu/OpenCAD | XUXUCAM/FileIO/cam_fileio.h | <reponame>hananiahhsu/OpenCAD
#ifndef CAM_FILEIO_H
#define CAM_FILEIO_H
/*
************************************
*** @<NAME>
*** @2017.05.10
*** @NanJing,China
*** @<EMAIL>
************************************
*/
#include <QFile>
#include <QTextStream>
#include <QMessageBox>
class CAM_FileIO
{
publ... |
hananiahhsu/OpenCAD | XUXUCAM/CamCores/CamEng/cam_vector.h | <filename>XUXUCAM/CamCores/CamEng/cam_vector.h
#ifndef CAM_VECTOR_H
#define CAM_VECTOR_H
/*
************************************
*** @<NAME>
*** @2017.05.10
*** @NanJing,China
*** @<EMAIL>
************************************
*/
#include <math.h>
#include <algorithm>
class Cam_Vector
{
public:... |
hananiahhsu/OpenCAD | XUXUCAM/CamCores/CamSci/cam_sci.h | #ifndef CAM_SCI_H
#define CAM_SCI_H
/*
************************************
*** @<NAME>
*** @2017.05.10
*** @NanJing,China
*** @<EMAIL>
************************************
*/
#endif // CAM_SCI_H
|
hananiahhsu/OpenCAD | XUXUCAM/CamDxf/camdxf.h | #ifndef CAMDXF_H
#define CAMDXF_H
/*
************************************
*** @<NAME>
*** @2017.05.10
*** @NanJing,China
*** @<EMAIL>
************************************
*/
/* Number of decimal digits of precision in a double */
#include <float.h>
#include "dl_dxf.h"
#include "dl_creatio... |
hananiahhsu/OpenCAD | XUXUCAM/CamCores/CamEng/cam_layer.h | <reponame>hananiahhsu/OpenCAD<gh_stars>10-100
#ifndef CAM_LAYER_H
#define CAM_LAYER_H
/*
************************************
*** @<NAME>
*** @2017.05.10
*** @NanJing,China
*** @<EMAIL>
************************************
*/
class Cam_Layer
{
public:
Cam_Layer() {}
virtual~Cam_Layer... |
hananiahhsu/OpenCAD | XUXUCAM/dxfSrc/dl_exception.h | <reponame>hananiahhsu/OpenCAD
/****************************************************************************
** $Id: dl_exception.h 3591 2006-10-18 21:23:25Z andrew $
**
** Copyright (C) 2001-2003 RibbonSoft. All rights reserved.
** Copyright (C) 2001 <NAME>.
**
** This file is part of the dxflib project.
**
** This fil... |
hananiahhsu/OpenCAD | XUXUCAM/CamDxf/qpointfwithparent.h | <reponame>hananiahhsu/OpenCAD
#ifndef QPOINTFWITHPARENT_H
#define QPOINTFWITHPARENT_H
/*
************************************
*** @<NAME>
*** @2017.05.10
*** @NanJing,China
*** @<EMAIL>
************************************
*/
#include <QtGui>
class QPointFWithParent;
typedef QList <QPointFWithParent > QPFWPL... |
hananiahhsu/OpenCAD | XUXUCAM/CamCores/CamEng/cam_block.h | <reponame>hananiahhsu/OpenCAD<gh_stars>10-100
#ifndef CAM_BLOCK_H
#define CAM_BLOCK_H
/*
************************************
*** @<NAME>
*** @2017.05.10
*** @NanJing,China
*** @<EMAIL>
************************************
*/
class Cam_Block
{
public:
Cam_Block() {}
virtual~Cam_Block();
... |
hananiahhsu/OpenCAD | XUXUCAM/cam_importmat.h | #ifndef CAM_IMPORTMAT_H
#define CAM_IMPORTMAT_H
/*
************************************
*** @<NAME>
*** @2017.05.10
*** @LianYunGang,China
*** @<EMAIL>
************************************
*/
#include <QDialog>
#include <QAbstractButton>
#include <QFileDialog>
namespace Ui {
class CAM_ImportMat;
... |
hananiahhsu/OpenCAD | XUXUCAM/cam_importprt.h | <filename>XUXUCAM/cam_importprt.h
#ifndef CAM_IMPORTPRT_H
#define CAM_IMPORTPRT_H
/*
************************************
*** @<NAME>
*** @2017.06.06
*** @NanJing,China
*** @<EMAIL>
************************************
*/
#include <QDialog>
#include <QAbstractButton>
#include <QFileDialog>
#include... |
hananiahhsu/OpenCAD | XUXUCAM/dxfSrc/dl_entities.h | /****************************************************************************
** $Id: dl_entities.h 7812 2008-01-04 16:56:09Z andrew $
**
** Copyright (C) 2001-2003 RibbonSoft. All rights reserved.
**
** This file is part of the dxflib project.
**
** This file may be distributed and/or modified under the terms of the
*... |
hananiahhsu/OpenCAD | XUXUCAM/StringOperation/stringoperation.h | #ifndef STRINGOPERATION_H
#define STRINGOPERATION_H
/*
************************************
*** @<NAME>
*** @2017.05.10
*** @NanJing,China
*** @<EMAIL>
************************************
*/
#include<QString>
#include<QList>
class StringOperations
{
public:
StringOperations(void);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.