Skip to content

Instantly share code, notes, and snippets.

View GiuMagnani's full-sized avatar
👨‍💻
Having fun with JavaScript

Giu Magnani GiuMagnani

👨‍💻
Having fun with JavaScript
View GitHub Profile
@GiuMagnani
GiuMagnani / with-circle-tags.svg
Last active January 20, 2018 00:00
SVG with <circle> tags
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@GiuMagnani
GiuMagnani / circles-converted-to-paths.svg
Last active January 20, 2018 00:00
SVG with <circle> tags converted to <path>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<template>
<other-component v-if="show"></other-component>
</template>
<script>
import OtherComponent from './components/BasicComponent';
export default {
name: 'basic-component',
components: {
@GiuMagnani
GiuMagnani / VeeRutValidator.js
Created October 16, 2017 20:45 — forked from eaguad1337/VeeRutValidator.js
Chilean Rut Validator for VeeValidate
// Eduardo Aguad [email protected]
// Use:
// yarn add vee-validate
// import VeeValidate, {Validator} from 'vee-validate';
// Validator.extend('rut', require('./VeeRutValidator'));
// <input type="text" name="rut" v-validate="rut">
module.exports = {
jQuery(document).ready(function() {
jQuery('a').on('click', function(e) {
smooth_scroll_to(this.hash, e);
});
});
jQuery(window).on('load',function() {
if(window.location.hash) {
smooth_scroll_to(window.location.hash);
}