Skip to content

Instantly share code, notes, and snippets.

@qheuristics
qheuristics / remote_task_mngr
Created May 7, 2014 23:26
how to display task manager in remote desktop window
Ctrl + Alt + delete on local session
Ctrl + Shift + Esc on remote session
@qheuristics
qheuristics / conda_cheat
Last active November 13, 2020 12:22
conda cheatsheet
to create a new environment
conda create -n mynewenviron package1 package2 etc
conda create -n newenv --clone ~anaconda
to remove an environment
conda remove -n myenvirontoremove --all
always start with
@qheuristics
qheuristics / peakdetect.py
Created November 10, 2013 08:45 — forked from sixtenbe/analytic_wfm.py
returns the index and value of the local maxima and minima in two separate lists
import numpy as np
from math import pi, log
import pylab
from scipy import fft, ifft
from scipy.optimize import curve_fit
i = 10000
x = np.linspace(0, 3.5 * pi, i)
y = (0.3*np.sin(x) + np.sin(1.3 * x) + 0.9 * np.sin(4.2 * x) + 0.06 *
np.random.randn(i))