Skip to content

Instantly share code, notes, and snippets.

View dobbbri's full-sized avatar
🚀
Working from ISS/NASA

Sergio Dobri dobbbri

🚀
Working from ISS/NASA
View GitHub Profile
1 - close vscode if it is open
2 - at the terminal type:
Cd / Applications / Visual \ Studio \ Code.app/Contents/Resources/app/out/vs/workbench/electron-browser
3 - Add in the first line of the file: workbench.main.css, save and close. (When entering vscode it will report an error, click ignore always)
/*!--------------------------------------------------------
* custom color.
*--------------------------------------------------------*/
@dobbbri
dobbbri / dropdown.js
Created February 27, 2017 14:39
`v-dropdown` directive for Vue.js 2
/*
* @usage
*
* <div v-dropdown="{autoClose: true}">
* <button dropdown-toggle>Dropdown</button>
* <div class="dropdown-menu">
* This is the dropdown menu.
* </div>
* </div>
*
@dobbbri
dobbbri / brew-cask-upgrade.sh
Created February 5, 2017 21:07 — forked from n0ts/brew-cask-upgrade.sh
brew cask upgrade
#!/bin/bash
for c in $(brew cask list); do
info=$(brew cask info $c)
installed_ver=$(echo "$info" | cut -d$'\n' -f1 | tr -d ' ' | cut -d':' -f 2)
current_ver=$(echo "$info" | cut -d$'\n' -f3 | cut -d' ' -f 1 | rev | cut -d'/' -f 1 | rev)
if [ "$installed_ver" != "$current_ver" ]; then
echo "$c is installed '$installed_ver', current is '$current_ver'"
brew cask reinstall $c
fi
@dobbbri
dobbbri / brew-cask-upgrade.sh
Created February 5, 2017 21:07 — forked from n0ts/brew-cask-upgrade.sh
brew cask upgrade
#!/bin/bash
for c in $(brew cask list); do
info=$(brew cask info $c)
installed_ver=$(echo "$info" | cut -d$'\n' -f1 | tr -d ' ' | cut -d':' -f 2)
current_ver=$(echo "$info" | cut -d$'\n' -f3 | cut -d' ' -f 1 | rev | cut -d'/' -f 1 | rev)
if [ "$installed_ver" != "$current_ver" ]; then
echo "$c is installed '$installed_ver', current is '$current_ver'"
brew cask reinstall $c
fi
@dobbbri
dobbbri / .vimrc
Created November 18, 2016 11:53 — forked from JeffreyWay/.vimrc
My .vimrc file
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=15
@dobbbri
dobbbri / crud.js
Created August 6, 2016 20:55 — forked from xtrasmal/crud.js
[WIP] - Vue.js Crud Mixin, adds create/read/update/delete etc methods to your component.
/**
* Crud Mixin
* Usage: Add this mixin to provide crud actions
*/
var Crud = {
data: function() {
return {
crud: null,
items: [],