If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.
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
| import random | |
| def danger(): | |
| if random.choice([True, False]): | |
| raise Exception | |
| def main(): | |
| """Attempt to loop `loop_count` times. Simulate random errors and create a |
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
| .builder-page .site-inner { | |
| max-width: 100%; | |
| padding: 0; | |
| } | |
| .builder-page .content { | |
| width: 100%; | |
| } | |
| .builder-page .entry { | |
| margin-bottom: 0; | |
| } |
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 | |
| //don't add above twice if it already exists | |
| /** | |
| * Check if WooCommerce Page of all kinds (not just cart and shop) | |
| * @thanks: https://faish.al/2014/01/06/check-if-it-is-woocommerce-page/ | |
| * Checked IDS with WooCommerce Repo 1 June 2019 | |
| */ | |
| function ca_is_really_woocommerce_page() { |
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 | |
| /** | |
| * Class for getting a list of Beaver Builder modules. | |
| */ | |
| class KM_Beaver_Builder_Module_List { | |
| /** | |
| * Get the list of Beaver Builder modules. | |
| * | |
| * @param int $post_id The post ID. Default is the current post being |
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
| #!/usr/bin/python3 | |
| import argparse | |
| import logging | |
| import subprocess | |
| import os | |
| import tempfile | |
| from tempfile import mkstemp | |
| import configparser | |
| import gzip |
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 | |
| // Make Soliloquy sliders use wp's native responsive images with wp retina | |
| function my_theme_soliloquy_output($slider, $data) { | |
| return wp_make_content_images_responsive($slider); | |
| } | |
| add_filter('soliloquy_output', 'my_theme_soliloquy_output', 10, 2); | |
| // wp_make_content_images_responsive needs the img tags to have a class with their id | |
| function my_theme_soliloquy_image_slide_class($classes, $item, $i, $data, $mobile) { | |
| $classes[] = 'wp-image-' . $item['id']; |
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
| // Simple function to send Weekly Status Sheets to contacts listed on the "Contacts" sheet in the MPD. | |
| // Load a menu item called "Project Admin" with a submenu item called "Send Status" | |
| // Running this, sends the currently open sheet, as a PDF attachment | |
| function onOpen() { | |
| var submenu = [{name:"Send Status", functionName:"exportSomeSheets"}]; | |
| SpreadsheetApp.getActiveSpreadsheet().addMenu('Project Admin', submenu); | |
| } | |
| function exportSomeSheets() { |
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 | |
| // Decodes files that have a bunch of strings with things like "\x6d" and "\155" and such in them. | |
| // Meat of the code from https://stackoverflow.com/questions/13774215/convert-hex-code-into-readable-string-in-php | |
| // run me like so on command line: | |
| // php decode.php < encoded.php > output.php | |
| function decode_code($code) | |
| { | |
| return preg_replace_callback('@\\\(x)?([0-9a-f]{2,3})@', | |
| function ($m) { | |
| if ($m[1]) { |
