View mzti.m.py
from numpy import pi, exp, tan, sqrt, log10
import numpy as np
from scipy import signal
import matplotlib.pyplot as plt
def lp2_mzti(w0=None, K=None):
"""
Digital 2nd order lowpass filter design using
improved Matched Z transform (MZTi)
View finite_scroll.txt
! Title: Finite Scroll (kills infinite scrolling)
! Last modified: 2017-10-24
! Homepage: https://gist.github.com/endolith/72ac5e69e037be02b118adbedcdeac59
! This URL: https://gist.githubusercontent.com/endolith/72ac5e69e037be02b118adbedcdeac59/raw/finite_scroll.txt
! TODO: Add these scripts: https://infinite-scroll.com/
! Forbes infinite scroll (and all other AJAX)
View bounds_constraints_example.py
import numpy as np
from numpy import exp, sqrt, pi, cos, sin, e
import matplotlib.pyplot as plt
from scipy import optimize
import warnings
warnings.filterwarnings("ignore",".*GUI is implemented.*")
from scipy._lib._util import check_random_state
from scipy.optimize._basinhopping import AdaptiveStepsize, RandomDisplacement
View reverse_cmap.py
from skimage import io as sio
import skimage
import numpy as np
import matplotlib.pyplot as plt
filename = 'Lennert jet.png'
img = skimage.img_as_float(sio.imread(filename))[:,:,:3]
jet = plt.cm.jet
View image_movie.py
from tkinter import Tk, Label
from PIL import Image, ImageTk
import os
import sys
# Skip every n frames. Use 1 to show all images
skip = 1
try:
root = Tk()
View election_simulator.py
# -*- coding: utf-8 -*-
"""
Created on Sat Dec 17 11:33:35 2016
"""
from __future__ import division, print_function
from numpy.random import multivariate_normal
import matplotlib.pyplot as plt
from scipy.spatial.distance import cdist
import numpy as np
View value_parser.py
# -*- coding: utf-8 -*-
"""
Created on Wed Aug 24 2016
"""
from __future__ import division, print_function, unicode_literals
prefixes = {
'Y': 1e24,
View boinc_temp.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import subprocess
import re
weather = subprocess.check_output(['inxi', '-w'])
temp = int(re.search('\((\D?\d+) C\)', weather).groups()[0])
if temp > 15:
subprocess.call(['systemctl', 'stop', 'boinc-client'])
View overlaps.py
from __future__ import division, print_function, absolute_import
import numpy as np
import scipy
from spectral import check_COLA # https://github.com/scipy/scipy/pull/6058
windows = np.unique(scipy.signal.windows._win_equiv.values())
windows = sorted(windows, key=lambda x: x.__name__)
for window in windows:
try: