repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
yakman2020/OpenStackService
journalstream.h
/****************************** Module Header ******************************\ * Module Name: ServiceBase.h * Project: CppWindowsService * Copyright (c) Microsoft Corporation. * * Provides a class for performing logging according to the output types available in * systemd unit files. * * This source is su...
mtbr-msys/DumpTS
src/b_cas_card.h
#ifndef B_CAS_CARD_H #define B_CAS_CARD_H #include "portable.h" //#include <stdint.h> //#include <winscard.h> typedef struct { uint8_t system_key[32]; uint8_t init_cbc[8]; int64_t bcas_card_id; int32_t card_status; int32_t ca_system_id; } B_CAS_INIT_STATUS; typedef struct { int64_t *data; int32_t count;...
mtbr-msys/DumpTS
src/portable.h
#ifndef PORTABLE_H #define PORTABLE_H #include <stdint.h> #if !defined(_WIN32) #define _open open #define _close close #define _read read #define _write write #define _lseeki64 lseek #define _telli64(fd) (lseek(fd,0,SEEK_CUR)) #define _O_BINARY (0) #define _O_RDONLY (O_RDONLY) #define _O_WRONLY (O_WRO...
AvariusProject/VanillaCore
src/modules/Eluna/CorpseMethods.h
<filename>src/modules/Eluna/CorpseMethods.h<gh_stars>0 /* * Copyright (C) 2010 - 2016 Eluna Lua Engine <http://emudevs.com/> * This program is free software licensed under GPL version 3 * Please see the included DOCS/LICENSE.md for more information */ #ifndef CORPSEMETHODS_H #define CORPSEMETHODS_H /*** * The remain...
AvariusProject/VanillaCore
src/modules/Eluna/ElunaTemplate.h
<gh_stars>0 /* * Copyright (C) 2010 - 2016 Eluna Lua Engine <http://emudevs.com/> * This program is free software licensed under GPL version 3 * Please see the included DOCS/LICENSE.md for more information */ #ifndef _ELUNA_TEMPLATE_H #define _ELUNA_TEMPLATE_H extern "C" { #include "lua.h" #include "lualib.h" #includ...
AvariusProject/VanillaCore
src/game/WorldHandlers/Transports.h
/** * MaNGOS is a full featured server for World of Warcraft, supporting * the following clients: 1.12.x, 2.4.3, 3.3.5a, 4.3.4a and 5.4.8 * * Copyright (C) 2005-2017 MaNGOS project <https://getmangos.eu> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Gen...
AvariusProject/VanillaCore
src/modules/Eluna/GuildMethods.h
<reponame>AvariusProject/VanillaCore /* * Copyright (C) 2010 - 2016 Eluna Lua Engine <http://emudevs.com/> * This program is free software licensed under GPL version 3 * Please see the included DOCS/LICENSE.md for more information */ #ifndef GUILDMETHODS_H #define GUILDMETHODS_H /*** * Inherits all methods from: non...
AvariusProject/VanillaCore
dep/libmpq/libmpq/mpq.c
<reponame>AvariusProject/VanillaCore<filename>dep/libmpq/libmpq/mpq.c<gh_stars>0 /* * mpq.c -- functions for developers using libmpq. * * Copyright (c) 2003-2008 <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 ...
AvariusProject/VanillaCore
src/modules/Eluna/ElunaQueryMethods.h
/* * Copyright (C) 2010 - 2016 Eluna Lua Engine <http://emudevs.com/> * This program is free software licensed under GPL version 3 * Please see the included DOCS/LICENSE.md for more information */ #ifndef QUERYMETHODS_H #define QUERYMETHODS_H #ifndef TRINITY #define RESULT result #else #define RESULT (*result) #end...
AvariusProject/VanillaCore
src/modules/Eluna/VehicleMethods.h
<gh_stars>0 /* * Copyright (C) 2010 - 2016 Eluna Lua Engine <http://emudevs.com/> * This program is free software licensed under GPL version 3 * Please see the included DOCS/LICENSE.md for more information */ #ifndef VEHICLEMETHODS_H #define VEHICLEMETHODS_H #ifndef CLASSIC #ifndef TBC /*** * Inherits all methods fr...
wt-student-projects/raster-js
src/Compute.Core/JsExtensions.h
<filename>src/Compute.Core/JsExtensions.h #pragma once #include "ComputeCore.h" namespace compute { class JsRuntime; } class JsAwaitTask; namespace v8 { using PersistentCopyable = Persistent<Function, CopyablePersistentTraits<Function>>; using FunctionArgs = const FunctionCallbackInfo<Value>&; usin...
wt-student-projects/raster-js
src/Compute.Core/JsPlatform.h
<gh_stars>0 #pragma once #include "ComputeCore.h" #include "JsPlatformTasks.h" #include "JsPlatformStructures.h" class JsPlatform : public v8::Platform { JsBackgroundThread taskThread; JsTaskBuffer taskBuffer; JsTaskQueue taskQueue; v8::Persistent<v8::Context> context; std::vector<SDL_Event> eve...
wt-student-projects/raster-js
src/Compute.Core/Modules.h
#pragma once #include "ComputeCore.h" #include "JsExtensions.h" namespace compute { using JsModuleRegisterCallback = std::function<void(v8::Local<v8::Object>&)>; using JsModule = v8::Persistent<v8::Value, v8::CopyablePersistentTraits<v8::Value>>; namespace modules { extern std::map<std::stri...
wt-student-projects/raster-js
src/Compute.Core/DateTime.h
#pragma once #include "ComputeCore.h" #include "JsExtensions.h" namespace compute { void registerDateTime(v8::Exports exports); }
wt-student-projects/raster-js
src/Compute.Core/JsPlatformTasks.h
<gh_stars>0 #pragma once #include "ComputeCore.h" class JsPlatform; class JsAwaitTask : public v8::Task { std::function<bool()> action; public: explicit JsAwaitTask(std::function<bool()> action); ~JsAwaitTask() = default; void Run() override; }; class JsRepeatTask : public v8::Task { std::funct...
wt-student-projects/raster-js
src/Compute.Core/JsArrayAllocater.h
<gh_stars>0 #pragma once #include "ComputeCore.h" class ArrayBufferAllocator : public v8::ArrayBuffer::Allocator { public: ArrayBufferAllocator() = default; ~ArrayBufferAllocator() = default; void * AllocateUninitialized(size_t length) override; void * Allocate(size_t length) override; void Fre...
wt-student-projects/raster-js
src/Compute/main.h
#pragma once #include "Application.h" using Poco::Util::OptionException;
wt-student-projects/raster-js
src/Compute.Core/JsPlatformStructures.h
#pragma once #include "ComputeCore.h" using Concurrency::concurrent_vector; using Concurrency::concurrent_queue; class JsTaskQueue { concurrent_queue<v8::Task*> elements; std::atomic<int> size; public: JsTaskQueue(); ~JsTaskQueue(); void push(v8::Task* task); void pop(); int length(...
wt-student-projects/raster-js
src/Compute.Core/JsRuntime.h
#pragma once #include "ComputeCore.h" #include "JsPlatform.h" namespace compute { class JsRuntime { static JsPlatform platform; public: explicit JsRuntime(std::vector<std::string>& args); virtual ~JsRuntime(); void initialise(std::vector<std::string>& args); void ...
wt-student-projects/raster-js
src/Compute.Core/Fs.h
<reponame>wt-student-projects/raster-js<filename>src/Compute.Core/Fs.h  #pragma once #include "ComputeCore.h" #include "JsExtensions.h" namespace compute { std::string readStartupFile(std::string filename); std::string readFile(std::string filename); void registerFs(v8::Exports exports); }
wt-student-projects/raster-js
src/Compute.Core/JsDebug.h
<gh_stars>0 #pragma once #include "ComputeCore.h" struct DebugData : v8::Debug::ClientData { int socket; }; template<typename S> std::vector<uint16_t> ToUInt16Vector(const S& str) { size_t s = str.size(); std::vector<uint16_t> data(s); for (size_t i = 0; i < s; ++i) { if (str[i] != 0) ...
wt-student-projects/raster-js
src/Compute.Core/Display.h
<reponame>wt-student-projects/raster-js #pragma once #include "ComputeCore.h" #include "JsObject.h" #include "JsExtensions.h" namespace compute { class Window : public JsObject<Window> { static v8::Persistent<v8::ObjectTemplate> objectTemplate; static v8::Persistent<v8::Function> constructor;...
wt-student-projects/raster-js
src/Compute.Core/Application.h
<filename>src/Compute.Core/Application.h #pragma once #include "ComputeCore.h" #include "Modules.h" namespace compute { class ComputeApp : public Poco::Util::Application { using OptionsCallback = Poco::Util::OptionCallback<ComputeApp>::Callback; using OptionSet = Poco::Util::OptionSet; ...
wt-student-projects/raster-js
src/Compute.Core/ComputeCore.h
<gh_stars>0 #pragma once #include <concurrent_vector.h> #include <concurrent_queue.h> #include <thread> #include <future> #include <mutex> #include <stdio.h> #include <memory> #include <stdio.h> #include <algorithm> #include <iostream> #include <array> #include <stdlib.h> #include <atomic> #include <string.h> #includ...
wt-student-projects/raster-js
src/Compute.Core/Http.h
<filename>src/Compute.Core/Http.h #pragma once #include "ComputeCore.h" #include "JsObject.h" #include "JsExtensions.h" namespace compute { void registerHttp(v8::Exports exports); }
wt-student-projects/raster-js
src/Compute.Core/JsObject.h
#pragma once #include "ComputeCore.h" template<typename T> class JsObject { v8::Global<v8::Object> instance; public: virtual ~JsObject() = default; static v8::Local<v8::Object> newTemplate(v8::Persistent<v8::ObjectTemplate>& templ) { const auto currentIsolate = v8::Isolate::GetCurrent(); ...
kolesa-team/goexiv
helper.h
<reponame>kolesa-team/goexiv #ifdef __cplusplus extern "C" { #endif #define DECLARE_STRUCT(name) typedef struct _##name name DECLARE_STRUCT(Exiv2ImageFactory); DECLARE_STRUCT(Exiv2Image); DECLARE_STRUCT(Exiv2XmpData); DECLARE_STRUCT(Exiv2XmpDatum); DECLARE_STRUCT(Exiv2IptcData); DECLARE_STRUCT(Exiv2IptcDatum); DECLAR...
VisionSystemsInc/docker-vxl
pyproj/pyhello.h
<filename>pyproj/pyhello.h #ifndef pyhello_h_included_ #define pyhello_h_included_ #include <pybind11/pybind11.h> namespace pyproj { namespace hello { void wrap_hello(pybind11::module &m); }} #endif
sdsunjay/DWPACLEC2
src/slave/headers/common.h
<reponame>sdsunjay/DWPACLEC2<gh_stars>1-10 #ifndef _COMMON_H_ #define _COMMON_H_ #include <pthread.h> #include <mysql/mysql.h> // how many passwords to feed to a CPU/GPU crack thread every time #define PWD_BATCH_SIZE_CPU 100000 #define PWD_BATCH_SIZE_GPU 1000000 #define QUERY_BUFFER 100 //SUNJAY //FOR DATABASE //N...
sdsunjay/DWPACLEC2
src/slave/other_unused/numbers.c
<reponame>sdsunjay/DWPACLEC2 void iodb_getNumAddresses(int id, int *numAddresses){ MYSQL *conn; MYSQL_STMT *stmt; char *sql; // Bind variables MYSQL_BIND param[1], result[1]; int myId, myNumAddresses; my_bool is_null[1]; sql = "select LENGTH from DICT LIMIT ?"; // Open Database openDB...
sdsunjay/DWPACLEC2
test/pcap2hcap_and_beyond.c
<filename>test/pcap2hcap_and_beyond.c /* pcap2hcap_and_beyond.c * * hashkill - a hash cracking tool * 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 Foundation;...
sdsunjay/DWPACLEC2
src/slave/other_unused/better_readFile.c
#include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <sys/mman.h> #include <errno.h> #include <stdio.h> #include <err.h> #include <stdlib.h> #include<string.h> #define UNDEFINED (-1) //100,000,000 - 100 million words #define NUM_WORDS 100000000 int main(int a...
sdsunjay/DWPACLEC2
src/slave/other_unused/sunjaygenpmk.c
<reponame>sdsunjay/DWPACLEC2 /* * genpmk - Generate a file with precomputed PMK's and words * * Copyright (c) 2005, <NAME> <<EMAIL>> * * $Id: genpmk.c,v 4.1 2008/03/20 16:49:38 jwright Exp $ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public...
sdsunjay/DWPACLEC2
src/slave/headers/cpu-crack.h
#ifndef _CPU_CRACK_H_ #define _CPU_CRACK_H_ #include "common.h" //extern "C" pwd_range fetch_pwd(char type, const unsigned long* first, const unsigned long* last); //extern "C" void* crack_cpu_thread(void *arg); #endif
sdsunjay/DWPACLEC2
src/slave/other_unused/readFile.c
#include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <sys/mman.h> #include <errno.h> #include <stdio.h> #include <err.h> #include <stdlib.h> #include<string.h> #define UNDEFINED (-1) //100,000,000 - 100 million words //#define NUM_WORDS 100000000 //global bad.....
sdsunjay/DWPACLEC2
src/slave/other_unused/make_queries.c
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <sys/stat.h> #include <unistd.h> #include <pcap.h> #include <signal.h> #include <sys/types.h> #include <fcntl.h> #include <errno.h> #include <stdio.h> #include <mysql/mysql.h> #include <mysql/my_sys.h> #include <mysql/my_global.h> char *words; /*USED t...
sdsunjay/DWPACLEC2
src/slave/headers/gpu-crack.h
<filename>src/slave/headers/gpu-crack.h #ifndef _GPU_CRACK_H_ #define _GPU_CRACK_H_ #include <stdint.h> // Number of threads per GPU core #define THREADS_PER_BLOCK 128 // SHA_CTX struct for the device typedef struct { uint32_t h0 , h1 , h2 , h3 , h4; } SHA_DEV_CTX; // Input to the GPU kernel typedef struct { ...
sdsunjay/DWPACLEC2
src/db/genAllPhone.c
<reponame>sdsunjay/DWPACLEC2<gh_stars>1-10 #include<stdio.h> #include<stdlib.h> int main(int argc, char* argv[]) { char ans; char output; int num[10]; int i[20]; num[0]=8; num[1]=0; num[2]=5; // num[3]=5; FILE *fp=NULL; ans='0'; output='0'; if(argc==1) { printf("output to stdout? (y | n)\n"); } else ...
vitaliy1919/c--static-analyzer
Lexer/FiniteMachines/FiniteStateMachine.h
// // Created by vitdmit on 2/22/19. // #ifndef LEXER_FINITESTATEMACHINE_H #define LEXER_FINITESTATEMACHINE_H #include <string> #include "../Tokens/Token.h" enum class State { Running, Ended, Undefined }; class FiniteStateMachine { protected: Token *token_; std::string current_string_; State ...
vitaliy1919/c--static-analyzer
Lexer/FiniteMachines/CommentsFiniteMachine.h
<reponame>vitaliy1919/c--static-analyzer<filename>Lexer/FiniteMachines/CommentsFiniteMachine.h // // Created by vitdmit on 2/22/19. // #ifndef LEXER_COMMENTSFINITEMACHINE_H #define LEXER_COMMENTSFINITEMACHINE_H #include "FiniteStateMachine.h" class CommentsFiniteMachine: public FiniteStateMachine { private: Stat...
vitaliy1919/c--static-analyzer
Lexer/Utils/trie.h
// // Created by vitdmit on 2/24/19. // #ifndef LEXER_TRIE_H #define LEXER_TRIE_H #include <unordered_map> #include <queue> #include <utility> #include <fstream> template <typename Key, typename Value> class mapE: public std::unordered_map<Key, Value> { public: bool in(const Key& key) { return this->fin...
vitaliy1919/c--static-analyzer
Lexer/FiniteMachines/NumbersFiniteMachine.h
<gh_stars>0 // // Created by vitdmit on 2/23/19. // #ifndef LEXER_NUMBERSFINITEMACHINE_H #define LEXER_NUMBERSFINITEMACHINE_H #include "FiniteStateMachine.h" enum class NumberStates { StartState, ZeroSymbolState, FirstDigitState, DigitSequenceState, BinDigitSequenceState, OctDigitSequenceSta...
vitaliy1919/c--static-analyzer
Lexer/Utils/string-utils.h
<gh_stars>0 // // Created by vitdmit on 2/23/19. // #ifndef LEXER_STRING_UTILS_H #define LEXER_STRING_UTILS_H #include <cctype> bool isDecDigit(char symb) { return symb >= '0' && symb <= '9'; } bool isBinDigit(char symb) { return symb == '0' || symb == '1'; } bool isHexDigit(char symb) { symb = tolower(...
vitaliy1919/c--static-analyzer
Lexer/FiniteMachines/StringLiteralFiniteMachine.h
<reponame>vitaliy1919/c--static-analyzer<gh_stars>0 // // Created by vitdmit on 2/23/19. // #ifndef LEXER_STRINGLITERALFINITEMACHINE_H #define LEXER_STRINGLITERALFINITEMACHINE_H #include "FiniteStateMachine.h" class StringLiteralFiniteMachine: public FiniteStateMachine { private: static const int START = 0; ...
vitaliy1919/c--static-analyzer
Lexer/Tokens/Token.h
<reponame>vitaliy1919/c--static-analyzer // // Created by vitdmit on 2/23/19. // #ifndef LEXER_TOKEM_H #define LEXER_TOKEM_H #include <string> #include <ostream> class Token { public: int row; int t_start; int t_end; std::string value; Token() {} friend std::ostream &operator<<(std::ostream...
vitaliy1919/c--static-analyzer
Lexer/FiniteMachines/OperatorsStateMachine.h
<filename>Lexer/FiniteMachines/OperatorsStateMachine.h // // Created by vitdmit on 2/24/19. // #ifndef LEXER_OPERATORSFINITESTATEMACHINE_H #define LEXER_OPERATORSFINITESTATEMACHINE_H #include "FiniteStateMachine.h" #include "../Utils/trie.h" using std::string; class OperatorsStateMachine: public FiniteStateMachine...
vitaliy1919/c--static-analyzer
Lexer/FiniteMachines/ReservedWordsFiniteMachine.h
// // Created by vitdmit on 2/24/19. // #ifndef LEXER_RESERVEDWORDSFINITEMACHINE_H #define LEXER_RESERVEDWORDSFINITEMACHINE_H #include "FiniteStateMachine.h" class ReservedWordsFiniteMachine: public FiniteStateMachine { public: Token * getToken() override; State processString(std::string str, int &i, int ...
rene-dohan/kill
Kill/Kill/AppDelegate.h
<reponame>rene-dohan/kill<filename>Kill/Kill/AppDelegate.h<gh_stars>0 // // AppDelegate.h // Kill // // Created by <NAME> on 2/16/13. // Copyright (c) 2013 creative_studio. All rights reserved. // #import <Cocoa/Cocoa.h> @interface AppDelegate : NSObject <NSApplicationDelegate, NSWindowDelegate>{ NSStatusItem...
ukrhel/KPP
untitled/mainwindow.h
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QMessageBox> #include <mylabel.h> namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); private slots: void on_pushButton_clicked()...
ukrhel/KPP
build-untitled-Desktop_Qt_5_11_2_MinGW_32bit-Debug/ui_mainwindow.h
/******************************************************************************** ** Form generated from reading UI file 'mainwindow.ui' ** ** Created by: Qt User Interface Compiler version 5.11.2 ** ** WARNING! All changes made in this file will be lost when recompiling UI file! ***************************************...
ukrhel/KPP
untitled/mylabel.h
<reponame>ukrhel/KPP #ifndef MYLABEL_H #define MYLABEL_H #include <QLabel> class MyLabel : public QLabel { Q_OBJECT private: int value = 0; //текущее значение баллов const int banLimit = 3; //максимальное количество штрафных баллов, //не приводящее к запрету добавления p...
ukrhel/KPP
lab2/mylabel.h
<gh_stars>0 #ifndef MYLABEL_H #define MYLABEL_H #include <QLabel> class MyLabel : public QLabel { Q_OBJECT public: explicit MyLabel(QWidget * parent = 0, Qt::WindowFlags f=0); explicit MyLabel(const QString & text, QWidget * parent =0, Qt::WindowFlags f=0); signals: void disableEnter(b...
brodybits/Android-sqlite-native-driver-pcre-regexp
native/sqlc_all.c
// FUTURE TBD: For some reason it does not work to build sqlite3.c separately. //#include "sqlite3.h" #include "sqlite3.c" #include "pcre.c" #include "sqlc.h" /* types needed for SQLiteNative_JNI.c */ #include "SQLiteNative_JNI.c" #include "sqlc.c"
brodybits/Android-sqlite-native-driver-pcre-regexp
sqlite3-pcre/pcre.c
<gh_stars>1-10 /* * Written by <NAME> <<EMAIL>>. * * The author has dedicated the code to the public domain. Anyone is free * to copy, modify, publish, use, compile, sell, or distribute the original * code, either in source code form or as a compiled binary, for any purpose, * commercial or non-commercial, and b...
DevKevinYG/UnrealUtils
NVTraceHelper.h
<gh_stars>0 // Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "Kismet/KismetSystemLibrary.h" #include "NVTraceHelper.generated.h" /** * This class contains custom traces like the ability to perform capsule traces with rotation *...
RAtioNAn/cpuinfo
main.c
#include <stdio.h> #include <stdlib.h> #include <sys/sysctl.h> #include <mach/machine.h> #include <inttypes.h> #ifndef QUERIES_SIZE #define QUERIES_SIZE 14 #endif void print_data(const char *format, const void *data, const short type) { switch (type) { case 1 : { char *str = (char *) data; ...
MinerEU/minera
minera-bin/src/libblkmaker/blktemplate.c
/* * Copyright 2012-2013 <NAME> * * This program is free software; you can redistribute it and/or modify it * under the terms of the standard MIT license. See COPYING for more details. */ #define _BSD_SOURCE #include <limits.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> #include <blktemplate....
MinerEU/minera
minera-bin/src/libblkmaker/base58.c
/* * Copyright 2012 <NAME> * * This program is free software; you can redistribute it and/or modify it * under the terms of the standard MIT license. See COPYING for more details. */ #ifndef WIN32 #include <arpa/inet.h> #else #include <winsock2.h> #endif #include <stdbool.h> #include <stdint.h> #include <string...
MinerEU/minera
minera-bin/src/libblkmaker/blktemplate.h
<reponame>MinerEU/minera /* * Copyright 2012 <NAME> * * This program is free software; you can redistribute it and/or modify it * under the terms of the standard MIT license. See COPYING for more details. */ #ifndef BLKTEMPLATE_H #define BLKTEMPLATE_H #include <stdbool.h> #include <stdint.h> #include <time.h> ...
MinerEU/minera
minera-bin/src/libblkmaker/blkmaker_jansson.c
<reponame>MinerEU/minera /* * Copyright 2012-2014 <NAME> * * This program is free software; you can redistribute it and/or modify it * under the terms of the standard MIT license. See COPYING for more details. */ #define _BSD_SOURCE #include <stdlib.h> #include <string.h> #ifndef WIN32 #include <arpa/inet.h> #...
gligneul/Deferred-Shading-Demo
UniformBuffer.h
<reponame>gligneul/Deferred-Shading-Demo /* * The MIT License (MIT) * * Copyright (c) 2016 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including witho...
gligneul/Deferred-Shading-Demo
FrameBuffer.h
/* * The MIT License (MIT) * * Copyright (c) 2016 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy,...
khaderpython/bmcweb
http/middleware_context.h
#pragma once #include "http_request.h" #include "http_response.h" #include "utility.h" namespace crow { namespace detail { template <typename... Middlewares> struct PartialContext : public black_magic::PopBack<Middlewares...>::template rebind< PartialContext>, public black_magic::LastElementType<Middl...
khaderpython/bmcweb
http/app.h
#pragma once #include "http_request.h" #include "http_server.h" #include "logging.h" #include "middleware_context.h" #include "routing.h" #include "utility.h" #include "privileges.hpp" #include <chrono> #include <cstdint> #include <functional> #include <future> #include <memory> #include <string> #include <utility> ...
emircanakinx/Card-Game-
kart oyunu.c
<reponame>emircanakinx/Card-Game- #include <stdio.h> #include <stdlib.h> typedef struct iskambil_destesi{ char sayi; char renk; struct iskambil_destesi *next; struct iskambil_destesi *prev; } iskambil_destesi; iskambil_destesi* yeni_deste_olustur(){ iskambil_destesi *head = NULL; iskambil_de...
wangshuai666/raytracing
ray.h
#ifndef RAY_H #define RAY_H #include "vec3.h" class ray { public: vec3 orig; vec3 dir; public: ray() {} ray(const vec3 &origin, const vec3 &direction) : orig(origin), dir(direction) {} inline vec3 origin() const { return orig; } inline vec3 direction() const { return dir; } vec3 at(double t) con...
wangshuai666/raytracing
hitable_list.h
// hitable_list.h #ifndef HITABLE_LIST_H #define HITABLE_LIST_H #include "hitable.h" #include "rtweekend.h" #include <memory> #include <vector> using std::make_shared; using std::shared_ptr; class hitable_list : public hitable { public: hitable_list() {} hitable_list(shared_ptr<hitable> object) { add(object); } ...
wangshuai666/raytracing
hitable.h
<gh_stars>0 // hittable.h #ifndef HITTABLE_H #define HITTABLE_H #include "rtweekend.h" class material; struct hit_record { vec3 p; vec3 normal; shared_ptr<material> mat_ptr; double t; bool front_face; inline void set_face_normal(const ray &r, const vec3 &outward_normal) { front_face = dot(r.directio...
mangeshbkamble95/blinky
main.h
<reponame>mangeshbkamble95/blinky<filename>main.h // PIC16F886 Configuration Bit Settings // 'C' source line config statements // CONFIG1 #pragma config FOSC = EXTRC_CLKOUT// Oscillator Selection bits (RC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, RC on RA7/OSC1/CLKIN) #pragma config WDTE = OFF ...
mangeshbkamble95/blinky
main.c
/* * File: main.c * Author: <NAME> * * Created on 29 December, 2017, 6:55 PM */ #include <xc.h> #include "main.h" void init(void) { TRISA=0X10; PORTA=0X00; } void main(void) { init(); }
AugustQu/ESP32-Paxcounter
include/macsniff.h
#ifndef _MACSNIFF_H #define _MACSNIFF_H // ESP32 Functions #include <esp_wifi.h> // Hash function for scrambling MAC addresses #include "hash.h" #include "senddata.h" #include "cyclic.h" #include "led.h" #define MAC_SNIFF_WIFI 0 #define MAC_SNIFF_BLE 1 uint16_t get_salt(void); uint64_t macConvert(uint8_t *paddr); b...
AugustQu/ESP32-Paxcounter
include/reset.h
<reponame>AugustQu/ESP32-Paxcounter #ifndef _RESET_H #define _RESET_H #include <driver/rtc_io.h> #include <rom/rtc.h> #include "i2c.h" #include "lorawan.h" #include "display.h" #include "power.h" void do_reset(bool warmstart); void do_after_reset(int reason); void enter_deepsleep(const int wakeup_sec, const gpio_num...
AugustQu/ESP32-Paxcounter
include/corona.h
#ifndef _CORONA_h #define _CORONA_H // inspired by https://github.com/kmetz/BLEExposureNotificationBeeper // (c) by <NAME> // modified for use in the Paxcounter by AQ //#include <Arduino.h> //#include <BLEDevice.h> //#include <BLEScan.h> //#include <BLEAdvertisedDevice.h> #include "globals.h" #include <map> bool cwa...
AugustQu/ESP32-Paxcounter
include/wifiscan.h
<filename>include/wifiscan.h<gh_stars>1-10 #ifndef _WIFISCAN_H #define _WIFISCAN_H // ESP32 Functions #include <esp_wifi.h> #include <esp_coexist.h> #include "coexist_internal.h" #include "hash.h" // Hash function for scrambling MAC addresses #include "antenna.h" // code for switching wifi antennas #include "macsn...
AugustQu/ESP32-Paxcounter
include/timekeeper.h
<reponame>AugustQu/ESP32-Paxcounter #ifndef _timekeeper_H #define _timekeeper_H #include "globals.h" #include "rtctime.h" #include "TimeLib.h" #include "irqhandler.h" #include "timesync.h" #include "gpsread.h" #include "if482.h" #include "dcf77.h" extern const char timeSetSymbols[]; extern Ticker timesyncer; void IR...
AugustQu/ESP32-Paxcounter
src/hal/m5core.h
<reponame>AugustQu/ESP32-Paxcounter<filename>src/hal/m5core.h // clang-format off // upload_speed 921600 // board m5stack-core-esp32 #ifndef _M5CORE_H #define _M5CORE_H #include <stdint.h> #define HAS_LORA 1 // comment out if device shall not send data via LoRa or has no M5 RA01 LoRa module #define LORA_SCK SCK #de...
AugustQu/ESP32-Paxcounter
src/hal/ttgofox.h
<reponame>AugustQu/ESP32-Paxcounter // clang-format off // upload_speed 921600 // board esp32dev #ifndef _TTGOFOX_H #define _TTGOFOX_H #include <stdint.h> #define HAS_LORA 1 // comment out if device shall not send data via LoRa #define CFG_sx1276_radio 1 // HPD13A LoRa SoC #define HAS_DISPLAY 1 #define HAS_LE...
754340156/NQhsb
Operator/tool/NetHelp/YZPData.h
<reponame>754340156/NQhsb<gh_stars>1-10 // // YZPData.h // Thousands Of Donkey // // Created by YuanZhiPu on 15/8/5. // Copyright (c) 2015年 NeiQuan. All rights reserved. // #import <Foundation/Foundation.h> @interface YZPData : NSData @property(nonatomic, copy)NSData *data; @property(nonatomic, copy)NSString *n...
754340156/NQhsb
Operator/TabBar/Tool.h
<gh_stars>1-10 // // Tool.h // KCB // // Created by YuanZhiPu on 15/8/26. // Copyright (c) 2015年 NeiQuan. All rights reserved. // #import <Foundation/Foundation.h> @interface Tool : NSObject + (void)mainView:(BOOL)isMain; @end
754340156/NQhsb
Operator/tool/UIImage+ZP.h
<filename>Operator/tool/UIImage+ZP.h // // UIImage+YXL.h // Plague // // Created by Yexinglong on 15/1/9. // Copyright (c) 2015年 Yexinglong. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImage (XB) /** * 将颜色变成image * * @param color 颜色值 * * @return 返回一个带有颜色的image */ + (UIImage *)createImage...
754340156/NQhsb
Operator/Html5LoadUrl.h
// // Html5LoadUrl.h // Operator // // Created by 白小田 on 16/10/17. // Copyright © 2016年 白小田. All rights reserved. // #import <Foundation/Foundation.h> @interface Html5LoadUrl : NSObject /** * H5请求 * * @param relevanceId 详情ID * @param type 类型 1 大讲堂(销售职) 2 大讲堂(管理职) 3 话术本 4 大咖讲话术 5 录音库 6 工作日志 7...
754340156/NQhsb
Operator/tool/OperatorApi.h
<gh_stars>1-10 // // OperatorApi.pch // Operator // // Created by 白小田 on 16/9/12. // Copyright © 2016年 白小田. All rights reserved. // //总接口 // //#define OperatorApi @"http://192.168.1.112:8080/telephone-operator" #define OperatorApi @"http://172.16.58.3:8080/telephone-operator" //#define OperatorApi @"h...
754340156/NQhsb
Operator/tool/Category/AppDelegate/AppDelegate+UMengShare.h
// // AppDelegate+UMengShare.h // Operator // // Created by hai on 16/10/24. // Copyright © 2016年 白小田. All rights reserved. // #import "AppDelegate.h" @interface AppDelegate (UMengShare) - (void)UMengShareSetupWithApplication:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions...
754340156/NQhsb
Operator/tool/Category/NSString/PlaceholderTextView.h
<gh_stars>1-10 // // PlaceholderTextView.h // xiaoshoubao // // Created by MD101 on 15/11/9. // Copyright © 2015年 yaocheng. All rights reserved. // #import <UIKit/UIKit.h> @interface PlaceholderTextView : UITextView @property (nonatomic,copy) NSString *placeholder; @property (nonatomic,copy) NSString *placeholder...
754340156/NQhsb
Operator/tool/BaseModel/BaseModel.h
<reponame>754340156/NQhsb<filename>Operator/tool/BaseModel/BaseModel.h // // BaseModel.h // CarTreasure // // Created by hai on 16/4/7. // Copyright © 2016年 NeiQuan. All rights reserved. // #import <Foundation/Foundation.h> @interface BaseModel : NSObject @end
754340156/NQhsb
Operator/tool/Account/XBAccessLoginTokenResult.h
<gh_stars>1-10 // // XBAccessLoginTokenResult.h // Hippo // // Created by jock on 16/8/8. // Copyright © 2016年 jock. All rights reserved. // #import "XBAccessLoginTokenResult.h" @interface XBAccessLoginTokenResult : XBAccount @end
754340156/NQhsb
Operator/tool/YWOperatorHeader.h
// // YWOperatorHeader.h // Operator // // Created by NeiQuan on 16/10/13. // Copyright © 2016年 白小田. All rights reserved. // #ifndef YWOperatorHeader_h #define YWOperatorHeader_h #import "HWHttpManger.h" //网络请求二次封装 /** * 修改密码 */ #define userupdatePassword @"/user/updatePassword.do" /** * 修改个人中心 */ #defi...
754340156/NQhsb
Pods/Target Support Files/Pods-Operator/Pods-Operator-umbrella.h
<filename>Pods/Target Support Files/Pods-Operator/Pods-Operator-umbrella.h<gh_stars>1-10 #ifdef __OBJC__ #import <UIKit/UIKit.h> #endif FOUNDATION_EXPORT double Pods_OperatorVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_OperatorVersionString[];
754340156/NQhsb
Operator/tool/Nav/NavViewController.h
// // NavViewController.h // YunChao // // Created by YuanZhiPu on 15/10/12. // Copyright © 2015年 why. All rights reserved. // #import <UIKit/UIKit.h> @interface NavViewController : UIViewController @property (nonatomic,strong)UIImageView *navigationBarBackground; // navigationBar图片 @property (nonatomic,strong)...
754340156/NQhsb
Operator/tool/HWHttpRequest/HWHttpManger.h
<reponame>754340156/NQhsb<filename>Operator/tool/HWHttpRequest/HWHttpManger.h // // HWHttpManger.h // Operator // // Created by NeiQuan on 16/10/14. // Copyright © 2016年 白小田. All rights reserved. // #import <Foundation/Foundation.h> //用户请求网络数据 @interface HWHttpManger : NSObject /** 获取用户的订单 */ + (void)getUseror...
754340156/NQhsb
Operator/tool/ZZOperatorHeader.h
<gh_stars>1-10 // // ZZOperatorHeader.h // Operator // // Created by hai on 16/10/14. // Copyright © 2016年 白小田. All rights reserved. // #ifndef ZZOperatorHeader_h #define ZZOperatorHeader_h /** * 收藏列表 */ #define collectionList @"/collection/list.do" /** * 删除收藏 */ #define collectionDelete @"/collection...
754340156/NQhsb
Operator/tool/NetHelp/NetWorkHelp.h
<reponame>754340156/NQhsb<filename>Operator/tool/NetHelp/NetWorkHelp.h<gh_stars>1-10 // // NetWorkHelp.h // Thousands Of Donkey // // Created by a on 15/7/23. // Copyright (c) 2015年 NeiQuan. All rights reserved. // #import <Foundation/Foundation.h> #import "AFNetworking.h" #import "YZPData.h" @interface NetWorkHel...
754340156/NQhsb
Operator/tool/Account/UpdateUserInfo.h
<reponame>754340156/NQhsb // // UpdateUserInfo.h // Operator // // Created by 白小田 on 2016/12/2. // Copyright © 2016年 白小田. All rights reserved. // #import <Foundation/Foundation.h> @interface UpdateUserInfo : NSObject +(void)updateUserInfo; +(NSString *)getUserDataTime:(NSString *)time; +(NSString *)intervalSinceN...
754340156/NQhsb
Operator/tool/LXSegment/LXSegmentScrollView.h
// // LXSegmentScrollView.h // LiuXSegment // // Created by liuxin on 16/5/17. // Copyright © 2016年 liuxin. All rights reserved. // #import <UIKit/UIKit.h> #import "LiuXSegmentView.h" @interface LXSegmentScrollView : UIView -(instancetype)initWithFrame:(CGRect)frame titleArray:(NSArray *)titleAr...
754340156/NQhsb
Operator/Class/Html5LoadAssist.h
// // Html5LoadAssist.h // Operator // // Created by 白小田 on 2016/11/30. // Copyright © 2016年 白小田. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSUInteger,kHtmlType){ kHtmlTypeStateHelp = 1, //关于我们 kHtmlTypeStateAboutUs, //使用帮助 kHtmlTypeStateFaq, //常见问题 kHtm...
754340156/NQhsb
Pods/Target Support Files/GJCFUitils/GJCFUitils-umbrella.h
<gh_stars>1-10 #ifdef __OBJC__ #import <UIKit/UIKit.h> #endif #import "GJCFDateUitil.h" #import "GJCFDateUitilMacrocDefine.h" #import "GJCFDispatchCenterUitil.h" #import "GJCFDispatchMacrocDefine.h" #import "GJCFUitils.h" #import "GJCFQuickCacheMacrocDefine.h" #import "GJCFQuickCacheUitil.h" #import "GJCFQuickUIMacroc...
754340156/NQhsb
Operator/TabBar/HWNavigationController.h
// // HWNavigationController.h // Operator // // Created by NeiQuan on 16/10/13. // Copyright © 2016年 白小田. All rights reserved. // #import <UIKit/UIKit.h> //导航-->左边为返回按钮-->已经全部自定义 @interface HWNavigationController : UINavigationController @end
754340156/NQhsb
Operator/tool/Account/Model/XBAccount.h
<gh_stars>1-10 // // XBBarAccount.h // Hippo // // Created by jock on 16/6/30. // Copyright © 2016年 jock. All rights reserved. // #import <Foundation/Foundation.h> @interface XBAccount: NSObject /** * 账户ID */ @property (nonatomic, copy) NSString *account; /** * 用户token */ @property (nonatomic, copy) NSSt...
754340156/NQhsb
Operator/DeleteNoteHintView.h
<gh_stars>1-10 // // DeleteNoteHintView.h // Operator // // Created by zhaozhe on 16/12/17. // Copyright © 2016年 白小田. All rights reserved. // #import <UIKit/UIKit.h> @interface DeleteNoteHintView : UIView /** 点击按钮回调 */ @property(nonatomic,copy) void (^clickIsSureBlock)(BOOL isSure); @end
754340156/NQhsb
Operator/tool/Encryption/EnCodeTool.h
// // EnCodeTool.h // StringEncryption // // Created by 袁志浦 on 2016/10/8. // Copyright © 2016年 袁志浦. All rights reserved. // #import <Foundation/Foundation.h> @interface EnCodeTool : NSObject + (NSString *)getSignWithDic:(NSDictionary *)dic; @end