We have moved: https://github.com/magnetikonline/linuxmicrosoftievirtualmachines
Due to the popularity of this Gist, and the work in keeping it updated via a Gist, all future updates will take place at the above location. Thanks!
| // # Mocha Guide to Testing | |
| // Objective is to explain describe(), it(), and before()/etc hooks | |
| // 1. `describe()` is merely for grouping, which you can nest as deep | |
| // 2. `it()` is a test case | |
| // 3. `before()`, `beforeEach()`, `after()`, `afterEach()` are hooks to run | |
| // before/after first/each it() or describe(). | |
| // | |
| // Which means, `before()` is run before first it()/describe() |
| # Steps to export Vesuvius from LP to GH. | |
| # Replace [username] and ~/path/to/vesuvius with the appropriate values. | |
| # NOTE: This is NOT a script, but a series of commands you should run by hand. | |
| # Also, much of this was found on http://flexion.org/posts/2012-10-migrating-bzr-to-git.html . | |
| # get the tools | |
| sudo apt-get update | |
| sudo apt-get install bzr-fastimport # adds fast-export to bzr if you don't already have it | |
| sudo apt-get upgrade git # make sure git is the most current! |
| # Given | |
| Given I am on [the] homepage | |
| Given I am on "url" | |
| # When | |
| When I go to [the] homepage | |
| When I go to "url" | |
| When I reload the page |
We have moved: https://github.com/magnetikonline/linuxmicrosoftievirtualmachines
Due to the popularity of this Gist, and the work in keeping it updated via a Gist, all future updates will take place at the above location. Thanks!
| git checkout master | |
| git fetch | |
| git remote prune origin | |
| git branch --merged master | grep -v 'master$' | xargs git branch -d | |
| echo "The following remote branches are fully merged and will be removed:" | |
| git branch -r --merged master | sed 's/ *origin\///' | grep -v 'master$' | |
| git branch -r --merged master | sed 's/ *origin\///' | grep -v 'master$' | xargs -I% git push origin :% |
| /* | |
| * DOMParser HTML extension | |
| * 2019-11-13 | |
| * | |
| * By Eli Grey, http://eligrey.com | |
| * Public domain. | |
| * NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
| */ | |
| /*! @source https://gist.github.com/1129031 */ |
| from __future__ import division | |
| from numpy.fft import rfft | |
| from numpy import argmax, mean, diff, log, nonzero | |
| from scipy.signal import blackmanharris, correlate | |
| from time import time | |
| import sys | |
| try: | |
| import soundfile as sf | |
| except ImportError: | |
| from scikits.audiolab import flacread |