If you have to extend an existing object with additional property, always prefer Vue.set()
over Object.assign()
(or spread operator).
Example below explains implications for different implementations.
<template> | |
<v-autocomplete | |
v-model="select" | |
:loading="loading" | |
:items="items" | |
:search-input.sync="search" | |
no-filter | |
hide-selected | |
clearable | |
return-object |
(function(d){ | |
var x = d.createElement("link"); | |
var y = d.getElementsByTagName("script")[0]; | |
x.rel = "stylesheet"; | |
x.href = "https://fonts.googleapis.com/css?family=Raleway:400,900"; | |
y.parentNode.insertBefore(x, y); | |
})(document); |
#!/bin/bash | |
sudo add-apt-repository -y ppa:git-core/ppa | |
sudo apt-get update | |
sudo apt-get install git -y |
Un sistema de columnas para CSS, basado en 12 columnas, líquido, MVP.
Puede ser usado como semilla para extenderlo a diferentes resoluciones o páginas responsivas.
Por default el gap entre columnas es de 10px, pero se puede cambiar con la variable gap
en la línea 2
## Update 2016-09-30
Agrego una versión modificada responsiva. Incluye la misma base a 12 columnas, reduje el gap
a 8px
Hice el grid a 5 saltos responsivos:
<IfModule mod_headers.c> | |
Header set Connection keep-alive | |
# Cache-control headers | |
# 2 HOURS | |
#<filesMatch "*"> | |
Header set Cache-Control "max-age=7200, must-revalidate" | |
#</filesMatch> | |
# 480 weeks - 290304000 |
<section class="slider"> | |
<div class="flexslider"> | |
<ul class="slides"> | |
<li><img src="http://imgur.com/..." alt=""></li> | |
<li><img class="lazy" data-src="http://imgur.com/..." alt=""></li> | |
<li><img class="lazy" data-src="http://imgur.com/..." alt=""></li> | |
<li><img class="lazy" data-src="http://imgur.com/..." alt=""></li> | |
<li><img class="lazy" data-src="http://imgur.com/..." alt=""></li> | |
</ul> | |
</div> |
<?php /* | |
* This is just a simple loop to display 7 attachments attached to a post or page in WordPress | |
* You can change 'medium' and 'thumbnail' to add sizes you have definied in your theme by the add_image_size function | |
* in WordPress | |
*/ | |
?> | |
<div id="thumbs" class="pic_list"> | |
<ul class="thumbs"> | |
<?php /* Time to create a new loop that pulls out the first 7 image attachments for this post */ | |
$args = array( 'post_type' => 'attachment', 'numberposts' => 7, 'post_status' => null, 'post_parent' => $post->ID ); |
#!/bin/sh | |
#################################### | |
# Output file for HTML5 video # | |
# Requirements: # | |
# - handbrakecli # | |
# - ffmpeg # | |
# - ffmpeg2theora # | |
# # | |
# usage: # |
<?php | |
/** | |
* Convert a comma separated file into an associated array. | |
* The first row should contain the array keys. | |
* | |
* Example: | |
* | |
* @param string $filename Path to the CSV file | |
* @param string $delimiter The separator used in the file | |
* @return array |