Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am zcaudate on github.
  • I am zcaudate (https://keybase.io/zcaudate) on keybase.
  • I have a public key ASCGkiFF1W_OVVZqtwQZXTIGgu8XZivaCKUZ3rL3jBrRXAo

To claim this, I am signing this object:

@zcaudate
zcaudate / create.sh
Last active May 22, 2018 12:26
create mint iso
#! /usr/bin/env bash
# Insert a USB key.
# if needed initialize it with MS/DOS FAT and MBR
# Download the Mint ISO image
# Convert the ISO -> IMG
hdiutil convert -format UDRW -o linuxmint-18.3-cinnamon-64bit linuxmint-18.3-cinnamon-64bit.iso
# Run a diskutil list to know the device for the USB key, e.g.: /dev/disk3
@zcaudate
zcaudate / SketchSystems.spec
Last active June 13, 2018 17:08
My Awesome Sketch
My Awesome Sketch
First State
some event -> Second State
Second State
click -> First State
@zcaudate
zcaudate / DYLD_LIBRARY_PATH
Created August 20, 2018 14:17 — forked from Brideau/DYLD_LIBRARY_PATH
Install GDAL with Java bindings on macOS High Sierra
export DYLD_LIBRARY_PATH=/usr/local/opt/gdal2/lib:$DYLD_LIBRARY_PATH
@zcaudate
zcaudate / fx.clj
Last active April 10, 2019 19:31
cljplot with javafx
(ns cljplot.sketches.fx
(:require [cljplot.render :as r]
[cljplot.build :as b]
[cljplot.common :refer :all]
[fastmath.interpolation :as in]
[fastmath.stats :as stats]
[clojure2d.color :as c]
[cljplot.scale :as s]
[fastmath.core :as m]
[fastmath.random :as rnd]
@zcaudate
zcaudate / worksheet.cljw
Created April 17, 2019 10:32
ames housing regression analysis
This file has been truncated, but you can view the full file.
;; gorilla-repl.fileformat = 1
;; **
;;; # Regression applied to the Ames dataset
;;;
;;; This is an attempt to use every trick in the books to unleash the full power of Linear Regression, including a lot of preprocessing and a look at several Regularization algorithms.
;;;
;;; The [original article](https://www.kaggle.com/juliencs/a-study-on-regression-applied-to-the-ames-dataset) was done as part of the [Ames Housing Dataset](https://www.kaggle.com/c/house-prices-advanced-regression-techniques) Kaggle Competition. This kernal has been ported to clojure and makes use of the [tech.ml](https://github.com/techascent/tech.ml) stack of libraries. The [original translation](https://nbviewer.jupyter.org/github/cnuernber/ames-house-prices/blob/acb961538e9b1cbbef8fb1733ecdd4b0012ffd89/ames-housing-prices-clojure.ipynb) was done by [Chris Nuernberger](https://github.com/cnuernber/ames-house-prices). Additionally, introductory dataset exploration has been taken from [another analysis](https://www.kaggle.com/pmarcel
function simulate(element, eventName)
{
var options = extend(defaultOptions, arguments[2] || {});
var oEvent, eventType = null;
for (var name in eventMatchers)
{
if (eventMatchers[name].test(eventName)) { eventType = name; break; }
}
(ns hara.state.ova
(:require [clojure.set :as set]
[hara.core.base.error :as error]
[hara.core.base.shorthand :as hand]
[hara.core.base.util :as util]
[hara.state.base.common :as common]
[hara.state :as state]
[hara.watch :as watch]))
(defn- ova-state
FROM https://stackoverflow.com/questions/45372848/docker-swarm-how-to-find-out-why-service-cant-start
journalctl -u docker.service | tail -n 50
It depends on your OS. Here are the few locations, with commands for few Operating Systems:
Ubuntu (old using upstart ) - /var/log/upstart/docker.log
Ubuntu (new using systemd ) - journalctl -u docker.service
Boot2Docker - /var/log/docker.log
Debian GNU/Linux - /var/log/daemon.log
CentOS - /var/log/daemon.log | grep docker
@zcaudate
zcaudate / libc.clj
Last active June 23, 2020 17:22
jnr-ffi example
(ns libc
(:require [jise.core :refer [defclass]])
(:import (jnr.ffi LibraryLoader
Pointer
Struct
Struct$SignedLong
Struct$time_t)
(jnr.ffi.annotations Out Transient)))
;;