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 os | |
import time | |
import sys | |
src = os.getcwd() | |
oneyear = 365 * 24 * 60 * 60 | |
totalsaved = 0 | |
with open('old_files.sh', 'w') as f: | |
for root, dirs, files in os.walk(src): |
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
val x = Iterator.from(0).takeWhile(_ <= 10) | |
val y = Iterator.from(0).takeWhile(_ <= 10) | |
val xy = y.flatMap { y => x.map { x => (x, y) } } | |
xy.foreach(println) |
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 scala.reflect.runtime.universe._ | |
object ParamAccess { | |
val typeString = typeOf[String] | |
} | |
class ParamAccess { | |
import ParamAccess._ | |
def paramo[T: TypeTag](key: String, coll: Map[String, Seq[String]]): Option[T] = { |