repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
sidphbot/Bank-Management-System
src/Model/AccountModel/Include/AccountModel.h
<reponame>sidphbot/Bank-Management-System #ifndef _BANK_H_ #define _BANK_H_ #include "../../../AppClass/CustomerAcc/Include/Customer.h" #include "../../../AppClass/CustomerAcc/Include/Account.h" #include "../../../UI/CustomerAccUI/Include/AccountUI.h" #include<iostream> #include<string.h> //#include</usr/inclu...
sidphbot/Bank-Management-System
src/Controller/branchController/include/branchController.h
<gh_stars>1-10 #ifndef _BRANCHCONTROLLER_H_ #define _BRANCHCONTROLLER_H_ #include<iostream> #include<string> #include"../../../Model/Include/Model.h" #include"../../../UI/branchUI/include/branchUI.h" using namespace std; class BranchController { public: long int initiateBranchAddition(Bank&); i...
sidphbot/Bank-Management-System
src/UI/branchUI/include/branchUI.h
#ifndef _BRANCHUI_H_ #define _BRANCHUI_H_ #include "../../../AppClass/branch/include/branch.h" #include<iostream> #include<vector> #include<string.h> using namespace std; class BranchUI { public: void display(string); string getBranchLocation(); string getBranchRegion(); long int getBranchID(); long int getBranchA...
sidphbot/Bank-Management-System
src/Utility/Include/Utility.h
<gh_stars>1-10 #ifndef _UTILITY_H #define _UTILITY_H #include <iostream> #include <stdlib.h> using namespace std; class Utility { public: //long convertToLong(string ); static long int convertToLong(string); static double convertToDouble(string); static int convertToInt(string); static long int convertToLongInt(stri...
sidphbot/Bank-Management-System
src/Controller/CustomerController/Include/CustomerController.h
<gh_stars>1-10 #ifndef _CUSTOMER_CONTROLLER_H_ #define _CUSTOMER_CONTROLLER_H_ #include"../../../UI/CustomerAccUI/Include/CustomerUI.h" #include"../../../Model/Include/Model.h" #include"../../../AppClass/CustomerAcc/Include/Customer.h" class CustomerController { public: int initViewCustomer(Bank &...
sidphbot/Bank-Management-System
src/UI/mainUI/include/mainUI.h
<reponame>sidphbot/Bank-Management-System #ifndef _MAINUI_H_ #define _MAINUI_H_ #include<iostream> #include<string> #include<stdlib.h> #include"../../../AppClass/branch/include/branch.h" #include"../../../Model/Include/Model.h" #include"../../../Controller/branchController/include/branchController.h" #include"../../....
sidphbot/Bank-Management-System
src/UI/CustomerAccUI/Include/CustomerUI.h
<gh_stars>1-10 #ifndef _CUSTOMERUI_H_ #define _CUSTOMERUI_H_ #include<string> #include "../../../Validation/Include/Validation.h" #include "../../../Utility/Include/Utility.h" #include "../../../AppClass/CustomerAcc/Include/Customer.h" #include<vector> using namespace std; class CustomerUI { public: string getCu...
sidphbot/Bank-Management-System
src/Controller/BranchAccountController/Include/BranchAccountController.h
<filename>src/Controller/BranchAccountController/Include/BranchAccountController.h #ifndef _BRANCHACCOUNTCONTROLLER_H_ #define _BRANCHACCOUNTCONTROLLER_H_ #include "../../../AppClass/BranchAccount/Include/BranchAccount.h" #include "../../../UI/BranchAccountUI/Include/BranchAccountUI.h" #include "../../../Model/In...
sidphbot/Bank-Management-System
src/Model/BranchAccountModel/Include/BranchAccountModel.h
#ifndef _BRANCHACCOUNTMODEL_H_ #define _BRANCHACCOUNTMODEL_H_ #include<iostream> //#include<sqlca.h> #include"../../AppClass/BranchAccount/Include/BranchAccount.h" //#include"../../Controller/BranchAccountController/Include/BranchAccountController.h" #include"../../UI/BranchAccountUI/Include/BranchAccountUI.h" using n...
sidphbot/Bank-Management-System
src/Validation/Include/Validation.h
<filename>src/Validation/Include/Validation.h #ifndef _VALIDATION_H #define _VALIDATION_H #include <iostream> #include <cctype> #include <string> #include "../../Utility/Include/Utility.h" using namespace std; class Validation { public: static int validateDouble (string); static int validateLong (string); ...
sidphbot/Bank-Management-System
src/UI/employeeUI/include/employeeUI.h
<filename>src/UI/employeeUI/include/employeeUI.h #ifndef _EMPLOYEEUI_H_ #define _EMPLOYEEUI_H_ #include "../../../AppClass/employee/include/employee.h" #include<iostream> #include<string.h> #include<vector> using namespace std; class EmployeeUI { public: long int getEmployeeID(); string getEmployeeName(); ...
sidphbot/Bank-Management-System
src/AppClass/ATM/Include/ATM.h
<filename>src/AppClass/ATM/Include/ATM.h #ifndef _ATM_H_ #define _ATM_H_ #include<iostream> #include<string.h> using namespace std; class ATM { double m_atmThresholdValue; double m_atmBalance; string m_atmLoc; long int m_atmId; string m_atmRegion; string m_atmstatus; public:...
sidphbot/Bank-Management-System
src/AppClass/CustomerAcc/Include/Account.h
<reponame>sidphbot/Bank-Management-System<filename>src/AppClass/CustomerAcc/Include/Account.h<gh_stars>1-10 #ifndef _ACCOUNT_H_ #define _ACCOUNT_H_ #include<iostream> #include<string> using namespace std; class Account { int m_accountStatus; long int m_accountno; string m_accounttype; long...
sidphbot/Bank-Management-System
src/AppClass/BranchAccount/Include/BranchAccount.h
<reponame>sidphbot/Bank-Management-System #ifndef _BANKACCOUNT_H_ #define _BANKACCOUNT_H_ #include <iostream> using namespace std; class BranchAccount { long int m_branchAccountNo; long int m_branchId; double m_branchThreshold; double m_currentBalance; int m_Status; public: Branc...
sidphbot/Bank-Management-System
src/Controller/ATMController/Include/ATMController.h
#ifndef _ATMCONTROLLER_H_ #define _ATMCONTROLLER_H_ #include<iostream> #include<string.h> #include "../../../UI/ATMUI/Include/ATMUI.h" #include "../../../Model/Include/Model.h" using namespace std; class ATMController { public: int initiateAddATMAccount(Bank &); int initiateATMController(Bank &); ...
sidphbot/Bank-Management-System
src/UI/BranchAccountUI/Include/BranchAccountUI.h
<reponame>sidphbot/Bank-Management-System #ifndef _BANKACCOUNTUI_H_ #define _BANKACCOUNTUI_H_ #include "../../../AppClass/BranchAccount/Include/BranchAccount.h" #include "../../../Validation/Include/Validation.h" #include "../../../Utility/Include/Utility.h" #include <iostream> #include<vector> using namespace std; ...
sidphbot/Bank-Management-System
src/AppClass/CustomerAcc/Include/Customer.h
#ifndef _CUSTOMER_H_ #define _CUSTOMER_H_ #include<iostream> #include<string> using namespace std; class Customer { long int m_AccountNo; long int m_CustomerId; string m_CustomerName; int m_CustomerAge; char m_CustomerGender; string m_CustomerAddress; string m_CustomerAtmStatus...
sidphbot/Bank-Management-System
src/Controller/AccountController/Include/AccountController.h
<gh_stars>1-10 #ifndef _ACCOUNTCONTROLLER_H_ #define _ACCOUNTCONTROLLER_H_ #include <iostream> #include <string> #include "../../../Model/Include/Model.h" using namespace std; class AccountController { public: int initiateUpdateCustomerAccount(Bank&); void initiateViewAccountDetails1(CustomerUI &,Ba...
sidphbot/Bank-Management-System
src/Model/Include/Model.h
#ifndef _MODEL_H_ #define _MODEL_H_ #include "../../AppClass/branch/include/branch.h" #include "../../AppClass/login/include/login.h" #include "../../AppClass/employee/include/employee.h" #include "../../AppClass/ATM/Include/ATM.h" #include "../../AppClass/CustomerAcc/Include/Customer.h" #include "../../AppClass/Custom...
spjuanjoc/solid_principles_cpp
include/LSP/Rectangle.h
// // Created by juan.castellanos on 10/01/20. // #ifndef RECTANGLE_H #define RECTANGLE_H class Rectangle { protected: int _width, _height; public: Rectangle(const int width, const int height) : _width{ width }, _height{ height } { } int get_width() const; virtual void set_width(const int& widt...
spjuanjoc/solid_principles_cpp
include/ISP/Machine.h
<filename>include/ISP/Machine.h // // Created by juan.castellanos on 10/01/20. // #ifndef MACHINE_H #define MACHINE_H #include "Document.h" #include "IMachine.h" struct Machine : IMachine { IPrinter& _printer; IScanner& _scanner; IFax& _fax; Machine(IPrinter& printer, IScanner& scanner, IFax& fax) :...
spjuanjoc/solid_principles_cpp
include/DIP/Reporting/Reporting.h
// // Created by juan.castellanos on 10/01/20. // #ifndef REPORTING_H #define REPORTING_H #include "DIP/Logger/ILogger.h" class Reporting { /*const*/ ILogger& _logger; public: explicit Reporting(/*const*/ ILogger& logger) : _logger{ logger } { } void prepare_report(); }; #endif //REPORTING_H
spjuanjoc/solid_principles_cpp
include/ISP/Fax.h
<filename>include/ISP/Fax.h<gh_stars>0 // // Created by juan.castellanos on 10/01/20. // #ifndef FAX_H #define FAX_H #include "IFax.h" #include <vector> struct Fax : IFax { void fax(std::vector<Document*> docs) override; }; #endif //FAX_H
spjuanjoc/solid_principles_cpp
include/ISP/Printer.h
// // Created by juan.castellanos on 10/01/20. // #ifndef PRINTER_H #define PRINTER_H #include "IPrinter.h" struct Printer : IPrinter { void print(std::vector<Document*> docs) override; }; #endif //PRINTER_H
spjuanjoc/solid_principles_cpp
include/DIP/Logger/ILogger.h
<reponame>spjuanjoc/solid_principles_cpp // // Created by juan.castellanos on 10/01/20. // #ifndef ILOGGER_H #define ILOGGER_H #include <string> struct ILogger { virtual ~ILogger() = default; virtual void Log(const std::string& s) = 0; protected: ILogger() = default; ILogger(const ILogger&) = default; ILo...
spjuanjoc/solid_principles_cpp
include/ISP/IScanner.h
<reponame>spjuanjoc/solid_principles_cpp // // Created by juan.castellanos on 10/01/20. // #ifndef ISCANNER_H #define ISCANNER_H #include <vector> class Document; struct IScanner { virtual void scan(std::vector<Document*> docs) = 0; }; #endif //ISCANNER_H
spjuanjoc/solid_principles_cpp
include/ISP/Document.h
<reponame>spjuanjoc/solid_principles_cpp // // Created by juan.castellanos on 10/01/20. // #ifndef DOCUMENT_H #define DOCUMENT_H class Document { // void DoSomething(); }; #endif //DOCUMENT_H
spjuanjoc/solid_principles_cpp
include/OCP/Filter.h
// // Created by juan.castellanos on 10/01/20. // #ifndef FILTER_H #define FILTER_H #include <vector> /// Fwd declarations template<typename T> struct Specification; struct Product; /// Filter interface template<typename T> struct Filter { virtual std::vector<T*> filter(std::vector<T*> items, Specification<T>& s...
spjuanjoc/solid_principles_cpp
include/DIP/Logger/ConsoleLogger.h
<filename>include/DIP/Logger/ConsoleLogger.h<gh_stars>0 // // Created by juan.castellanos on 10/01/20. // #ifndef CONSOLELOGGER_H #define CONSOLELOGGER_H #include "ILogger.h" #include <iostream> #include <string> struct ConsoleLogger : ILogger { ConsoleLogger() /*{ puts("ConsoleLogger ctor"); }*/= default; ~Cons...
spjuanjoc/solid_principles_cpp
include/SRP/Journal.h
// // Created by juan.castellanos on 10/01/20. // #ifndef JOURNAL_H #define JOURNAL_H #include <iostream> #include <utility> #include <vector> using std::string; using std::vector; struct Journal { string title; vector<string> entries; explicit Journal(string title) : title{ std::move(title) } { ...
spjuanjoc/solid_principles_cpp
include/DIP/Car/Engine.h
<gh_stars>0 // // Created by juan.castellanos on 10/01/20. // #ifndef ENGINE_H #define ENGINE_H #include <ostream> struct Engine { float volume = 5; int horse_power = 400; friend std::ostream& operator<<(std::ostream& os, const Engine& obj); }; #endif //ENGINE_H
spjuanjoc/solid_principles_cpp
include/ISP/IPrinter.h
<gh_stars>0 // // Created by juan.castellanos on 10/01/20. // #ifndef IPRINTER_H #define IPRINTER_H #include <vector> class Document; struct IPrinter { virtual void print(std::vector<Document*> docs) = 0; }; #endif //IPRINTER_H
spjuanjoc/solid_principles_cpp
include/DIP/Car/Car.h
<reponame>spjuanjoc/solid_principles_cpp // // Created by juan.castellanos on 10/01/20. // #ifndef CAR_H #define CAR_H #include "DIP/Logger/ILogger.h" #include <memory> struct Engine; struct ILogger; struct Car { std::unique_ptr<Engine> engine; std::shared_ptr<ILogger> logger; Car(std::unique_ptr<Engine> en...
spjuanjoc/solid_principles_cpp
include/DIP/Relationships.h
<filename>include/DIP/Relationships.h // // Created by juan.castellanos on 24/05/20. // #ifndef DIP_RELATIONSHIPS_H #define DIP_RELATIONSHIPS_H #include <iostream> #include <string> #include <vector> #include <tuple> // A. High-level modules should not depend on low-level modules. // Both should depend on abstrac...
spjuanjoc/solid_principles_cpp
include/ISP/Scanner.h
<gh_stars>0 // // Created by juan.castellanos on 10/01/20. // #ifndef SCANNER_H #define SCANNER_H #include "IScanner.h" #include <vector> struct Scanner : IScanner { void scan(std::vector<Document*> docs) override; }; #endif //SCANNER_H
spjuanjoc/solid_principles_cpp
include/OCP/Specification.h
// // Created by juan.castellanos on 10/01/20. // #ifndef SPECIFICATION_H #define SPECIFICATION_H enum class Color; enum class Size; struct Product; /// Specification interface template<typename T> struct Specification { virtual bool is_satisfied(T* item) = 0; }; /// Specification implementation for Color struct ...
spjuanjoc/solid_principles_cpp
include/ISP/IMachine.h
// // Created by juan.castellanos on 10/01/20. // #ifndef IMACHINE_H #define IMACHINE_H #include "IFax.h" #include "IPrinter.h" #include "IScanner.h" struct IMachine : IPrinter, IScanner, IFax { }; #endif //IMACHINE_H
spjuanjoc/solid_principles_cpp
include/ISP/IFax.h
// // Created by juan.castellanos on 10/01/20. // #ifndef IFAX_H #define IFAX_H #include <vector> class Document; struct IFax { virtual void fax(std::vector<Document*> docs) = 0; }; #endif //IFAX_H
spjuanjoc/solid_principles_cpp
include/OCP/Product.h
// // Created by juan.castellanos on 10/01/20. // #ifndef PRODUCT_H #define PRODUCT_H #include <string> template<typename T> struct Specification; enum class Color { Red, Green, Blue }; enum class Size { Small, Medium, Large }; struct Product { std::string name; Color color; Size siz...
mick0n/ti.urlsession
ios/Classes/ComAppceleratorUrlSessionSessionConfigurationProxy.h
<filename>ios/Classes/ComAppceleratorUrlSessionSessionConfigurationProxy.h /** * Appcelerator Titanium Mobile * Copyright (c) 2009-Present by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ #imp...
CharityDynamics/cordova-diagnostic-plugin
src/ios/Diagnostic_Location.h
/* * Diagnostic_Location.h * Diagnostic Plugin - Location Module * * Copyright (c) 2018 Working Edge Ltd. * Copyright (c) 2012 <NAME> */ #import <Cordova/CDV.h> #import <Cordova/CDVPlugin.h> #import "Diagnostic.h" #import <CoreLocation/CoreLocation.h> @interface Diagnostic_Location : CDVPlugin <CLLocation...
prcptn/remotecontrol
iOS/BeamNG.SteeringDevice/build/BeamNG.SteeringDevice.build/Debug-iphonesimulator/BeamNG.SteeringDevice.build/Objects-normal/x86_64/BeamNG_SteeringDevice-Swift.h
// Generated by Apple Swift version 2.1.1 (swiftlang-700.1.101.15 clang-700.1.81) #pragma clang diagnostic push #if defined(__has_include) && __has_include(<swift/objc-prologue.h>) # include <swift/objc-prologue.h> #endif #pragma clang diagnostic ignored "-Wauto-import" #include <objc/NSObject.h> #include <stdint.h> ...
cyphusx/SPUD
Source/SPUD/Public/SpudHelpers.h
#pragma once #include "CoreMinimal.h" #include "ISpudObject.h" #include "GameFramework/Character.h" #include "SpudHelpers.generated.h" // You don't have to use one of these base classes for your actors; instead you can just modify your // own classes to: // 1. Implement the ISpudObject interface to opt instances in...
cyphusx/SPUD
Source/SPUD/Public/ISpudObject.h
#pragma once #include "CoreMinimal.h" #include "SpudState.h" #include "ISpudObject.generated.h" UINTERFACE(MinimalAPI) class USpudObject : public UInterface { GENERATED_BODY() }; UENUM(BlueprintType) enum class ESpudRespawnMode : uint8 { Default UMETA(DisplayName="Default behaviour (based on class)"), AlwaysR...
cyphusx/SPUD
Source/SPUDEditor/Public/SpudPluginSettings.h
#pragma once #include "CoreMinimal.h" #include "SpudPluginSettings.generated.h" /** * Settings for the SPUD plug-in. */ UCLASS(config=Engine) class SPUDEDITOR_API USpudPluginSettings : public UObject { GENERATED_BODY() public: /// Whether to auto-save all levels before play in editor (PIE). Saving all level...
cyphusx/SPUD
Source/SPUD/Public/SpudCustomSaveInfo.h
<filename>Source/SPUD/Public/SpudCustomSaveInfo.h #pragma once #include "CoreMinimal.h" #include "SpudData.h" #include "SpudPropertyUtil.h" #include "SpudCustomSaveInfo.generated.h" /// Helper class to allow users to apply custom properties to the header information of save files, /// which can then be read back...
cyphusx/SPUD
Source/SPUDTest/Private/SpudTestModule.h
#pragma once #include "CoreMinimal.h" #include "Modules/ModuleInterface.h" DECLARE_LOG_CATEGORY_EXTERN(LogSpudTestModule, All, All) class FSpudTestModule : public IModuleInterface { public: virtual void StartupModule() override; virtual void ShutdownModule() override; };
cyphusx/SPUD
Source/SPUDEditor/Private/SpudEditorModule.h
<filename>Source/SPUDEditor/Private/SpudEditorModule.h #pragma once #include "CoreMinimal.h" #include "Modules/ModuleInterface.h" #include "Modules/ModuleManager.h" #include "UnrealEd.h" DECLARE_LOG_CATEGORY_EXTERN(LogSpudEditor, All, All) class FSpudEditorModule : public IModuleInterface { private: FDelegateHa...
oliverroer/watch
src/clipboard.c
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <strsafe.h> #include <tchar.h> #include <windows.h> #define BUFFER_SIZE 1024 int main(int argc, char **argv) { int istty = isatty(fileno(stdin)); if (istty) { return paste(); } else { return copy(); } } void ErrorExit(LPTSTR lpszFu...
Weisewill/2D_Ising
Ising_func.h
<reponame>Weisewill/2D_Ising #include <cstdlib> #include <iostream> #include <cmath> #include <time.h> #include <fstream> #include <array> using namespace std; const double T_c = 2.269; // 2D Ising model with J = 1, k_b = 1; class Ising2D { public: Ising2D(); double T; int L; doub...
rybicki/corridor-spom
passive/spom/model/src/dSFMT/dSFMT-params521.h
<filename>passive/spom/model/src/dSFMT/dSFMT-params521.h #ifndef DSFMT_PARAMS521_H #define DSFMT_PARAMS521_H /* #define DSFMT_N 4 */ /* #define DSFMT_MAXDEGREE 544 */ #define DSFMT_POS1 3 #define DSFMT_SL1 25 #define DSFMT_MSK1 UINT64_C(0x000fbfefff77efff) #define DSFMT_MSK2 UINT64_C(0x000ffeebfbdfbfdf) #defi...
rybicki/corridor-spom
active/spom/model/src/defs.h
#ifndef __DEFS_H_ #define __DEFS_H_ #define ZERO_THRESHOLD 1e-15 /* Uncomment to use the Gaussian kernel instead of exponential kernel? */ #define USE_GAUSSIAN_KERNEL /* Are we using long doubles for computation? SWIG does not support these. */ typedef long double t_float; #define __USING_LONG_DOUBLES #endif
rybicki/corridor-spom
passive/spom/model/src/regional.h
#ifndef __REGIONAL_H_ #define __REGIONAL_H_ #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> typedef struct stochasticity_grid { double *arr; int height, width; double weight_factor; double stddev; double mean; int depth; gsl_rng *rng; double *weights; } t_stochasti...
rybicki/corridor-spom
passive/spom/model/src/dSFMT/dSFMT-params4253.h
#ifndef DSFMT_PARAMS4253_H #define DSFMT_PARAMS4253_H /* #define DSFMT_N 40 */ /* #define DSFMT_MAXDEGREE 4288 */ #define DSFMT_POS1 19 #define DSFMT_SL1 19 #define DSFMT_MSK1 UINT64_C(0x0007b7fffef5feff) #define DSFMT_MSK2 UINT64_C(0x000ffdffeffefbfc) #define DSFMT_MSK32_1 0x0007b7ffU #define DSFMT_MSK32_2 ...
rybicki/corridor-spom
active/spom/model/src/regional.h
#ifndef __REGIONAL_H_ #define __REGIONAL_H_ #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include "defs.h" typedef struct stochasticity_grid { t_float *arr; int height, width; double weight_factor; double stddev; double mean; int depth; gsl_rng *rng; double *weights; } t_stoch...
rybicki/corridor-spom
active/spom/model/src/grid_model_test.c
/* Some simple tests to ensure that the FFT computations yield correct results. */ #include <assert.h> #include <math.h> #include <stdlib.h> #include <time.h> #include "grid_model_test.h" const int MAX_H = 25; const int MAX_W = 25; const int MIN_CON_H = 1; const int MIN_CON_W = 1; const int MAX_CON_H = 15; const i...
rybicki/corridor-spom
passive/spom/model/src/dSFMT/dSFMT-params216091.h
#ifndef DSFMT_PARAMS216091_H #define DSFMT_PARAMS216091_H /* #define DSFMT_N 2077 */ /* #define DSFMT_MAXDEGREE 216136 */ #define DSFMT_POS1 1890 #define DSFMT_SL1 23 #define DSFMT_MSK1 UINT64_C(0x000bf7df7fefcfff) #define DSFMT_MSK2 UINT64_C(0x000e7ffffef737ff) #define DSFMT_MSK32_1 0x000bf7dfU #define DSFM...
rybicki/corridor-spom
active/spom/model/src/grid_model_test.h
<filename>active/spom/model/src/grid_model_test.h #include "grid_model.h" void init_grid_plans(t_grid *g, int flags); void grid_set(t_grid *g, double *arr, int y, int x, double val); double grid_get(t_grid *g, const double *arr, int y, int x); void create_exp_dispersal_kernel(t_grid *g, double alpha); void setup_kerne...
rybicki/corridor-spom
passive/spom/model/src/dSFMT/dSFMT-params11213.h
<filename>passive/spom/model/src/dSFMT/dSFMT-params11213.h #ifndef DSFMT_PARAMS11213_H #define DSFMT_PARAMS11213_H /* #define DSFMT_N 107 */ /* #define DSFMT_MAXDEGREE 11256 */ #define DSFMT_POS1 37 #define DSFMT_SL1 19 #define DSFMT_MSK1 UINT64_C(0x000ffffffdf7fffd) #define DSFMT_MSK2 UINT64_C(0x000dfffffff6b...
rybicki/corridor-spom
passive/spom/model/src/regional.c
<filename>passive/spom/model/src/regional.c #include <math.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include "regional.h" void init_weights(t_stochasticity_grid *g) { /* The weights will be normalized s.t. the sum of squared weights is one */ g->weights[0] = 1.0; double sum = 1....
rybicki/corridor-spom
active/spom/model/src/grid_model.c
#include "grid_model.h" #include "defs.h" #include <stdlib.h> #include <stdio.h> #include <math.h> #include <time.h> //#define NDEBUG #include <assert.h> #include "dSFMT/dSFMT.h" /* This is the state object from the dSFMT random number generator */ dsfmt_t rng_state; void init_fg(int nthreads, long rng_seed) { ...
rybicki/corridor-spom
passive/spom/model/src/dSFMT/dSFMT-params132049.h
<gh_stars>0 #ifndef DSFMT_PARAMS132049_H #define DSFMT_PARAMS132049_H /* #define DSFMT_N 1269 */ /* #define DSFMT_MAXDEGREE 132104 */ #define DSFMT_POS1 371 #define DSFMT_SL1 23 #define DSFMT_MSK1 UINT64_C(0x000fb9f4eff4bf77) #define DSFMT_MSK2 UINT64_C(0x000fffffbfefff37) #define DSFMT_MSK32_1 0x000fb9f4U #...
rybicki/corridor-spom
passive/spom/model/src/grid_model.c
#include "grid_model.h" #include <stdlib.h> #include <stdio.h> #include <math.h> #include <time.h> //#define NDEBUG #include <assert.h> #include "dSFMT/dSFMT.h" /* This is the state object from the dSFMT random number generator */ dsfmt_t rng_state; void init_fg(int nthreads, long rng_seed) { ...
rybicki/corridor-spom
passive/spom/model/src/dSFMT/dSFMT-params86243.h
#ifndef DSFMT_PARAMS86243_H #define DSFMT_PARAMS86243_H /* #define DSFMT_N 829 */ /* #define DSFMT_MAXDEGREE 86344 */ #define DSFMT_POS1 231 #define DSFMT_SL1 13 #define DSFMT_MSK1 UINT64_C(0x000ffedff6ffffdf) #define DSFMT_MSK2 UINT64_C(0x000ffff7fdffff7e) #define DSFMT_MSK32_1 0x000ffedfU #define DSFMT_MSK...
rybicki/corridor-spom
passive/spom/model/src/grid_model.h
/** Module containing C structures for the grid patch occupancy model. The module implements the basic dynamics of the model and a method for computing connectivity in the grid via Fourier transforms. */ /* Use the native complex type */ #include <complex.h> #include "fftw3.h" #include "regional.h" #...
rybicki/corridor-spom
passive/spom/model/src/dSFMT/dSFMT-params2203.h
<filename>passive/spom/model/src/dSFMT/dSFMT-params2203.h #ifndef DSFMT_PARAMS2203_H #define DSFMT_PARAMS2203_H /* #define DSFMT_N 20 */ /* #define DSFMT_MAXDEGREE 2208 */ #define DSFMT_POS1 7 #define DSFMT_SL1 19 #define DSFMT_MSK1 UINT64_C(0x000fdffff5edbfff) #define DSFMT_MSK2 UINT64_C(0x000f77fffffffbfe) ...
za3k/short-programs
xor.c
<reponame>za3k/short-programs // 'xor' // by <NAME>, released into the public domain (see CC0 1.0 license) // Given 2+ streams as filenames on the command line, print to stdout the 'xor' of the files. // If no options are given, pads the shorter file with zeros, so the length of the output is always the length of the ...
kuteteen/AUDeobfuscator
data/obf/il2cpp-types-ptr.h
<filename>data/obf/il2cpp-types-ptr.h // Generated C++ file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty // Target Unity version: 2019.4.0 - 2019.4.99 // ****************************************************************************** // * IL2CPP application-specific type definition address...
kuteteen/AUDeobfuscator
data/clean/il2cpp-types-ptr.h
<filename>data/clean/il2cpp-types-ptr.h<gh_stars>100-1000 // Generated C++ file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty // Target Unity version: 2019.4.0 - 2019.4.99 // ****************************************************************************** // * IL2CPP application-specific type de...
sjpeter/react-native-mqtt
ios/RCTMqtt/Mqtt.h
<filename>ios/RCTMqtt/Mqtt.h // // Mqtt.h // RCTMqtt // // Created by <NAME> on 2/14/16. // Copyright © 2016 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import <React/RCTEventEmitter.h> #import <MQTTClient/MQTTClient.h> #import <MQTTClient/MQTTSessionManager.h> #import <MQTTClient/MQTTSSLSec...
sjpeter/react-native-mqtt
ios/RCTMqtt/RCTMqtt.h
// // RCTMqtt.h // RCTMqtt // // Created by <NAME> on 2/2/16. // Copyright © 2016 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import <React/RCTEventEmitter.h> @interface RCTMqtt : RCTEventEmitter @end
adh/ctds
src/ctds/include/pop_warnings.h
<filename>src/ctds/include/pop_warnings.h<gh_stars>10-100 #if defined(__GNUC__) && (__GNUC__ > 4) # pragma GCC diagnostic pop #endif /* if defined(__GNUC__) */ #if defined(_MSC_VER) # pragma warning(pop) #endif /* if defined(_MSC_VER) */
adh/ctds
src/ctds/include/connection.h
<filename>src/ctds/include/connection.h<gh_stars>10-100 #ifndef __CONNECTION_H__ #define __CONNECTION_H__ #include "push_warnings.h" #include <Python.h> #include <sybdb.h> #include "pop_warnings.h" #include "c99bool.h" #include "c99int.h" #include "tds.h" PyTypeObject* ConnectionType_init(void); extern PyTypeObjec...
adh/ctds
src/ctds/include/cursor.h
#ifndef __CURSOR_H__ #define __CURSOR_H__ #include "push_warnings.h" #include <Python.h> #include "pop_warnings.h" #include "tds.h" /** Initialize the Cursor Python type object. @note This method returns a new reference. @return NULL indicating the initialization failed. @return The initialized Pyt...
adh/ctds
src/ctds/parameter.c
#include "include/push_warnings.h" #include <Python.h> #include "structmember.h" #include "include/pop_warnings.h" #include <stddef.h> #include <float.h> #include <limits.h> #include "include/connection.h" #include "include/macros.h" #include "include/parameter.h" #include "include/pyutils.h" #include "include/tds.h"...
adh/ctds
src/ctds/include/push_warnings.h
#if defined(__GNUC__) && (__GNUC__ > 4) # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wpedantic" # pragma GCC diagnostic ignored "-Wlong-long" #endif /* if defined(__GNUC__) && (__GNUC__ > 4) */ #if defined(_MSC_VER) # pragma warning(push) # pragma warning(disable: 4115) # pragma warning(disable...
adh/ctds
src/ctds/include/c99bool.h
<filename>src/ctds/include/c99bool.h #ifndef __C99BOOL_H__ #define __C99BOOL_H__ /* Visual Studio 2013+ supports (some of) the c99 standard. */ #if defined(_MSC_VER) && _MSC_VER < 1800 # define true (1) # define false (0) # define bool int #else # include <stdbool.h> #endif #endif /* ifndef __C99BOOL_H__ */
adh/ctds
src/ctds/include/pyutils.h
#ifndef __PYUTILS_H__ #define __PYUTILS_H__ #include "push_warnings.h" #include <Python.h> #include "pop_warnings.h" /* Wrapper around PyObject_SetAttrString; returns -1 on failure. */ int PyObject_SetAttrStringLongValue(PyObject* o, const char* name, long v); /* Wrapper around PyDict_SetItemString; returns -1 on fa...
adh/ctds
src/ctds/pyutils.c
#include "include/push_warnings.h" #include <Python.h> /* `datetime.h` must only be included here. */ #include <datetime.h> #include "include/pop_warnings.h" #include <sys/types.h> #include "include/pyutils.h" int PyObject_SetAttrStringLongValue(PyObject* o, const char* name, long v) { int result = -1; PyObj...
adh/ctds
src/ctds/include/c99int.h
#ifndef __C99INT_H__ #define __C99INT_H__ /* Visual Studio 2013+ supports (some of) the c99 standard. */ #if defined(_MSC_VER) && _MSC_VER < 1800 typedef __int8 int8_t; typedef unsigned __int8 uint8_t; typedef __int16 int16_t; typedef unsigned __int16 uint16_t; typedef __int32 int32_t; typedef unsigned __int32 uint...
adh/ctds
src/ctds/include/macros.h
#ifndef __MACROS_H__ #define __MACROS_H__ #define CONCAT_(a, b) a##b #define CONCAT(a, b) CONCAT_(a, b) #define STRINGIFY_(x) #x #define STRINGIFY(x) STRINGIFY_(x) #ifndef ARRAYSIZE # define ARRAYSIZE(_x) (sizeof((_x)) / sizeof(*(_x))) #endif /* ifndef ARRAYSIZE */ #define STRLEN(_x) (ARRAYSIZE((_x)) - 1) #define...
adh/ctds
src/ctds/include/parameter.h
#ifndef __PARAMETER_H__ #define __PARAMETER_H__ #include "push_warnings.h" #include <Python.h> #include <sybdb.h> #include "pop_warnings.h" #include "c99bool.h" #include "tds.h" PyTypeObject* ParameterType_init(void); int Parameter_Check(PyObject* o); PyTypeObject* ParameterType_get(void); struct Parameter; /* for...
HonakerM/Face-Tracking-Projection-Mapping
inc/common.h
#pragma once // stdio #include <stdio.h> #include <stdlib.h> //string #include <string.h>
HonakerM/Face-Tracking-Projection-Mapping
inc/test.h
<gh_stars>0 #ifndef TEST_H_ #define TEST_H_ #include "common.h" #include <string> //define testing functions int opencv_facetrack_tutorial_test(int argc, char** argv); int opencv_facetrack_test(); int opencv_inc_test(std::string filename); #endif // !TEST_H_
HonakerM/Face-Tracking-Projection-Mapping
inc/facetrack.h
<filename>inc/facetrack.h<gh_stars>0 #ifndef FACETRACK_H #define FACETRACK_H // standard #include "common.h" //opencv includes #include <opencv2/opencv.hpp> //general opencv #include <opencv2/dnn.hpp> //nueral network #include <opencv2/videoio.hpp> // opencv video //model configuration #ifndef FT_CONFIDENCE_THRESHO...
HonakerM/Face-Tracking-Projection-Mapping
inc/virtualcamera.h
#pragma once #include <vcam/Filters.h> void test_virtual_cam();
K-JW/JetAnalysor
include/distCalculator.h
// // Created by JinWen on 2019/4/30. // #ifndef JETANALYSOR_DISTCALCULATOR_H #define JETANALYSOR_DISTCALCULATOR_H #include <iostream> #include <vector> #include <cmath> using namespace std; namespace JetAnalysor { const static double PI = acos(-1); struct distInfo { double varia...
K-JW/JetAnalysor
include/utils.h
<gh_stars>1-10 // // Created by JinWen on 2019/4/27. // #ifndef JETANALYSOR_UTILS_H #define JETANALYSOR_UTILS_H #include <fastjet/PseudoJet.hh> #include <HepMC/IO_GenEvent.h> #include <HepMC/GenEvent.h> inline bool isUp (const HepMC::GenParticle* p ){ return abs(p->pdg_id()) == 2; } inline bool i...
K-JW/JetAnalysor
include/jetSelector.h
<gh_stars>1-10 // // Created by JinWen on 2019/4/29. // #ifndef JETANALYSOR_JETSELECTOR_H #define JETANALYSOR_JETSELECTOR_H #include <vector> #include <fastjet/PseudoJet.hh> #include <fastjet/ClusterSequence.hh> #include <fastjet/Selector.hh> #include "utils.h" using namespace std; using namespace ...
K-JW/JetAnalysor
include/output.h
// // Created by JinWen on 2019/5/23. // #ifndef JETANALYSOR_OUTPUT_H #define JETANALYSOR_OUTPUT_H #include <iostream> #include <vector> #include <string> using namespace std; namespace JetAnalysor { class ExportData { public: // 定义类的构造函数 ExportData() = default; E...
K-JW/JetAnalysor
include/calcDeltaPhiDist.h
// // Created by JinWen on 2019/4/30. // #ifndef JETANALYSOR_CALCDELTAPHIDIST_H #define JETANALYSOR_CALCDELTAPHIDIST_H #include <vector> #include <math.h> #include <fastjet/PseudoJet.hh> using namespace std; namespace JetAnalysor { struct AzimuthalAngleNum { double delta_phi; ...
K-JW/JetAnalysor
include/writeHepMC2.h
// // Created by JinWen on 2019/4/29. // #ifndef JETANALYSOR_WRITEHEPMC2_H #define JETANALYSOR_WRITEHEPMC2_H #include <iostream> #include <vector> #include <fstream> #include "HepMC/IO_GenEvent.h" #include "HepMC/GenEvent.h" #include "Particle.h" using namespace std; namespace JetAnalysor { ...
tang9759/iOSNeleaseNews
YXNeleaseNews/YXNeleaseNews/AppDelegate.h
// // AppDelegate.h // YXNeleaseNews // // Created by AS on 4/13/16. // Copyright © 2016 AS. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> //jhg @property (strong, nonatomic) UIWindow *window; @end
tang9759/iOSNeleaseNews
YXNeleaseNews/YXNeleaseNews/YXLoopViewCell.h
<gh_stars>0 // // YXLoopViewCell.h // YXNeleaseNews // // Created by AS on 4/14/16. // Copyright © 2016 AS. All rights reserved. // #import <UIKit/UIKit.h> @interface YXLoopViewCell : UICollectionViewCell /** * 图片URL */ @property (nonatomic, strong) NSURL *url; @end
tang9759/iOSNeleaseNews
YXNeleaseNews/YXNeleaseNews/YXLoopView.h
// // YXLoopView.h // YXNeleaseNews // // Created by AS on 4/14/16. // Copyright © 2016 AS. All rights reserved. // #import <UIKit/UIKit.h> @interface YXLoopView : UIView /** * 根据URLs和titles初始化轮播器 */ - (instancetype)initWithURLs:(NSArray<NSString *> *)URL titles:(NSArray<NSString *> *)titles didSelected:(void(...
tang9759/iOSNeleaseNews
YXNeleaseNews/YXNeleaseNews/YXLoopViewFlowLayout.h
<gh_stars>0 // // YXLoopViewFlowLayout.h // YXNeleaseNews // // Created by AS on 4/14/16. // Copyright © 2016 AS. All rights reserved. // #import <UIKit/UIKit.h> @interface YXLoopViewFlowLayout : UICollectionViewFlowLayout @end
tang9759/iOSNeleaseNews
YXNeleaseNews/YXNeleaseNews/YXHeadLineViewController.h
// // YXHeadLineViewController.h // YXNeleaseNews // // Created by AS on 4/14/16. // Copyright © 2016 AS. All rights reserved. // #import <UIKit/UIKit.h> @interface YXHeadLineViewController : UIViewController @end
tang9759/iOSNeleaseNews
YXNeleaseNews/YXNeleaseNews/YXNetworking.h
<filename>YXNeleaseNews/YXNeleaseNews/YXNetworking.h<gh_stars>0 // // YXNetworking.h // YXNeleaseNews // // Created by AS on 4/14/16. // Copyright © 2016 AS. All rights reserved. // #import <Foundation/Foundation.h> #import <AFNetworking.h> @interface YXNetworking : AFHTTPSessionManager + (instancetype)sharedNetw...
tang9759/iOSNeleaseNews
YXNeleaseNews/YXNeleaseNews/YXHeadLine.h
// // YXHeadLine.h // YXNeleaseNews // // Created by AS on 4/14/16. // Copyright © 2016 AS. All rights reserved. // #import <Foundation/Foundation.h> @interface YXHeadLine : NSObject /** * 头条新闻标题 */ @property (nonatomic, copy) NSString *title; /** * 头条图片 */ @property (nonatomic, copy) NSString *imgsrc; /** ...
particleflux/Si7021
src/Si7021.h
#pragma once #include "Particle.h" #ifndef SI7021_CUSTOM #ifndef SI7021_TINY /** * Build device info functionality * * This adds `readDeviceInfo()` functionality and the corresponding * `serial` and `firmwareRevision` fields */ #define SI7021_FEATURE_DE...