We have been moved for better. Look Here for an Updated Version. People are also contributing there for making it more beautiful. See you there!!!
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 | |
| function limit_upload_size_limit_for_non_admin( $limit ) { | |
| if ( ! current_user_can( 'manage_options' ) ) { | |
| $limit = 1000000; // 1mb in bytes | |
| } | |
| return $limit; | |
| } | |
| add_filter( 'upload_size_limit', 'limit_upload_size_limit_for_non_admin' ); |
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 | |
| print("Press 'Ctrl+C' to exit this tool.") | |
| try: | |
| while True: | |
| print("\nPlease input price in BDT: ") | |
| a = float(input()) | |
| b=a+((a*5)/100) | |
| c=b+((b*15)/100) | |
| d=c+((a*1)/100) |
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 original one uses values returned from 'brew info' | |
| brew list --formula | xargs -n1 -P8 -I {} \ | |
| sh -c "brew info {} | egrep '[0-9]* files, ' | sed 's/^.*[0-9]* files, \(.*\)).*$/{} \1/'" | \ | |
| sort -h -r -k2 - | column -t | |
| # faster alternative using 'du' | |
| du -sch $(brew --cellar)/*/* | sed "s|$(brew --cellar)/\([^/]*\)/.*|\1|" | sort -k1h |
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 | |
| /** | |
| * Customize docs permalinks parsing. | |
| * | |
| * @author Vova Feldman | |
| */ | |
| function freemius_docs_permastruct_rewrite() { | |
| if ( post_type_exists( 'docs' ) ) { | |
| // Modify root slug to "help" instead of docs. |
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
| // Header search | |
| .page-header | |
| { | |
| .wedocs-search-form | |
| { | |
| position: relative; | |
| input | |
| { | |
| @include placeholder(#999); |
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 | |
| /** | |
| * Plugin Name: Photon CDN | |
| * Version: 1.1 | |
| * Description: Use the WP.com Photon image CDN without installing JetPack | |
| * Author: Zachary Scott | |
| */ | |
| namespace zacscott; |
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 | |
| if (!defined('ABSPATH')) die('-1'); | |
| // Class started | |
| class stockVCExtendAddonClass { | |
| function __construct() { | |
| // We safely integrate with VC with this hook | |
| add_action( 'init', array( $this, 'stockIntegrateWithVC' ) ); |
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
| Eliminate All Blocks from Editor | |
| wp.data.dispatch( 'core/block-editor' ).resetBlocks([]); | |
| How to Use WordPress Block Builder to Create Custom Page Layouts Easily | |
| https://www.webfactoryltd.com/blog/how-to-use-wordpress-block-builder-to-create-custom-page-layouts-easily/ | |
| How to Extend or Create Variations for WordPress Blocks | |
| https://getbutterfly.com/how-to-extend-or-create-variations-for-wordpress-blocks/ | |
| How to disable and lock Gutenberg blocks |
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 | |
| /** | |
| * Set constants for Google Maps JS API key--used for ACF's backend map--and Google Maps | |
| * Embed API Key, used for generating maps on the site front end. | |
| * | |
| * @link https://developers.google.com/maps/documentation/javascript/get-api-key | |
| * @link https://developers.google.com/maps/documentation/embed/get-api-key | |
| */ | |
| const GOOGLE_MAPS_JS_API_KEY = 'MAPS-JS-API-KEY'; |