This file contains 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
Parameters: | |
Product: | |
Type: String | |
Default: growthbook | |
Account: | |
Type: String | |
AllowedValues: | |
- dev | |
- prod |
This file contains 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 dynamicSetInterval = (func, getInterval) => { | |
setTimeout(() => { | |
func(); | |
dynamicSetInterval(func, getInterval); | |
}, getInterval()); | |
}; | |
let currentInterval = 1000; // 1 second | |
const maxInterval = 1000 * 60 * 3; // 3 minutes |
This file contains 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
import re | |
from datetime import datetime | |
import json | |
from io import BytesIO | |
import requests | |
MEDIUM_IMG_CDN = "https://cdn-images-1.medium.com/max/" | |
def MediumToMarkdownBuilder(request_get): | |
def _func(url): |
This file contains 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
#include <Wire.h> | |
#include <Adafruit_INA219.h> | |
Adafruit_INA219 ina219; | |
float shuntvoltage = 0; | |
float busvoltage = 0; | |
float current_mA = 0; | |
float loadvoltage = 0; | |
float power_mW = 0; |
This file contains 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
#include <DS3232RTC.h> | |
#include <Adafruit_INA219.h> | |
#include <Wire.h> | |
int led = LED_BUILTIN; | |
// INA219 - Power Monitor | |
Adafruit_INA219 ina219; | |
This file contains 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
#include <DS3232RTC.h> | |
#include <Wire.h> | |
int led = LED_BUILTIN; | |
void setup() { | |
Serial.begin(115200); | |
Wire.begin(); | |
pinMode(led, OUTPUT); | |
} |
This file contains 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
#include <SPI.h> | |
#include <nRF24L01.h> | |
#include <RF24.h> | |
#include <TinyGPS++.h> | |
#include <SoftwareSerial.h> | |
#include <SD.h> | |
TinyGPSPlus gps; | |
This file contains 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
#include <SPI.h> | |
#include <SD.h> | |
#include <TinyGPS++.h> | |
#include <SoftwareSerial.h> | |
TinyGPSPlus gps; | |
SoftwareSerial ss(4, 3); | |
struct dataStruct{ |
This file contains 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
#include <SPI.h> | |
#include <nRF24L01.h> | |
#include <RF24.h> | |
#include <TinyGPS++.h> | |
#include <SoftwareSerial.h> | |
TinyGPSPlus gps; | |
SoftwareSerial ss(4, 3); | |
RF24 radio(8, 7); // CE, CSN |
NewerOlder