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 | |
| # play YUV444 FULL HD file | |
| gst-launch-1.0 -v filesrc location=size_1920x1080.yuv ! \ | |
| videoparse width=1920 height=1080 framerate=25/1 format=GST_VIDEO_FORMAT_Y444 ! \ | |
| videoconvert ! \ | |
| autovideosink | |
| # play YUV422 FULL HD file | |
| gst-launch-1.0 -v filesrc location=size_1920x1080.yuv ! \ |
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
| (defn e-tree-seq | |
| "tree-seqs enlive trees/graphs, at least instaparse ones" | |
| [e-tree] | |
| (if (map? (first e-tree)) | |
| (tree-seq (comp seq :content) :content (first e-tree)) | |
| (tree-seq (comp seq :content) :content e-tree))) |
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 numpy as np | |
| from scipy import linalg | |
| from sklearn.utils import array2d, as_float_array | |
| from sklearn.base import TransformerMixin, BaseEstimator | |
| class ZCA(BaseEstimator, TransformerMixin): | |
| def __init__(self, regularization=10**-5, copy=False): | |
| self.regularization = regularization |
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
| ;; in reply to http://www.sids.in/blog/2010/05/06/html-parsing-in-clojure-using-htmlcleaner/ | |
| (ns html-parser | |
| (:require [net.cgrand.enlive-html :as e])) | |
| (defn parse-page | |
| "Given the HTML source of a web page, parses it and returns the :title | |
| and the tag-stripped :content of the page. Does not do any encoding | |
| detection, it is expected that this has already been done." | |
| [page-src] | |
| (-> page-src java.io.StringReader. e/html-resource |
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
| (ns in.grok.history.html-parser | |
| (:require [clojure.contrib.logging :as log]) | |
| (:import [org.htmlcleaner HtmlCleaner] | |
| [org.apache.commons.lang StringEscapeUtils])) | |
| (defn parse-page | |
| "Given the HTML source of a web page, parses it and returns the :title | |
| and the tag-stripped :content of the page. Does not do any encoding | |
| detection, it is expected that this has already been done." | |
| [page-src] |
NewerOlder