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
| //Using Futures in the REPL: | |
| import akka.dispatch.{ Await, ExecutionContext, Future, Promise } | |
| import akka.util.duration._ | |
| import java.util.concurrent.Executors | |
| val pool = Executors.newCachedThreadPool() | |
| implicit val ec = ExecutionContext.fromExecutorService(pool) |
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
| var fs = require('fs'), | |
| util = require('util'), | |
| _path = require('path'); | |
| var sourceFolder = 'sourceFolder', | |
| playlistPath = 'sync.m3u', | |
| destinationFolder = 'destFolder'; | |
| console.log('-- Playlist copy application --\n'); | |
| console.log('Copying from ' + sourceFolder + ' to ' + destinationFolder + '\n'); |
NewerOlder