Skip to content

Instantly share code, notes, and snippets.

View jcayouette's full-sized avatar

Joseph Cayouette jcayouette

View GitHub Profile
@jcayouette
jcayouette / section-titles.bash
Created July 16, 2024 13:32
Section title comparison checks
#!/bin/bash
# Base directory containing Antora documentation
BASE_DIR="path/to/docs"
# Array of navigation files
NAV_FILES=(
"nav-administration-guide.adoc"
"nav-client-configuration-guide.adoc"
"nav-common-workflows-guide.adoc"
#!/usr/bin/python3
import logging
from datetime import datetime, timedelta, timezone, tzinfo
from math import acos, asin, ceil, cos, degrees, fmod, radians, sin, sqrt
from time import time
log = logging.getLogger()
@jcayouette
jcayouette / planetary-orbits.py
Created April 25, 2023 17:33
Planetary orbits using newtonian physics in pygame
import pygame
import math
pygame.init()
WIDTH, HEIGHT = 1920, 1080
WIN = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("Planet Simulation")
WHITE = (255, 255, 255)
YELLOW = (255, 255, 0)
@jcayouette
jcayouette / planetary orbits
Created April 25, 2023 17:33
Planetary orbits with newtonian physics in pygame
import pygame
import math
pygame.init()
WIDTH, HEIGHT = 1920, 1080
WIN = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("Planet Simulation")
WHITE = (255, 255, 255)
YELLOW = (255, 255, 0)
#!/bin/sh
# -*- coding: utf-8 -*-
import argparse
import time
import datetime
import sys
from influxdb import InfluxDBClient
from sense_hat import SenseHat
sense=SenseHat()
import React, { useEffect } from "react";
const Aladin = () => {
useEffect(() => {
// To call external javascript function from index.html you need to specify window.function name.
let aladin = window.A.aladin("#aladin-lite-div", {
survey: "P/DSS2/color",
fov: 60,
});
StylesPath = .github/styles
MinAlertLevel = suggestion
[*.adoc]
BasedOnStyles = Google
Vale.Spelling = NO
StylesPath = styles/vale-styles
MinAlertLevel = suggestion
[*.adoc]
BasedOnStyles = Google
Vale.Spelling = NO
StylesPath = styles/vale-styles
MinAlertLevel = suggestion
[*.adoc]
BasedOnStyles = Google
Vale.Spelling = NO
StylesPath = .github/styles
MinAlertLevel = suggestion
[./*.md]
BasedOnStyles = Vale
[modules/*.adoc]
BasedOnStyles = Vale