Skip to content

Instantly share code, notes, and snippets.

View keesterbrugge's full-sized avatar

kees ter brugge keesterbrugge

View GitHub Profile
(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 ->

"Hello, world" in Clojure compiled with GraalVM running in Docker

Create a new minimal Clojure project using leiningen:

@keesterbrugge
keesterbrugge / tooltip-viz.svg
Created August 21, 2019 13:11
viz for linking to in github issue
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@keesterbrugge
keesterbrugge / gist:c45868bee7d7ba76fb4503a72e7baf5b
Created July 25, 2019 07:59
datomic entity resolution exploration
(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
@keesterbrugge
keesterbrugge / git_export_all_file_versions
Created June 12, 2019 12:27
script to query git for all previous versions of file
#!/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 --------------
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@keesterbrugge
keesterbrugge / wclwn.md
Created April 3, 2017 19:13 — forked from zacharycarter/wclwn.md
Binding to C Libraries with Nim
@keesterbrugge
keesterbrugge / ubuntu.sh
Created October 12, 2016 07:30 — forked from jarutis/ubuntu.sh
Theano and Keras setup on ubuntu with OpenCL on AMD card
## 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
@keesterbrugge
keesterbrugge / auto-deploy.md
Last active August 4, 2016 09:49 — forked from domenic/0-github-actions.md
Auto-deploying built products to gh-pages with Travis

Auto-deploying built products to gh-pages with Travis

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.

Create a compile script

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.

@keesterbrugge
keesterbrugge / CATCH_Keras_RL.md
Created July 3, 2016 15:10 — forked from EderSantana/CATCH_Keras_RL.md
Keras plays catch - a single file Reinforcement Learning example