** Step 1 **
Install ffmpeg with the vidstab plugin.
- OSX: Install via Homebrew -
brew install ffmpeg --with-libvidstab - Linux: download binaries here (vidstab included)
- Windows: download binaries here (vidstab included)
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """Implements Partial Directed Coherence and Direct Transfer Function | |
| using MVAR processes. | |
| Reference | |
| --------- | |
| Luiz A. Baccala and Koichi Sameshima. Partial directed coherence: | |
| a new concept in neural structure determination. |
** Step 1 **
Install ffmpeg with the vidstab plugin.
brew install ffmpeg --with-libvidstabA quick way to render latex in markdown


<img src="https://render.githubusercontent.com/render/math?math=e^{i \pi} = -1" />
| using Images | |
| # FFTW.set_num_threads(2) | |
| """ | |
| opticalFlow(im1::Array, im2::Array, kps::Array{CartesianIndex{2},1}; windowSize=15) | |
| Parameters: | |
| - im1: An Image array, the first frame in time. | |
| - im2: The second frame in time, must be the same size as im1 | |
| - kps: Key points, or points of interest within the image where the optical flow is expected. | |
| - windowSize: Window size for solving the flow equations. Default 15. | |
| """ |
| using Flux | |
| using Flux: onehot, argmax, chunk, batchseq, throttle, crossentropy | |
| using StatsBase: wsample | |
| using Base.Iterators: partition | |
| cd(@__DIR__) | |
| text = collect(repeat(readstring("prince_eo.txt"), 20)) | |
| alphabet = [unique(text)..., '_'] | |
| text = map(ch -> onehot(ch, alphabet), text) |
| #!/usr/bin/python | |
| ''' | |
| InFB - Information Facebook | |
| Usage: infb.py user@domain.tld password | |
| infb.py | |
| http://ruel.me |
| using Compat | |
| # using Suppressor | |
| using OhMyREPL | |
| const SEPARATOR = "\n\n" * "#"^80 * "\n\n" | |
| ENV["PYTHON"] = "" | |
| ENV["JULIA_WARN_COLOR"] = :yellow | |
| ENV["JULIA_INFO_COLOR"] = :cyan | |
| # ENV["LISP_PROMPT_TEXT"] = "λ ↦ " |
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |