An alternative way to implement "dynamic" svg is using html-loader.
First, create a component for svg, SvgIcon.vue
:
<template>
<div v-html="require(`../../assets/icon-${icon}.svg`)"></div>
</template>
<script>
export default {
Array.prototype.random = function() { | |
return this[Math.floor(Math.random() * this.length)]; | |
}; | |
var properties = [ | |
'car', | |
'house', | |
'phone', | |
'money' | |
]; |
#!/bin/bash | |
function error_exit { | |
echo "$1" >&2 ## Send message to stderr. Exclude >&2 if you don't want it that way. | |
exit "${2:-1}" ## Return a code specified by $2 or 1 by default. | |
} | |
if [ $# -eq 0 ]; then | |
error_exit "No input filepath given" | |
fi |
<?php | |
namespace App\Console\Commands; | |
use Elasticsearch\ClientBuilder; | |
use Illuminate\Console\Command; | |
class ElasticRecreateIndex extends Command | |
{ | |
/** |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<title>Tailwind Admin Dashboard</title> | |
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet"> | |
</head> |
function waitForElement(selector) { | |
return new Promise(function(resolve, reject) { | |
var runs = 1; | |
var interval = setInterval(function() { | |
if (runs >= 30) { | |
clearInterval(interval); | |
reject(new Error('max runs exceeded')); | |
} | |
var el = document.querySelector(selector); |
<?php | |
>>> $col = collect(json_decode(json_encode([['id' => 1,'bool' => 0, 'count' => 15], ['id' => 2, 'bool' => 1, 'count' => 20], ['id' => 3, 'bool' => 0, 'count' => 10], ['id' => 4, 'bool' => 1, 'count' => 16]]))) | |
=> Illuminate\Support\Collection {#935 | |
all: [ | |
{#936 | |
+"id": 1 | |
+"bool": 0 | |
+"count": 15 | |
} |
# EN | |
git checkout master && git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D | |
# DE | |
git checkout master && git fetch -p && git branch -vv | awk '/: entfernt]/{print $1}' | xargs git branch -D |
ffmpeg -i shame-run.mov -r 24/1 test/output%03d.jpg |
An alternative way to implement "dynamic" svg is using html-loader.
First, create a component for svg, SvgIcon.vue
:
<template>
<div v-html="require(`../../assets/icon-${icon}.svg`)"></div>
</template>
<script>
export default {
<?php | |
namespace App\Providers; | |
use League\Flysystem\Sftp\SftpAdapter; | |
use Storage; | |
use League\Flysystem\Filesystem; | |
use Illuminate\Support\ServiceProvider; | |
/** |