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
| Commands | |
| -------------- | |
| show the present location--> pwd | |
| Go to root--> cd ~ | |
| Go to back folder cd .. | |
| Go to forword folder cd (folder name) | |
| Go to shibling folder cd ../(folder name) | |
| For go to back folder from present folder ----> cd ../ | |
| For go to any folder ----> cd (folder-name or folder address) | |
| Tab to show folder name in present folder. |
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 | |
| /** | |
| * Kullanicinin kullandigi isletim sistemi bilgisini alir. | |
| * | |
| * @since 2.0 | |
| */ | |
| function getOS() { | |
| $user_agent = $_SERVER['HTTP_USER_AGENT']; |
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
| <script> | |
| /** | |
| * The First way to get local time. | |
| */ | |
| //var timeZone = new Date().toString().match(/([A-Z]+[\+-][0-9]+.*)/)[1]; return 'GMT+0600 (Bangladesh Standard Time)' | |
| var pattern = /GMT(.*)\d/; | |
| var GMT = pattern.exec(new Date().toString())[0]; | |
| document.cookie = "GMT=" + GMT; | |
| /** |
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 | |
| $endpoint = 'https://api.instagram.com/oauth/access_token'; | |
| // params the endpoint requires | |
| $params = array( | |
| 'app_id' => 'your Instagram_APP_ID', // our instagram app id | |
| 'app_secret' => 'your Instagram_APP_SECRET', // our instagram app secret | |
| 'grant_type' => 'authorization_code', | |
| 'redirect_uri' => 'your redirect url', // our redirect uri | |
| 'code' => $_GET['code'] ? $_GET['code'] : '' // code instagram sent us in the URL |
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
| ( function($){ | |
| "use strict"; | |
| // By JavaScript | |
| var $target = document.querySelector('.targetClass'); | |
| var setPosition = function ($target) { | |
| var docViewHeight = window.innerHeight; | |
| var docViewTop = window.scrollY; | |
| var docViewBottom = docViewTop + docViewHeight; | |
| var eHeight = $target.offsetHeight; | |
| var eTop = $target.offsetTop; |
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 | |
| /* | |
| * Exclude & Include in group control | |
| */ | |
| $this->add_group_control( | |
| Group_Control_Background::get_type(), | |
| [ | |
| 'name' => 'item_background', | |
| 'label' => __( 'Background', 'happy-addons-pro' ), | |
| 'types' => [ 'classic', 'gradient' ], |
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
| ======================================================================= | |
| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| //////////////// Most Useful Terminal Command List \\\\\\\\\\\\\\\\ | |
| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| ======================================================================= | |
| 01. Current Working Directory: |
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 | |
| /** | |
| * Call a shortcode function by tag name. | |
| * | |
| * @param string $tag The shortcode whose function to call. | |
| * @param array $atts The attributes to pass to the shortcode function. Optional. | |
| * @param array $content The shortcode's content. Default is null (none). | |
| * | |
| * @return string|bool False on failure, the result of the shortcode on success. | |
| */ |
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 add_elementor_widget_categories( $elements_manager ) { | |
| $categories = []; | |
| $categories['oceanic'] = | |
| [ | |
| 'title' => 'Oceanic Widgets', | |
| 'icon' => 'fa fa-plug' | |
| ]; |