Skip to content

Instantly share code, notes, and snippets.

View billycromb's full-sized avatar

Billy Cromb billycromb

View GitHub Profile
'use strict';
(function() {
function filterArray(users) {
return Object.fromEntries(
users.filter(user => user.active)
.map(user => [user.name, null])
);
}
@billycromb
billycromb / vimcolor.sh
Created March 14, 2017 18:35
How to get rid of a different color border around vim in iTerm2
#!/bin/bash
# In iTerm, if you have a different colored terminal theme than what you use for
# vim. You'll see a border of whatever the background color is in fullscreen
# mode One way to get rid of this is to use escape sequences to switch to a
# different profilewhen you open vim, and back when you are done.
# for this to work you need to have a profile set up called 'vimcolors'
# that matches your vim colorscheme (or at least the background color)