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
# -*- coding: UTF8 -*- | |
# Tested on Python 3.6.1 | |
# install: pip3 install --upgrade arabic-reshaper | |
from arabic_reshaper import ArabicReshaper | |
# install: pip3 install python-bidi | |
from bidi.algorithm import get_display |
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 | |
/* | |
* Algorithm for put exams by copy & paste in easy way. | |
* Texts like in $string will be accepted, else won't. | |
* Must every question have number, unless won't counting here. | |
* Must enter key enterd to new line between questions and its answers, unless it won't work. | |
* The correct answer defines by *, and degree of its question by counting *. | |
* Nothing else is required, you are free to set what will be there after number of question, Like 1- or 1., you can add more in ([-.\/:_]+). | |
*/ |
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 | |
function mt_shuffle(&$array) { | |
$randArr = []; | |
$arrLength = count($array); | |
// while my array is not empty I select a random position | |
while (count($array)) { | |
//mt_rand returns a random number between two values | |
$randPos = mt_rand(0, --$arrLength); |
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
/*! responsive-nav.js 1.0.39 by @viljamis */ | |
.nav-collapse ul { | |
margin: 0; | |
padding: 0; | |
width: 100%; | |
display: block; | |
list-style: none; | |
} |
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
!function(a,b,c){"use strict";var d=function(d,e){var f=!!b.getComputedStyle;f||(b.getComputedStyle=function(a){return this.el=a,this.getPropertyValue=function(b){var c=/(\-([a-z]){1})/g;return"float"===b&&(b="styleFloat"),c.test(b)&&(b=b.replace(c,function(){return arguments[2].toUpperCase()})),a.currentStyle[b]?a.currentStyle[b]:null},this});var g,h,i,j,k,l,m=function(a,b,c,d){if("addEventListener"in a)try{a.addEventListener(b,c,d)}catch(e){if("object"!=typeof c||!c.handleEvent)throw e;a.addEventListener(b,function(a){c.handleEvent.call(c,a)},d)}else"attachEvent"in a&&("object"==typeof c&&c.handleEvent?a.attachEvent("on"+b,function(){c.handleEvent.call(c)}):a.attachEvent("on"+b,c))},n=function(a,b,c,d){if("removeEventListener"in a)try{a.removeEventListener(b,c,d)}catch(e){if("object"!=typeof c||!c.handleEvent)throw e;a.removeEventListener(b,function(a){c.handleEvent.call(c,a)},d)}else"detachEvent"in a&&("object"==typeof c&&c.handleEvent?a.detachEvent("on"+b,function(){c.handleEvent.call(c)}):a.detachEvent(" |
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
@font-face{font-family:FontAwesome;src:url(fonts/fontawesome-webfont.eot);src:url(fonts/fontawesome-webfont.woff)}.navbar{width:100%;font-family:Cairo;background-color:#222;border-radius:0!important;color:#FFF;direction:rtl;margin-bottom:0!important}.navbar ul a{color:#FFF;text-decoration:none;border-bottom:2px solid transparent;text-align:center;padding-bottom:10px;margin-left:10px;-webkit-transition:all .1s ease-in-out;-moz-transition:all .1s ease-in-out;-o-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.navbar ul a li{display:inline-block;padding:10px;margin-top:5px}.navbar ul a.active,.navbar ul a:hover{color:#CD0000;border-color:#CD0000}.navbar ul ul{float:left;padding-left:30px}.page-content{text-align:center;font-family:Cairo;-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;direction:rtl}.page-content .advertise{display:inline-block;float:left}.page-content .advertise2{display:inline-block;float:ri |
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
@font-face{font-family:FontAwesome;src:url(../fonts/fontawesome-webfont.eot);src:url(../fonts/fontawesome-webfont.woff)}.navbar{width:100%;font-family:Cairo;background-color:#222;border-radius:0!important;color:#FFF;direction:rtl;margin-bottom:0!important}.navbar ul a{color:#FFF;text-decoration:none;border-bottom:2px solid transparent;text-align:center;padding-bottom:10px;margin-left:10px;-webkit-transition:all .1s ease-in-out;-moz-transition:all .1s ease-in-out;-o-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.navbar ul a li{display:inline-block;padding:10px;margin-top:5px}.navbar ul a.active,.navbar ul a:hover{color:#CD0000;border-color:#CD0000}.navbar ul ul{float:left;padding-left:30px}.page-content{text-align:center;font-family:Cairo;-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.page-content .advertise{display:inline-block;float:left}.page-content .advertise2{display:inline-block;float:right}.pag |
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
$(document).ready(function(){$(".submit").on("click",function(){var t=($("#mc").attr("attr"),$("#mc2").attr("attr"),$(".videoUrl").val());return $(".error-msg").hide(),$(".sub-download").hide(),$(".progress").show(),$(".downloadLinks").children().remove(),""==t?($(".progress").hide(),alert("يجب وضع رابط الفيديو")):$.ajax({type:"POST",dataType:"jsonp",url:"http://mostafa456713594.byethost7.com/YouTube-Downloader/getvideo.php?videoid="+t+"&type=Download",success:function(t){var a=$(t),e=a.find(".video_title").text();if(e){$(".error-msg").hide(),$(".progress").hide(),$(".sub-download").show(),$(".info span").html(e);var s="YouTube-Downloader/"+a.find(".image_video").attr("src");$(".picture img").attr("src",s);for(var o=a.find(".direct_url_str"),r=a.find(".Url_str"),n=[],i=[],d=[],l=[],c=0;c<=o.length-1;c++)n[c]=r[c].attributes.href.textContent,i[c]=o[c].text,d[c]=o[c].attributes.qual.textContent,l[c]=o[c].attributes.si.textContent,$(".downloadLinks").append('<div class="col-xs-12 col-md-12 Links"><a href="YouTub |
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
$(document).ready(function(){$("#mc2").on("click",function(){$(this).attr("attr",1),$("#mc").attr("attr",0),$(".videoUrl").hide(),$("form").prepend("<textarea class='videoUrl' placeholder='رابط الفيديو'></textarea>")}),$("#mc").on("click",function(){$(this).attr("attr",1),$("#mc2").attr("attr",0),$(".videoUrl").hide(),$("form").prepend('<input type="text" placeholder="رابط الفيديو" class="videoUrl">')}),$(".submit").on("click",function(){var r=$("#mc").attr("attr"),t=$("#mc2").attr("attr"),e=$(".videoUrl").val();return $(".error-msg").hide(),$(".sub-download").hide(),$(".progress").show(),""==e?($(".progress").hide(),alert("يجب وضع رابط الفيديو")):null==r&&null==t?($(".progress").hide(),alert("اختار نوع الفيديو")):1==r?$.ajax({type:"POST",dataType:"json",url:"http://mostafa456713594.byethost7.com/main.php",data:{url:e},success:function(r){if("success"==r.type){$(".error-msg").hide(),$(".progress").hide(),$(".sub-download").show();var t=e.split("/")[5];$(".info span").html(r.title),$(".picture img").attr("src" |
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
@font-face{font-family:FontAwesome;src:url(fonts/fontawesome-webfont.eot);src:url(fonts/fontawesome-webfont.woff)}.clearfix{clear:both}.navbar{width:100%;font-family:Cairo;background-color:#222;border-radius:0!important;color:#FFF;direction:rtl;margin-bottom:0!important}.navbar ul a{color:#FFF;text-decoration:none;border-bottom:2px solid transparent;text-align:center;padding-bottom:10px;margin-left:10px;-webkit-transition:all .1s ease-in-out;-moz-transition:all .1s ease-in-out;-o-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.navbar ul a li{display:inline-block;padding:10px;margin-top:5px}.navbar ul a.active,.navbar ul a:hover{color:#CD0000;border-color:#CD0000}.navbar ul ul{float:left;padding-left:30px}.page-content{text-align:center;font-family:Cairo;-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.page-content .advertise{display:inline-block;float:left}.page-content .advertise2{display:inline-block;f |