Skip to content

Instantly share code, notes, and snippets.

View stefanledin's full-sized avatar

Stefan Ledin stefanledin

View GitHub Profile
<?php
add_filter('oembed_fetch_url', function( $provider, $url, $args ) {
$provider = add_query_arg( 'autoplay', 1, $provider );
$provider = add_query_arg( 'muted', 1, $provider );
return $provider;
}, 10, 3 );
<div class="container-fluid">
<div class="row">
<div class="col">
<div class="d-flex">
<h1>Lorem ipsum dolor sit amet</h1>
<div>
<img src="https://via.placeholder.com/500x500">
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col">
<div class="d-flex">
<h1>Lorem ipsum dolor sit amet</h1>
<img src="https://via.placeholder.com/500x500">
</div>
</div>
<div class="col">
<div class="d-flex">
<div class="banner bg-secondary d-flex flex-column justify-content-center">
<h1 class="text-white align-self-center">Lorem ipsum dolor sit amet</h1>
<button class="btn btn-primary align-self-center">Call to action</button>
</div>
<div class="banner bg-secondary">
<h1 class="text-white">Lorem ipsum dolor sit amet</h1>
<button class="btn btn-primary">Call to action</button>
</div>
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
{
"name": "tailwind",
"private": true,
"scripts": {
"start": "meteor run",
"test": "meteor test --once --driver-package meteortesting:mocha",
"test-app": "TEST_WATCH=1 meteor test --full-app --driver-package meteortesting:mocha",
"visualize": "meteor --production --extra-packages bundle-visualizer"
},
"dependencies": {
/**
* This injects Tailwind's base styles, which is a combination of
* Normalize.css and some additional base styles.
*
* You can see the styles here:
* https://github.com/tailwindcss/tailwindcss/blob/master/css/preflight.css
*
* If using `postcss-import`, use this import instead:
*
* @import "tailwindcss/preflight";
/**
* This injects Tailwind's base styles, which is a combination of
* Normalize.css and some additional base styles.
*
* You can see the styles here:
* https://github.com/tailwindcss/tailwindcss/blob/master/css/preflight.css
*
* If using `postcss-import`, use this import instead:
*
* @import "tailwindcss/preflight";
import { mount } from '@vue/test-utils';
import MyName from '../my-name.vue';
const wrapper = mount(MyName);
describe('MyName test', () => {
it('Displays my name when I write it', () => {
expect(wrapper.vm.$data.name).toBe('My name');