Skip to content

Instantly share code, notes, and snippets.

View johanvanderkuijl's full-sized avatar

Johan van der Kuijl johanvanderkuijl

  • Netherlands
View GitHub Profile
#FROM python:3.7.0-alpine3.8
FROM python:3.7.1-stretch
# Create user that will be used in this image
RUN groupadd -g 1000 appuser && \
useradd -r -u 1000 -g appuser appuser
# Install tools
RUN apt-get update \
#!/usr/bin/env python3
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score
url = "https://raw.githubusercontent.com/jadeyee/r2d3-part-1-data/master/part_1_data.csv"
df = pd.read_csv(url, header=2)
#print(df.describe())
# /etc/inittab: init(8) configuration.
# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $
# The default runlevel.
id:5:initdefault:
# Boot-time system configuration/initialization script.
# This is run first except when booting in emergency (-b) mode.
si::sysinit:/etc/init.d/rcS
@johanvanderkuijl
johanvanderkuijl / index.ctp
Created May 29, 2016 06:00
identical postLink
<?php $this->start('myblock'); ?>
<li><?= $this->Form->postLink(__('Postlink index'), ['action' => 'index']) ?> </li>
<?php $this->end(); ?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('New User'), ['action' => 'add']) ?></li>
<?php echo $this->fetch('myblock'); ?>
<?php echo $this->fetch('myblock'); ?>