Skip to content

Instantly share code, notes, and snippets.

Bogdan Penkovsky pkvk

Block or report user

Report or block pkvk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Iris.hs
-- 0. Download x.data and y.dat from https://www.kaggle.com/masterdezign/iris-with-onehotencoded-targets
-- 1. Install stack (command line interface is marked by $):
-- $ wget -qO- https://get.haskellstack.org/ | sh
-- (alternatively, curl -sSL https://get.haskellstack.org/ | sh)
-- 2. Install open-blas from https://www.openblas.net/ (needed for hmatrix package)
-- 3. Run
-- $ stack --resolver lts-10.6 --install-ghc runghc --package hmatrix-0.18.2.0 Iris.hs
import Numeric.LinearAlgebra as LA
import qualified Data.Vector.Storable as V
View Installing Clash 0.99.3.md

Global Clash installation with Stack

Tested on Ubuntu 18.04. NB: The following commands should not be run in a directory containing a stack.yaml file.

Install Stack from https://haskellstack.org

 $ curl -sSL https://get.haskellstack.org/ | sh

Run

@pkvk
pkvk / haskell-install.sh
Created Nov 23, 2018 — forked from arnabdas/haskell-install.sh
Install Haskell on Ubuntu 18.04
View haskell-install.sh
#!/bin/bash
add-apt-repository -y ppa:hvr/ghc
apt-get install -y cabal-install-2.4
apt install ghc-8.6
curl -sSL https://get.haskellstack.org/ | sh
# to install intero, either install
@pkvk
pkvk / cuda_installation_on_ubuntu_18.04
Last active Sep 13, 2018 — forked from Mahedi-61/cuda_10.0_installation_on_Ubuntu_18.04
cuda 9.0 complete installation procedure for ubuntu 18.04 LTS
View cuda_installation_on_ubuntu_18.04
#!/bin/bash
## This gist contains step by step instructions to install cuda v9.0 and cudnn 7.2 in ubuntu 18.04
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
@pkvk
pkvk / XPS: arch linux (alternative notes)
Last active Aug 14, 2018
Install Arch Linux on XPS 13 9370
View XPS: arch linux (alternative notes)
# Installation on Dell XPS
# Please also consult official documentation:
# https://wiki.archlinux.org/index.php/Installation_Guide
# https://wiki.archlinux.org/index.php/Dell_XPS_13_(9360)
# https://wiki.archlinux.org/index.php/Dell_XPS_15_(9550)
# Enter BIOS with F2 and configure:
# - "System Configuration" > "SATA Operation": "AHCI"
# - "Secure Boot" > "Secure Boot Enable": "Disabled"
@pkvk
pkvk / arch_xps-part2
Last active Feb 3, 2019
A lightweight arch linux dev station
View arch_xps-part2
# Arch linux packages (install via $ pacman -S <package name>)
base
base-devel
# Zsh config:
# sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Edit .zshrc: add extract to plugins list
# GUI
@pkvk
pkvk / arch_xps-part1.sh
Last active Aug 14, 2018 — forked from elbowz/arch_xps_install.sh
Install Archlinux on XPS 13 9370 DualBoot
View arch_xps-part1.sh
# Resource
# https://gist.github.com/brammitch/281e9a2f3aca57ae4a333fc63732f602
# https://wiki.archlinux.org/index.php/Installation_guide
# https://wiki.archlinux.org/index.php/Dell_XPS_13_(9370)
# Enter BIOS with F2 and configure:
# - "System Configuration" > "SATA Operation": "AHCI"
# - "Secure Boot" > "Secure Boot Enable": "Disabled"
# Set the keyboard layout and font
@pkvk
pkvk / Chimera.hs
Last active Sep 25, 2018
Chimera model with two different delays
View Chimera.hs
-- Chimera and dissipative solitons demonstrations in a system
-- with two strongly different delays \tau_2 = 100*\tau_1 from arXiv:1712.03283
--
-- How to execute:
-- 1. Save the code to Chimera.hs
-- 2. Install stack (command line interface is marked by $):
-- $ wget -qO- https://get.haskellstack.org/ | sh
-- OR
-- $ curl -sSL https://get.haskellstack.org/ | sh
-- 3. Run:
You can’t perform that action at this time.