Skip to content

Instantly share code, notes, and snippets.

View phroa's full-sized avatar

Jack Stratton phroa

  • Seattle, Washington
View GitHub Profile
@ThomasJClark
ThomasJClark / build.gradle
Created January 27, 2015 00:50
WPILib grade build
plugins {
id "java"
id 'org.hidetake.ssh' version '0.4.5'
}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
def wpilibDir = System.env['HOME'] + '/wpilib/java/current'
function s:filter_header(lines) abort
let longest_line = max(map(copy(a:lines), 'len(v:val)'))
let centered_lines = map(copy(a:lines), 'repeat(" ", (&columns / 2) - (longest_line / 2)) . v:val')
return centered_lines
endfunction
let g:startify_custom_header = s:filter_header(['1', '222', '33333', '4444444'])