Test push.
This file contains 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
(defun extract-audio (choice) | |
"Extract the audio from a chosen file or directory of files." | |
(interactive "fVideo File or Directory: ") | |
(cond ((file-directory-p choice) | |
(thread-last (directory-files choice 'full) | |
(seq-filter (lambda (file) (not (file-directory-p file)))) | |
(mapc #'extract-audio-from-file)) | |
(message "Done converting: %s" choice)) | |
(t (extract-audio-from-file choice)))) |
This file contains 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
module SpatialSort | |
( Point(..) | |
, spatialSort | |
) where | |
import Data.List (sortBy) | |
import Data.Monoid | |
import Data.Vector (Vector) | |
import qualified Data.Vector as V | |
import qualified Data.Vector.Algorithms.Insertion as I |
This file contains 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
/* Eugene (et al.), our mistake might have been that `MapAlgebra` isn't the Monad, | |
* RDDs are. We'd like to do things like: | |
* rdd1.localMean(rdd2).flatMap(r => r.focalGradient).flatMap(r => r.moreStuff) | |
*/ | |
implicit class KeyedRDDMethods[K: Key, A](rdd: RDD[(K,A)]) { | |
/* Binary operations are naturally expressed as an FP `zipWith` operation. | |
* There is a keyed variant that works across Map-like containers. |
This file contains 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
class Backend($: BackendScope[ModelProxy[DisplayModel], Unit]) { | |
def render(proxy: ModelProxy[DisplayModel]) = { | |
val x = Array[String]().toVector // This highlights correctly | |
<.div( | |
proxy().metadata.render(md => { | |
<.div( | |
<.h3("Layer Metadata"), | |
<.p(s"CellType: ${md.cellType}"), |
This file contains 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
#slightly modified | |
#made it part of a module for your using pleasure | |
module SentenceParser | |
#finds the earliest sentence-ending punctuation in the given String | |
#i realize this isn't pretty | |
#finds the earliest sentence-ending punctuation in the given String | |
def find_partition_pos(line) | |
found = false | |
pos = nil #the position of the valid sentence ending punctuation |