Creating a single post template free with Elementor
๐
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
| { | |
| "workbench.colorTheme": "Default Dark Modern", | |
| "terminal.integrated.profiles.windows": { | |
| "PowerShell": { | |
| "source": "PowerShell", | |
| "icon": "terminal-powershell" | |
| }, | |
| "Command Prompt": { | |
| "path": [ | |
| "${env:windir}\\Sysnative\\cmd.exe", |
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 | |
| class Key: | |
| def __init__(self, key=''): | |
| if key == '': | |
| self.key = self.generate() | |
| else: | |
| self.key = key.lower() |
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 imgurpython import ImgurClient | |
| image_path = 'cat.jpg' | |
| client_id = '' | |
| client_secret = '' | |
| client = ImgurClient(client_id, client_secret) | |
| try: | |
| image = client.upload_from_path(image_path, config=None, anon=True) |
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 selenium import webdriver | |
| from selenium.webdriver.chrome.options import Options | |
| import os | |
| options = Options() | |
| options.add_argument("--headless") | |
| options.add_argument("--window-size=1920,1080") | |
| driver = webdriver.Chrome(options=options) |
People
:bowtie: |
๐ :smile: |
๐ :laughing: |
|---|---|---|
๐ :blush: |
๐ :smiley: |
:relaxed: |
๐ :smirk: |
๐ :heart_eyes: |
๐ :kissing_heart: |
๐ :kissing_closed_eyes: |
๐ณ :flushed: |
๐ :relieved: |
๐ :satisfied: |
๐ :grin: |
๐ :wink: |
๐ :stuck_out_tongue_winking_eye: |
๐ :stuck_out_tongue_closed_eyes: |
๐ :grinning: |
๐ :kissing: |
๐ :kissing_smiling_eyes: |
๐ :stuck_out_tongue: |
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
| // Adds widget | |
| class Social_Widget extends WP_Widget { | |
| function __construct() { | |
| parent::__construct( | |
| 'redessociais_widget', | |
| esc_html__( 'Social Media', 'textdomain' ), | |
| array( 'description' => esc_html__( 'Social Media Links', 'textdomain' ), ) // Args | |
| ); |
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_footer', 'replace_this'); | |
| function replace_this(){ | |
| ?> | |
| <script> | |
| var myExpression = document.getElementById("masthead").innerHTML; //Find ID | |
| var newExpression = myExpression.replace("View your shopping cart", "Carrinho"); //Find expression and exchange | |
| document.getElementById("masthead").innerHTML = newExpression; //Print on screen | |
| </script> |
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
| // search all taxonomies, based on: http://projects.jesseheap.com/all-projects/wordpress-plugin-tag-search-in-wordpress-23 | |
| function atom_search_where($where){ | |
| global $wpdb; | |
| if (is_search()) | |
| $where .= "OR (t.name LIKE '%".get_search_query()."%' AND {$wpdb->posts}.post_status = 'publish')"; | |
| return $where; | |
| } | |
| function atom_search_join($join){ |
NewerOlder