This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ibm.scrt.fvt; | |
/** | |
* This class is a demonstration of "potential heap pollution" via | |
* varargs parameters, and the @SafeVarargs annotation (and when it's | |
* safe to use). | |
*/ | |
public class HeapPollutionDemo { | |
static class Box<T> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fish_right_prompt -d "Write out the right prompt" | |
# Stolen and adapted from: https://gist.github.com/britishtea/39ad478fa5180e1432a2 | |
set -l exit_code $status | |
set -l is_git_repository (git rev-parse --is-inside-work-tree 2>/dev/null) | |
set_color black | |
# Print a red dot for failed commands. | |
if test $exit_code -ne 0 | |
set_color red |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -g prefix C-a | |
set -g default-terminal "screen-256color" | |
# As of tmux 2.1: | |
setw -g mouse | |
bind-key -T prefix C-c new-window | |
bind-key -T prefix C-n next-window | |
bind-key -T prefix C-p previous-window | |
bind-key -T prefix C-\\ split-window -h |