This file contains 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
function [solution,solution_image] = amazer(mz,p,q) | |
% Solve mazes using image processing! | |
% mz is a binary image of a maze (1s represent walls) | |
% p and q are the start and end points | |
% walls = bwmorph(mz,'dilate',2); | |
% walls = bwmorph(mz,'thicken',5); | |
walls = mz; | |
DA = bwdistgeodesic(~walls,p(1),p(2),'quasi-euclidean'); |
This file contains 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
def eval_ctf(s, a, def1, def2, angast=0, phase=0, kv=300, ac=0.1, cs=2.0, bf=0, lp=0): | |
""" | |
:param s: Precomputed frequency grid for CTF evaluation. | |
:param a: Precomputed frequency grid angles. | |
:param def1: 1st prinicipal underfocus distance (Å). | |
:param def2: 2nd principal underfocus distance (Å). | |
:param angast: Angle of astigmatism (deg) from x-axis to azimuth. | |
:param phase: Phase shift (deg). | |
:param kv: Microscope acceleration potential (kV). | |
:param ac: Amplitude contrast in [0, 1.0]. |
This file contains 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
This script enables you stop and start Symantec Endpoint Protection on OS X | |
## Installation | |
``` | |
sudo curl https://gist.githubusercontent.com/steve-jansen/61a189b6ab961a517f68/raw/sep -o /usr/local/bin/sep | |
sudo chmod 755 /usr/local/bin/sep | |
sudo chown root:staff /usr/local/bin/sep | |
``` |