Skip to content

Instantly share code, notes, and snippets.

import subprocess
import pandas
from io import StringIO
import time
class Container(object):
def __init__(self, name):
self.name = name
self.id = None
@JekaMas
JekaMas / build_tf.sh
Created November 12, 2017 08:10 — forked from venik/build_tf.sh
Bash script for local building TensorFlow on Mac with all CPU optimizations (default pip package has only SSE)
#!/bin/bash
# Author: Sasha Nikiforov
# source of inspiration
# https://stackoverflow.com/questions/41293077/how-to-compile-tensorflow-with-sse4-2-and-avx-instructions
# check if VirtuelEnv activated
if [ -z "$VIRTUAL_ENV" ]; then
echo "VirtualEnv is not activated"
0xC60aC14809afc5EA30a565630A704380E8d8021C
@JekaMas
JekaMas / main.go
Created August 31, 2017 16:10
Golang slice flatten
package main
import (
"errors"
"fmt"
)
func Flatten(arr interface{}) ([]int, error) {
return doFlatten([]int{}, arr)
}