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 | |
$name = @trim(stripslashes($_POST['name'])); | |
$email = @trim(stripslashes($_POST['email'])); | |
$msg = @trim(stripslashes($_POST['msg'])); | |
$subject = 'PHP-AJAX Email' ; //type your email subject here | |
$to = 'you@your-email.com';//replace with your email | |
$headers = array(); | |
$headers[] = "MIME-Version: 1.0"; |
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 | |
include("simple_html_dom.php"); | |
$allLink = array(); | |
$AllContent = array(); | |
// Retrieve the DOM from a given URL | |
$html = file_get_html('http://www.bbc.co.uk/bengali'); | |
foreach($html->find('.list li-plain,a') as $e){ | |
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
// recommended | |
$(document).bind('ready ajaxComplete', function(){ | |
// Your code here | |
}); | |
// you could also try this but remember $(document).on( "ready", handler ) is deprecated as of jQuery 1.8. | |
$(document).on('ready ajaxComplete', function(){ | |
// Your code here | |
}); |
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 random | |
wList=['Earth','Fire','Wind','Water','Heart','By','your','power','combined','I','am','Captain','Planet'] | |
ind=random.randint(0,10) # generating random integer.In exam the range was 0 to 100.But we will use 0 to 10 here | |
the_word_beta1=wList[ind] | |
the_word_beta2=the_word_beta1.lower() # making all the chars lower case for avoiding upper case-lower case match conflict | |
the_word=the_word_beta2.strip() # taking out all the white spaces before and after the word as there is one word per line in the words.txt. If we don't do it the length of the word will not be correct | |
print(the_word) | |
wLen=len(the_word) | |
u='*'*wLen | |
counter=0 |
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
/*setup*/ | |
* { | |
margin: 0; | |
padding: 0; | |
} | |
@font-face { | |
font-family: 'Monoton'; | |
font-style: normal; |
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
'type' => 'select', | |
'name' => 'bus_name', | |
'label' => esc_html__('Select Business for this offer', 'themag'), | |
'default' => '', | |
'items' => SkilledTheme_Themag_SKL_Common::skilledtheme_themag_skl_business(), |
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
$arguments = array( | |
'post_type' => 'offer', | |
'post_status' => 'publish', | |
'meta_key' => 'bus_name', | |
'meta_value' => $somevalue, | |
'meta_compare' => 'LIKE', | |
'posts_per_page' => '-1', | |
'post__not_in'=> array(get_the_ID()), |
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 | |
class CSVExport | |
{ | |
/** | |
* Constructor | |
*/ | |
public function __construct() | |
{ |
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
jQuery(window).bind("load", function() { | |
// code here | |
if (jQuery("body").hasClass('rtl')){ | |
var vc_rows = jQuery("body .vc_row"); | |
for (var i = vc_rows.length - 1; i >= 0; i--) { | |
vc_rows.css('left', Math.abs(parseInt(vc_rows[i].style.left))); | |
}; | |
} |
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
<!-- search fields --> | |
<div class="container margin-t20"> | |
<div class="row lnb"> | |
<div class="col-sm-6 col-xs-6"> | |
<div class="khojnow-brand"> | |
<a href="../app"><img src="images/logo.png" alt="Logo" class="img-responsive"></a> | |
</div> | |
</div> |
OlderNewer