repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
ilariom/wildcat
src/core/s2x/mixer.h
#ifndef S2X_MIXER_H #define S2X_MIXER_H #include <SDL.h> #include <SDL_mixer.h> #include <unordered_map> #include <string> #include <cassert> namespace s2x { class Mixer final { public: constexpr static int frequency = 22050; constexpr static int chunksize = 2048; constexpr static int PLAY_INFINITE = -1...
ilariom/wildcat
src/core/managers/EntityManager.h
#ifndef _WKT_ENTITY_MANAGER_H #define _WKT_ENTITY_MANAGER_H #include "ecs/Entity.h" #include <unordered_map> #include <vector> namespace wkt { namespace managers { class EntityManager final { public: using iterator = std::unordered_map<wkt::ecs::Entity::EntityUniqueID, wkt::ecs::Entity>::iterator; private: ...
ilariom/wildcat
src/core/components/Table.h
#ifndef _WKT_TABLE_H #define _WKT_TABLE_H #include "ecs/Component.h" #include <string> #include <tuple> #include <vector> #include <algorithm> #include <memory> namespace wkt { namespace components { class Table : public wkt::ecs::Component { public: Table(const std::string& name) : name(name) { } public: ...
ilariom/wildcat
src/core/main_loop.h
<gh_stars>10-100 #ifndef _WKT_MAIN_LOOP_H #define _WKT_MAIN_LOOP_H namespace wkt { void mainLoop(); } #endif
ilariom/wildcat
src/core/ecs/comp_traits.h
<reponame>ilariom/wildcat #ifndef _WKT_COMP_TRAITS_H #define _WKT_COMP_TRAITS_H #include <cstdint> #define REGISTER_COMPONENT(type_name, type_id) \ template<> \ struct comp_traits<type_name> \ { \ ...
ilariom/wildcat
src/core/systems/RenderSystem.h
<gh_stars>10-100 #ifndef _WKT_RENDER_SYSTEM_H #define _WKT_RENDER_SYSTEM_H #include "ecs/System.h" #include "components/Node.h" #include "graphics/Director.h" namespace wkt { namespace systems { class RenderSystem : public wkt::ecs::HierarchicalSystem { public: RenderSystem(); public: bool operator()(wkt::c...
ilariom/wildcat
src/core/components/Sprite.h
<reponame>ilariom/wildcat #ifndef _WKT_SPRITE_H #define _WKT_SPRITE_H #include "graphics/ShadedDrawable.h" #include "graphics/SmartSurface.h" #include "graphics/Color.h" #include "math/wktmath.h" #include <string> namespace wkt { namespace components { class Sprite : public wkt::gph::ShadedDrawable { public: Spr...
ilariom/wildcat
src/core/pixmanip/pixmanip.h
<reponame>ilariom/wildcat<filename>src/core/pixmanip/pixmanip.h #ifndef WKT_SHADERS_H #define WKT_SHADERS_H #include "math/wktmath.h" #include "math/numerical.h" #include "graphics/Color.h" #include "graphics/Pixel.h" namespace wkt { namespace pixmanip { class lighten { public: lighten(float factor = 1) : factor...
ilariom/wildcat
src/core/components/BoundingBox.h
<gh_stars>10-100 #ifndef WKT_BOUNDING_BOX #define WKT_BOUNDING_BOX #include "ecs/Component.h" #include "math/wktmath.h" #include <memory> namespace wkt { namespace components { struct BoundingBox : public wkt::ecs::Component, public wkt::math::Rect { virtual void update() { }; }; template<typename sz_src, type...
ilariom/wildcat
src/core/graphics/SmartSurface.h
<gh_stars>10-100 #ifndef _WKT_SMART_SURFACE_H #define _WKT_SMART_SURFACE_H #include "s2x/video.h" #include "math/wktmath.h" #include "Color.h" #include "Pixel.h" #include <memory> #include <string> namespace wkt { namespace gph { class SmartSurface { friend PixelIterator; public: SmartSurface(const std:...
ilariom/wildcat
src/core/components/ScriptInterface.h
<filename>src/core/components/ScriptInterface.h #ifndef WKT_SCRIPT_INTERFACE_H #define WKT_SCRIPT_INTERFACE_H #include "components/Script.h" #include <functional> namespace wkt { namespace components { class ScriptInterface : public wkt::components::Script { public: struct Responder { std::function<v...
ilariom/wildcat
src/core/utils/recursors.h
<gh_stars>10-100 #ifndef _WKT_RECURSORS_H #define _WKT_RECURSORS_H #include <functional> namespace wkt { namespace utils { class AbstractRecursor { public: virtual ~AbstractRecursor() = default; public: virtual void run() = 0; }; template<typename node_type, typename hnd_ret_type> class HierarchicalRecurso...
ilariom/wildcat
src/core/managers/SystemsManager.h
#ifndef _WKT_SYSTEMS_MANAGER_H #define _WKT_SYSTEMS_MANAGER_H #include "ecs/System.h" #include "ecs/Entity.h" #include "components/Node.h" #include "managers/EntityManager.h" #include <memory> #include <vector> #include <unordered_map> namespace wkt { namespace managers { class SystemsManager final { public: Sys...
ilariom/wildcat
src/core/graphics/Flipbook.h
<filename>src/core/graphics/Flipbook.h #ifndef WKT_FLIPBOOK_H #define WKT_FLIPBOOK_H #include "math/wktmath.h" #include <string> #include <vector> #include <memory> #include <cstdint> namespace wkt { namespace gph { class Flipbook { public: struct Card { Card() = default; Card(std::string na...
ilariom/wildcat
src/core/graphics/Director.h
#ifndef WKT_DIRECTOR_H #define WKT_DIRECTOR_H #include "s2x/video.h" #include "graphics/SmartSurface.h" #include "graphics/Camera.h" #include "components/Transform.h" #include "math/wktmath.h" namespace wkt { namespace gph { class Director final { public: Director(s2x::Renderer& ren) : ren(ren) { } public: ...
ilariom/wildcat
src/core/ecs/Entity.h
#ifndef _SKR_ENTITY_H #define _SKR_ENTITY_H #include "Component.h" #include "ComponentsVector.h" #include "Drawable.h" #include "utils/Multiset.h" #include <unordered_map> #include <vector> #include <memory> #include <functional> namespace wkt { namespace ecs { class Entity final { public: using EntityUniqueID ...
ilariom/wildcat
src/core/s2x/basics.h
#ifndef _S2X_BASICS_H #define _S2X_BASICS_H #include <SDL.h> #include <SDL_image.h> #include <SDL_ttf.h> #include <string> namespace s2x { class Context { public: explicit inline Context(int flags); inline ~Context(); Context(const Context &) = delete; Context(Context &&) = delete; Context &oper...
ilariom/wildcat
src/core/s2x/events.h
<reponame>ilariom/wildcat #ifndef _S2X_EVENTS_H #define _S2X_EVENTS_H #include <SDL.h> #include <unordered_map> #include <functional> #include <vector> #include <algorithm> #include <initializer_list> namespace s2x { struct EventListener { int tag; std::function<void(const SDL_Event&)> handler; }; inline bo...
ilariom/wildcat
src/core/systems/MessageSystem.h
<filename>src/core/systems/MessageSystem.h #ifndef _WKT_MESSAGE_SYSTEM_H #define _WKT_MESSAGE_SYSTEM_H #include "ecs/System.h" #include "ecs/Entity.h" #include "components/Script.h" #include "utils/Message.h" #include <vector> #include <string> namespace wkt { namespace systems { class MessageSystem : public wkt::ec...
ilariom/wildcat
src/core/audio/basic_audio_engine.h
#ifndef WKT_BASIC_AUDIO_ENGINE_H #define WKT_BASIC_AUDIO_ENGINE_H #include "audio_engine_types.h" #include "AudioStudio.h" #include "SoundEngineer.h" #include <string> #include <functional> namespace wkt { namespace audio { class FelixTheCat : public SoundEngineer { public: FelixTheCat() : SoundEngineer("Felix T...
ilariom/wildcat
src/core/graphics/Pixel.h
<reponame>ilariom/wildcat<gh_stars>10-100 #ifndef _WKT_PIXEL_H #define _WKT_PIXEL_H #include "s2x/video.h" #include "math/wktmath.h" #include "Color.h" namespace wkt { namespace gph { class SmartSurface; class PixelIterator final : public s2x::Pixel { public: class ColorRef final : public Color { fr...
ilariom/wildcat
src/core/globals/Scene.h
#ifndef _WKT_SCENE_H #define _WKT_SCENE_H #include "SceneGraph.h" #include "managers/ECSContext.h" #include <vector> #include <algorithm> namespace wkt { namespace scene { class Scene final : public wkt::managers::ECSContext { public: using SceneGraphId = std::vector<SceneGraph>::size_type; using iterator = ...
ilariom/wildcat
src/core/utils/Message.h
<gh_stars>10-100 #ifndef _WKT_MESSAGE_H #define _WKT_MESSAGE_H #include "ecs/Entity.h" #include "ecs/Component.h" #include <string> #include <unordered_set> #include <numeric> namespace wkt { namespace utils { template<typename T> class Message { private: using Entity = wkt::ecs::Entity; using EntityId = wkt...
ilariom/wildcat
src/core/utils/interpolation.h
#ifndef WKT_INTERPOLATION_H #define WKT_INTERPOLATION_H namespace wkt { class Interpolator { public: Interpolator() = default; Interpolator( float start, float end, float duration, float delay = 0 ) : start(start) , end(end) , duration(duration) ...
ilariom/wildcat
src/core/components/Body.h
#ifndef WKT_BODY_H #define WKT_BODY_H #include "ecs/Component.h" #include "math/wktmath.h" #include <vector> namespace wkt { namespace components { class Transform; class Body : public wkt::ecs::Component { public: struct Box { float x0, y0, x1, y1; wkt::math::vec2 topLeft() const; ...
ilariom/wildcat
src/core/systems/KeyboardReceiverSystem.h
#ifndef _WKT_KEYBOARD_EVENT_SYSTEM_H #define _WKT_KEYBOARD_EVENT_SYSTEM_H #include "ecs/System.h" #include "components/KeyboardReceiver.h" #include "components/KeyboardEventReceiver.h" #include "input/KeyboardProxy.h" #include <vector> namespace wkt { namespace systems { class KeyboardSystemBase { public: void i...
ilariom/wildcat
src/core/utils/json/webstrings.h
<filename>src/core/utils/json/webstrings.h #ifndef strings_h #define strings_h #include <string> #include <sstream> #include <vector> #include <cstdlib> namespace webstrings { bool is_number(const std::string& s); std::string hungarian_to_hyphen(const std::string& s); std::vector<std::string> split_string(const ...
ilariom/wildcat
src/core/utils/Multiset.h
<filename>src/core/utils/Multiset.h<gh_stars>10-100 #ifndef _WKT_MULTISET_H #define _WKT_MULTISET_H #include <unordered_map> namespace wkt { namespace utils { template<typename T, typename Hasher = std::hash<T>> class Multiset { public: class iterator { public: iterator(typename std::unordered_ma...
ilariom/wildcat
src/core/ecs/ComponentsVector.h
#ifndef _WKT_COMPONENTS_VECTOR_H #define _WKT_COMPONENTS_VECTOR_H #include "ecs/Component.h" #include <vector> #include <memory> namespace wkt { namespace ecs { template<typename C = Component> class ComponentsVector final : public std::vector<std::shared_ptr<Component>> { public: std::shared_ptr<C> get(size_typ...
ilariom/wildcat
src/core/components/MouseReceiver.h
#ifndef _WKT_MOUSE_RECEIVER_H #define _WKT_MOUSE_RECEIVER_H #include "ecs/Component.h" #include "input/MouseProxy.h" #include <functional> namespace wkt { namespace components { class MouseReceiver : public wkt::ecs::Component { public: std::function<void(const wkt::events::MouseButtonEvent&)> onButton = nullptr...
ilariom/wildcat
src/core/components/Dictionary.h
#ifndef _WKT_DICTIONARY_H #define _WKT_DICTIONARY_H #include "ecs/Component.h" #include <unordered_map> #include <memory> namespace wkt { namespace components { class AbstractDictionary : public wkt::ecs::Component { public: virtual ~AbstractDictionary() = default; public: bool unique() const override { ret...
ilariom/wildcat
src/core/graphics/FontCache.h
#ifndef _WKT_FONT_CACHE #define _WKT_FONT_CACHE #include "s2x/ttf.h" #include <string> #include <memory> #include <unordered_map> namespace wkt { namespace gph { class FontCache final { public: FontCache(const FontCache&) = delete; FontCache(FontCache&&) = delete; ~FontCache() = default; FontCache& ...
ilariom/wildcat
src/core/components/Transform.h
<filename>src/core/components/Transform.h #ifndef _SKR_TRANSFORM_H #define _SKR_TRANSFORM_H #include "ecs/Component.h" #include "math/wktmath.h" #include <cassert> #include <math.h> #include <limits> namespace wkt { namespace components { struct Coords { wkt::math::vec2 position { 0, 0 }; wkt::math::vec2 rot...
ilariom/wildcat
src/core/globals/World.h
#ifndef _WKT_WORLD_H #define _WKT_WORLD_H #include "managers/ECSContext.h" namespace wkt { class World final : public wkt::managers::ECSContext { public: World(const World&) = delete; World(World&&) = delete; ~World() = default; World& operator=(const World&) = delete; World& operator=(World&&) ...
ilariom/wildcat
src/core/config.h
#ifndef _WKT_CONFIG_H #define _WKT_CONFIG_H #include <string> namespace wkt { struct StartupConfig { std::string appName; std::string orgName; int windowWidth; int windowHeight; bool isFullscreen; bool hardwareAccelerated; unsigned int fps; }; StartupConfig& getStartupConfig(); } #endi...
ilariom/wildcat
src/core/graphics/SurfaceStream.h
#ifndef WKT_SURFACE_STREAM_H #define WKT_SURFACE_STREAM_H #include "SmartSurface.h" #include "math/wktmath.h" #include <vector> namespace wkt { namespace gph { class SurfaceStream final { public: SurfaceStream(int width, int height) : target(s2x::Surface(width, height)) { this->positions.emplace_back(); } Su...
ilariom/wildcat
src/core/systems/ScriptSystem.h
<gh_stars>10-100 #ifndef _WKT_SCRIPT_SYSTEM_H #define _WKT_SCRIPT_SYSTEM_H #include "ecs/System.h" #include "components/Script.h" namespace wkt { namespace systems { class ScriptSystem : public wkt::ecs::SequentialSystem<wkt::components::Script> { public: ScriptSystem(); public: void operator()(std::shared_...
ilariom/wildcat
src/core/components/SurfacePainter.h
<filename>src/core/components/SurfacePainter.h #ifndef WKT_SURFACE_PAINTER_H #define WKT_SURFACE_PAINTER_H #include "ecs/Drawable.h" #include "graphics/SmartSurface.h" namespace wkt { namespace components { class SurfacePainter : public wkt::ecs::Drawable { using SmartSurface = wkt::gph::SmartSurface; public: ...
ilariom/wildcat
src/core/components/Text.h
<reponame>ilariom/wildcat<gh_stars>10-100 #ifndef WKT_TEXT_H #define WKT_TEXT_H #include "ecs/Drawable.h" #include "graphics/SmartSurface.h" #include "graphics/Color.h" #include "s2x/ttf.h" #include <string> #include <memory> namespace wkt { namespace components { class Text : public wkt::ecs::Drawable { public: ...
ilariom/wildcat
src/core/components/JSON.h
#ifndef WKT_JSON_H #define WKT_JSON_H #include "ecs/Component.h" #include "utils/json/webjson.h" namespace wkt { namespace components { class JSON : public wkt::ecs::Component, public webjson::Object { }; REGISTER_COMPONENT(JSON, -11); }} #endif
ilariom/wildcat
src/core/graphics/Camera.h
#ifndef WKT_CAMERA_H #define WKT_CAMERA_H #include "math/wktmath.h" #include "components/Transform.h" namespace wkt { namespace gph { class Camera { public: void setPosition(const wkt::math::vec2& pos) { this->pos = pos; this->dirty = true; } void setSize(const wkt::math::Size& sz) { this->sz = sz; this->dir...
ilariom/wildcat
src/core/math/wktmath.h
#ifndef _WKT_MATH_H #define _WKT_MATH_H #include "s2x/s2x_types.h" #include <math.h> #include <ostream> namespace wkt { namespace math { class vec2 { public: float x, y; inline vec2& operator+=(const vec2&); inline vec2& operator-=(const vec2&); inline vec2& operator*=(float s); float lengthSqu...
ilariom/wildcat
src/core/components/Node.h
#ifndef _SKR_NODE_H #define _SKR_NODE_H #include "ecs/Component.h" #include <vector> #include <memory> #include <algorithm> namespace wkt { namespace components { class Node : public wkt::ecs::Component { using Component = wkt::ecs::Component; public: inline void appendChild(std::shared_ptr<Node> node); ...
ilariom/wildcat
src/core/utils/json/webjson.h
<filename>src/core/utils/json/webjson.h #ifndef json_h #define json_h #include <string> #include <vector> #include <unordered_map> #include <cstdint> #include <memory> namespace webjson { class Object { public: enum class Type { MAP, VALUE, ARRAY ...
ilariom/wildcat
src/core/s2x/ttf.h
#ifndef S2X_TTF_H #define S2X_TTF_H #include <SDL.h> #include <SDL_ttf.h> #include "s2x/video.h" #include <string> namespace s2x { class TrueTypeFont final { public: inline TrueTypeFont(const std::string& fontPath, int fontSize); TrueTypeFont(const TrueTypeFont&) = delete; TrueTypeFont(TrueTypeFont&&) = ...
ilariom/wildcat
src/core/components/Script.h
<gh_stars>10-100 #ifndef _WKT_SCRIPT_H #define _WKT_SCRIPT_H #include "ecs/Component.h" #include "ecs/Entity.h" #include "utils/Message.h" #include <string> #include <chrono> #include <vector> namespace wkt { namespace components { class Script : public wkt::ecs::Component { public: using duration = std::chro...
ilariom/wildcat
src/core/input/MouseProxy.h
#ifndef _WKT_MOUSE_PROXY_H #define _WKT_MOUSE_PROXY_H #include "s2x/events.h" #include <cstdint> #include <vector> namespace wkt { namespace events { enum class ButtonEvent { UP, DOWN }; enum class ButtonState { PRESSED, RELEASED }; enum class ButtonType { LEFT, MIDDLE, RIGHT, X1, X2, NONE }; struct MouseButtonEven...
ilariom/wildcat
src/core/ecs/Component.h
#ifndef _SKR_COMPONENT_H #define _SKR_COMPONENT_H #include "comp_traits.h" #include <functional> #include <vector> #include <memory> namespace wkt { namespace ecs { class Entity; class Component { public: using ComponentUniqueID = unsigned long; using ComponentTypeID = int32_t; public: Component(); ...
IoTBits/esp-adf
examples/dueros/main/duer_audio_wrapper.c
<filename>examples/dueros/main/duer_audio_wrapper.c /* * ESPRESSIF MIT License * * Copyright (c) 2018 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associ...
IoTBits/esp-adf
examples/dueros/main/dueros_task.c
/* * ESPRESSIF MIT License * * Copyright (c) 2018 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"),...
IoTBits/esp-adf
components/audio_pipeline/audio_pipeline.c
<reponame>IoTBits/esp-adf<filename>components/audio_pipeline/audio_pipeline.c /* * ESPRESSIF MIT License * * Copyright (c) 2018 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy o...
IoTBits/esp-adf
components/audio_hal/board/audiosom32_carrier_v3.h
<reponame>IoTBits/esp-adf /* Website: www.iot-bits.com Copyright (C) 2016-2018, IoTBits (Author: <NAME>), all right reserved. E-mail: <EMAIL> Personal website: www.PratikPanda.com The code referencing this license is open source software. Redistribution and use of the code in source and binary forms, with or ...
IoTBits/esp-adf
components/audio_hal/driver/audiosom32/audiosom32_codec.h
/* Website: www.iot-bits.com Copyright (C) 2016-2018, IoTBits (Author: <NAME>), all right reserved. E-mail: <EMAIL> Personal website: www.PratikPanda.com The code referencing this license is open source software. Redistribution and use of the code in source and binary forms, with or without modification, are...
IoTBits/esp-adf
components/audio_hal/driver/audiosom32/audiosom32_codec.c
/* Website: www.iot-bits.com Copyright (C) 2016-2018, IoTBits (Author: <NAME>), all right reserved. E-mail: <EMAIL> Personal website: www.PratikPanda.com The code referencing this license is open source software. Redistribution and use of the code in source and binary forms, with or without modification, are...
KevinLinGit/incubator-doris
be/src/olap/column_data.h
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
maxymania/fantastic-octo-dollop
src/lwstack/iif.h
/* * * Copyright 2016 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
maxymania/fantastic-octo-dollop
src/lwstack/pipeline.h
/* * * Copyright 2016 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
maxymania/fantastic-octo-dollop
src/prog/odp_prog.c
<reponame>maxymania/fantastic-octo-dollop /* Copyright (C) 2016 <NAME> This software is provided 'as-is', without any express or implied warranty. This license and the above notice may not be removed or altered from any source file and must appear in every source file that contains any substantial part of this source ...
maxymania/fantastic-octo-dollop
src/lwstack/pkt_info.c
<gh_stars>0 /* * * Copyright 2016 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
maxymania/fantastic-octo-dollop
src/lwstack/portif.c
/* * * Copyright 2016 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
maxymania/fantastic-octo-dollop
src/lwstack/iif.c
<reponame>maxymania/fantastic-octo-dollop /* * * Copyright 2016 <NAME> * * 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 requ...
maxymania/fantastic-octo-dollop
src/lwstack/tfif.c
<reponame>maxymania/fantastic-octo-dollop /* * * Copyright 2016 <NAME> * * 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 requ...
maxymania/fantastic-octo-dollop
src/prog/host.c
/* * * Copyright 2016 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
maxymania/fantastic-octo-dollop
src/ustack/arp.c
/* * * Copyright 2016 <NAME> * Copyright 2011-2015 by <NAME>. FNET Community. * Copyright 2008-2010 by <NAME>. Freescale Semiconductor, Inc. * * 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 Licen...
maxymania/fantastic-octo-dollop
src/lwstack/tfif.h
/* * * Copyright 2016 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
maxymania/fantastic-octo-dollop
src/ustack/netinput.c
/* * * Copyright 2016 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
maxymania/fantastic-octo-dollop
src/lwstack/portif.h
/* * * Copyright 2016 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
pattop/po-plugins
descriptor.h
#pragma once #include <ladspa.h> #include <string> /* * descriptor - take a copy of a LADSPA_Descriptor and change label and name * * This is helpful when using the same descriptor with different port counts. */ class descriptor { public: descriptor(const LADSPA_Descriptor &, std::string &&label, std::strin...
pattop/po-plugins
biquad.h
<filename>biquad.h #pragma once #include <cstddef> class biquad_coefficients; /* * biquad - simple biquad filter * * For details on how this works see the Audio EQ Cookbook. */ class biquad { public: void run(const biquad_coefficients &, const float *input, float *output, size_t samples); private: double x...
pattop/po-plugins
ladspa_ids.h
#pragma once #warning USING DEVELOPMENT IDs namespace ladspa_ids { constexpr auto peaking = 100; constexpr auto linkwitz_riley_lowpass = 108; constexpr auto linkwitz_riley_highpass = 116; constexpr auto low_shelf = 124; constexpr auto high_shelf = 132; constexpr auto delay = 140; constexpr auto invert = 148; constexp...
gian2705/Parse-SDK-Arduino
src/internal/ParseUtils.h
<reponame>gian2705/Parse-SDK-Arduino<gh_stars>10-100 /* * Copyright (c) 2015, Parse, LLC. All rights reserved. * * You are hereby granted a non-exclusive, worldwide, royalty-free license to use, * copy, modify, and distribute this software in source code or binary form for use * in connection with the web serv...
gian2705/Parse-SDK-Arduino
src/internal/ParseQuery.h
<filename>src/internal/ParseQuery.h<gh_stars>10-100 /* * Copyright (c) 2015, Parse, LLC. All rights reserved. * * You are hereby granted a non-exclusive, worldwide, royalty-free license to use, * copy, modify, and distribute this software in source code or binary form for use * in connection with the web servi...
gian2705/Parse-SDK-Arduino
src/internal/ParsePush.h
<filename>src/internal/ParsePush.h /* * Copyright (c) 2015, Parse, LLC. All rights reserved. * * You are hereby granted a non-exclusive, worldwide, royalty-free license to use, * copy, modify, and distribute this software in source code or binary form for use * in connection with the web services and APIs prov...
gian2705/Parse-SDK-Arduino
src/internal/ParseRequest.h
/* * Copyright (c) 2015, Parse, LLC. All rights reserved. * * You are hereby granted a non-exclusive, worldwide, royalty-free license to use, * copy, modify, and distribute this software in source code or binary form for use * in connection with the web services and APIs provided by Parse. * * As with any s...
gian2705/Parse-SDK-Arduino
src/Parse.h
/* * Copyright (c) 2015, Parse, LLC. All rights reserved. * * You are hereby granted a non-exclusive, worldwide, royalty-free license to use, * copy, modify, and distribute this software in source code or binary form for use * in connection with the web services and APIs provided by Parse. * * As with any s...
gian2705/Parse-SDK-Arduino
src/internal/ParseObjectCreate.h
/* * Copyright (c) 2015, Parse, LLC. All rights reserved. * * You are hereby granted a non-exclusive, worldwide, royalty-free license to use, * copy, modify, and distribute this software in source code or binary form for use * in connection with the web services and APIs provided by Parse. * * As with any s...
gian2705/Parse-SDK-Arduino
src/internal/ParseObjectUpdate.h
<filename>src/internal/ParseObjectUpdate.h /* * Copyright (c) 2015, Parse, LLC. All rights reserved. * * You are hereby granted a non-exclusive, worldwide, royalty-free license to use, * copy, modify, and distribute this software in source code or binary form for use * in connection with the web services and A...
appleMini/Skybox
Skybox/Classes/Skybox.h
// // Skybox.h // AFNetworking // // Created by <NAME> on 2017/11/30. // #import <Foundation/Foundation.h> #import "Utils.h"
appleMini/Skybox
Skybox/Classes/Utils.h
// // Utils.h // FBSnapshotTestCase // // Created by <NAME> on 2017/11/29. // #import <Foundation/Foundation.h> @interface Utils : NSObject + (int)sum:(int)a B:(int)b; @end
appleMini/Skybox
Example/Skybox/SKViewController.h
// // SKViewController.h // Skybox // // Created by appleMini on 11/29/2017. // Copyright (c) 2017 appleMini. All rights reserved. // @import UIKit; @interface SKViewController : UIViewController @end
wonderful27x/OpenCvFaceTrackLean
WYOpenCv/WYOpenCv.h
<reponame>wonderful27x/OpenCvFaceTrackLean<gh_stars>0 // WYOpenCv.h: 标准系统包含文件的包含文件 // 或项目特定的包含文件。 #pragma once #include <iostream> #include <opencv2/opencv.hpp> #define ENABLE_LBP //#define ENABLE_SAMPLES using namespace std; using namespace cv; //动态人脸检测需要用的适配器,官方demo复制而来 //E:\OPENCV\opencv4.1.2\INSTALL\opencv\s...
msharov/casycom
app.h
<reponame>msharov/casycom<filename>app.h // This file is part of the casycom project // // Copyright (c) 2015 by <NAME> <<EMAIL>> // This file is free software, distributed under the ISC license. #pragma once #include "msg.h" #ifdef __cplusplus extern "C" { #endif //---------------------------------------------------...
msharov/casycom
stm.h
<gh_stars>1-10 // This file is part of the casycom project // // Copyright (c) 2015 by <NAME> <<EMAIL>> // This file is free software, distributed under the ISC license. #pragma once #include "util.h" typedef struct _RStm { const char* _p; const char* _end; } RStm; typedef struct _WStm { char* _p; ch...
msharov/casycom
test/ping.h
<reponame>msharov/casycom<filename>test/ping.h<gh_stars>1-10 // This file is part of the casycom project // // Copyright (c) 2015 by <NAME> <<EMAIL>> // This file is free software, distributed under the ISC license. // You would normally include casycom.h this way //#include <casycom.h> // But for the purpose of buil...
msharov/casycom
msg.h
<filename>msg.h // This file is part of the casycom project // // Copyright (c) 2015 by <NAME> <<EMAIL>> // This file is free software, distributed under the ISC license. #pragma once #include "stm.h" //---------------------------------------------------------------------- typedef uint16_t oid_t; enum { oid_Bro...
msharov/casycom
test/ping.c
// This file is part of the casycom project // // Copyright (c) 2015 by <NAME> <<EMAIL>> // This file is free software, distributed under the ISC license. #include "ping.h" //{{{ Ping interface --------------------------------------------------- // Indexes for Ping methods, for the imethod field in the message. // T...
msharov/casycom
xsrv.h
// This file is part of the casycom project // // Copyright (c) 2015 by <NAME> <<EMAIL>> // This file is free software, distributed under the ISC license. #pragma once #include "xcom.h" #ifdef __cplusplus extern "C" { #endif typedef void (*MFN_ExternServer_open)(void* vo, int fd, const iid_t* exported_interfaces, boo...
msharov/casycom
test/nfwrk.c
// This file is part of the casycom project // // Copyright (c) 2015 by <NAME> <<EMAIL>> // This file is free software, distributed under the ISC license. #include "ping.h" #include <sys/wait.h> #include <signal.h> //---------------------------------------------------------------------- // In an application that alre...
msharov/casycom
io.h
// This file is part of the casycom project // // Copyright (c) 2015 by <NAME> <<EMAIL>> // This file is free software, distributed under the ISC license. #pragma once #include "main.h" #include "vector.h" #ifdef __cplusplus extern "C" { #endif //---------------------------------------------------------------------- ...
msharov/casycom
test/fwork.c
<filename>test/fwork.c<gh_stars>1-10 // This file is part of the casycom project // // Copyright (c) 2015 by <NAME> <<EMAIL>> // This file is free software, distributed under the ISC license. #include "ping.h" // The simplest way to use casycom is in framework mode, which provides // an event loop, a standard main, a...
msharov/casycom
timer.h
// This file is part of the casycom project // // Copyright (c) 2015 by <NAME> <<EMAIL>> // This file is free software, distributed under the ISC license. #pragma once #include "main.h" #include <sys/poll.h> #ifdef __cplusplus extern "C" { #endif //---------------------------------------------------------------------...
msharov/casycom
test/ipcom.c
// This file is part of the casycom project // // Copyright (c) 2015 by <NAME> <<EMAIL>> // This file is free software, distributed under the ISC license. #include "ping.h" //---------------------------------------------------------------------- typedef struct _App { Proxy pingp; unsigned npings; Proxy e...
msharov/casycom
app.c
// This file is part of the casycom project // // Copyright (c) 2015 by <NAME> <<EMAIL>> // This file is free software, distributed under the ISC license. #include "app.h" //---------------------------------------------------------------------- // PApp enum { method_App_init, method_App_signal }; void PApp_...
msharov/casycom
vector.h
<gh_stars>1-10 // This file is part of the casycom project // // Copyright (c) 2017 by <NAME> <<EMAIL>> // This file is free software, distributed under the ISC license. #pragma once #include "config.h" typedef int (*vector_compare_fn_t)(const void*, const void*); typedef struct _CharVector { char* d; size_t...
msharov/casycom
msg.c
// This file is part of the casycom project // // Copyright (c) 2015 by <NAME> <<EMAIL>> // This file is free software, distributed under the ISC license. #include "main.h" #include "vector.h" Msg* casymsg_begin (const Proxy* pp, uint32_t imethod, uint32_t sz) { Msg* msg = xalloc (sizeof(Msg)); msg->h = *pp; ...
msharov/casycom
main.h
// This file is part of the casycom project // // Copyright (c) 2015 by <NAME> <<EMAIL>> // This file is free software, distributed under the ISC license. #pragma once #include "msg.h" typedef struct _Factory { void* (*create)(const Msg* msg); void (*destroy)(void* o); void (*object_destroyed)(void* o,...
msharov/casycom
xsrv.c
<gh_stars>1-10 // This file is part of the casycom project // // Copyright (c) 2015 by <NAME> <<EMAIL>> // This file is free software, distributed under the ISC license. #include "xsrv.h" #include "timer.h" #include <sys/stat.h> #include <sys/un.h> #include <paths.h> #include <fcntl.h> //{{{ PExternServer -----------...
msharov/casycom
xcom.c
<reponame>msharov/casycom // This file is part of the casycom project // // Copyright (c) 2015 by <NAME> <<EMAIL>> // This file is free software, distributed under the ISC license. #include "xcom.h" #include "timer.h" #include <fcntl.h> #include <sys/un.h> #include <paths.h> //{{{ COM interface ----------------------...
msharov/casycom
util.h
// This file is part of the casycom project // // Copyright (c) 2015 by <NAME> <<EMAIL>> // This file is free software, distributed under the ISC license. #pragma once #include "config.h" #include <syslog.h> //{{{ Memory management ------------------------------------------------ // Types for main args typedef unsig...
msharov/casycom
casycom.h
// This file is part of the casycom project // // Copyright (c) 2015 by <NAME> <<EMAIL>> // This file is free software, distributed under the ISC license. #pragma once #include "casycom/main.h" #include "casycom/app.h" #include "casycom/timer.h" #include "casycom/io.h" #include "casycom/xsrv.h"