Skip to content

Instantly share code, notes, and snippets.

View mulloymorrow's full-sized avatar

Mulloy Morrow mulloymorrow

View GitHub Profile

What is numpy doing to get this ouput?

import numpy as np
tensor_content = b"\314Lr\3333\304\357?\025\367\032\340\354\214\357?\306\024[\273\216Y\357?}%\344e\232)\357?\341%\337J\247\374\356?W\371<q>\356??&amp;k\215&gt;\036\356?T+\223\3671\377\355?\345\246\245g{\341\355?\310\203z\320\377\304\355?w\276=0\247\251\355?\307\365~ \\\217\355?\275\353\223y\vv\355?\307\360q\005\244]\355?2\233\000?\026F\355?\3607\217\033T/\355?\347\025\225\334P\031\355?\334\312E\350\000\004\355?\032t\315\247Y\357\354?Z&gt;CjQ\333\354?\2046\216K\337\307\354?\224\177\234\036\373\264\354?L\277iZ\235\242\354?_\214h\t\277\220\354?(\'\365\272Y\177\354?\325\276\206vgn\354?\361\264`\260\342]\354?\256I\217?\306M\354?\373M\003U\r&gt;\354?\264=\247s\263.\354?b\302Mi\264\037\354?\366L^H\f\021\354?A_(b\267\002\354?gg\311A\262\364\353?\372\324\223\247\371\346\353?Ug\350\204\212\331\353?\027\262t\370a\314\353?/\206\313J}\277\353?U`M\353\331\262\353?\01</q>
@mulloymorrow
mulloymorrow / # postgresql - 2018-04-02_14-08-55.txt
Created April 2, 2018 21:10
postgresql on macOS 10.13.4 - Homebrew build logs
Homebrew build logs for postgresql on macOS 10.13.4
Build date: 2018-04-02 14:08:55
#!/usr/bin/env bash
#Spin up a p2 ec2 instance on AWS and then run through this script to install tensorflow running on GPUs
#NVIDIA CUDA TOOLKIT + DRIVERS - http://docs.nvidia.com/cuda/cuda-installation-guide-linux/#axzz4ZXNjlCfN
lspci | grep -i nvidia
uname -m && cat /etc/*release
gcc --version
uname -r
sudo apt-get update && \
sudo apt-get install build-essential software-properties-common -y && \
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
FROM ubuntu:15.04
MAINTAINER Mulloy Morrow <mulloy@offerup.com>
#################################################
# Inspired by
# https://hub.docker.com/r/cloudbees/java-build-tools/
#################################################
#================================================

Welcome to StackEdit!

Hey! I'm your first Markdown document in StackEdit[^stackedit]. Don't delete me, I'm very helpful! I can be recovered anyway in the Utils tab of the Settings dialog.


Documents

@mulloymorrow
mulloymorrow / iso-3166.sql
Created April 4, 2016 22:31
ISO 3166 is a standard published by the International Organization for Standardization (ISO) that defines codes for the names of countries, dependent territories, special areas of geographical interest, and their principal subdivisions (e.g., provinces or states). The official name of the standard is Codes for the representation of names of coun…
-- Table structure for table countries --
DROP TABLE IF EXISTS reference.countries;
CREATE TABLE reference.countries (
country_id SMALLINT NOT NULL,
country_name VARCHAR(100) DEFAULT NULL,
country_code_char2 VARCHAR(2) NOT NULL UNIQUE,
country_code_char3 VARCHAR(3) NOT NULL UNIQUE,
un_region VARCHAR(80) DEFAULT NULL,
import org.apache.avro.Schema;
import org.apache.avro.generic.GenericDatumWriter;
import org.apache.avro.generic.GenericRecord;
import org.apache.avro.generic.GenericRecordBuilder;
import org.apache.avro.io.Decoder;
import org.apache.avro.io.DecoderFactory;
import org.apache.avro.io.Encoder;
import org.apache.avro.io.EncoderFactory;
import org.apache.avro.reflect.Nullable;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.