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 / munipack.patch
Last active May 15, 2020 12:37
Munipack @ Arch Linux
--- /usr/local/src/munipack/configure.ac 2019-06-02 20:21:52.075376539 +0200
+++ munipack/configure.ac 2019-06-02 20:33:04.611300838 +0200
@@ -170,23 +170,23 @@
if test "x$disable_gui" = "xno"; then
wxGUI="yes"
AC_SUBST(XMUNIPACKDIR,[xmunipack])
- AC_SUBST(WX_CXXFLAGS_GUI,[`wx-config --cxxflags`])
- AC_SUBST(WX_LIBS_GUI,[`wx-config --libs core,base,net,xml,adv,qa,html --optional-libs webview`])
+ AC_SUBST(WX_CXXFLAGS_GUI,[`wx-config-gtk3 --cxxflags`])
+ AC_SUBST(WX_LIBS_GUI,[`wx-config-gtk3 --libs core,base,net,xml,adv,qa,html --optional-libs webview`])
@astrograzl
astrograzl / drawing.svg
Created October 24, 2019 11:45
Drawing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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
@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 / 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 / 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 / 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 / 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 / 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.