Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@ttylec
ttylec / iris.json
Created May 29, 2021 18:18
Iris dataset in json format
[{"sepal_width": 5.1, "sepal_length": 3.5, "petal_width": 1.4, "petal_length": 0.2, "species": "setosa"}, {"sepal_width": 4.9, "sepal_length": 3.0, "petal_width": 1.4, "petal_length": 0.2, "species": "setosa"}, {"sepal_width": 4.7, "sepal_length": 3.2, "petal_width": 1.3, "petal_length": 0.2, "species": "setosa"}, {"sepal_width": 4.6, "sepal_length": 3.1, "petal_width": 1.5, "petal_length": 0.2, "species": "setosa"}, {"sepal_width": 5.0, "sepal_length": 3.6, "petal_width": 1.4, "petal_length": 0.2, "species": "setosa"}, {"sepal_width": 5.4, "sepal_length": 3.9, "petal_width": 1.7, "petal_length": 0.4, "species": "setosa"}, {"sepal_width": 4.6, "sepal_length": 3.4, "petal_width": 1.4, "petal_length": 0.3, "species": "setosa"}, {"sepal_width": 5.0, "sepal_length": 3.4, "petal_width": 1.5, "petal_length": 0.2, "species": "setosa"}, {"sepal_width": 4.4, "sepal_length": 2.9, "petal_width": 1.4, "petal_length": 0.2, "species": "setosa"}, {"sepal_width": 4.9, "sepal_length": 3.1, "petal_width": 1.5, "petal_length":
@ttylec
ttylec / Material.js
Created May 29, 2021 11:26
Simple and unsafe PureScript bindings to MaterialUI
exports.buttonClass = require('@material-ui/core/Button').default
dataGrid = require('@material-ui/data-grid')
exports.dataGridClass = dataGrid.DataGrid
exports.appBarClass = require('@material-ui/core/AppBar').default
exports.toolbarClass = require('@material-ui/core/Toolbar').default
exports.typographyClass = require('@material-ui/core/Typography').default
exports.containerClass = require('@material-ui/core/Container').default
@ttylec
ttylec / header.py
Last active November 2, 2021 05:52
Jupyter header
import matplotlib.pyplot as plt
import seaborn as sns
from functools import reduce
import pandas as pd
import numpy as np
import os
sns.set(color_codes=True)
%matplotlib inline
@ttylec
ttylec / search-form.html
Created October 5, 2018 09:51
Simple filtering of table using vue.js
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.17/dist/vue.js"></script>
<style>
table td { padding: 1ex;}
</style>
</head>
<body>
<div id="search-form">
<div>
@ttylec
ttylec / simple.hs
Created October 14, 2017 19:44
Problem with aborting jupyter computation in jupyter-haskell
{-# Language OverloadedStrings #-}
{-# Language PatternSynonyms #-}
module Main(main) where
-- Imports from 'base'
import Control.Monad (when)
import System.Environment (getArgs)
import System.Exit (exitFailure)
import System.IO (stderr)