This file contains hidden or 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
import Browser | |
import Html exposing (Html, text) | |
main = Browser.element | |
{ init = init | |
, update = update | |
, subscriptions = subscriptions | |
, view = view | |
} |
This file contains hidden or 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
package main | |
import "github.com/mjibson/go-dsp/fft" | |
import "math" | |
import "fmt" | |
import "math/rand" | |
import "math/cmplx" | |
func main() { | |
Fs := 1000.0 // Sampling frequency |
This file contains hidden or 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 _gocomplete_() | |
{ | |
# What do we want to autocomplete ? | |
local word=${COMP_WORDS[COMP_CWORD]} | |
# list packages that match in src/ subfolder, discarding warnings if no result | |
COMPREPLY=($(go list ./src/"${word}"... 2>/dev/null)) | |
} | |
# register autocomplete function for `go` | |
complete -F _gocomplete_ go |