Skip to content

Instantly share code, notes, and snippets.

View astrograzl's full-sized avatar
🎯
Focusing on Target

Zdeněk Janák astrograzl

🎯
Focusing on Target
View GitHub Profile
@astrograzl
astrograzl / jack.py
Created January 16, 2017 11:23
All work and no play makes Jack a dull boy
"""All work and no play makes Jack a dull boy"""
import os
import sys
import time
import random
os.system("clear")
while True:
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@astrograzl
astrograzl / Jpeg-to-Fits.ipynb
Last active April 14, 2017 10:51
Jpeg-to-Fits
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@astrograzl
astrograzl / Lamost.ipynb
Last active April 29, 2017 12:38
Visualizace hluboké konvoluční neuronové sítě
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@astrograzl
astrograzl / Julian.ipynb
Last active September 11, 2017 18:42
Podzimní astronomický kurs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@astrograzl
astrograzl / defucker.py
Last active November 12, 2017 21:31
Clean dirty rows and columns from fits image.
#!python
# coding: utf-8
"""Clean dirty rows and columns from fits image."""
import os
import argparse
import numpy as np
from astropy.io import fits
@astrograzl
astrograzl / PKGBUILD
Last active January 29, 2018 21:00
Montage @ Arch Linux
# Maintainer: <clu@eeviac>
pkgname=montage
pkgver=5.0
pkgrel=2
pkgdesc="An astronomical image mosaic engine"
arch=('i686' 'x86_64')
url="http://montage.ipac.caltech.edu/"
license=('custom')
depends=("freetype2")
@astrograzl
astrograzl / eol.py
Created March 8, 2018 19:09
End of Line
#!python3
# coding: utf-8
"""Trim white space from end of line."""
import sys
if len(sys.argv) < 2:
sys.exit("Usage: eol.py FILENAME[S]")
for filename in sys.argv[1:]:
@astrograzl
astrograzl / reset.py
Last active March 16, 2018 13:20
Rename subtitle files with respekt to movie filenames.
#!python
# coding: utf-8
"""Rename subtitle files with respekt to movie filenames.
$ python reset.py "Movies*.mkv" "Subtitles*.srt"
The quotation marks are important to prohibit shell expanse of the filenames
mask. It is expected, that the files will be sorted in the same right order.
"""
@astrograzl
astrograzl / movie.py
Created April 16, 2018 16:25
Transform screenshot into fullframe
#!python3
# coding: utf-8
"""Transform screenshot into fullframe"""
import sys
from PIL import Image
from glob import glob
from progressbar import ProgressBar
width = 1920