DIY version of the ZeroLyte Salty Orange electrolyte mix
- 2.5 grams of Sodium Chloride (NaCl)
- 0.4 grams of Magnesium Malate (Mg)
# frozen_string_literal: true | |
# This class provides a wrapper around the Octokit client for GitHub App authentication. | |
# It handles token generation and refreshing, and delegates method calls to the Octokit client. | |
# Helpful: https://github.com/octokit/handbook?tab=readme-ov-file#github-app-authentication-json-web-token | |
# Go ahead and rename all the environment variables that start with "YOUR_..." to match your setup. | |
# | |
# Usage (examples): | |
# require_relative "github" | |
# github = GitHub.new |
DIY version of the ZeroLyte Salty Orange electrolyte mix
import git | |
from unidiff import PatchSet | |
import os | |
from io import StringIO | |
class GitDiff: | |
""" | |
Class to get the diff between two branches |
# Do some fake "noop" deployment logic here | |
# conditionally run a noop deployment | |
- name: fake noop deploy | |
if: ${{ steps.branch-deploy.outputs.continue == 'true' && steps.branch-deploy.outputs.noop == 'true' }} | |
run: echo "I am doing a fake noop deploy" | |
# Do some fake "regular" deployment logic here | |
# conditionally run a regular deployment | |
- name: fake regular deploy | |
if: ${{ steps.branch-deploy.outputs.continue == 'true' && steps.branch-deploy.outputs.noop != 'true' }} |
# Execute IssueOps branch deployment logic, hooray! | |
- uses: github/branch-deploy@vX.X.X | |
id: branch-deploy | |
with: | |
trigger: ".deploy" |
jobs: | |
demo: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout your projects repository | |
- uses: actions/checkout@3.0.2 |
# Permissions needed for reacting and adding comments for IssueOps commands | |
permissions: | |
pull-requests: write | |
deployments: write | |
contents: write |
# The name of the workflow, it can be anything you wish | |
name: "branch deploy demo" | |
# The workflow to execute on is comments that are newly created | |
on: | |
issue_comment: | |
types: [created] |
from datetime import datetime | |
# 7 seconds for every one second in real time | |
TARKOV_RATIO = 7 | |
def real_time_to_tarkov_time(time, left = True): | |
""" | |
Convert real time to Tarkov time | |
:param time: Current UTC epoch in milliseconds -> int(datetime.datetime.utcnow().timestamp()) * 1000 | |
:param left: True if left side, False if right side (Think eft in-game clock) |
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
from PIL import Image | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.webdriver.support.ui import WebDriverWait | |
from io import BytesIO | |
options = Options() | |
# Enable headless mode (optional) |