Skip to content

Instantly share code, notes, and snippets.

View davision's full-sized avatar
:octocat:
Vuetifying the web.

David Licen davision

:octocat:
Vuetifying the web.
View GitHub Profile
@davision
davision / nuxt-js-and-gsheet-example.vue
Created June 8, 2018 11:27 — forked from yann-yinn/nuxt-js-and-gsheet-example.vue
Nuxt.js vue component to display datas from a google spreadsheet (with google api V4 without oAuth )
<template>
<div id="homepage">
<h1>Les dernières Articles</h1>
<div class="article" v-for="article in articles">
<h2> {{ article.title }} </h2>
<p> {{ article.content }} </p>
</div>
</div>
</template>
@davision
davision / _spacing-helper.scss
Last active August 8, 2020 10:53 — forked from kieranmv95/_spacing-helper.scss
Generates a array of spacing helper classes for margin and padding
// Customisable spacing units. these can be changed and new ones added
$spacing-units: (
1: 1rem,
2: 2rem,
3: 3rem,
4: 4rem,
5: 5rem,
6: 6rem,
);
@davision
davision / youtube_id_regex.php
Created March 2, 2018 15:43 — forked from ghalusa/youtube_id_regex.php
Extract the YouTube Video ID from a URL in PHP
<?php
// Here is a sample of the URLs this regex matches: (there can be more content after the given URL that will be ignored)
// http://youtu.be/dQw4w9WgXcQ
// http://www.youtube.com/embed/dQw4w9WgXcQ
// http://www.youtube.com/watch?v=dQw4w9WgXcQ
// http://www.youtube.com/?v=dQw4w9WgXcQ
// http://www.youtube.com/v/dQw4w9WgXcQ
// http://www.youtube.com/e/dQw4w9WgXcQ
// http://www.youtube.com/user/username#p/u/11/dQw4w9WgXcQ