The Arch Way states:
Arch Linux targets and accommodates competent GNU/Linux users by
giving them complete control and *responsibility* over the system.
Part of this comes from package choice. Users either install from
| #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 |
| 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}"), |
| /* 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. |
| 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 |
| (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)))) |