repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
onox/wayland-ada
wayland_client_ada/src/errno.c
// SPDX-License-Identifier: Apache-2.0 // Copyright (c) 2020 onox <<EMAIL>> #include <errno.h> int get_errno(void) { // Defined in ISO C99 standard return errno; }
DDilshani/CO326-project
firmware/Marlin-2.0.x/Marlin/src/HAL/HAL_AVR/inc/SanityCheck.h
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
DDilshani/CO326-project
firmware/Marlin-2.0.x/Marlin/src/pins/lpc1769/pins_TH3D_EZBOARD.h
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
DDilshani/CO326-project
firmware/grbl-Mega/src/sleep.h
/* sleep.h - Sleep methods header file Part of Grbl Copyright (c) 2016 <NAME> Grbl 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 3 of the License, or (at your option) any later...
DDilshani/CO326-project
firmware/grbl-Mega/src/config.h
<gh_stars>0 /* config.h - compile time configuration Part of Grbl Copyright (c) 2017-2018 <NAME> Copyright (c) 2012-2016 <NAME> for Gnea Research LLC Copyright (c) 2009-2011 <NAME> Grbl is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Fre...
DDilshani/CO326-project
firmware/Marlin-2.0.x/Marlin/src/lcd/language/language_ca.h
<reponame>DDilshani/CO326-project /** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of ...
DDilshani/CO326-project
firmware/Marlin-2.0.x/Marlin/src/HAL/shared/servo.h
<reponame>DDilshani/CO326-project /** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of ...
DDilshani/CO326-project
firmware/Marlin-2.0.x/Marlin/src/HAL/HAL_LPC1768/inc/SanityCheck.h
<reponame>DDilshani/CO326-project /** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of ...
DDilshani/CO326-project
firmware/grbl-Mega/src/defaults.h
<filename>firmware/grbl-Mega/src/defaults.h /* defaults.h - defaults settings configuration file Part of Grbl Copyright (c) 2017-2018 <NAME> Copyright (c) 2012-2016 <NAME> for Gnea Research LLC Grbl is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Licens...
DDilshani/CO326-project
firmware/Marlin-2.0.x/Marlin/src/lcd/language/language_gl.h
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
DDilshani/CO326-project
firmware/grbl-Mega/src/sleep.c
<reponame>DDilshani/CO326-project /* sleep.c - determines and executes sleep procedures Part of Grbl Copyright (c) 2016 <NAME> Grbl 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 ...
DDilshani/CO326-project
firmware/Marlin-2.0.x/Marlin/src/module/planner.h
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
DDilshani/CO326-project
firmware/Marlin-2.0.x/Marlin/src/feature/babystep.h
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
DDilshani/CO326-project
firmware/Marlin-2.0.x/Marlin/src/pins/ramps/pins_RAMPS_OLD.h
<filename>firmware/Marlin-2.0.x/Marlin/src/pins/ramps/pins_RAMPS_OLD.h /** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it an...
DDilshani/CO326-project
firmware/Marlin-2.0.x/Marlin/src/feature/tmc_util.h
<gh_stars>0 /** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public...
DDilshani/CO326-project
firmware/Marlin-2.0.x/Marlin/src/pins/esp32/pins_MRR_ESPE.h
/** * Marlin 3D Printer Firmware * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (C) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
DDilshani/CO326-project
firmware/Marlin-2.0.x/Marlin/src/HAL/HAL_LPC1768/HAL.h
<gh_stars>0 /** * Marlin 3D Printer Firmware * * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * Copyright (c) 2016 <NAME> <EMAIL> * Copyright (c) 2015-2016 <NAME> <EMAIL> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Gene...
DDilshani/CO326-project
firmware/Marlin-2.0.x/Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/screens.h
/************* * screens.h * *************/ /**************************************************************************** * Written By <NAME> 2017 - Aleph Objects, Inc. * * Written By <NAME> 2018 - Aleph Objects, Inc. * * ...
DDilshani/CO326-project
firmware/Marlin-2.0.x/Marlin/src/HAL/platforms.h
<reponame>DDilshani/CO326-project /** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of ...
DDilshani/CO326-project
firmware/grbl-Mega/src/serial.h
/* serial.c - Low level functions for sending and recieving bytes via the serial port Part of Grbl Copyright (c) 2011-2016 <NAME> for Gnea Research LLC Copyright (c) 2009-2011 <NAME> Grbl is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as publis...
DDilshani/CO326-project
firmware/Marlin-2.0.x/Marlin/src/HAL/HAL_STM32/HAL.h
/** * Marlin 3D Printer Firmware * * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * Copyright (c) 2016 <NAME> <EMAIL> * Copyright (c) 2015-2016 <NAME> <EMAIL> * Copyright (c) 2017 <NAME> * * This program is free software: you can redistribute it and/or modify * it under the term...
DDilshani/CO326-project
firmware/Marlin-2.0.x/Marlin/src/module/stepper/TMC26X.h
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
DDilshani/CO326-project
firmware/Marlin-2.0.x/Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI.h
<reponame>DDilshani/CO326-project /** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of ...
DDilshani/CO326-project
firmware/Marlin-2.0.x/Marlin/src/inc/Conditionals_LCD.h
<filename>firmware/Marlin-2.0.x/Marlin/src/inc/Conditionals_LCD.h /** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or ...
DDilshani/CO326-project
firmware/grbl-Mega/src/protocol.h
<gh_stars>1-10 /* protocol.h - controls Grbl execution protocol and procedures Part of Grbl Copyright (c) 2011-2016 <NAME> for Gnea Research LLC Copyright (c) 2009-2011 <NAME> Grbl is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by ...
DDilshani/CO326-project
firmware/Marlin-2.0.x/Marlin/src/HAL/HAL_STM32/pinsDebug_STM32GENERIC.h
<reponame>DDilshani/CO326-project /** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * 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 Foun...
DDilshani/CO326-project
firmware/Marlin-2.0.x/Marlin/src/pins/stm32/pins_BTT_GTR_V1_0.h
<reponame>DDilshani/CO326-project<filename>firmware/Marlin-2.0.x/Marlin/src/pins/stm32/pins_BTT_GTR_V1_0.h<gh_stars>1-10 /** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This pr...
Muffo/busFace
src/c/busFace.c
#include <pebble.h> static Window *s_main_window; static TextLayer *s_time_layer; static TextLayer *s_bus_layer[3]; static GFont s_time_font; static GFont s_bus_font; static char s_time_buffer[8]; static char s_bus_buffer[16]; static void main_window_load(Window *window) { // Get information about the Window ...
simontime/libnx
nx/include/switch/applets/web.h
/** * @file web.h * @brief Wrapper for using the WifiWebAuthApplet LibraryApplet. * @author p-sam * @copyright libnx Authors */ #pragma once #include "../types.h" #include "../services/applet.h" typedef struct { u8 unk_x0[0x4]; char url[0xFC]; } WebWifiPageArgUrl; typedef struct { WebWifiPageArgUrl u...
simontime/libnx
nx/include/switch/applets/libapplet.h
<gh_stars>0 /** * @file libapplet.h * @brief LibraryApplet wrapper. * @author yellows8 * @copyright libnx Authors */ #pragma once #include "../types.h" #include "../services/applet.h" /// CommonArguments typedef struct { u32 CommonArgs_version; u32 CommonArgs_size; u32 LaVersion; ///< Libra...
simontime/libnx
nx/source/applets/web.c
<reponame>simontime/libnx #include <string.h> #include <malloc.h> #include "types.h" #include "result.h" #include "services/applet.h" #include "applets/libapplet.h" #include "applets/web.h" static void _webWifiUrlCreate(WebWifiPageArgUrl* argUrl, const char* url) { strncpy(argUrl->url, url, sizeof(argUrl->url)-1);...
simontime/libnx
nx/include/switch/services/es.h
/** * @file es.h * @brief ETicket service IPC wrapper. * @author simontime * @copyright libnx Authors */ #pragma once #include "../kernel/ipc.h" #include "../services/sm.h" Result esInitialize(void); void esExit(void); Result esCountCommmonTicket(u32* out); Result esCountPersonalizedTicket(u32* out);
simontime/libnx
nx/source/services/es.c
/** * @file es.c * @brief ETicket service IPC wrapper. * @author simontime * @copyright libnx Authors */ #include "services/es.h" #include "arm/atomics.h" static Service g_esSrv; static u64 g_RefCnt; Result esInitialize(void) { atomicIncrement64(&g_RefCnt); if (serviceIsActive(&g_esSrv)) re...
simontime/libnx
nx/source/services/ns.c
#include "types.h" #include "result.h" #include "arm/atomics.h" #include "kernel/ipc.h" #include "kernel/detect.h" #include "services/sm.h" #include "services/ns.h" static Service g_nsAppManSrv, g_nsGetterSrv, g_nsvmSrv, g_nsdevSrv; static u64 g_nsRefCnt, g_nsvmRefCnt, g_nsdevRefCnt; static Result _nsGetInterface(Ser...
simontime/libnx
nx/source/services/usbhs.c
<filename>nx/source/services/usbhs.c #include <string.h> #include "types.h" #include "result.h" #include "arm/cache.h" #include "kernel/ipc.h" #include "kernel/detect.h" #include "services/usb.h" #include "services/usbhs.h" #include "services/sm.h" static Service g_usbHsSrv; static Event g_usbHsInterfaceStateChangeEve...
simontime/libnx
nx/include/switch/services/hid.h
<gh_stars>0 /** * @file hid.h * @brief Human input device (hid) service IPC wrapper. * @author shinyquagsire23 * @author yellows8 * @copyright libnx Authors */ #pragma once #include "../types.h" #include "../kernel/event.h" #include "../services/sm.h" // Begin enums and output structs typedef enum { MOUSE_L...
simontime/libnx
nx/include/switch/display/types.h
/** * @file types.h * @brief Definitions for Android-related types and enumerations. * @copyright libnx Authors */ #pragma once #include "../types.h" // From Android PixelFormat.h & graphics-base-v1.0.h. enum { PIXEL_FORMAT_RGBA_8888 = 1U, PIXEL_FORMAT_RGBX_8888 = 2U, PIXEL_FO...
MrMarshy/ESP32-CAM-Tensorflow-lite-Person-Detect
main/esp/index.h
<gh_stars>1-10 R"(<!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <title>ESP32 OV2460</title> <style> body { font-family: Arial,Helvetica,sans-serif; background: #1818...
MrMarshy/ESP32-CAM-Tensorflow-lite-Person-Detect
main/esp/app_httpd.h
#ifndef APP_HTTPD_H_ #define APP_HTTPD_H_ void startCameraServer(); #endif // APP_HTTPD_H_
MrMarshy/ESP32-CAM-Tensorflow-lite-Person-Detect
main/esp/wifi_sta.h
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. 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 a...
MrMarshy/ESP32-CAM-Tensorflow-lite-Person-Detect
main/esp/wifi_sta.c
<filename>main/esp/wifi_sta.c /* Copyright 2019 The TensorFlow Authors. All Rights Reserved. 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 r...
gregdhill/rust-secp256k1
secp256k1-sys/depend/secp256k1/src/hash.h
/*********************************************************************** * Copyright (c) 2014 <NAME> * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* **********************************...
gregdhill/rust-secp256k1
secp256k1-sys/depend/secp256k1/src/scalar.h
/*********************************************************************** * Copyright (c) 2014 <NAME> * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* **********************************...
gregdhill/rust-secp256k1
secp256k1-sys/depend/secp256k1/src/ecdsa.h
/*********************************************************************** * Copyright (c) 2013, 2014 <NAME> * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* **********************************...
gregdhill/rust-secp256k1
secp256k1-sys/depend/secp256k1/src/valgrind_ctime_test.c
/*********************************************************************** * Copyright (c) 2020 <NAME> * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ************************************...
gregdhill/rust-secp256k1
secp256k1-sys/depend/secp256k1/src/tests_exhaustive.c
<filename>secp256k1-sys/depend/secp256k1/src/tests_exhaustive.c /*********************************************************************** * Copyright (c) 2016 <NAME> * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/...
gregdhill/rust-secp256k1
secp256k1-sys/depend/secp256k1/src/assumptions.h
/*********************************************************************** * Copyright (c) 2020 <NAME> * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* **********************************...
gregdhill/rust-secp256k1
secp256k1-sys/depend/secp256k1/src/modules/recovery/main_impl.h
/*********************************************************************** * Copyright (c) 2013-2015 <NAME> * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* **********************************...
gregdhill/rust-secp256k1
secp256k1-sys/depend/secp256k1/src/field_impl.h
<filename>secp256k1-sys/depend/secp256k1/src/field_impl.h /*********************************************************************** * Copyright (c) 2013, 2014 <NAME> * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/lice...
gregdhill/rust-secp256k1
secp256k1-sys/depend/secp256k1/src/modules/extrakeys/main_impl.h
/*********************************************************************** * Copyright (c) 2020 <NAME> * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* *******************************...
gregdhill/rust-secp256k1
secp256k1-sys/depend/secp256k1/src/ecmult_gen_impl.h
<filename>secp256k1-sys/depend/secp256k1/src/ecmult_gen_impl.h /*********************************************************************** * Copyright (c) 2013, 2014, 2015 <NAME>, <NAME> * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses...
gregdhill/rust-secp256k1
secp256k1-sys/depend/secp256k1/src/modules/ecdh/main_impl.h
<reponame>gregdhill/rust-secp256k1<filename>secp256k1-sys/depend/secp256k1/src/modules/ecdh/main_impl.h /*********************************************************************** * Copyright (c) 2015 <NAME> * * Distributed under the MIT software license, see the accompanying * * fil...
gregdhill/rust-secp256k1
secp256k1-sys/depend/secp256k1/src/eckey_impl.h
/*********************************************************************** * Copyright (c) 2013, 2014 <NAME> * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* **********************************...
gregdhill/rust-secp256k1
secp256k1-sys/depend/secp256k1/src/modules/extrakeys/tests_impl.h
<reponame>gregdhill/rust-secp256k1<filename>secp256k1-sys/depend/secp256k1/src/modules/extrakeys/tests_impl.h /*********************************************************************** * Copyright (c) 2020 <NAME> * * Distributed under the MIT software license, see the accompanying ...
gregdhill/rust-secp256k1
secp256k1-sys/depend/secp256k1/src/modules/extrakeys/tests_exhaustive_impl.h
/*********************************************************************** * Copyright (c) 2020 <NAME> * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* **********************************...
gregdhill/rust-secp256k1
secp256k1-sys/depend/secp256k1/src/secp256k1.c
/*********************************************************************** * Copyright (c) 2013-2015 <NAME> * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* **********************************...
gregdhill/rust-secp256k1
secp256k1-sys/depend/secp256k1/src/modules/schnorrsig/main_impl.h
<gh_stars>1-10 /*********************************************************************** * Copyright (c) 2018-2020 <NAME>, <NAME> * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* *************************...
bitcoincandyofficial/bitcoincandy-code
src/consensus/params.h
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_CONSENSUS_PARAMS_H #define BITCOIN_CONSENSUS_PARAMS_H #include "uint256.h"...
julieeen/KleeFL
example/example.c
<reponame>julieeen/KleeFL #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> int buffer[256]; void init_buffer(){ int i; for (i = 0; i < 256; ++i){ buffer[i] = i; } } int processing_data(char * filename) { char stack_buffer[32]; char* heap_buffer = malloc...
julieeen/KleeFL
example/example_old.c
<filename>example/example_old.c #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> int DEF_BUF_SIZE = 8; int history[4] = { 100, 42, -42, 33 }; int read_from_file(char *); int main (int argc, char **argv){ int hflag = 0; int iflag = 0; int pflag = 0; char stack_...
junipertcy/network-archaeology
generators/src/models.h
<gh_stars>0 #ifndef MODELS_H #define MODELS_H #include "growth_model.h" #include "unstructured_models/delayed.h" #include "structured_models/bianconi_barabasi.h" #include "structured_models/gn.h" #endif // MODELS_h
junipertcy/network-archaeology
generators/src/unstructured_models/delayed.h
#ifndef DELAYED_H #define DELAYED_H #include <cmath> #include "../growth_model.h" #include "../types.h" class delayed_model : public unstructured_model { public: // no seed constructor delayed_model(double a, double alpha, double b, double mu, double tau); void intialize(unsigned int T); // overloaded step f...
junipertcy/network-archaeology
generators/src/gn_gen_model.h
#ifndef GN_GEN_MODEL_H #define GN_GEN_MODEL_H #include <cmath> #include "growth_model.h" #include "types.h" class gn_gen_model_t : public structured_model_t { public: // no seed constructor gn_gen_model_t(double a, double alpha, double b, unsigned int m1, unsigned int m2, double mu, double tau, bool directed=fal...
junipertcy/network-archaeology
generators/src/config.h
#define HAVE_LIBBOOST_PROGRAM_OPTIONS 0 #define HAVE_STEADY_CLOCK 1 #define NDEBUG 1
junipertcy/network-archaeology
generators/src/structured_models/gn.h
#ifndef GN_H #define GN_H #include <cmath> #include "../growth_model.h" #include "../types.h" class gn_model : public structured_model { public: // no seed constructor gn_model(double gamma, unsigned int m); void intialize(unsigned int T); // overloaded step function void step(unsigned int t, std::mt19937&...
junipertcy/network-archaeology
generators/src/structured_models/bianconi_barabasi.h
<gh_stars>0 #ifndef BIANCONI_BARABASI_H #define BIANCONI_BARABASI_H #include <cmath> #include <random> #include "../growth_model.h" #include "../types.h" class bianconi_barabasi_model : public structured_model { public: // no seed constructor bianconi_barabasi_model(double mu, double nu, double avg=1, double std...
junipertcy/network-archaeology
generators/src/types.h
#ifndef TYPES_H #define TYPES_H #include <vector> #include <set> #include <utility> typedef unsigned int id_t; typedef std::pair<id_t, id_t> edge_t; typedef std::vector<edge_t> edge_list_t; typedef std::multiset<id_t> neighbourhood_t; typedef std::vector<neighbourhood_t> adj_list_t; typedef struct mcmc_move_t { i...
junipertcy/network-archaeology
generators/src/growth_model.h
<reponame>junipertcy/network-archaeology<filename>generators/src/growth_model.h #ifndef GROWTH_MODEL_H #define GROWTH_MODEL_H #include <iostream> #include <map> #include <random> #include "types.h" class growth_model { protected: // history of the system id_vec_t history_; id_t max_token_; // map of tokens t...
myluoxz/osm-research.cpp
src/edge.h
#ifndef EDGE_H_ #define EDGE_H_ #include "node.h" struct Edge { public: int from, to; double w; // map<string, string> attrs; }; bool operator < (const Edge &x, const Edge &y) { return x.from == y.from ? x.to < y.to : x.from < y.from; } #endif /// EDGE_H_
myluoxz/osm-research.cpp
src/graph.h
#ifndef GRAPH_H_ #define GRAPH_H_ #include "edge.h" #include <string> #include <vector> class Graph { public: int V, E; double minlat = 1000, maxlat = -1000, minlon = 1000, maxlon = -1000; std::vector<Node> ns; std::vector<std::vector<Edge>> es; Graph(); Graph (int _V); Graph (const std::string& fil...
myluoxz/osm-research.cpp
src/node.h
<reponame>myluoxz/osm-research.cpp #ifndef NODE_H_ #define NODE_H_ struct Node { public: int id; double lat, lon; // map<string, string> attrs; }; #endif /// NODE_H_
myluoxz/osm-research.cpp
lib/UnionFind/union_find.h
<reponame>myluoxz/osm-research.cpp<filename>lib/UnionFind/union_find.h #ifndef UNION_FIND_H_ #define UNION_FIND_H_ #include <vector> struct UnionFind { std::vector<int> parent; UnionFind (int n) : parent(n, -1) {} int root(int x); bool merge(int x, int y); }; #endif /// UNION_FIND_H_
romanarranz/DSD
P1/listas_c/llist.c
/* llist printer RPC client by <NAME> */ #include "llist.h" list *mk_list(char *data, int key, color c) { list *lst; lst = (list*)malloc(sizeof(list)); if (lst == NULL) return NULL; lst->data = data; lst->key = key; lst->col = c; lst->next = NULL; return lst; } int main(i...
romanarranz/DSD
P1/rpc_programa/rpc.h
/* * Please do not edit this file. * It was generated using rpcgen. */ #ifndef _RPC_H_RPCGEN #define _RPC_H_RPCGEN #include <rpc/rpc.h> #ifdef __cplusplus extern "C" { #endif struct suma_1_argument { int arg1; int arg2; }; typedef struct suma_1_argument suma_1_argument; #define SUMA 0x20000001 #define SUMAV...
romanarranz/DSD
P1/msg_programa1/rprintmsg.c
<filename>P1/msg_programa1/rprintmsg.c /* Archivo rprintmsg.c: programa cliente */ #include <stdio.h> #include "msg.h" main(argc, argv) int argc; char *argv[]; { CLIENT *clnt; int *result; char *server; char *message; if (argc != 3) { fprintf(stderr, "uso: %s maquina mensaje\n", argv[0]); exit(1); } se...
romanarranz/DSD
P1/calculadora/calculadora_clnt.c
<reponame>romanarranz/DSD /* * Please do not edit this file. * It was generated using rpcgen. */ #include <memory.h> /* for memset */ #include "calculadora.h" /* Default timeout can be changed using clnt_control() */ static struct timeval TIMEOUT = { 25, 0 }; double * suma_1(int arg1, int arg2, CLIENT *clnt) { ...
romanarranz/DSD
P1/asociaciones/asociaciones_clnt.c
/* * Please do not edit this file. * It was generated using rpcgen. */ #include <memory.h> /* for memset */ #include "asociaciones.h" /* Default timeout can be changed using clnt_control() */ static struct timeval TIMEOUT = { 25, 0 }; Estado * ponerasociacion_1(ID arg1, Clave arg2, Valor arg3, CLIENT *clnt) { p...
romanarranz/DSD
P1/asociaciones/asociaciones_xdr.c
/* * Please do not edit this file. * It was generated using rpcgen. */ #include "asociaciones.h" bool_t xdr_Estado (XDR *xdrs, Estado *objp) { register int32_t *buf; if (!xdr_enum (xdrs, (enum_t *) objp)) return FALSE; return TRUE; } bool_t xdr_ID (XDR *xdrs, ID *objp) { register int32_t *buf; if (!xd...
romanarranz/DSD
P1/rpc_programa/rpc_client.c
<reponame>romanarranz/DSD /* * This is sample code generated by rpcgen. * These are only templates and you can use them * as a guideline for developing your own functions. */ #include "rpc.h" void suma_1(char *host) { CLIENT *clnt; int *result_1; int suma_1_arg1; int suma_1_arg2; #ifndef DEBUG clnt = clnt...
romanarranz/DSD
P1/asociaciones/backups/asociaciones.h
<reponame>romanarranz/DSD /* * Please do not edit this file. * It was generated using rpcgen. */ #ifndef _ASOCIACIONES_H_RPCGEN #define _ASOCIACIONES_H_RPCGEN #include <rpc/rpc.h> #ifdef __cplusplus extern "C" { #endif enum Estado { OK = 0, Sustitucion = 1, NoEncontrado = 2, }; typedef enum Estado Estado; ...
romanarranz/DSD
P1/rpc_programa/rpc_clnt.c
<reponame>romanarranz/DSD /* * Please do not edit this file. * It was generated using rpcgen. */ #include <memory.h> /* for memset */ #include "rpc.h" /* Default timeout can be changed using clnt_control() */ static struct timeval TIMEOUT = { 25, 0 }; int * suma_1(int arg1, int arg2, CLIENT *clnt) { suma_1_argu...
romanarranz/DSD
P1/rpc_programa/rpc_xdr.c
/* * Please do not edit this file. * It was generated using rpcgen. */ #include "rpc.h" bool_t xdr_suma_1_argument (XDR *xdrs, suma_1_argument *objp) { if (!xdr_int (xdrs, &objp->arg1)) return FALSE; if (!xdr_int (xdrs, &objp->arg2)) return FALSE; return TRUE; }
romanarranz/DSD
P1/calculadora/calculadora_client.c
<reponame>romanarranz/DSD<gh_stars>0 #include "calculadora.h" #include <stdio.h> #include <stdlib.h> void calculadora_1(char *host, int operando1, char operador, int operando2) { CLIENT *clnt; double *result, *result2; char op; int a, b; #ifndef DEBUG clnt = clnt_create (host, CALCULADORA, CALCULADORAVER, "udp...
romanarranz/DSD
P1/rpc_programa/rpc_server.c
<filename>P1/rpc_programa/rpc_server.c /* * This is sample code generated by rpcgen. * These are only templates and you can use them * as a guideline for developing your own functions. */ #include "rpc.h" int * suma_1_svc(int arg1, int arg2, struct svc_req *rqstp) { static int result; /* * insert server co...
romanarranz/DSD
P1/msg_programa1/msg_proc.c
/* msg_proc.c: implementacion del procedimiento remoto */ #include <stdio.h> #include "msg.h" /* el archivo lo genera rpcgen */ int * printmessage_1(msg, req) char **msg; struct svc_req *req; /* detalles de la llamada */ { static int result; /* es obligatorio que sea estatica */ FILE *f; f = fopen("/dev/console"...
romanarranz/DSD
P1/asociaciones/backups/asociaciones_server.c
#include "asociaciones.h" typedef struct ListaDeAsociaciones{ ID id; asociacion *inicio; asociacion *fin; struct ListaDeAsociaciones * sig; } Lista; Lista * primero = (Lista *) NULL; Lista * ultimo = (Lista *) NULL; Estado * ponerasociacion_1_svc(ID arg1, Clave arg2, Valor arg3, struct svc_req *rqstp) { ...
romanarranz/DSD
P1/listas_c/llist_svc_proc.c
/* llist printer RPC server implementation by <NAME> */ #include <stdlib.h> #include "llist.h" int result; /* print out a list, returning the number of items printed */ int *print_list_1_svc(list *lst, struct svc_req *req) { list *ptr; ptr = lst; result = 0; while (ptr != NULL) { printf(...
romanarranz/DSD
P1/calculadora/calculadora.h
<filename>P1/calculadora/calculadora.h /* * Please do not edit this file. * It was generated using rpcgen. */ #ifndef _CALCULADORA_H_RPCGEN #define _CALCULADORA_H_RPCGEN #include <rpc/rpc.h> #ifdef __cplusplus extern "C" { #endif struct suma_1_argument { int arg1; int arg2; }; typedef struct suma_1_argument ...
romanarranz/DSD
P1/asociaciones/asociaciones_svc.c
<gh_stars>0 /* * Please do not edit this file. * It was generated using rpcgen. */ #include "asociaciones.h" #include <stdio.h> #include <stdlib.h> #include <rpc/pmap_clnt.h> #include <string.h> #include <memory.h> #include <sys/socket.h> #include <netinet/in.h> #ifndef SIG_PF #define SIG_PF void(*)(int) #endif s...
romanarranz/DSD
P1/asociaciones/backups/asociaciones_client.c
<filename>P1/asociaciones/backups/asociaciones_client.c<gh_stars>0 #include "asociaciones.h" void asociaciones_1(char *host, int opcion) { CLIENT *clnt; #ifndef DEBUG clnt = clnt_create (host, ASOCIACIONES, ASOCIACIONESVER, "udp"); if (clnt == NULL) { clnt_pcreateerror (host); exit (1); } #endif /* DEB...
romanarranz/DSD
P1/calculadora/calculadora_server.c
#include "calculadora.h" double * suma_1_svc(int arg1, int arg2, struct svc_req *rqstp) { static double result; result = arg1 + arg2; return &result; } double * resta_1_svc(int arg1, int arg2, struct svc_req *rqstp) { static double result; result = arg1 - arg2; return &result; } double * multiplicacion_1_s...
romanarranz/DSD
P1/calculadora/calculadora_svc.c
/* * Please do not edit this file. * It was generated using rpcgen. */ #include "calculadora.h" #include <stdio.h> #include <stdlib.h> #include <rpc/pmap_clnt.h> #include <string.h> #include <memory.h> #include <sys/socket.h> #include <netinet/in.h> #ifndef SIG_PF #define SIG_PF void(*)(int) #endif static double ...
SethRobinson/ardumanarduman_arduboylib11
Player.h
// *************************************************************** // Player - Creation date: 05/29/2016 // ------------------------------------------------------------- // Robinson Technologies Copyright (C) 2016 - All Rights Reserved // // *************************************************************** // Progr...
SethRobinson/ardumanarduman_arduboylib11
ConvertToArduboy11.h
#ifndef ConvertToArduboy11_h__ #define ConvertToArduboy11_h__ #include <Arduboy.h> extern Arduboy arduboy; #define text arduboy class ArduboyPlaytune { public: ArduboyPlaytune() { } void playScore(const byte*score) { arduboy.tunes.playScore(score); } void tone(unsigned int frequency, unsigned long durat...
SethRobinson/ardumanarduman_arduboylib11
Ghost.h
// *************************************************************** // Ghost - Creation date: 05/29/2016 // ------------------------------------------------------------- // Robinson Technologies Copyright (C) 2016 - All Rights Reserved // // *************************************************************** // Progra...
SethRobinson/ardumanarduman_arduboylib11
Fruit.h
// *************************************************************** // Fruit - Creation date: 06/02/2016 // ------------------------------------------------------------- // Robinson Technologies Copyright (C) 2016 - All Rights Reserved // // *************************************************************** // Progra...
SethRobinson/ardumanarduman_arduboylib11
level_bitmaps.h
<reponame>SethRobinson/ardumanarduman_arduboylib11 const unsigned char level[] PROGMEM = { 0xff, 0x01, 0x01, 0x41, 0x01, 0x01, 0xc9, 0x41, 0x41, 0xc9, 0x01, 0x01, 0x49, 0x01, 0x01, 0x7f, 0x40, 0x40, 0x7f, 0x01, 0x01, 0x49, 0x01, 0x01, 0xc9, 0x41, 0x41, 0xc9, 0x01, 0x01, 0x49, 0x01, 0x01, 0xc9, 0x41, 0...
SethRobinson/ardumanarduman_arduboylib11
Music.h
const byte PROGMEM level_intro [] = { //all music written by Seth. And yes, you know what they were "inspired" by 0x90,55, 0x91,19, 0,71, 0x80, 0,71, 0x81, 0x90,67, 0,71, 0x80, 0,71, 0x90,62, 0,71, 0x80, 0,71, 0x90,59, 0,71, 0x80, 0,5, 0x90,20, 0x91,56, 0,71, 0x81, 0,71, 0x80, 0x90,68, 0,71, 0x80, 0,71, 0x90,...
SethRobinson/ardumanarduman_arduboylib11
Highscores.h
#ifndef Highscores_h__ #define Highscores_h__ #include "ardu_main.h" #include "Arduboy.h" void enterInitials(); void displayHighScores(byte file); bool enterHighScore(byte file); //returns true if new highscore was added #endif // Highscores_h__
SethRobinson/ardumanarduman_arduboylib11
Utils.h
#ifndef Utils_h__ #define Utils_h__ #include "Arduboy.h" #include "ConvertToArduboy11.h" extern Arduboy arduboy; //extern AbPrinter text; extern ArduboyPlaytune tunes; extern uint8_t g_level; #define PLAY_W 3 #define PLAY_H 3 const unsigned char solid_box[] PROGMEM = { 0x07, 0x07, 0x07, }; char * DirToText(uint8_...