View Dockerfile.catalyst
FROM tensorflow/tensorflow:1.4.0
ENV HOME /root
RUN echo 'export LC_ALL=C.UTF-8' >> /etc/profile
RUN echo 'export LANG=C.UTF-8' >> /etc/profile
RUN pip install enigma-catalyst
RUN jupyter nbextension enable --py --sys-prefix widgetsnbextension
#!/usr/bin/env bash
set -euo pipefail
View extra-split-fns.lisp
(defun split-frame-eql-parts* (group dir amt)
(when (not (eq amt 1))
(when-let ((new-frame (split-frame group dir (/ (- amt 1) amt))))
(cons new-frame (split-frame-eql-parts* group dir (- amt 1))))))
(defun split-frame-eql-parts (group dir amt)
"Splits frame in equal parts defined by amt."
(assert (> amt 1))
(let ((f (tile-group-current-frame group))
(new-frame-numbers (split-frame-eql-parts* group dir amt)))
View spec_either.clj
(ns cats-spec.either
(:require [cats.monad.either :as m.either]
[clojure.spec.alpha :as s]
[clojure.spec.gen.alpha :as gen]))
(defn either-impl
[form-r pred-r form-l pred-l]
(let [spec-r (delay (s/specize* pred-r form-r))
spec-l (delay (s/specize* pred-l form-l))]

Setup udev rule for HDMI cable

Create script that checks HDMI status and executes xrandr:

#!/usr/bin/env bash

export DISPLAY=":0.0"

USER="$(who | grep ${DISPLAY}\) | cut -f 1 -d ' ' | head -n1)"
from sklearn.base import BaseEstimator, TransformerMixin
from sklearn.model_selection import cross_val_predict
from sklearn.pipeline import make_union
from sklearn.model_selection._split import check_cv
from sklearn.utils.validation import check_X_y
class BlendedClassifierTransformer(BaseEstimator, TransformerMixin):
def __init__(self, clf, cv=3):
self.clf = clf = cv
View kc.cpp
#include <iostream>
#include <vector>
#include <map>
#include <set>
#include <bitset>
#include <list>
#include <stack>
#include <queue>
#include <deque>
#include <string>
View logs.txt
Benchmark: get value in nested map (2500000 iterations)
Avg(ms) vs best Code
42.623 1.00 (-> data (get :a) (get :b) (get :c))
49.893 1.17 (-> data :a :b :c)
53.703 1.26 (-> data :a :b :c identity)
65.554 1.54 (get-a-b-c data)
106.54 2.50 (compiled-select-any p data)
111.64 2.62 (select-any [(keypath :a) (keypath :b) (keypath :c)] data)
113.60 2.67 (select-any [:a :b :c] data)