Skip to content

Instantly share code, notes, and snippets.

View JuanVqz's full-sized avatar
:octocat:
Sorting tech debt out

Juan Vásquez JuanVqz

:octocat:
Sorting tech debt out
View GitHub Profile
@JuanVqz
JuanVqz / folding vim
Last active September 28, 2017 05:02
folding vim
" Folding, not need for plugin
"" fold enable
set fen
"" no fold enable
set nofen
"" fold column
set fdc=0
@JuanVqz
JuanVqz / Vue Spinner Component
Created September 8, 2017 02:10
Icon that rotates while loading the page
<!-- Call from template -->
<spinner :loading="loading"></spinner>
<!-- Component -->
<template>
<div id="spinner">
<div class="form-group text-center" v-if="loading">
<i class="fa fa-2x fa-cog fa-spin"></i>
</div>
</div>
@JuanVqz
JuanVqz / vue pagination
Created September 8, 2017 02:05
vue pagination component with events
<pagination :pag="pagination"
@prev="getUsers(...arguments)"
@next="getUsers(...arguments)">
</pagination>
<template>
<div id="pagination" class="row justify-content-md-center">
<nav aria-label="Page navigation">
<ul class="pagination pagination" v-if="this.pag.count > 0">
<li class="page-item" v-if="this.pag.current_page > 1">