This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<audio | |
ref="audio" | |
src="/audio/magical.mp3" | |
preload="auto" | |
loop | |
@canplaythrough="audioLoaded" | |
> | |
<p>If you are reading this, it is because your browser does not support the audio element.</p> | |
</audio> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.1' | |
volumes: | |
files: | |
driver: local | |
driver_opts: | |
type: 'none' | |
o: 'bind' | |
device: '/Users/duocnguyen/Tmp/owncloud-docker-server/files' | |
mysql: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Rem output with px fallback | |
font-size($sizeValue = 16) | |
font-size $sizeValue * 1px | |
font-size (($sizeValue / 16) * 1)rem | |
// Center block | |
center-block() | |
display block | |
margin-left auto | |
margin-right auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="sidebar-top-author"> | |
<img class="author-avatar" src="images/avatar.png" alt=""> | |
<div class="author-name"> | |
<div class="author-name-inner"> | |
<span class="author-name-text">Duoc Nguyen</span> | |
</div> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $wpdb; | |
// @ prefix used to suppress errors, but you should do your own | |
// error checking by checking return values from each mysql_query() | |
// Start Transaction | |
@mysql_query("BEGIN", $wpdb->dbh); | |
// Do some expensive/related queries here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function single_term_slug( $prefix = '', $display = true ) { | |
$term = get_queried_object(); | |
if ( !$term ) | |
return; | |
if ( is_category() ) | |
$term_slug = apply_filters( 'single_cat_slug', $term->slug ); | |
elseif ( is_tag() ) | |
$term_slug = apply_filters( 'single_tag_slug', $term->slug ); | |
elseif ( is_tax() ) | |
$term_slug = apply_filters( 'single_term_slug', $term->slug ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Curl { | |
/** | |
* cURL request method | |
* | |
* @var string | |
*/ | |
protected $_method = 'GET'; |