๐ฏ
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 to download the content as a text file | |
function downloadTxtFile(content, fileName) { | |
const element = document.createElement('a'); | |
const file = new Blob([content], { type: 'text/plain' }); | |
element.href = URL.createObjectURL(file); | |
element.download = fileName; | |
document.body.appendChild(element); | |
element.click(); | |
document.body.removeChild(element); | |
} |
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
class MaisraHelper | |
{ | |
/** | |
* Convert a multi-dimensional array into a single-dimensional array. | |
* @param $arr | |
* @param $out | |
* @return array | |
*/ | |
static public function arrayFlatten($arr, $out = array()) |
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
// open this url with your account open: https://www.flipkart.com/account/orders?link=home_orders | |
// then copy pasta this code in your console | |
const items = document.getElementsByClassName('_1_SN5_'); | |
const totolOrders = Array.from(items).reduce((accumulator, currentValue) => { | |
const price = parseInt(currentValue.innerText.replace('โน', '') ); | |
if(isNaN(price)) return accumulator; // avoid free order | |
return accumulator + price; |
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
ar: :ุฅุฐุง ูู ุชุตููุ ุฌุฑุจ ุนุจุฑ | |
en: If you don't get it, try: | |
ar: ุนุจุฑ ุฑุณุงูุฉ ูุงุชุณุงุจ | |
en: Via WhatsApp message | |
ar: ุฅุณุชูู ุงูุงู | |
en: Receive Now | |
ar: SMSุฅุนุงุฏุฉ ุฅุฑุณุงู |
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
<div class='post-view'> | |
<span class='icon ion ion-eye'></span> | |
<span><?php print wp_statistics_pages('total', '', get_the_ID()); ?></span> | |
</div> |
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
// @link https://pollylingu.al/ar/en/lessons/1138 | |
const months = [ | |
{ ar: 'ู ูุญูุฑููู ', en: 'muharram',}, | |
{ ar: 'ุตูููุฑ', en: 'safar',}, | |
{ ar: 'ุฑูุจูููุนู ุงูุฃูููู', en: 'rabi al-awwal',}, | |
{ ar: 'ุฑูุจูููุนู ุงูุซููุงููู', en: 'rabi al-thani',}, | |
{ ar: 'ุฌูู ูุงุฏูู ุงูุฃูููู', en: 'jumadi al-awwal',}, | |
{ ar: 'ุฌูู ูุงุฏูู ุงูุซููุงููู', en: 'jumadi al-thani',}, | |
{ ar: 'ุฑูุฌูุจ', en: 'rajab',}, |
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
#default-captcha-domainchecker { | |
text-align: right; | |
} | |
ul.top-nav { | |
float: left; | |
} | |
section#footer .back-to-top { | |
float: right; | |
} |
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
-- @link https://www.smarthomebeginner.com/clean-wp-commentmeta-wp-postmeta/ | |
-- Here too, we first select the postmeta | |
-- where is: post id is equal AND post_type equal 'wp-rest-api-log' | |
SELECT * FROM wp_postmeta pm LEFT | |
JOIN wp_posts wp ON wp.ID = pm.post_id | |
WHERE wp.ID = pm.post_id AND wp.post_type = 'wp-rest-api-log'; | |
-- this get 3013629 | |
-- all wp_postmeta 3023115 |
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
linking WhatsApp | |
https://stackoverflow.com/questions/21935149/sharing-link-on-whatsapp-from-mobile-website-not-application-for-android | |
https://faq.whatsapp.com/en/general/26000030 | |
https://wa.me/whatsappphonenumber/?text=urlencodedtext | |
https://api.whatsapp.com/send?phone=whatsappphonenumber&text=urlencodedtext |
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
// @link https://css-tricks.com/snippets/jquery/better-broken-image-handling/ | |
// Replace source | |
$('img').error(function(){ | |
$(this).attr('src', 'missing.png'); | |
}); | |
// Or, hide them | |
$("img").error(function(){ | |
$(this).hide(); |
NewerOlder