Skip to content

Instantly share code, notes, and snippets.

View Chryseus's full-sized avatar
👌
Who knows

Chryseus

👌
Who knows
View GitHub Profile
@Chryseus
Chryseus / basicorbit.py
Created March 28, 2021 22:14
Basic 2D orbit plotting using matplotlib
# Orbit plotting example in 2D
# www.chryseus.co.uk
import numpy as np
import matplotlib.pyplot as plt
a = 1 # Semi-major axis
ε = 0.4 # Eccentricity
points = 100 # Number of points to use in plot
step = (2*np.pi)/points # Step size
@Chryseus
Chryseus / gist:de9d330817a2bb015e4f912902a88108
Created October 18, 2020 23:35
Web2.0calc bypass user script
// ==UserScript==
// @name Web2.0calc bypass
// @version 1
// @grant none
// @match https://web2.0calc.com/*
// @description Bypasses web2.0calc cookie crap
// ==/UserScript==
var e = document.getElementsByClassName("modal-content");
for (i = 0; i < e.length; i++) {
@Chryseus
Chryseus / main.c
Created November 25, 2019 20:44
ADF4351 on STM32F103C8
#include "main.h"
#include "dwt_delay.h"
#include <stdlib.h>
void SystemClock_Config(void);
static void MX_GPIO_Init(void);
typedef struct adf4351
{
uint16_t FRAC; // Fractional frequency component