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
| object Main extends App { | |
| import scala.annotation.tailrec | |
| val facL: LazyList[Long] = 1l #:: facL zip LazyList.from(0) map { | |
| case (prev, i) => | |
| if (i != 0) prev * i | |
| else 1 | |
| } | |
| def facR (n: Int): Long = |
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
| #!/bin/bash | |
| # launches chrome window for multimedia purposes on the left, for programming purposes | |
| # on the right, and VS Code in Zen mode in the middle | |
| # -s flag enables spotify because i like it | |
| wmctrl -s 1 | |
| google-chrome --new-window vk.com & | |
| if [ $1 = '-s' ] | |
| then | |
| spotify & |