Skip to content

Instantly share code, notes, and snippets.

package main
import (
"bufio"
"encoding/csv"
"encoding/json"
"fmt"
"io"
"os"
"path/filepath"
@markuskont
markuskont / build-tensorflow-from-source.md
Created January 9, 2018 14:40 — forked from Brainiarc7/build-tensorflow-from-source.md
Build Tensorflow from source, for better performance

Building Tensorflow from source on Linux for maximum performance:

TensorFlow is now distributed under an Apache v2 open source license on GitHub.

Step 1. Install NVIDIA CUDA:

To use TensorFlow with NVIDIA GPUs, the first step is to install the CUDA Toolkit.

Step 2. Install NVIDIA cuDNN:

@markuskont
markuskont / gist:d90cdaf5d76ba0038f244284197fe501
Created August 30, 2017 08:12 — forked from debasishg/gist:8172796
A collection of links for streaming algorithms and data structures
  1. General Background and Overview
@markuskont
markuskont / arch-linux-install
Last active January 9, 2018 11:26 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap
@markuskont
markuskont / LLRB.js
Created June 6, 2016 15:02 — forked from hillar/LLRB.js
Left-leaning Red-Black Trees
// see Robert Sedgewick :: Left-leaning Red-Black Trees
const RED = true;
const BLACK = false;
var Node = function(key, value) {
this.key = key;
this.value = value;
this.color = RED;
this.N = 1;