repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
chenminghong/house_keeper
pairearch_WLY/RootTabBar/Home/Views/HomeTableCell.h
<reponame>chenminghong/house_keeper // // HomeTableCell.h // pairearch_WLY // // Created by Leo on 2017/2/27. // Copyright © 2017年 Leo. All rights reserved. // #import <UIKit/UIKit.h> @class HomePageModel; @interface HomeTableCell : UITableViewCell @property (weak, nonatomic) IBOutlet UIView *separatorView; @pro...
chenminghong/house_keeper
pairearch_WLY/PaireachAPI.h
<reponame>chenminghong/house_keeper // // PaireachAPI.h // pairearch_WLY // // Created by Leo on 2017/2/22. // Copyright © 2017年 Leo. All rights reserved. // #ifndef PaireachAPI_h #define PaireachAPI_h #pragma markk -- APP接口定义 /*============================BaseUrl相关=============================*/ //API前缀定义 //#de...
Infineon/mtb-example-xmc-vadc-queue
main.c
/******************************************************************************* * File Name: main.c * * Description: This is the source code for the XMC MCU: VADC QUEUE Example for * ModusToolbox. * This example shows how to convert multiple channels in a * dedicated sequence u...
CrabJournal/WidescreenFixesPack
source/SplinterCellEssentials.PPSSPP.FusionMod/main.c
#include <pspsdk.h> #include <pspkernel.h> #include <pspctrl.h> #include <stdio.h> #include <string.h> #include <math.h> #include <stdint.h> #include <systemctrl.h> #include "../../includes/psp/log.h" #include "../../includes/psp/injector.h" #include "../../includes/psp/patterns.h" #include "../../includes/psp/iniread...
CrabJournal/WidescreenFixesPack
source/TheWarriors.PPSSPP.FusionMod/main.c
<reponame>CrabJournal/WidescreenFixesPack<gh_stars>1-10 #include <pspsdk.h> #include <pspkernel.h> #include <pspctrl.h> #include <stdio.h> #include <string.h> #include <stdint.h> #include <systemctrl.h> #include "../../includes/psp/log.h" #include "../../includes/psp/injector.h" #include "../../includes/psp/patterns.h...
ethanneill/pa01-STARTER
utility.h
//utility.h //Author: <NAME> //All class declarations go here #ifndef UTILITY_H #define UTILITY_H #include <iostream> using namespace std; int assignValue(string card); #endif
danzhu/RawScript
RawScript/ConstantParser.h
#pragma once #include <string> namespace RawScript { struct Token; class Object; class Library; class LiteralParser { public: // Return # of chars the constant requires. 0 if failed virtual bool Tokenize(std::string s, unsigned int &pos) = 0; // Parse a token (in string form) to an object virtual Objec...
danzhu/RawScript
RawScript/Operation.h
#pragma once #include <string> #include "Utilities.h" #include "Operator.h" namespace RawScript { class Object; class Runtime; class Operation { public: virtual Object *Execute(Runtime *rt) = 0; }; class MethodOperation : public Operation { public: std::string method; Operation *object; Array<Opera...
danzhu/RawScript
RawScript/Exceptions.h
#pragma once #include <exception> #include <string> #include "Tokenizer.h" namespace RawScript { class CompilationException : public std::exception { public: Token token; CompilationException(std::string message, Token t); std::string Description() const; }; class RuntimeException : public std::exception...
danzhu/RawScript
RawScript/Parser.h
#pragma once #include <string> #include "Tokenizer.h" namespace RawScript { class Operation; class Script; class Library; template<typename T> class Array; class Code; class Parser { Tokenizer tokenizer; Library *library; Operation *Value(); void Arguments(Array<Operation *> &args); Operation *Ter...
danzhu/RawScript
RawScript/Utilities.h
#pragma once namespace RawScript { template<typename T> class Array { public: T *items; unsigned int length; Array() : length(0), items(nullptr) {} Array(unsigned int len) : Array(len, new T[len]) {} Array(unsigned int len, T *items) : length(len), items(items) {} ~Array() { if (items != nullptr...
danzhu/RawScript
RawScript/Library.h
<filename>RawScript/Library.h #pragma once #include <map> #include <vector> #include "Function.h" #include "Operator.h" namespace RawScript { struct Token; class LiteralParser; class Library { protected: std::vector<std::map<std::string, OperatorDefinition>> operators; std::map<std::string, Type *> types; ...
danzhu/RawScript
RawScript/Int.h
#pragma once #include "Primitive.h" namespace RawScript { typedef Primitive<int> Int; namespace Primitives { void InitializeIntType(Library *lib); Object *IntConstructor(Runtime * rt, Object * obj, Args & args); Object *IntToString(Runtime * rt, Object *obj, Args& args); } class IntParser : public Litera...
danzhu/RawScript
RawScript/Tokenizer.h
#pragma once #include <string> #include <vector> namespace RawScript { class Library; enum TokenType { Identifier, Operator, Constant, Error, EndOfLine, EndOfFile }; struct Token { TokenType type; std::string value; unsigned int line; unsigned int column; int constId; }; class Tokeniz...
danzhu/RawScript
RawScript/Type.h
<filename>RawScript/Type.h #pragma once #include <string> #include <map> #include "Object.h" #include "Scope.h" namespace RawScript { class Function; class Library; class Type : public Scope { std::map<std::string, Function *> methods; public: Function *constructor; Type(); Type(std::string name); vo...
danzhu/RawScript
RawScript/Object.h
<filename>RawScript/Object.h #pragma once #include <string> namespace RawScript { class String; class Type; class Runtime; template<typename T> class Array; class Object; typedef Array<Object *> Args; class Object { public: Type *type; Object(Type *t); Object *InvokeMethod(Runtime *rt, std::string ...
danzhu/RawScript
RawScript/Operator.h
<reponame>danzhu/RawScript<filename>RawScript/Operator.h #pragma once #include "Function.h" namespace RawScript { struct OperatorDefinition { Function *defaultOperation; std::string method; static Object *Equals(Runtime *rt, Object *obj, Args &args); }; }
danzhu/RawScript
RawScript/Scope.h
<filename>RawScript/Scope.h #pragma once #include <map> #include "Object.h" namespace RawScript { class Scope : public Object { protected: std::map<std::string, Object *> members; public: Scope *parent; std::string name; Scope(); Scope(std::string name); Object *&GetObject(std::string id); void Set...
danzhu/RawScript
RawScript/Bool.h
#pragma once #include "Primitive.h" namespace RawScript { typedef Primitive<bool> Bool; namespace Primitives { void InitializeBoolType(Library *lib); Object *BoolToString(Runtime * rt, Object *obj, Args& args); } }
danzhu/RawScript
RawScript/String.h
<filename>RawScript/String.h #pragma once #include <string> #include "Object.h" #include "ConstantParser.h" namespace RawScript { struct Token; class String : public Object { public: std::string value; String(Type *t, std::string s); static void InitializeType(Library *lib); static Object *ToString(Run...
danzhu/RawScript
RawScript/Function.h
#pragma once #include <string> #include "Object.h" namespace RawScript { class Object; class Runtime; class Operation; class Library; typedef Object *(*CFunction)(Runtime *rt, Object *obj, Args &args); class Function : public Object { protected: CFunction function; public: std::string name; Function...
danzhu/RawScript
RawScript/Primitive.h
<gh_stars>0 #pragma once #include "Object.h" #include "ConstantParser.h" namespace RawScript { template<typename T> class Primitive : public Object { public: T value; Primitive(Type *t, T val) : Object(t), value(val) {} }; namespace Primitives { template<typename T> Object *Add(Runtime *rt, Object *o...
danzhu/RawScript
RawScript/Script.h
#pragma once namespace RawScript { class Code; class Script { public: Code *content; }; }
danzhu/RawScript
RawScript/Runtime.h
#pragma once #include <map> #include <vector> namespace RawScript { class Object; class Scope; class Script; class Type; class Library; class Runtime { public: Library *library; Scope *globals; Runtime(Library *lib); Object *GetObject(std::string id); Object *Execute(Script script); }; }
makelinux/gstwebrtc-demos
sendonly/webrtc-unidirectional-h264.c
<gh_stars>1-10 #include <locale.h> #include <glib.h> #include <glib-unix.h> #include <gst/gst.h> #include <gst/sdp/sdp.h> #define GST_USE_UNSTABLE_API #include <gst/webrtc/webrtc.h> #include <libsoup/soup.h> #include <json-glib/json-glib.h> #include <string.h> #define RTP_PAYLOAD_TYPE "96" #define SOUP_HTTP_PORT 5...
hellokittyhoodie/shitty_chip8_emu
chip8.h
#pragma once #include <string_view> #include <array> #include <bitset> #include <thread> //void timer_setter(chip8* chip); class chip8 { public: enum REGISTER : int { V0 = 0, V1, V2, V3, V4, V5, V6, V7, V8, V9, VA, VB, VC, VD, VE, VF }; enum BUTTON : int { KEY_ONE = 0, KEY_TWO, KEY_THREE,...
Williano/C-plus-plus
OOP/classOrganization/Rectangle.h
// Rectangle class specification file. #ifndef RECTANGLE_H #define RECTANGLE_H class Rectangle { private: double length; double width; public: void setLength(double len); void setWidth(double wid); double getLength(); double getWidth(); double getArea(); }; #endif
Williano/C-plus-plus
OOP/classOrganization/Carpet.h
<filename>OOP/classOrganization/Carpet.h // Carpt Class specification file #ifndef CARPET_H #define CARPET_H #include "Rectangle.h" class Carpet { private: double pricePerSqYd; Rectangle size; public: void setPricePerSqYd(double pricePSY); void setDimensions(double len, double wid); double get...
SuperWig/BullCowGame
FBullsAndCows.h
<gh_stars>0 #pragma once #include <map> #include <random> #include <string> #include <vector> #define TArray std::vector #define TMap std::map using FString = std::string; enum class EDifficulty { Easy, Normal, Hard }; enum class EWordList { Short, Medium, Long }; enum class EValidity { Invalid, NotIsogram, Incorrect...
Ceset/FPSManager
FPSManager/fpsmanager.h
<filename>FPSManager/fpsmanager.h #ifndef FPSMANAGER_H #define FPSMANAGER_H #include <chrono> // It is logical to have only one instance of this class // in the entire program. So, simply put, this is a static // class class FPSManager { public: // Initialize class variables // // Used without it class w...
olekhov/cmake_test
mylibA/inc/mylibA.h
#pragma once namespace mylibA { class ClassA { public: static ClassA *create(); virtual void Do()=0; virtual ~ClassA() {}; }; };
olekhov/cmake_test
mylibC/public/include/mylibC.h
#pragma once namespace mylibC { class ClassC { public: virtual void Do(); }; };
RichardGomer/ensemble-iot
mod/Irrigation/YFS201/yfs201flow.c
#include <stdio.h> #include <stdlib.h> #include <wiringPi.h> int sensorPin; volatile int pulseCount; unsigned long oldTime; void pulseCounter() { pulseCount++; } void setup(int argc, char *argv[]) { wiringPiSetupGpio(); if(argc < 2) { printf("USAGE: ./flowfreq bcm_sense_pin\n"); exit(0); } // Broadcom...
cvfish/libmv-1
src/ui/tracker/tracker.h
// Copyright (c) 2011 libmv authors. // // 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 the // rights to use, copy, modify, merge, publish...
cvfish/libmv-1
src/libmv/simple_pipeline/initialize_reconstruction.h
// Copyright (c) 2011 libmv authors. // // 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 the // rights to use, copy, modify, merge, publis...
cvfish/libmv-1
src/ui/tracker/scene.h
// Copyright (c) 2011 libmv authors. // // 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 the // rights to use, copy, modify, merge, publish...
cvfish/libmv-1
src/libmv/simple_pipeline/camera_intrinsics.h
// Copyright (c) 2011 libmv authors. // // 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 the // rights to use, copy, modify, merge, publish...
cvfish/libmv-1
src/ui/tracker/gl.h
<filename>src/ui/tracker/gl.h // Copyright (c) 2011 libmv authors. // // 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 the // rights to use...
cvfish/libmv-1
src/ui/tracker/main.h
<filename>src/ui/tracker/main.h // Copyright (c) 2011 libmv authors. // // 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 the // rights to u...
cvfish/libmv-1
src/libmv/simple_pipeline/resect.h
// Copyright (c) 2011 libmv authors. // // 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 the // rights to use, copy, modify, merge, publis...
cvfish/libmv-1
src/third_party/glog/src/config.h
<reponame>cvfish/libmv-1<gh_stars>100-1000 /* src/config.h. Generated from config.h.in by configure. */ /* src/config.h.in. Generated from configure.ac by autoheader. */ /* Namespace for Google classes */ #ifdef __APPLE__ #include "config_mac.h" #elif __GNUC__ #include "config_linux.h" #elif _MSC_VER #include "...
cvfish/libmv-1
src/libmv/simple_pipeline/bundle.h
<gh_stars>10-100 // Copyright (c) 2011 libmv authors. // // 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 the // rights to use, copy, modi...
cvfish/libmv-1
src/libmv/multiview/fundamental_test_utils.h
<filename>src/libmv/multiview/fundamental_test_utils.h<gh_stars>100-1000 // Copyright (c) 2007, 2009, 2011 libmv authors. // // 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 restric...
cvfish/libmv-1
src/libmv/simple_pipeline/tracks.h
// Copyright (c) 2011 libmv authors. // // 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 the // rights to use, copy, modify, merge, publish...
cvfish/libmv-1
src/third_party/gflags/config.h
/* src/config.h. Generated from config.h.in by configure. */ /* src/config.h.in. Generated from configure.ac by autoheader. */ /* Always the empty-string on non-windows systems. On windows, should be "__declspec(dllexport)". This way, when we compile the dll, we export our functions/classes. It's safe to def...
cvfish/libmv-1
src/libmv/multiview/five_point_internal.h
// Copyright (c) 2011 libmv authors. // // 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 the // rights to use, copy, modify, merge, publis...
sgolemon/genny
src/third_party/poplar/poplarlib/poplar.pb.h
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: poplar.proto #ifndef GOOGLE_PROTOBUF_INCLUDED_poplar_2eproto #define GOOGLE_PROTOBUF_INCLUDED_poplar_2eproto #include <limits> #include <string> #include <google/protobuf/port_def.inc> #if PROTOBUF_VERSION < 3011000 #error This file was generated...
sgolemon/genny
src/third_party/poplar/poplarlib/metrics.pb.h
<filename>src/third_party/poplar/poplarlib/metrics.pb.h<gh_stars>0 // Generated by the protocol buffer compiler. DO NOT EDIT! // source: metrics.proto #ifndef GOOGLE_PROTOBUF_INCLUDED_metrics_2eproto #define GOOGLE_PROTOBUF_INCLUDED_metrics_2eproto #include <limits> #include <string> #include <google/protobuf/port_...
sgolemon/genny
src/third_party/jasper/jasper.grpc.pb.h
// Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. // source: jasper.proto #ifndef GRPC_jasper_2eproto__INCLUDED #define GRPC_jasper_2eproto__INCLUDED #include "jasper.pb.h" #include <functional> #include <grpcpp/impl/codegen/async_generic_service.h> #include <grpcpp/impl/codegen...
sgolemon/genny
src/third_party/jasper/jasper.pb.h
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: jasper.proto #ifndef GOOGLE_PROTOBUF_INCLUDED_jasper_2eproto #define GOOGLE_PROTOBUF_INCLUDED_jasper_2eproto #include <limits> #include <string> #include <google/protobuf/port_def.inc> #if PROTOBUF_VERSION < 3011000 #error This file was generated...
sgolemon/genny
src/third_party/poplar/poplarlib/recorder.pb.h
<filename>src/third_party/poplar/poplarlib/recorder.pb.h // Generated by the protocol buffer compiler. DO NOT EDIT! // source: recorder.proto #ifndef GOOGLE_PROTOBUF_INCLUDED_recorder_2eproto #define GOOGLE_PROTOBUF_INCLUDED_recorder_2eproto #include <limits> #include <string> #include <google/protobuf/port_def.inc...
xantares/libelf-lfg-win32
contrib/elftoolchain/libelf/elf_strptr.c
/*- * Copyright (c) 2006,2008 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditi...
TGShevchenko/PasswordApplicationQt
Server/server.h
/**************************************************************************** ** Server class header. Server part of test task. Receives requests from ** Client class via TCP Socket, calls Database class to process required data ** Author: <NAME> ********************************************************************...
TGShevchenko/PasswordApplicationQt
Client/AccountForm.h
/**************************************************************************** ** AccountWindow class header. This is a dialog to change and ** insert user's name and password ** Author: <NAME> ****************************************************************************/ #ifndef ACCOUNTFORM_H #define ACCOUNTFORM_H...
TGShevchenko/PasswordApplicationQt
Database/database.h
<reponame>TGShevchenko/PasswordApplicationQt<filename>Database/database.h /**************************************************************************** ** Database class header. Managing connections with database (in our case ** it is SQLite), making requests and receiving responses. ** Interacts with Server class...
TGShevchenko/PasswordApplicationQt
Client/MainForm.h
/**************************************************************************** ** MainWindow class header. This is a main class to show, control user's data ** and to request database records via Server class ** Author: <NAME> ****************************************************************************/ #ifndef MA...
MightyPork/1wire-search
main.c
<reponame>MightyPork/1wire-search #include <stdlib.h> #include <stdio.h> #include <stdint.h> #include <stdbool.h> #include <inttypes.h> #include "ow_search.h" // ----------- DEMO ----------------- int main(void) { // The search algorithm stores its internal state in a struct. // This allows calling it repea...
MightyPork/1wire-search
ow_search.h
// // Created by MightyPork on 2018/02/01 // MIT license // #ifndef OW_SEARCH_H #define OW_SEARCH_H #include <stdint.h> #include <stdbool.h> // -------------------------------------------------------------------------------------- // External API functions for interfacing the bus // Customize as needed (and also up...
MightyPork/1wire-search
ow_search.c
<gh_stars>1-10 // // Created by MightyPork on 2018/02/01. // MIT license // #include <stdlib.h> #include <stdint.h> #include <stdbool.h> #include <string.h> #include "ow_search.h" // -------- CHECKSUM -------- static inline uint8_t crc8_bits(uint8_t data) { uint8_t crc = 0; if(data & 1) crc ^= 0x5e; ...
taranbis/ag-path-tracer
camera.h
// // Created by <NAME> on 19/11/18. // #ifndef TMPL8_2018_01_CAMERA_H #define TMPL8_2018_01_CAMERA_H #include "precomp.h" class Camera { public: Camera(); float getFOV(); void adjustFOV(int y); mat4 getMatrix(); void setMatrix(mat4 matrix); float getSpeed(); void setSpeed(float f); ...
taranbis/ag-path-tracer
AABB.h
<gh_stars>1-10 // // Created by <NAME> on 18/12/18. // #ifndef TMPL8_2018_01_AABB_H #define TMPL8_2018_01_AABB_H #include "precomp.h" class AABB { public: vec3 bounds[2]; vec3 centrePoint; void calcCentre(); bool intersect(Ray r); vec3 color = vec3 ((rand()%255)/255.0f, (rand()%255)/255.0f, (rand...
taranbis/ag-path-tracer
surface.h
// Template, UU version // IGAD/NHTV/UU - <NAME> - 2006-2018 #pragma once namespace Tmpl8 { #define REDMASK (0xff0000) #define GREENMASK (0x00ff00) #define BLUEMASK (0x0000ff) typedef unsigned int Pixel; // unsigned int is assumed to be 32-bit, which seems a safe assumption. inline Pixel AddBlend(Pixel a_Color1,...
taranbis/ag-path-tracer
ray.h
<filename>ray.h // // Created by <NAME> on 19/11/18. // #ifndef TMPL8_2018_01_RAY_H #define TMPL8_2018_01_RAY_H #pragma once #include "precomp.h" class Ray { public: Ray(vec3 o, vec3 d); bool newIntersection(vec3 point); vec3 getOrigin(); void setOrigin(vec3 v); vec3 getDirection(); void ...
taranbis/ag-path-tracer
floor.h
<gh_stars>1-10 // // Created by <NAME> on 5/12/18. // #ifndef TMPL8_2018_01_FLOOR_H #define TMPL8_2018_01_FLOOR_H #include "precomp.h" class Floor: public Object { public: Floor(float z, float length, float depth, float Ox, float Oy, Material material); Floor(float z, float length, float depth, float Ox, float ...
taranbis/ag-path-tracer
BVH.h
// // Created by <NAME> on 15/12/18. // #ifndef TMPL8_2018_01_BVH_H #define TMPL8_2018_01_BVH_H #include "precomp.h" class BVH { public: void constructBVH(Object** objects, int objectCount); BVHNode getRoot(); int* getIndices(); private: BVHNode root; int* indices; BVHNode* pool; }; #endif ...
taranbis/ag-path-tracer
triangleMesh.h
<filename>triangleMesh.h<gh_stars>1-10 // // Created by <NAME> on 1/12/18. // #ifndef TMPL8_2018_01_TRIANGLEMESH_H #define TMPL8_2018_01_TRIANGLEMESH_H #include "precomp.h" class TriangleMesh: public Object { public: TriangleMesh(int count, vector<vec3> vertices, vector<int> indices, vec3 color, Material material...
taranbis/ag-path-tracer
precomp.h
<reponame>taranbis/ag-path-tracer // Add your includes to this file instead of to individual .cpp files. // Do not include headers in header files (ever). // Prevent expansion clashes (when using std::min and std::max). #define NOMINMAX #define SCRWIDTH 256 #define SCRHEIGHT 256 #define INVPI 1/PI #define DOUBLEPI 2*...
taranbis/ag-path-tracer
material.h
#ifndef TMPL8_2018_01_MATERIAL_H #define TMPL8_2018_01_MATERIAL_H #include "precomp.h" enum MaterialType {diffuse, textured, reflective, snell, fresnel, beer, light, phong}; class Material { public: int phongFactor = 50; float emission = 0; MaterialType getMaterialType() { return mt; }; voi...
taranbis/ag-path-tracer
plane.h
// // Created by <NAME> on 25/11/18. // #ifndef TMPL8_2018_01_PLANE_H #define TMPL8_2018_01_PLANE_H #include "precomp.h" class Plane: public Object{ public: Plane(vec3 point, vec3 normal, vec3 color,Material material); Intersection intersects(Ray* ray); bool shadowRayIntersects(Ray ray); vec3 getPoint(); void ...
taranbis/ag-path-tracer
game.h
#pragma once #include "precomp.h" namespace Tmpl8 { struct Inputs { bool W = false; bool A = false; bool S = false; bool D = false; bool k1 = false; bool k2 = false; bool mouseClick = false; }; class Game { public: void SetTarget(Surface* surface) { screen = surface; } void Init(); void Shu...
taranbis/ag-path-tracer
pathTracer.h
<reponame>taranbis/ag-path-tracer // // Created by <NAME> on 13/1/19. // #ifndef TMPL8_2018_01_PATHTRACER_H #define TMPL8_2018_01_PATHTRACER_H #include "precomp.h" class PathTracer { public: void calculateRays(Surface* screen, Camera camera); Intersection nearestIntersection(Ray ray, Object** objects, int objectCo...
taranbis/ag-path-tracer
wall.h
<filename>wall.h // // Created by <NAME> on 26/1/19. // #ifndef TMPL8_2018_01_WALL_H #define TMPL8_2018_01_WALL_H #include "precomp.h" class Wall: public Object { public: Wall(float z, float length, float depth, float Ox, float Oy, Material material); Wall(float z, float length, float depth, float Ox, float ...
taranbis/ag-path-tracer
triangle.h
// // Created by <NAME> on 1/12/18. // #ifndef TMPL8_2018_01_TRIANGLE_H #define TMPL8_2018_01_TRIANGLE_H #include "precomp.h" struct TriangleVertices{ vec3 v1 = vec3(0,0,0); vec3 v2 = vec3(0,0,0); vec3 v3 = vec3(0,0,0); }; class Triangle: public Object { public: Triangle(vec3 v1, vec3 v2, vec3 v3, ve...
taranbis/ag-path-tracer
object.h
// // Created by <NAME> on 25/11/18. // #ifndef TMPL8_2018_01_OBJECT_H #define TMPL8_2018_01_OBJECT_H #include "precomp.h" struct Intersection{ float t; vec3 point; vec3 normal; vec3 color; float specularity; bool skybox = false; }; class Object { public: virtual Intersection intersects(Ray...
taranbis/ag-path-tracer
BVHNode.h
<gh_stars>1-10 // // Created by <NAME> on 15/12/18. // #ifndef TMPL8_2018_01_BVHNODE_H #define TMPL8_2018_01_BVHNODE_H #include "precomp.h" class BVHNode { public: void subdivide(Object** objects, int* indices); int partition(Object** objects, int* indices); void calculateBounds(Object** objects, int fir...
taranbis/ag-path-tracer
template.h
<reponame>taranbis/ag-path-tracer // Template, UU version // IGAD/NHTV/UU - <NAME> - 2006-2018 #pragma once #define TEMPLATE_VERSION "Template_v2018.01" typedef unsigned char uchar; typedef unsigned char byte; typedef int64_t int64; typedef uint64_t uint64; typedef unsigned int uint; #ifdef _MSC_VER #define ALIGN( ...
tholenst/tink
python/cc/cc_streaming_aead_wrappers.h
<reponame>tholenst/tink<filename>python/cc/cc_streaming_aead_wrappers.h // 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...
tholenst/tink
cc/catalogue.h
// Copyright 2017 Google 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 License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
tholenst/tink
cc/config.h
// Copyright 2017 Google 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 License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
tholenst/tink
cc/hybrid/hybrid_key_templates.h
// Copyright 2018 Google 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 License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
Kerch0O/Springs
Springs/functions.h
#pragma once #include <SFML/Graphics.hpp> #include <iostream> #include "Spring.h" #include "Head.h" sf::Vector2f operator*(sf::Vector2f v, sf::Vector2f v1); sf::Vector2f conv(sf::Vector2f unconv); void vCout(sf::Vector2f v, std::string s); Head* mouseHeadInteract(sf::RenderWindow& window, std::vector<Head> &h); floa...
Kerch0O/Springs
Springs/Head.h
<gh_stars>0 #pragma once #include "functions.h" class Spring; class Head { public: int iS1; int iS2; sf::Vector2f acceleration; sf::Vector2f velocity; sf::CircleShape rep; Head(int springIndex, sf::Vector2f pos); Head(sf::Vector2f pos); void step(std::vector<Spring> &s, std::vector<Head> &h); };
Kerch0O/Springs
Springs/Spring.h
<gh_stars>0 #pragma once #include "functions.h" class Head; class Spring { public: float anchorL; float k; float damping; sf::RectangleShape rep; int iH1; int iH2; Spring(float a, float kc, float d, sf::Vector2f startP); Spring(); void rectRefresh(std::vector<Head>& h); };
VanirLab/vanir-gui-daemon
include/shm-args.h
#define SHMID_DISPLAY_MAXLEN 20 #define SHMID_FILENAME_PREFIX "/var/run/vanir/shm.id." #define SHMID_FILENAME_LEN (sizeof(SHMID_FILENAME_PREFIX) + SHMID_DISPLAY_MAXLEN) #ifndef MAX #define MAX(a, b) ((a) < (b) ? (b) : (a)) #endif #define SHM_ARGS_MFNS_MAX_LEN (sizeof(struct shm_args_hdr) + sizeof(str...
VanirLab/vanir-gui-daemon
gui-common/error.c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <X11/Xlib.h> #include <X11/Xlibint.h> int dummy_handler(Display * dpy, XErrorEvent * ev) { #define ERROR_BUF_SIZE 256 char buf[ERROR_BUF_SIZE]; char request[ERROR_BUF_SIZE]; _XExtension *ext = NULL; XGetErrorText(dpy, ev->...
VanirLab/vanir-gui-daemon
pulse/pacat-control-stub.h
<filename>pulse/pacat-control-stub.h /* Generated by dbus-binding-tool; do not edit! */ #ifndef __dbus_glib_marshal_pacat_control_MARSHAL_H__ #define __dbus_glib_marshal_pacat_control_MARSHAL_H__ #include <glib-object.h> G_BEGIN_DECLS #ifdef G_ENABLE_DEBUG #define g_marshal_value_peek_boolean(v) g_v...
VanirLab/vanir-gui-daemon
gui-common/double-buffer.c
<reponame>VanirLab/vanir-gui-daemon #include <malloc.h> #include <string.h> #include <stdlib.h> #include <stdio.h> static char *buffer; static int buffer_size; static int data_offset; static int data_count; #define BUFFER_SIZE_MIN 8192 #define BUFFER_SIZE_MAX 10000000 void double_buffer_init(void) { ...
VanirLab/vanir-gui-daemon
pulse/pacat-simple-vchan.c
<gh_stars>0 #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <stdio.h> #include <unistd.h> #include <string.h> #include <errno.h> #include <fcntl.h> #include <stdlib.h> #include <unistd.h> #include <stdarg.h> #include <assert.h> #include <sys/time.h> #include <pulse/pulseaudio.h> #include <pul...
VanirLab/vanir-gui-daemon
pulse/pacat-control-object.c
<gh_stars>0 #include <string.h> #include <stdio.h> #include <glib/gi18n.h> #include <glib-object.h> #include "pacat-control-object.h" #include "pacat-control-stub.h" /* Properties */ enum { PROP_0, PROP_REC_ALLOWED }; enum { SIGNAL_REC_ALLOWED_CHANGED, LAST_SIGNAL }; static guin...
VanirLab/vanir-gui-daemon
shmoverride/shmoverride.c
<reponame>VanirLab/vanir-gui-daemon // #define DEBUG #define _GNU_SOURCE 1 #define XC_WANT_COMPAT_MAP_FOREIGN_API #include <dlfcn.h> #include <stdlib.h> #include <fcntl.h> #include <stdio.h> #include <sys/ipc.h> #include <sys/shm.h> #include <string.h> #include <malloc.h> #include <xenctrl.h> #include <xe...
VanirLab/vanir-gui-daemon
include/list.h
<reponame>VanirLab/vanir-gui-daemon struct genlist { long key; void *data; struct genlist *next; struct genlist *prev; }; struct genlist *list_new(void); struct genlist *list_lookup(struct genlist *l, long key); struct genlist *list_insert(struct genlist *l, long key, void *data); void list_r...
VanirLab/vanir-gui-daemon
include/double-buffer.h
void double_buffer_init(void); void double_buffer_append(char *buf, int size); int double_buffer_datacount(void); char *double_buffer_data(void); void double_buffer_substract(int count);
VanirLab/vanir-gui-daemon
gui-common/txrx-vchan.c
#include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <libvchan.h> #include <sys/select.h> #include <errno.h> #include "double-buffer.h" void (*vchan_at_eof)(void) = NULL; int vchan_is_closed = 0; /* double buffered in gui-daemon to deal with deadlock * during send large clipboard content ...
VanirLab/vanir-gui-daemon
gui-daemon/xside.h
<reponame>VanirLab/vanir-gui-daemon #ifndef _XSIDE_H #define _XSIDE_H /* various file paths */ #define GUID_CONFIG_FILE "/etc/vanir/guid.conf" #define GUID_CONFIG_DIR "/etc/vanir" #define VANIR_CLIPBOARD_FILENAME "/var/run/vanir/vanir-clipboard.bin" #define QREXEC_CLIENT_PATH "/usr/lib/vanir/qrexec-client" #...
VanirLab/vanir-gui-daemon
pulse/qubes-vchan-sink.h
<reponame>VanirLab/vanir-gui-daemon<filename>pulse/qubes-vchan-sink.h #define VANIR_PA_SINK_VCHAN_PORT 4713 #define VANIR_PA_SOURCE_VCHAN_PORT 4714 /* source starts in paused state */ #define VANIR_PA_SOURCE_START_CMD 0x00010001 #define VANIR_PA_SOURCE_STOP_CMD 0x00010000 /* sink starts in running state */ #def...
VanirLab/vanir-gui-daemon
pulse/pacat-simple-vchan.h
#ifndef __PACAT_SIMPLE_VCHAN_H #define __PACAT_SIMPLE_VCHAN_H #include <pulse/pulseaudio.h> #include <glib.h> #include <dbus/dbus-glib-bindings.h> #include <libvchan.h> struct userdata { pa_mainloop_api *mainloop_api; GMainLoop *loop; char *name; int ret; libvchan_t *play_ctrl; ...
VanirLab/vanir-gui-daemon
shmoverride/X-wrapper-vanir.c
<filename>shmoverride/X-wrapper-vanir.c #include <stdlib.h> #include <unistd.h> #include <stdio.h> #ifndef SHMOVERRIDE_LIB_PATH #define SHMOVERRIDE_LIB_PATH "shmoverride.so" #endif #define XORG_PATH "/usr/bin/Xorg" #define XORG_PATH_NEW "/usr/libexec/Xorg.bin" #define XORG_PATH_NEWER "/usr/libexec/Xorg" /* Fe...
VanirLab/vanir-gui-daemon
gui-daemon/trayicon.h
void init_tray_bg(Ghandles *g); void fill_tray_bg_and_update(Ghandles *g, struct windowdata *vm_window, int x, int y, int w, int h); void init_tray_tint(Ghandles *g); void tint_tray_and_update(Ghandles *g, struct windowdata *vm_window, int x, int y, int w, int h);
VanirLab/vanir-gui-daemon
pulse/pacat-control-object.h
#ifndef __PACAT_CONTROL_H__ #define __PACAT_CONTROL_H__ #include <glib-object.h> #include <dbus/dbus-glib.h> #include "pacat-simple-vchan.h" typedef struct PacatControl PacatControl; typedef struct PacatControlClass PacatControlClass; GType pacat_control_get_type (void); struct PacatControl { GObjec...
palmin/x-document-source
XDSDocumentSourceAttribute.h
// // XDSDocumentSourceAttribute.h // Textastic & Working Copy // // Created by <NAME> & <NAME> in June & July 2016 // #import <UIKit/UIKit.h> typedef NS_ENUM(NSInteger, XDSDocumentSourceAttributeIconType) { // 29x29 icon used for spotlight and settings XDSDocumentSourceAttributeIconTypeSpotlight }; NS_A...