This file contains 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 threading | |
""" | |
it returns the price of gold per unit of mesghal form http://tgju.org | |
""" | |
def scraper(): | |
# import libraries | |
import urllib.request |
This file contains 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 | |
/** | |
* | |
*Title: Randome code generator | |
*Description: randomCodeGenerte($str , $count) generate random code frome $str that is a string. the length of code is equal the value of $count | |
* $str: a string that can be contain of numbers and charachters. the code create from it's charachters. | |
* $count: it is a integer that it's defult value is 1. it determineس the length of code would be generate. | |
* | |
**/ | |
function randomCodeGenerate($str , $count = 1){ |
This file contains 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 | |
/** | |
* Template Name: Insert Itinerary Front End Page Layout | |
*Itinerary is a Custome Post Tyape that named itineraries | |
* @author Ebrahim Moeini | |
* @since 1.0.0 | |
*below site help us to create this page | |
*https://tutsplus.com/authors/vinny-singh?_ga=2.94441311.216962670.1530158710-1100091547.1527395103 | |
*/ | |
?> |
This file contains 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 | |
/** | |
* @package Wordpress Theme | |
* @subpackage wordpress-theme | |
* @since Wordpress Theme 1.0 | |
* Template Name: Template-post-list | |
*/ | |
/* How to Use it | |
for use of this file you should copy it into your theme directory | |
then create a page in your wordpress admin dashboard and set it's template |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Your IP Address</title> | |
</head> | |
<body> | |
<p>Your IP address followes:</p> | |
<div style="background: #ddd ; border:1px solid #999; font-weight: bold; font-size:20px; padding: 10px; width: 50%;"> | |
<p>Your IP Address: |
This file contains 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
<!-- Display Child page into Parent Page Snippet Code from | |
https://y-designs.com/tutorials/wordpress-displaying-subpages-on-pages/--> | |
<?php $mypages = get_pages( array( 'child_of' => $post->ID, 'sort_column' => 'post_date', 'sort_order' => 'desc' ) ); | |
foreach( $mypages as $page ) { | |
$content = $page->post_content; | |
if ( ! $content ) // Check for empty page | |
continue; | |
$content = apply_filters( 'the_content', $content ); ?> |
This file contains 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 | |
//Creat a new taxonomy Booking Categories | |
function sin_taxo(){ | |
register_taxonomy( 'booking_category', 'booking', | |
array( | |
'labels' => array( | |
'name' => __('Booking Categories'), | |
'singular_name' => __('Booking Category'), | |
'add_new' => _x('Add New Category' , 'booking-category'), | |
'add_new_item' => __('Add New Category'), |