repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
mgdelmonte/crawl
crawl-ref/source/game-options.h
<filename>crawl-ref/source/game-options.h<gh_stars>1000+ /* * @file * @brief Global game options controlled by the rcfile. */ #pragma once #include <functional> #include <string> #include <set> #include <vector> #include "colour.h" #include "stringutil.h" #include "maybe-bool.h" using std::vector; struct game_...
mgdelmonte/crawl
crawl-ref/source/tile-flags.h
#pragma once #include "tag-version.h" enum tile_flags ENUM_INT64 { //// Foreground flags // 3 mutually exclusive flags for attitude. TILE_FLAG_ATT_MASK = 0x00030000ULL, TILE_FLAG_PET = 0x00010000ULL, TILE_FLAG_GD_NEUTRAL = 0x00020000ULL, TILE_FLAG_NEUTRAL = 0x00030000ULL, ...
MrXiao7/ImageLoader
ImageLoader/PeTools.h
#pragma once #include <ntifs.h> #include <ntimage.h> PUCHAR FileToImage(PUCHAR ptr); VOID FixImport(PUCHAR ptr); VOID FixReloc(PUCHAR ptr, ULONG isNeedFixCookie); typedef enum _SYSTEM_INFORMATION_CLASS { SystemBasicInformation, SystemProcessorInformation, // obsolete...delete SystemPerformanceInform...
MrXiao7/ImageLoader
ImageLoader/PeData.h
#pragma once char peData[] = { 0x4D, 0x5A, 0x90, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0xB8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ...
MrXiao7/ImageLoader
ImageLoader/ImageLoader.c
#include <ntifs.h> #include "PeTools.h" #include "PeData.h" VOID DriverUnload(PDRIVER_OBJECT pObj) { DbgPrint("[Silky AIO]: Loader Driver Unloaded!\r\n"); } NTSTATUS DriverEntry(PDRIVER_OBJECT pObj,PUNICODE_STRING reg) { DbgBreakPoint(); ULONG ModuleSize = 0; PUCHAR imageBase = FileToImage(peData); FixRel...
KVTaniguchi/KTAttributedPrices
Example/Pods/Target Support Files/Pods-KTAttributedPrices_Example/Pods-KTAttributedPrices_Example-umbrella.h
<filename>Example/Pods/Target Support Files/Pods-KTAttributedPrices_Example/Pods-KTAttributedPrices_Example-umbrella.h<gh_stars>0 #import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_KTAttributedPrices_ExampleVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_KTAttributedPrices_ExampleVersionString[];
KVTaniguchi/KTAttributedPrices
Example/Pods/Target Support Files/Pods-KTAttributedPrices_Tests/Pods-KTAttributedPrices_Tests-umbrella.h
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_KTAttributedPrices_TestsVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_KTAttributedPrices_TestsVersionString[];
KVTaniguchi/KTAttributedPrices
Example/Pods/Target Support Files/KTAttributedPrices/KTAttributedPrices-umbrella.h
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double KTAttributedPricesVersionNumber; FOUNDATION_EXPORT const unsigned char KTAttributedPricesVersionString[];
SAE-Geneve/sqlite-Surue
SQLib/SQLiteImpl.h
<reponame>SAE-Geneve/sqlite-Surue #pragma once #include "SQLib.h" #include <sqlite3.h> namespace sql { class SQLiteImpl : public SQLib { public: SQLiteImpl(const std::string& file); virtual ~SQLiteImpl(); bool ExecuteString(const std::string& cmd) override; const std::string& GetError() const overr...
Yyassin/SystemsProgramming
operating_systems/concurrent_sort/semWrapper.h
<reponame>Yyassin/SystemsProgramming #include <sys/sem.h> #include <sys/types.h> /** * @brief Creates num_sem semaphores associated * with key. * @param key key_t, the semaphore key. * @param num_sem int, the number of semaphores to create. * @returns The semid on success, -1 otherwise. */ int sem_create(key_t ...
Yyassin/SystemsProgramming
operating_systems/msg_queue_calc/Chrono.c
<gh_stars>0 /** * Chrono : Timer Module * @Author: <NAME> * @Date: November 23, 2021 */ #include <stdlib.h> #include <stdio.h> #include <assert.h> #include "Chrono.h" Chrono* chrono_init() { Chrono* c = (Chrono *)malloc(sizeof(Chrono)); assert(c != NULL); // Initialize timers to 0 c->initial = (s...
Yyassin/SystemsProgramming
operating_systems/concurrent_sort/semun.h
<reponame>Yyassin/SystemsProgramming #ifndef SEMUN_H #define SEMUN_H /* Prevent accidental double inclusion */ #include <sys/types.h> /* For portability */ #include <sys/sem.h> union semun { /* Used in calls to semctl() */ int val; struct semid_ds ...
Yyassin/SystemsProgramming
operating_systems/msg_queue_calc/Vector.h
<reponame>Yyassin/SystemsProgramming /** * Vector Header - Dynamically Resizing Collection * @Author: <NAME> * @Date: November 23, 2021 */ #pragma once #ifndef _VECTOR_H_ #define _VECTOR_H_ #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <assert.h> // Vector struct typedef struct { ...
Yyassin/SystemsProgramming
operating_systems/concurrent_sort/semWrapper.c
<reponame>Yyassin/SystemsProgramming<filename>operating_systems/concurrent_sort/semWrapper.c<gh_stars>0 #include "semun.h" #include "semWrapper.h" int sem_create(key_t key, int num_sem) { return semget(key, num_sem, 0666 | IPC_CREAT); } int sem_delete(int semid) { union semun sem_union; return semctl(sem...
Yyassin/SystemsProgramming
operating_systems/msg_queue_calc/calculator.c
#include <sys/ipc.h> #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <sys/msg.h> #include "MessageQueueWrapper.h" #include "MedianHeap.h" /** * Calculator Module * @Author: <NAME> * @Date: November 23, 2021 */ #include "Message.h" #include "Chrono.h" #define INITIAL_CAPACITY 10 // Initial buff...
Yyassin/SystemsProgramming
operating_systems/msg_queue_calc/Vector.c
<filename>operating_systems/msg_queue_calc/Vector.c<gh_stars>0 /** * Vector Header - Dynamically Resizing Collection * @Author: <NAME> * @Date: November 23, 2021 */ #include <stdio.h> #include "Vector.h" Vector* vec_allocate(int capacity) { assert(capacity >= 0); Vector* vector = (Vector* )malloc(sizeof...
Yyassin/SystemsProgramming
operating_systems/msg_queue_calc/MessageQueueWrapper.h
/** * Message Queue Wrapper Header * @Author: <NAME> * @Date: November 23, 2021 */ #pragma once #ifndef _MSG_QUEUE_H_ #define _MSG_QUEUE_H_ #include <stdio.h> #include <string.h> #include <sys/msg.h> #include <sys/types.h> #include <sys/time.h> #include <sys/ipc.h> #include "errno.h" #include "Message.h" #define...
Yyassin/SystemsProgramming
operating_systems/concurrent_sort/shmem.h
#include <stdbool.h> #define SIZE 7 // Shared memory struct typedef struct st_shmem { char arr[SIZE]; // Array to be sorted bool valid[3]; // Stores whether process P_i has finished // sorting for a cycle in valid[i - 1] int readcount; // Ke...
Yyassin/SystemsProgramming
operating_systems/msg_queue_calc/user.c
<reponame>Yyassin/SystemsProgramming /** * User Module * @Author: <NAME> * @Date: November 23, 2021 */ #include <sys/ipc.h> #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include "Message.h" #include "MessageQueueWrapper.h" // All msg packet indexing definitions can be found in Me...
Yyassin/SystemsProgramming
operating_systems/concurrent_sort/sharedMemoryWrapper.h
#include <sys/types.h> #include <sys/shm.h> /** * @brief Creates a shared memory instance * identified by key and of size size. * @param key key_t, the shared memory key. * @param size int, the sie of the shared memory. * @returns The shared memory id if success, -1 otherwise. */ int shmem_create(key_t key, in...
Yyassin/SystemsProgramming
operating_systems/msg_queue_calc/MedianHeap.h
/** * Median Heap Header * @Author: <NAME> * @Date: November 23, 2021 */ #pragma once #ifndef _MEDIAN_HEAP_H_ #define _MEDIAN_HEAP_H_ #include "PriorityQueue.h" // Median Heap Struct typedef struct { PriorityQueue* maxHeap; // Max heap of all elems < median PriorityQueue* minHeap; // Min heap of all elem...
Yyassin/SystemsProgramming
operating_systems/msg_queue_calc/MedianHeap.c
<filename>operating_systems/msg_queue_calc/MedianHeap.c /** * Median Heap * @Author: <NAME> * @Date: November 23, 2021 */ #include "MedianHeap.h" #include <stdlib.h> /** * @brief Recursively rebalances the median heap * to ensure that the maximum difference in size * between the min and max heaps is 1. * ...
Yyassin/SystemsProgramming
operating_systems/concurrent_sort/sharedMemoryWrapper.c
<reponame>Yyassin/SystemsProgramming #include "SharedMemoryWrapper.h" int shmem_create(key_t key, int size) { return shmget(key, size, IPC_CREAT | 0666); } void* shmem_attach(int shmid) { return shmat(shmid, 0, 0); } int shmem_dettach(const void* shmaddr) { return shmdt(shmaddr); } int shmem_delete(int shm...
Yyassin/SystemsProgramming
operating_systems/msg_queue_calc/MessageQueueWrapper.c
<reponame>Yyassin/SystemsProgramming /** * Message Queue Wrapper Header * @Author: <NAME> * @Date: November 23, 2021 */ #include "MessageQueueWrapper.h" int message_queue_create(key_t key) { return msgget(key, IPC_CREAT | 0666); } int message_queue_send(int qid, Message* msg) { return msgsnd(qid, (void *...
Yyassin/SystemsProgramming
operating_systems/msg_queue_calc/Chrono.h
<gh_stars>0 /** * Chrono Header : Timer Module * @Author: <NAME> * @Date: November 23, 2021 */ #pragma once #ifndef _CHRONO_H_ #define _CHRONO_H_ #include <sys/time.h> // Seconds to micro seconds conversion factor #define MICRO_SEC_IN_SEC 1000000 // Chrono Struct typedef struct { struct timeval initial; // I...
Yyassin/SystemsProgramming
operating_systems/msg_queue_calc/PriorityQueue.h
<gh_stars>0 /** * Priority Queue Header - Min/Max Heap * @Author: <NAME> * @Date: November 23, 2021 */ #pragma once #ifndef _PRIORITY_QUEUE_H_ #define _PRIORITY_QUEUE_H_ #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <stdbool.h> #include "Vector.h" // Type of heap enum HEAP_TYPE { MIN, MAX...
Yyassin/SystemsProgramming
embedded_realtime/uart_comm/uart.c
<gh_stars>0 /** * Lab 6 - Simple PC Application * * Board UART Application <uart.c> * By: <NAME> June 10, 2021 **/ #include "msp.h" /* GPIO pin macros */ #define RED_LED ((uint8_t)BIT0) // P1.0 #define GREEN_LED ((uint8_t)BIT1) // P2.1, Using rgb as green (0,1,0) only #define SWITCH1 ((uint8_t)BIT1) // P1.1 ...
Yyassin/SystemsProgramming
operating_systems/msg_queue_calc/PriorityQueue.c
/** * Priority Queue - Min/Max Heap * @Author: <NAME> * @Date: November 23, 2021 */ #include "PriorityQueue.h" // Helper macro to get minimum of two numbers a and b #define min(a,b) (((a) < (b)) ? (a) : (b)) /** * @brief Recursively heapifies (percolates) the specified * node down the specified queue's binary...
Yyassin/SystemsProgramming
operating_systems/concurrent_determinant/shared_memory.h
/** * Defines the structure of the shared memory block. * @Author: <NAME> * @Date: October 26 2021 */ #include <stdbool.h> #define M_SIZE 3 typedef struct st_shmem { double M[M_SIZE][M_SIZE]; // 3x3 Matrix indexed (row, col) double D[M_SIZE]; // Cofactor for each col double L[M_SIZE]; ...
Yyassin/SystemsProgramming
operating_systems/concurrent_sort/CSORT.c
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <unistd.h> #include <sys/shm.h> #include <sys/wait.h> #include <sys/time.h> #include <string.h> #include "sharedMemoryWrapper.h" #include "semWrapper.h" #include "shmem.h" /* Utility Macros */ #define ASSERT(condition, msg) { if(!(condition)) { printf...
Yyassin/SystemsProgramming
operating_systems/concurrent_determinant/DET.c
<gh_stars>0 /** * Concurrent Determinant Calculation * @Author: <NAME> * @Date: October 26, 2021 */ /** * Determinant Background: * * | a b c | * | d e f | * | g h i | * * Cofactor expansion along row 1 gives * D = a(1)| e f | + b(-1)| d f | + c(1)| d e | * | h i | | g i | | g h | ...
Yyassin/SystemsProgramming
operating_systems/msg_queue_calc/Message.h
<reponame>Yyassin/SystemsProgramming #pragma once #ifndef _MESSAGE_H_ #define _MESSAGE_H_ #include <string.h> #include <stdio.h> #include <assert.h> #include <stdbool.h> // Operand buffer indices for message components #define RESULT 0 #define ARGUMENT 0 #define MEDIAN1 0 #define MEDIAN2 1 #define FLAG_TWO_MEDIAN 2 #...
daihieptn97/react-native-smartconfig-swjava
ios/EspTouch/task/ESPTouchTaskParameter.h
// // ESPTaskParameter.h // EspTouchDemo // // Created by fby on 5/20/15. // Copyright (c) 2015 fby. All rights reserved. // #import <Foundation/Foundation.h> @interface ESPTaskParameter : NSObject /** * get interval millisecond for guide code(the time between each guide code sending) * @return interval millis...
daihieptn97/react-native-smartconfig-swjava
ios/SmartconfigSwjava-Bridging-Header.h
<reponame>daihieptn97/react-native-smartconfig-swjava<filename>ios/SmartconfigSwjava-Bridging-Header.h #import <React/RCTBridgeModule.h> #import <React/RCTEventEmitter.h> #import "ESPTouchTask.h" #import "ESPTouchResult.h" #import "ESPTouchDelegate.h"
daihieptn97/react-native-smartconfig-swjava
ios/EspTouch/udp/ESPUDPSocketClient.h
<gh_stars>1-10 // // ESPUDPSocketClient.h // EspTouchDemo // // Created by fby on 4/13/15. // Copyright (c) 2015 fby. All rights reserved. // #import <Foundation/Foundation.h> @interface ESPUDPSocketClient : NSObject - (void) close; - (void) interrupt; /** * send the data by UDP * * @param bytesArray2 * ...
qwertylevel3/HairTest
src/hair/hairstrand.h
#ifndef HAIRSTRAND_H #define HAIRSTRAND_H #include"stable.h" struct HairStrand { //此发束中节点数组起始和结束索引 //默认起始为发根 int nodeStart,nodeEnd; }; #endif // HAIRSTRAND_H
qwertylevel3/HairTest
src/hair/hairmodel.h
#ifndef HAIRMODEL_H #define HAIRMODEL_H #include "model.h" #include "hairnode.h" #include"hairstrand.h" #include"sphere.h" class HairModel:public Model { public: HairModel(); bool init(); void draw(QOpenGLShaderProgram &shaderProgram); void update(Env& env,float dt); void rotate(float angle, floa...
qwertylevel3/HairTest
src/model.h
#ifndef MODEL_H #define MODEL_H #include"stable.h" class Env; enum ShaderType { Empty,Phong,KK }; class Model:public QOpenGLFunctions { public: Model(); ~Model(); bool load(const QString &filePath); //根据point,indexs,normals初始化buf virtual bool init(); //根据当前buf绘制三角形 virtual voi...
qwertylevel3/HairTest
src/line.h
<reponame>qwertylevel3/HairTest<gh_stars>0 #ifndef LINE_H #define LINE_H #include"model.h" //线 class Line:public Model { public: Line(); bool init(); void setP1(QVector3D p); void setP2(QVector3D p); void update(Env &env, float dt); void draw(QOpenGLShaderProgram &shaderProgram); protected: ...
qwertylevel3/HairTest
src/env.h
<reponame>qwertylevel3/HairTest #ifndef ENV_H #define ENV_H #include"stable.h" #include"sphere.h" struct Env { QVector<Sphere*> sphereBox; float damping{0.7}; QVector4D wind; }; #endif // ENV_H
qwertylevel3/HairTest
src/sphere.h
#ifndef SPHERE_H #define SPHERE_H //#include"stable.h" #include"model.h" //碰撞球 class Sphere:public Model { public: Sphere(); bool init(); float getR(); QVector3D getCenter(); protected: float r; QVector3D pos; }; #endif // SPHERE_H
qwertylevel3/HairTest
src/hair/hairnode.h
<reponame>qwertylevel3/HairTest #ifndef HAIRNODE_H #define HAIRNODE_H #include"stable.h" struct HairNode { //前帧,本帧位置 QVector3D p0,p1; //和上一节点止动长度 float length; //质量 float mass; }; #endif // HAIRNODE_H
qwertylevel3/HairTest
src/stable.h
#ifndef STABLE_H #define STABLE_H #include <QMainWindow> #include <QFile> #include <QTextStream> #include <QVarLengthArray> #include <QString> #include <QVector> #include<QOpenGLFunctions> #include<QOpenGLBuffer> #include<QOpenGLWidget> #include<QTimer> #include<QFileInfo> #include<QMouseEvent> #include<QWheelEvent> #...
qwertylevel3/HairTest
src/mainwindow.h
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include"stable.h" #include"openglscene.h" namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); public slots: void changeAmbiendColor(); void changeDiffuseCol...
qwertylevel3/HairTest
src/openglscene.h
#ifndef OPENGLSCENE_H #define OPENGLSCENE_H #include"stable.h" #include"model.h" #include"sphere.h" #include"env.h" QT_BEGIN_NAMESPACE class QPainter; class QOpenGLContext; class QOpenGLPaintDevice; QT_END_NAMESPACE struct Camera { QVector3D pos{0.0,0.0,-10.0}; QVector3D center{0.0,0.0,0.0}; QVector3D ...
qwertylevel3/HairTest
src/bcurve.h
<reponame>qwertylevel3/HairTest<filename>src/bcurve.h<gh_stars>0 #ifndef BCURVE_H #define BCURVE_H #include "model.h" class BCurve:public Model { public: BCurve(); bool init(); void draw(QOpenGLShaderProgram &shaderProgram); void update(Env &env, float dt); void setP1(QVector3D p); void setP2...
fernandoalex/stuff
cs50/week1/credit.c
<gh_stars>0 #include<stdio.h> int main() { // Lets pick a long here, but when doing a copy to the CS50 IDE // we need to change this to use the get_long function. long age = 1; printf("%ld", age); }
fernandoalex/stuff
cs50/week1/mario.c
<filename>cs50/week1/mario.c #include<stdio.h> int main() { int height; do { printf("Height: "); scanf("%d", &height); } while (height <= 0 || height >= 9); int i; for(i = 1;i <= height;i++) { int j; int full_height = height * 2; for(j = 1; j <= full_height + 1; j++){ if(i + j <= height){ ...
fernandoalex/stuff
cs50/week1/hello.c
#include <stdio.h> int main(void) { int one = 1; int two = 2; printf("%d\n", one); printf("%d\n", two); printf("hello world!\n"); }
DeJayDev/leopard
lib/ios/PvLeopard.xcframework/ios-arm64_i386_x86_64-simulator/PvLeopard.framework/Headers/PvLeopard.h
#import <Foundation/Foundation.h> //! Project version number for PvLeopard. FOUNDATION_EXPORT double PvLeopardVersionNumber; //! Project version string for PvLeopard. FOUNDATION_EXPORT const unsigned char PvLeopardVersionString[];
DeJayDev/leopard
binding/flutter/ios/Classes/LeopardPlugin.h
<reponame>DeJayDev/leopard // // Copyright 2022 Picovoice Inc. // // You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE" // file accompanying this source. // // Unless required by applicable law or agreed to in writing, software distributed under the Licens...
DeJayDev/leopard
lib/ios/PvLeopard.xcframework/ios-arm64_i386_x86_64-simulator/PvLeopard.framework/Headers/pv_leopard.h
<reponame>DeJayDev/leopard /* Copyright 2019-2022 Picovoice Inc. You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE" file accompanying this source. Unless required by applicable law or agreed to in writing, software distributed under the L...
DeJayDev/leopard
demo/c/leopard_demo.c
<reponame>DeJayDev/leopard<gh_stars>0 /* Copyright 2019-2022 Picovoice Inc. You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE" file accompanying this source. Unless required by applicable law or agreed to in writing, software distributed ...
coincash/kitap-kabile-hakk-nda
ui/viewmodel/wallet_view.h
// Copyright 2018 The Beam Team // // 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...
coincash/kitap-kabile-hakk-nda
wallet/litecoin/litecoin_side.h
<reponame>coincash/kitap-kabile-hakk-nda // Copyright 2019 The Beam Team // // 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 // // ...
coincash/kitap-kabile-hakk-nda
wallet/swaps/second_side.h
// Copyright 2019 The Beam Team // // 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...
coincash/kitap-kabile-hakk-nda
ui/viewmodel/status_holder.h
<filename>ui/viewmodel/status_holder.h // Copyright 2018 The Beam Team // // 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 req...
coincash/kitap-kabile-hakk-nda
wallet/swaps/shared_tx_builder.h
<filename>wallet/swaps/shared_tx_builder.h<gh_stars>1-10 // Copyright 2019 The Beam Team // // 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/LICE...
coincash/kitap-kabile-hakk-nda
ui/model/qr.h
// Copyright 2019 The Beam Team // // 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...
coincash/kitap-kabile-hakk-nda
wallet/swaps/swap_transaction.h
<reponame>coincash/kitap-kabile-hakk-nda<filename>wallet/swaps/swap_transaction.h // Copyright 2018 The Beam Team // // 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...
coincash/kitap-kabile-hakk-nda
ui/viewmodel/utxo_view.h
// Copyright 2018 The Beam Team // // 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...
coincash/kitap-kabile-hakk-nda
ui/viewmodel/send_view.h
<filename>ui/viewmodel/send_view.h<gh_stars>1-10 // Copyright 2018 The Beam Team // // 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 // // ...
chrisdembia/agent-bicycle
randlov1998/randlov1998.c
/* saved from url=(0050)http://www.ailab.si/dorian/MLControl/BikeCCode.htm */ #include <math.h> #include <stdio.h> #include "parametre.h" float calc_dist_to_goal(float xf, float xb, float yf, float yb); float calc_angle_to_goal(float xf, float xb, float yf, float yb); #define R1 -1.0 #define R2 0.0 ...
saad-s/gattlib
examples/gatttool/utils.c
/* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2011 Nokia Corporation * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or ...
saad-s/gattlib
dbus/gattlib_advertisement.c
/* * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 2016-2021, <NAME> <<EMAIL>> */ #include "gattlib_internal.h" #if BLUEZ_VERSION < BLUEZ_VERSIONS(5, 40) int gattlib_get_advertisement_data(gatt_connection_t *connection, gattlib_advertisement_data_t **advertisement_data, size_t *advertisement_data_cou...
saad-s/gattlib
examples/discover/discover.c
/* * * GattLib - GATT Library * * Copyright (C) 2016-2021 <NAME> <<EMAIL>> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your opt...
saad-s/gattlib
bluez/bluez5/attrib/gattrib.c
/* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2010 Nokia Corporation * Copyright (C) 2010 <NAME> <<EMAIL>> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundat...
saad-s/gattlib
examples/notification/notification.c
<filename>examples/notification/notification.c /* * * GattLib - GATT Library * * Copyright (C) 2016-2021 <NAME> <<EMAIL>> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; eithe...
saad-s/gattlib
examples/find_eddystone/find_eddystone.c
/* * * GattLib - GATT Library * * Copyright (C) 2021 <NAME> <<EMAIL>> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) ...
saad-s/gattlib
common/logging_backend/printf/gattlib_logging.c
/* * SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-or-later * * Copyright (c) 2021, <NAME> <<EMAIL>> */ #include "gattlib_internal.h" void gattlib_log(int level, const char *format, ...) { va_list args; FILE *stream = stdout; if (level == GATTLIB_ERROR) { stream = stderr; } va_start(args, format); vf...
saad-s/gattlib
dbus/gattlib.c
<gh_stars>100-1000 /* * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 2016-2021, <NAME> <<EMAIL>> */ #include <glib.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include "gattlib_internal.h" #define CONNECT_TIMEOUT 4 static const char *m_dbus_error_unknown_object = "GDBus.Error:org....
saad-s/gattlib
examples/gatttool/interactive.c
/* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2011 Nokia Corporation * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or ...
saad-s/gattlib
bluez/bluez5/attrib/gattrib.h
<gh_stars>100-1000 /* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2010 Nokia Corporation * Copyright (C) 2010 <NAME> <<EMAIL>> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Fr...
saad-s/gattlib
examples/ble_scan/ble_scan.c
/* * * GattLib - GATT Library * * Copyright (C) 2021 <NAME> <<EMAIL>> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) ...
saad-s/gattlib
examples/read_write_memory/read_write_memory.c
/* * * GattLib - GATT Library * * Copyright (C) 2016-2021 <NAME> <<EMAIL>> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your opt...
saad-s/gattlib
dbus/gattlib_stream.c
/* * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 2016-2021, <NAME> <<EMAIL>> */ #include <gio/gunixfdlist.h> #include "gattlib_internal.h" #if BLUEZ_VERSION < BLUEZ_VERSIONS(5, 48) int gattlib_write_char_by_uuid_stream_open(gatt_connection_t* connection, uuid_t* uuid, gatt_stream_t **stream, uint16_...
saad-s/gattlib
bluez/gattlib_connect.c
/* * * GattLib - GATT Library * * Copyright (C) 2016-2021 <NAME> <<EMAIL>> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your opti...
saad-s/gattlib
common/gattlib_common.c
<filename>common/gattlib_common.c /* * SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-or-later * * Copyright (c) 2021, <NAME> <<EMAIL>> */ #if defined(WITH_PYTHON) #include <Python.h> #endif #include <stdio.h> #include "gattlib_internal.h" void gattlib_register_notification(gatt_connection_t* connection, gat...
saad-s/gattlib
dbus/gattlib_adapter.c
/* * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 2016-2021, <NAME> <<EMAIL>> */ #include "gattlib_internal.h" int gattlib_adapter_open(const char* adapter_name, void** adapter) { char object_path[20]; OrgBluezAdapter1 *adapter_proxy; struct gattlib_adapter *gattlib_adapter; GError *error = NULL; ...
saad-s/gattlib
dbus/gattlib_notification.c
/* * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 2016-2021, <NAME> <<EMAIL>> */ #include <glib.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include "gattlib_internal.h" struct gattlib_notification_handle { OrgBluezGattCharacteristic1 *gatt; gulong signal_id; uuid_t uuid; }; #if...
saad-s/gattlib
bluez/bluez4/lib/uuid.h
/* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2011 Nokia Corporation * Copyright (C) 2011 <NAME> <<EMAIL>> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundat...
saad-s/gattlib
bluez/gattlib_discover.c
<filename>bluez/gattlib_discover.c<gh_stars>100-1000 /* * * GattLib - GATT Library * * Copyright (C) 2016-2021 <NAME> <<EMAIL>> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; ...
saad-s/gattlib
dbus/gattlib_internal.h
<filename>dbus/gattlib_internal.h /* * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 2016-2021, <NAME> <<EMAIL>> */ #ifndef __GATTLIB_INTERNAL_H__ #define __GATTLIB_INTERNAL_H__ #include <assert.h> #include <pthread.h> #include "gattlib_internal_defs.h" #include "gattlib.h" #include "org-bluez-adaptat...
saad-s/gattlib
examples/read_write/read_write.c
<reponame>saad-s/gattlib /* * * GattLib - GATT Library * * Copyright (C) 2016-2021 <NAME> <<EMAIL>> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lic...
saad-s/gattlib
bluez/gattlib_read_write.c
/* * * GattLib - GATT Library * * Copyright (C) 2016-2021 <NAME> <<EMAIL>> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your opti...
saad-s/gattlib
common/logging_backend/syslog/gattlib_logging.c
/* * SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-or-later * * Copyright (c) 2021, <NAME> <<EMAIL>> */ #include <syslog.h> #include "gattlib_internal.h" static const int m_gattlib_log_level_to_syslog[] = { LOG_ERR, LOG_WARNING, LOG_INFO, LOG_DEBUG }; void gattlib_log(int level, const char *format, ...) { ...
saad-s/gattlib
common/gattlib_eddystone.c
/* * SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-or-later * * Copyright (c) 2021, <NAME> <<EMAIL>> */ #include <string.h> #include "gattlib_internal.h" #define EDDYSTONE_SERVICE_UUID "0000FEAA-0000-1000-8000-00805F9B34FB" const uuid_t gattlib_eddystone_common_data_uuid = CREATE_UUID16(0xFEAA); const char ...
saad-s/gattlib
common/gattlib_internal_defs.h
<reponame>saad-s/gattlib<filename>common/gattlib_internal_defs.h /* * SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-or-later * * Copyright (c) 2021, <NAME> <<EMAIL>> */ #ifndef __GATTLIB_INTERNAL_DEFS_H__ #define __GATTLIB_INTERNAL_DEFS_H__ #include <stdbool.h> #include "gattlib.h" enum handler_type { UNKNOW...
saad-s/gattlib
bluez/gattlib_adapter.c
<gh_stars>100-1000 /* * * GattLib - GATT Library * * Copyright (C) 2016-2021 <NAME> <<EMAIL>> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, o...
saad-s/gattlib
examples/gatttool/gatttool.h
/* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2011 Nokia Corporation * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or ...
saad-s/gattlib
examples/advertisement_data/advertisement_data.c
/* * * GattLib - GATT Library * * Copyright (C) 2021 <NAME> <<EMAIL>> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) ...
saad-s/gattlib
dbus/gattlib_char.c
/* * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 2016-2021, <NAME> <<EMAIL>> */ #include <stdlib.h> #include "gattlib_internal.h" #define BLUEZ_GATT_WRITE_VALUE_TYPE_MASK (0x7) #define BLUEZ_GATT_WRITE_VALUE_TYPE_WRITE_WITH_RESPONSE (1 << 0) #define BLUEZ_GATT_WRITE_VALUE_TYPE_...
saad-s/gattlib
examples/gatttool/gatttool.c
<gh_stars>100-1000 /* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2010 Nokia Corporation * Copyright (C) 2010 <NAME> <<EMAIL>> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Fr...
fumyuun/cirgen
src/generic_block.h
#ifndef GENERIC_BLOCK_H #define GENERIC_BLOCK_H #include <gtk/gtk.h> #include <string> #include <list> #include "drawable.h" class generic_block_t : public drawable_t { private: std::string name; std::list<std::string> inputs; std::list<std::string> outputs; // calculated values unsigned int h...
fumyuun/cirgen
src/model.h
<reponame>fumyuun/cirgen #ifndef MODEL_H #define MODEL_H #include <gtk/gtk.h> #include <list> #include "drawable.h" struct model_t { std::list<drawable_t*> drawables; void draw(GtkWidget *widget); drawable_t* intersects(unsigned int x, unsigned int y); }; #endif /* MODEL_H */
fumyuun/cirgen
src/drawable.h
<reponame>fumyuun/cirgen<filename>src/drawable.h #ifndef DRAWABLE_H #define DRAWABLE_H #include <gtk/gtk.h> struct drawable_t { virtual void draw(GtkWidget *widget); virtual bool intersects(unsigned int x, unsigned int y); }; #endif /* DRAWABLE_H */
IchordeDionysos/FirebaseUI-iOS
FirebaseAuthUI/AccountManagement/FUIAccountSettingsOperation_Internal.h
// // Copyright (c) 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 agre...
IchordeDionysos/FirebaseUI-iOS
FirebaseAuthUI/FUIStaticContentTableViewController.h
<reponame>IchordeDionysos/FirebaseUI-iOS<filename>FirebaseAuthUI/FUIStaticContentTableViewController.h // // Copyright (c) 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 Licens...
IchordeDionysos/FirebaseUI-iOS
FirebaseDatabaseUI/FUIIndexCollectionViewDataSource.h
<gh_stars>1000+ // // Copyright (c) 2016 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 applic...
IchordeDionysos/FirebaseUI-iOS
FirebasePhoneAuthUI/CountryCode/FUICountryCodes.h
// // Copyright (c) 2016 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 agre...