body {
-webkit-app-region: drag;
}
a,
button,
.ace-editor {
-webkit-app-region: no-drag;
}
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
#!/bin/bash | |
# Check that homebrew is installed | |
if [[ "" == "$(command -v brew)" ]]; then | |
echo "switch-php requires homebrew to manage installed versions of PHP." | |
exit 1 | |
fi | |
# Check if command was ran as root. | |
if [[ $(id -u) -eq 0 ]]; then |
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
server { | |
listen 80; | |
server_name mailhog.dev; | |
location / { | |
proxy_pass http://127.0.0.1:8025/; | |
proxy_set_header Host $host; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
} |
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 DioscuriValetDriver extends BasicValetDriver | |
{ | |
/** | |
* Mutate the incoming URI. | |
* | |
* @param string $uri | |
* @return string | |
*/ |
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 | |
// Add this snippet to your active theme's functions.php file | |
add_filter( 'site-reviews/rendered/partial', function( $rendered, $partial ) { | |
if( $partial == 'reviews' ) { | |
$rendered = str_replace( '<p class="glsr-review-author">—', '<p class="glsr-review-author">', $rendered ); | |
} | |
return $rendered; | |
}, 10, 2 ); |
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 | |
// Translate text strings | |
// http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext | |
add_filter( 'gettext', function( $translated_text, $text, $domain ) { | |
return ( $domain == 'site-reviews' && $translated_text == 'Submit your review' ) | |
? __( 'Make it so!', 'site-reviews-custom' ) | |
: $translated_text; | |
}, 20, 3 ); |
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
<? | |
// | |
// [ BUY BTC & ETH DAILY ON BITSTAMP ] | |
// by @levelsio | |
// | |
// 2017-08-23 | |
// | |
// 1) buy $40/day BTC | |
// 2) buy $10/day ETH | |
// |
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
<!DOCTYPE html> | |
<html class="debug"> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<section> | |
<div class="container"> | |
<div class="bg-red-100 row"> | |
<div class="bg-blue-100 col p-8 | sm:w-1/2"></div> |