This file contains hidden or 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
from collections import Counter | |
import argparse | |
import fnmatch | |
import os | |
import sys | |
from bs4 import BeautifulSoup | |
matches = [] | |
elements = {} |
This file contains hidden or 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
# This is a blocklist to block samsung smart tv's sending meta data at home. | |
# Please help to collect domains! | |
# It could be that the TV does not receive any more updates or other services no longer work. Please report such an incident. | |
device-metrics-us.amazon.com | |
samsungacr.com | |
samsungcloudsolution.com | |
samsungcloudsolution.net | |
pavv.co.kr | |
samsungotn.net |
This file contains hidden or 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
.intro { | |
display: -ms-flexbox; | |
display: flex; | |
-ms-flex-direction: row; | |
flex-direction: row; | |
text-align: center; | |
color: #fff; | |
background-position: center center; | |
background-repeat: no-repeat; | |
background-size: cover; |
This file contains hidden or 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
li.g-menu-item.active .g-dropdown { | |
top: auto !important; | |
visibility: visible !important; | |
opacity: 1 !important; | |
} |
This file contains hidden or 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
find . -maxdepth 1 -type d \( ! -name . \) -exec bash -c "cd '{}' && git rev-parse --verify staging && if [ -n "$?" ]; then ggl; fi" \; |
This file contains hidden or 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
Word Puzzle: What is the longest phrase you can make using the sequence of letters found in the following words: | |
an | |
at | |
we | |
age | |
ant | |
ape |
This file contains hidden or 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 | |
// vim: foldmethod=marker | |
/* Generic exception class | |
*/ | |
if (!class_exists('OAuthException')) { | |
class OAuthException extends Exception { | |
// pass | |
} | |
} |
This file contains hidden or 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 | |
/* | |
Code references: | |
Exclude Posts: | |
https://jetpack.me/support/customize-related-posts/#exclude | |
Hidden posts plugin to grab post list to exclude: | |
https://vip-svn.wordpress.com/plugins/hidden-posts/hidden-posts.php | |
*/ |
This file contains hidden or 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
add_action( 'wp_loaded', 'tt_redirect_canonical' ); | |
function tt_redirect_canonical() { | |
$parsed_requested_url = parse_url( $_SERVER['REQUEST_URI'] ); | |
if ( preg_match_all( '/\/[0-9]{4}\/[0-9]{2}\/[0-9]{2}\/(?<post_name>[a-z0-9\-]*)\/?$/', $parsed_requested_url['path'], $matches ) ) { | |
foreach ( $matches['post_name'] as $match ) { | |
$args = array( | |
'name' => $match, | |
'post_type' => 'post', | |
'post_status' => 'publish', |
This file contains hidden or 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
@media screen and (max-width: 600px) { | |
.woocommerce-cart, | |
.woocommerce-checkout { | |
table { | |
border: none !important; | |
&.shop_table { | |
margin: 0; | |
} | |
thead { | |
display: none; |
NewerOlder