Skip to content

Instantly share code, notes, and snippets.

@mwilliammyers
mwilliammyers / tf_eager_regression.py
Created July 3, 2019 05:20
TensorFlow eager execution demo of a simple regression model
import logging
import numpy as np
import tensorflow as tf
logging.getLogger().setLevel(logging.INFO)
train_data = np.load(
"/mnt/pccfs/not_backed_up/data/eve-embeddings-prod/ccc_train.npy")
train_features = train_data.item()["features"]
@mwilliammyers
mwilliammyers / Custom.sublime-commands
Last active August 30, 2019 00:17
Sublime Text settings
[
{
"command": "show_panel",
"args": {
"panel": "output.exec"
},
"caption": "Show Build Results"
}
]
{"hideIntro":"1","dark":"1","tips":"KeyNav","docs":"c/cpp/docker~17/eslint/express/fish~2.7/git/html/javascript/lodash~4/node/npm/numpy~1.14/python~3.6/rust/tensorflow~guide/ansible~2.6","layout":"_sidebar-hidden"}
@mwilliammyers
mwilliammyers / .tmux.conf
Last active December 18, 2018 21:47
Simple tmux config
set -g prefix C-a
bind C-a send-prefix
unbind C-b
set -g mouse on
set -g focus-events on
setw -g xterm-keys on
bd=38;5;68:ca=38;5;17:cd=38;5;113;1:di=38;5;30:do=38;5;127:ex=38;5;208;1:pi=38;5;126:fi=0:ln=target:mh=38;5;222;1:no=0:or=48;5;196;38;5;232;1:ow=38;5;220;1:sg=48;5;3;38;5;0:su=38;5;220;1;3;100;1:so=38;5;197:st=38;5;86;48;5;234:tw=48;5;235;38;5;139;3:*LS_COLORS=48;5;89;38;5;197;1;3;4;7:*README=38;5;220;1:*README.rst=38;5;220;1:*LICENSE=38;5;220;1:*COPYING=38;5;220;1:*INSTALL=38;5;220;1:*COPYRIGHT=38;5;220;1:*AUTHORS=38;5;220;1:*HISTORY=38;5;220;1:*CONTRIBUTORS=38;5;220;1:*PATENTS=38;5;220;1:*VERSION=38;5;220;1:*NOTICE=38;5;220;1:*CHANGES=38;5;220;1:*.log=38;5;190:*.txt=38;5;253:*.etx=38;5;184:*.info=38;5;184:*.markdown=38;5;184:*.md=38;5;184:*.mkd=38;5;184:*.nfo=38;5;184:*.pod=38;5;184:*.rst=38;5;184:*.tex=38;5;184:*.textile=38;5;184:*.json=38;5;178:*.msg=38;5;178:*.pgn=38;5;178:*.rss=38;5;178:*.xml=38;5;178:*.yaml=38;5;178:*.yml=38;5;178:*.RData=38;5;178:*.rdata=38;5;178:*.cbr=38;5;141:*.cbz=38;5;141:*.chm=38;5;141:*.djvu=38;5;141:*.pdf=38;5;141:*.PDF=38;5;141:*.docm=38;5;111;4:*.doc=38;5;111:*.docx=38;5;111:
@mwilliammyers
mwilliammyers / __sk_reverse_isearch.fish
Created June 1, 2018 01:42
reverse fishshell history search using skim
# bind \cr '__sk_reverse_isearch'
function __sk_reverse_isearch
history -z | sk --read0 --print0 --tiebreak=index -q (commandline) | read -lz result
and commandline -r $result
#and commandline -f repaint
end
@mwilliammyers
mwilliammyers / updatedb.conf
Last active June 2, 2024 21:35
/etc/updatedb.conf
# locate --regex '.*\/(\w+[^\.]\w+$)+'
PRUNE_BIND_MOUNTS="yes"
PRUNENAMES=".git .bzr .hg .svn Trash Cache cache .cache logs fonts font Frameworks atom .atom apm .apm .ansible .idea libreoffice node_modules .node-gyp .npm ipynb_checkpoints dist-packages site-packages .eggs build help icons modules samples Template Templates template templates snapd locale .pycharm_helpers pycharm_helpers .google-chrome google-chrome __pycache__ pack generated_completions .cargo"
PRUNEPATHS="/tmp /var/spool /media /var/lib/os-prober /var/lib/ceph /home/.ecryptfs /var/lib/schroot /usr/share/man /usr/share/perl5 /usr/share/perl /usr/share/doc /usr/share/sound /opt/pycharm-professional"
PRUNEFS="NFS nfs nfs4 rpc_pipefs afs binfmt_misc proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs devtmpfs fuse.mfs shfs sysfs cifs lustre tmpfs usbfs udf fuse.glusterfs fuse.sshfs curlftpfs ceph fuse.ceph fuse.rozofs ecryptfs fusesmb"
@mwilliammyers
mwilliammyers / Default%20%28OSX%29.sublime-keymap
Last active January 13, 2017 04:26
Sublime Text 3 Settings
[
{ "keys": ["super+\\"], "command": "toggle_side_bar" },
]
# init.coffee
# process.env.PATH = ['', process.env.PATH].join(':')
swagger: "2.0"
info:
version: "2.0.0"
title: nba minimal
description: Endpoints for the [NBA Stats API](stats.nba.com)
license:
name: MIT
url: http://github.com/gruntjs/grunt/blob/master/LICENSE-MIT
host: stats.nba.com
basePath: /stats