Blog 2019/7/18
<- previous | index | next ->
Create a new minimal Clojure project using leiningen:
| (require '[cheshire.core :as json] | |
| '[clj-http.client :as client] | |
| '[tech.ml.dataset :as ds] | |
| '[flatland.ordered.set :refer [ordered-set]] | |
| ) | |
| ;; used a qubole query to get all app-id's | |
| (defonce ds (ds/->dataset "/tmp/full_result_407911382.csv")) | |
| ;; ordered by # of impressions. |
Blog 2019/7/18
<- previous | index | next ->
Create a new minimal Clojure project using leiningen:
| (def db-uri "datomic:mem://minimal-example") | |
| (d/create-database db-uri) | |
| (def conn (d/connect db-uri)) | |
| (def schema | |
| [ {:db/ident :day | |
| :db/unique :db.unique/identity | |
| :db/valueType :db.type/long |
| #!/bin/bash | |
| # we'll write all git versions of the file to this folder: | |
| EXPORT_TO=/tmp/all_versions_exported | |
| # take relative path to the file to inspect | |
| GIT_PATH_TO_FILE=$1 | |
| # ---------------- don't edit below this line -------------- |

| ## install Catalyst proprietary | |
| sudo ntfsfix /dev/sda2 | |
| sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.BAK | |
| sudo apt-get remove --purge fglrx* | |
| sudo apt-get install linux-headers-generic | |
| sudo apt-get install fglrx xvba-va-driver libva-glx1 libva-egl1 vainfo | |
| sudo amdconfig --initial | |
| ## install build essentials | |
| sudo apt-get install cmake |
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
You want a script that does a local compile to e.g. an out/ directory. Let's call this compile.sh for our purposes, but for your project it might be npm build or gulp make-docs or anything similar.
The out/ directory should contain everything you want deployed to gh-pages. That almost always includes an index.html.
Code for Keras plays catch blog post
python qlearn.py