Skip to content

Instantly share code, notes, and snippets.

View shawncplus's full-sized avatar

Shawn Biddle shawncplus

View GitHub Profile
<style>
.loading-spinner {
--paper-spinner-color: var(--vi-primary-color);
}
.reload-spinner {
@apply(--layout-self-center);
@apply(--layout-vertical);
@apply(--layout-center-center);
@apply(--shadow-elevation-2dp);
z-index: 2;
anonymous
anonymous / gist:5777983
Created June 13, 2013 22:33
Sample vSphere SDK for Perl script showing how to build up a Managed Object using MoRef ID
#!/usr/bin/perl -w
# William Lam
# http://www.virtuallyghetto.com/
use strict;
use warnings;
use VMware::VIRuntime;
use VMware::VILib;
@tmelz
tmelz / center.vim
Created January 2, 2012 22:10
Vim: center current window in screen
let g:centerinscreen_active = 0
function! ToggleCenterInScreen(desired_width)
if g:centerinscreen_active == 0
let l:window_width = winwidth(winnr())
let l:sidepanel_width = (l:window_width - a:desired_width) / 2
exec("silent leftabove " . l:sidepanel_width . "vsplit new")
wincmd l
exec("silent rightbelow " . l:sidepanel_width . "vsplit new")