A little info about your project and/or overview that explains what the project is about.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let usb = require('usb') | |
function connectdevice(vID, pId) { | |
var device = usb.findByIds(vID, pId); | |
device.open(); | |
var deviceINTF = device.interface(0); | |
if (deviceINTF.isKernelDriverActive()) | |
deviceINTF.detachKernelDriver(); | |
deviceINTF.claim(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require("express"); | |
const fs = require('fs') | |
const app = express(); | |
const axios = require("axios"); | |
const bodyParser = require('body-parser'); | |
const _ = require("lodash"); | |
const { v4: uuidv4 } = require('uuid'); | |
global.window = {} | |
const { jsPDF } = require('jspdf/dist/jspdf.node') | |
const { applyPlugin } = require('./node_modules/jspdf-autotable/dist/jspdf.plugin.autotable'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// var body = document.body, | |
// html = document.documentElement; | |
// var height = Math.max( body.scrollHeight, body.offsetHeight, | |
// html.clientHeight, html.scrollHeight, html.offsetHeight ); | |
const { findAllPackage, removePackage, updatePackage, findPackagesLocation } = require("./database/db-func"); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.6.12; | |
// SPDX-License-Identifier: Unlicensed | |
interface IBEP20 { | |
function totalSupply() external view returns (uint256); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Libraries for LoRa | |
#include <SPI.h> | |
#include <LoRa.h> | |
//Libraries for OLED Display |
Using Python to check if remote port is open and accessible.
Taken from http://snipplr.com/view/19639/test-if-an-ipport-is-open/
Usage:
- Open a Python prompt
- Run the script in is_port_open.py
- Call isOpen with a host and a port parameter. Example: isOpen("www.google.com", 80)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//SPDX-License-Identifier: Unlicense | |
pragma solidity ^0.8.0; | |
contract AdviceContract { | |
address owner; | |
mapping(address => bool) public Doctors; | |
struct Message { | |
uint256 time; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"time" | |
"github.com/labstack/echo/v5" | |
"github.com/pocketbase/pocketbase" | |
"github.com/pocketbase/pocketbase/apis" | |
"github.com/pocketbase/pocketbase/core" |
OlderNewer