Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
""" Retrieve data from Horizons using a batch-file | |
Written by PM 2Ring 2021.12.27 | |
""" | |
import re, requests | |
url = "https://ssd.jpl.nasa.gov/api/horizons_file.api" | |
pat = re.compile(r"(?:[^'\s]|'[^']*')+") | |
@interact | |
def go(batch=InputBox(width=40, height=24)): | |
if not batch: return |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Multiplication Drill</title> | |
</head> | |
<body> | |
<h3>Multiplication Drill</h3> | |
<input id="aLo" type="number" value="2"><label for="aLo">Low A</label><br> |
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
# Fetch & parse leap-seconds.list | |
from datetime import datetime, timezone, timedelta | |
from hashlib import sha1 | |
import requests | |
# Leap second data source | |
# url = 'https://www.ietf.org/timezones/data/leap-seconds.list' | |
url = 'https://raw.githubusercontent.com/eggert/tz/main/leap-seconds.list' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>SVG Bézier</title> | |
<style id="mystyle"> | |
circle { | |
stroke: #222; | |
stroke-width: 0.5; | |
stroke-opacity: 0.25; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> | |
</head> | |
<body> | |
<canvas id="can3js" width="640" height="320"></canvas><br> | |
<button id="stopstart">Start</button><br> | |
</body> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
class Table: | |
def __init__(self, align, data): | |
self.buff = [] | |
self.make(align, data) | |
def get(self): | |
s = "\n".join(self.buff) | |
return s + "\n\\end{array}" | |
def put(self, s): |