Skip to content

Instantly share code, notes, and snippets.

View BoeingX's full-sized avatar

boeingx BoeingX

  • Paris, France
View GitHub Profile
@alexandreaquiles
alexandreaquiles / fibonacciSequence.scala
Last active April 16, 2018 20:00
Lazy Fibonacci Sequence in Scala, using Streams.
def fibonacciSequence : Stream[Long] = {
def fibonacciFrom(a: Long, b: Long) : Stream[Long] = a #:: fibonacciFrom(b, a+b)
fibonacciFrom(0, 1)
}
@frangio
frangio / gist:985684
Created May 22, 2011 17:22
Vim - Don't create swap files for files in the Dropbox folder (useful for folders shared with Windows people)
autocmd BufNewFile,BufRead *
\ if expand('%:~') =~ '^\~/Dropbox' |
\ set noswapfile |
\ else |
\ set swapfile |
\ endif