Skip to content

Instantly share code, notes, and snippets.

View springle's full-sized avatar

Sam Pringle springle

View GitHub Profile
# remap prefix from "C-b" to "C-a"
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# configure vi settings for copy mode
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
@springle
springle / init.el
Created October 8, 2018 23:47
Emacs Configuration
;; SET VARIABLES
(setq
create-lockfiles nil
dired-use-ls-dired nil
inhibit-startup-screen t
make-backup-files nil)
;; CONFIGURE PACKAGE REPOSITORIES
(require 'package)
(add-to-list 'package-archives (cons "melpa" "http://melpa.org/packages/"))
@springle
springle / .tmux.conf
Last active July 31, 2018 17:52
SamTmux
# VI-like navigation.
bind h select-pane -L
bind l select-pane -R
bind k select-pane -U
bind j select-pane -D
setw -g mode-keys vi
# Pane resizing.
bind -n M-j resize-pane -D 1
bind -n M-h resize-pane -L 1
@springle
springle / .tmux.conf
Created November 2, 2017 18:02
A configuration for tmux
bind-key k select-pane -U
bind-key j select-pane -D
bind-key h select-pane -L
bind-key l select-pane -R
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
flags = [
'x',
'c',
'-I.',
]
def FlagsForFile( filename, **kwargs ):
return {
'flags': flags
}
@springle
springle / .vimrc
Last active March 24, 2018 14:30
" VUNDLE
let g:vundle_default_git_proto = 'git'
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'liuchengxu/space-vim-dark'
Plugin 'junegunn/goyo.vim'

Keybase proof

I hereby claim:

  • I am springle on github.
  • I am springle (https://keybase.io/springle) on keybase.
  • I have a public key ASDCIrKWvfEp7BXX6rWVPDfDVSefvVYnOwRKsEg3ZBKgvgo

To claim this, I am signing this object:

# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
def train(server, log_dir):
# Import data
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow.examples.tutorials.mnist import input_data
import tensorflow as tf
def main(server):
# Import data