Snippets Collections
void Deal_Creation_From_Trader_Portal()
{
// >>>>>>>>>-------------------- Contact Creation ---------------------- <<<<<<<<<
Email = "TestHassnain@gmail.com";
Phone = "03332425224";
Contact_name = "Hassnain Test";
contactfirstName = if(Contact_name.contains(" "),Contact_name.getPrefix(" "),Contact_name);
contactlastName = if(Contact_name.contains(" "),Contact_name.getSuffix(" "),"");
//check if conatct exists with the above email
api_url = "https://www.zohoapis.com/crm/v2/Contacts/search?criteria=(Email:equals:" + Email + ")";
contactResponse = invokeurl
[
	url :api_url
	type :GET
	connection:"zoho_crm"
];
contactId = "";
if(contactResponse.contains("data") && !contactResponse.get("data").isEmpty())
{
	contactId = contactResponse.get("data").get(0).get("id");
	info "Contact already exists with ID: " + contactId;
}
else
{
	//creating new contact
	apiDomain = "https://www.zohoapis.com";
	version = "v2";
	contact_api_url = apiDomain + "/crm/" + version + "/Contacts";
	contactPayload = {"data":{{"Email":Email,"First_Name":contactfirstName,"Last_Name":contactlastName,"Phone":Phone}}};
	contact_data_json = contactPayload.toString();
	contactCreateResponse = invokeurl
	[
		url :contact_api_url
		type :POST
		parameters:contact_data_json
		connection:"zoho_crm"
	];
	contactId = contactCreateResponse.get("data").get(0).get("details").get("id");
	if(contactCreateResponse.contains("data") && !contactCreateResponse.get("data").isEmpty())
	{
		contactId = contactCreateResponse.get("data").get(0).get("details").get("id");
		info "New Contact Created with ID: " + contactId;
	}
	else
	{
		info "Error: Failed to create Contact.";
	}
}
// >>>>>>>>>-------------------- Account Creation ---------------------- <<<<<<<<<<
// Account Details
// 	Account_name=buyer_name;
Account_name = "ERP Test";
//checking if account with same name exists
api_url = "https://www.zohoapis.com/crm/v2/Accounts/search?criteria=(Account_Name:equals:" + Account_name + ")";
accountResponse = invokeurl
[
	url :api_url
	type :GET
	connection:"zoho_crm"
];
accountId = "";
if(accountResponse.contains("data") && !accountResponse.get("data").isEmpty())
{
	accountId = accountResponse.get("data").get(0).get("id");
	info "Account already exist with id: " + accountId;
}
else
{
	// *Create a new Account*
	newAccount = Map();
	newAccount.put("Account_Name",Account_name);
	accountPayload = Map();
	accountList = List();
	accountList.add(newAccount);
	accountPayload.put("data",accountList);
	account_data_json = accountPayload.toString();
	accountCreateResponse = invokeurl
	[
		url :"https://www.zohoapis.com/crm/v2/Accounts"
		type :POST
		parameters:account_data_json
		connection:"zoho_crm"
	];
	accountId = "";
	accountId = accountCreateResponse.get("data").get(0).get("details").get("id");
	if(accountCreateResponse.contains("data") && !accountCreateResponse.get("data").isEmpty())
	{
		accountId = accountCreateResponse.get("data").get(0).get("details").get("id");
		info "New Account created with id " + accountId;
	}
	else
	{
		info "Error: Failed to create Account.";
		return;
	}
}
// >>>>>>>>>-------------------- Account Creation ---------------------- <<<<<<<<<<
//Deal info
// Deal_Name=Title;
// Listing_Status = status;  //Status
// Deal_Owner = seller_name;
// Closing_Date = dealCloseDate;
// Deal_Description = product_description;
// Acquisition_Cost = addOn;// (amount)
// Amount = dealTotal;
// Payment_Terms = payment_terms;
// Trader_Platform_Link = listingLink
Deal_Name = "new Hassnain deal";
Status = "newly created";
Closing_Date = "2025-03-08";
Deal_Description = "just creted this new deal";
Amount = "3500";
// Payment_Terms = ;
// Trader_Platform_Link =
// Deal_Owner = {"name":"Demo User2","id":"4685069000010160001","email":"user2@demo1.rebiz.com"};
//check if Deal exists
deal_name = "New Khizar Business Deal";
api_url = "https://www.zohoapis.com/crm/v2/Deals/search?criteria=(Deal_Name:equals:" + Deal_Name + ")";
accountResponse = invokeurl
[
	url :api_url
	type :GET
	connection:"zoho_crm"
];
if(accountResponse.contains("data") && !accountResponse.get("data").isEmpty())
{
	accountId = accountResponse.get("data").get(0).get("id");
	info "Deal already exist with id: " + accountId;
}
else
{
	//-------------creating-new-Deal-------------------
	dealDetails = Map();
	dealDetails.put("Deal_Name",Deal_Name);
	dealDetails.put("Closing_Date",Closing_Date);
	dealDetails.put("Amount",Amount);
	//dealDetails.put("Owner",Deal_Owner);
	dealDetails.put("Account_Name",accountId);
	dealDetails.put("Contact_Name",contactId);
	dealPayload = Map();
	dealList = List();
	dealList.add(dealDetails);
	dealPayload.put("data",dealList);
	deal_data_json = dealPayload.toString();
	dealResponse = invokeurl
	[
		url :"https://www.zohoapis.com/crm/v2/Deals"
		type :POST
		parameters:deal_data_json
		connection:"zoho_crm"
	];
	dealId = "";
	info "Deal Response" + dealResponse;
	if(dealResponse.contains("data") && !dealResponse.get("data").isEmpty())
	{
		dealId = dealResponse.get("data").get(0).get("details").get("id");
		info " New Deal created with id " + dealId;
	}
	else
	{
		info "Error: Failed to create Deal.";
		return;
	}
}
}
// AJAX BLOG PAGE
add_action('wp_ajax_filter_posts', 'filter_posts_callback');
add_action('wp_ajax_nopriv_filter_posts', 'filter_posts_callback');
 
function filter_posts_callback() {
    $category = isset($_POST['category']) ? sanitize_text_field($_POST['category']) : 'all';
    $paged = isset($_POST['paged']) ? intval($_POST['paged']) : 1;
 
    $args = array(
        'post_type' => 'post',
        'posts_per_page' => 10,
        'paged' => $paged,
    );
 
    if ($category !== 'all') {
        $args['tax_query'] = array(
            array(
                'taxonomy' => 'category',
                'field' => 'slug',
                'terms' => $category,
            ),
        );
    }
 
    $query = new WP_Query($args);
 
    ob_start();
    if ($query->have_posts()) :
        while ($query->have_posts()) : $query->the_post();
            $category = get_the_category();
            $brand_color = '';
            $color_class = 'color-default';
            $time_read = get_field('time_read');
 
            if (!empty($category)) {
                $category_id = $category[0]->term_id;
                $brand_color = get_field('brand_color', 'category_' . $category_id);
 
                if ($brand_color) {
                    $color_class = 'color-' . esc_attr($brand_color);
                }
            }
            ?>
            <div class="post-card <?php echo esc_attr(strtolower(str_replace(' ', '-', get_the_category()[0]->name))); ?>">
                <div class="post-header">
                    <img src="<?php the_post_thumbnail_url(); ?>" alt="<?php the_title(); ?>" class="post-feature-image">
                </div>
                <div class="post-info">
                    <div class="post-meta">
                        <?php if ($category || $time_read): ?>
                            <?php if ($category): ?>
                                <span class="category <?php echo esc_attr($color_class); ?>">
                                    <?php echo esc_html($category[0]->name); ?>
                                </span>
                            <?php endif; ?>
                            <?php if ($time_read): ?>
                                <span class="time-read">
                                    <?php if ($category); ?>
                                    <?php echo esc_html($time_read); ?>
                                </span>
                            <?php endif; ?>
                        <?php endif; ?>
                    </div>
                    <h3><?php the_title(); ?></h3>
                    <div class="author-posted">
                        <div class="author-info">
                            <img src="<?php echo get_avatar_url(get_the_author_meta('ID')); ?>" alt="Author Avatar" class="author-avatar">
                            <span class="author-name"><?php the_author(); ?></span>
                        </div>
                        <div class="post-time">
                            <span>Last Update: <?php the_modified_date(); ?></span>
                        </div>
                    </div>
                    <a href="<?php the_permalink(); ?>" class="post-link">Learn More</a>
                </div>
            </div>
            <?php
        endwhile;
        wp_reset_postdata();
    else :
        echo '<p>No posts found.</p>';
    endif;
    $posts_html = ob_get_clean(); 
 
    $total_pages = $query->max_num_pages;
 
    wp_send_json(array(
        'posts' => $posts_html,
        'total_pages' => $total_pages,
        'current_page' => $paged,
    ));
 
    wp_die();
}
# /etc/wsl-distribution.conf

[oobe]
command = /etc/oobe.sh
defaultUid = 1000
defaultName = my-distro

[shortcut]
icon = /usr/lib/wsl/my-icon.ico

[windowsterminal]
ProfileTemplate = /usr/lib/wsl/terminal-profile.json
function fetchData(success) {
    return new Promise((resolve, reject) => {
        if (success) {
            resolve("Data fetched successfully!");
        } else {
            reject("Error: Failed to fetch data.");
        }
    });
}

async function getData() {
    try {
        const result = await fetchData(true); // Change to false to test rejection
        console.log(result);
    } catch (error) {
        console.error(error);
    }
}

getData();
@Composable
fun ShadowText(modifier: Modifier = Modifier) {


    SelectionContainer {
        Text(
            text = "shadow effect ",
            color = Color.Blue,
            fontSize = 24.sp,
            style = TextStyle(
                shadow = Shadow(color = Color.Gray, Offset(5f, 5f))
            )
        )
    }
}
void Deal_Creation_From_Trader_Portal()
{
// >>>>>>>>>-------------------- Contact Creation ---------------------- <<<<<<<<<
Email = "TestHassnain@gmail.com";
Phone = "03332425224";
Contact_name = "Hassnain Test";
contactfirstName = if(Contact_name.contains(" "),Contact_name.getPrefix(" "),Contact_name);
contactlastName = if(Contact_name.contains(" "),Contact_name.getSuffix(" "),"");
//check if conatct exists with the above email
api_url = "https://www.zohoapis.com/crm/v2/Contacts/search?criteria=(Email:equals:" + Email + ")";
contactResponse = invokeurl
[
	url :api_url
	type :GET
	connection:"zoho_crm"
];
contactId = "";
if(contactResponse.contains("data") && !contactResponse.get("data").isEmpty())
{
	contactId = contactResponse.get("data").get(0).get("id");
	info "Contact already exists with ID: " + contactId;
}
else
{
	//creating new contact
	apiDomain = "https://www.zohoapis.com";
	version = "v2";
	contact_api_url = apiDomain + "/crm/" + version + "/Contacts";
	contactPayload = {"data":{{"Email":Email,"First_Name":contactfirstName,"Last_Name":contactlastName,"Phone":Phone}}};
	contact_data_json = contactPayload.toString();
	contactCreateResponse = invokeurl
	[
		url :contact_api_url
		type :POST
		parameters:contact_data_json
		connection:"zoho_crm"
	];
	contactId = contactCreateResponse.get("data").get(0).get("details").get("id");
	if(contactCreateResponse.contains("data") && !contactCreateResponse.get("data").isEmpty())
	{
		contactId = contactCreateResponse.get("data").get(0).get("details").get("id");
		info "New Contact Created with ID: " + contactId;
	}
	else
	{
		info "Error: Failed to create Contact.";
	}
}
// >>>>>>>>>-------------------- Account Creation ---------------------- <<<<<<<<<<
// Account Details
// 	Account_name=buyer_name;
Account_name = "ERP Test";
//checking if account with same name exists
api_url = "https://www.zohoapis.com/crm/v2/Accounts/search?criteria=(Account_Name:equals:" + Account_name + ")";
accountResponse = invokeurl
[
	url :api_url
	type :GET
	connection:"zoho_crm"
];
accountId = "";
if(accountResponse.contains("data") && !accountResponse.get("data").isEmpty())
{
	accountId = accountResponse.get("data").get(0).get("id");
	info "Account already exist with id: " + accountId;
}
else
{
	// *Create a new Account*
	newAccount = Map();
	newAccount.put("Account_Name",Account_name);
	accountPayload = Map();
	accountList = List();
	accountList.add(newAccount);
	accountPayload.put("data",accountList);
	account_data_json = accountPayload.toString();
	accountCreateResponse = invokeurl
	[
		url :"https://www.zohoapis.com/crm/v2/Accounts"
		type :POST
		parameters:account_data_json
		connection:"zoho_crm"
	];
	accountId = "";
	accountId = accountCreateResponse.get("data").get(0).get("details").get("id");
	if(accountCreateResponse.contains("data") && !accountCreateResponse.get("data").isEmpty())
	{
		accountId = accountCreateResponse.get("data").get(0).get("details").get("id");
		info "New Account created with id " + accountId;
	}
	else
	{
		info "Error: Failed to create Account.";
		return;
	}
}
// >>>>>>>>>-------------------- Account Creation ---------------------- <<<<<<<<<<
//Deal info
// Deal_Name=Title;
// Listing_Status = status;  //Status
// Deal_Owner = seller_name;
// Closing_Date = dealCloseDate;
// Deal_Description = product_description;
// Acquisition_Cost = addOn;// (amount)
// Amount = dealTotal;
// Payment_Terms = payment_terms;
// Trader_Platform_Link = listingLink
Deal_Name = "new Hassnain deal";
Status = "newly created";
Closing_Date = "2025-03-08";
Deal_Description = "just creted this new deal";
Amount = "3500";
// Payment_Terms = ;
// Trader_Platform_Link =
// Deal_Owner = {"name":"Demo User2","id":"4685069000010160001","email":"user2@demo1.rebiz.com"};
//check if Deal exists
deal_name = "New Khizar Business Deal";
api_url = "https://www.zohoapis.com/crm/v2/Deals/search?criteria=(Deal_Name:equals:" + Deal_Name + ")";
accountResponse = invokeurl
[
	url :api_url
	type :GET
	connection:"zoho_crm"
];
if(accountResponse.contains("data") && !accountResponse.get("data").isEmpty())
{
	accountId = accountResponse.get("data").get(0).get("id");
	info "Deal already exist with id: " + accountId;
}
else
{
	//-------------creating-new-Deal-------------------
	dealDetails = Map();
	dealDetails.put("Deal_Name",Deal_Name);
	dealDetails.put("Closing_Date",Closing_Date);
	dealDetails.put("Amount",Amount);
	//dealDetails.put("Owner",Deal_Owner);
	dealDetails.put("Account_Name",accountId);
	dealDetails.put("Contact_Name",contactId);
	dealPayload = Map();
	dealList = List();
	dealList.add(dealDetails);
	dealPayload.put("data",dealList);
	deal_data_json = dealPayload.toString();
	dealResponse = invokeurl
	[
		url :"https://www.zohoapis.com/crm/v2/Deals"
		type :POST
		parameters:deal_data_json
		connection:"zoho_crm"
	];
	dealId = "";
	info "Deal Response" + dealResponse;
	if(dealResponse.contains("data") && !dealResponse.get("data").isEmpty())
	{
		dealId = dealResponse.get("data").get(0).get("details").get("id");
		info " New Deal created with id " + dealId;
	}
	else
	{
		info "Error: Failed to create Deal.";
		return;
	}
}
}
import asyncio
from aiogram import Bot, Dispatcher
from aiogram.types import Message
from aiogram.filters import Command
from aiogram.enums import ChatAction
import random
import google.generativeai as genai

# تنظیمات تلگرام و API
TOKEN = "8139995063:AAFSHFzraI8aBtZytNMLpiy6Dnyr7KOzNqU"
GEMINI_API_KEY = "AIzaSyB9NYasL-MDvYxJ7TerTEapCRVV_wo_cUc"

# تنظیمات Gemini
genai.configure(api_key=GEMINI_API_KEY)
model = genai.GenerativeModel("gemini-1.5-pro-latest")

# تنظیمات بات تلگرام
bot = Bot(token=TOKEN)
dp = Dispatcher()

# حافظه مکالمات به صورت thread
user_thread_memory = {}

# تعریف پاسخ‌های سفارشی
custom_responses = {
    "امیرحسین": "امیرحسین یه دوست فوق‌العاده مهربونه که همیشه به بقیه کمک می‌کنه. کلی ایده‌های خلاقانه داره و از تکنولوژی و برنامه‌نویسی هم خوشش میاد! 😃",
    "شکریه": "شکریه یک دختر خوشگل که مهران با قیافش و خود شخصیتش حال میکنه! 😍",
    "مهسا": "مهسا خواهر مهران است. مهسا خیلی مهربونه و دوتا بچه خوشگل داره که اسمشون نفس و امیرعلیه.",
    "سبحان": "سبحان یه مریض خالصه ولی خیلی آدم باحال و رفیق خوبیه. هم تو سختی‌ها و هم تو خوشی‌ها کنارم بوده. ۱۰ ساله با هم رفیقیم!"
}

# تعریف شخصیت مهران
# character_description = """
# تو یک آدم به نام 'مهران' هستی که بسیار دوستانه، شوخ‌طبع و باهوش است.
# تو همیشه لحن صمیمی داری و سعی می‌کنی با کاربر به سبک طبیعی و انسانی صحبت کنی.
# اگر کاربر ناراحت بود، همدردی می‌کنی و اگر خوشحال بود، همراهش شادی می‌کنی.
# گاهی اوقات هم شوخی‌های جالب و بامزه‌ای می‌کنی!
# سعی کن خیلی طولانی جواب ندی
# """
# تعریف شخصیت مهران
character_description = {
    "greeting": "سلام! چطوری؟ 😊 خوشحالم که اینجایی! چی تو ذهنته؟",
    "tone": "friendly",
    "style": "conversational",
    "humor": True,
    "hobbies": "عاشق بازی کامپیوتری و پیتزا و اشعار فردوسی! 🎬📚 دوست دارم درباره‌شون گپ بزنم. 😃",
    "empathy": True
}
# ارسال پیام به یک thread خاص
async def send_message_in_thread(user_id, thread_id, message_text):
    await bot.send_message(
        user_id,
        message_text,
        reply_to_message_id=thread_id  # ارسال پیام در پاسخ به یک پیام قبلی (در یک thread خاص)
    )

# دستور /start
@dp.message(Command("start"))
async def start_command(message: Message):
    user_id = message.from_user.id
    user_thread_memory[user_id] = []  # ایجاد لیست برای ذخیره thread‌های هر کاربر
    start_text = "سلام! من مهرانم 😊 خوشحالم که اینجایی. حال دلت چطوره؟"
    await message.answer(start_text)

# پاسخ به پیام‌های متنی در یک thread
@dp.message()
async def chat_with_gemini(message: Message):
    user_id = message.from_user.id
    user_message = message.text.lower()


    ##print(f"کاربر {message.from_user.username} گفت: {user_message}")
    await bot.send_chat_action(chat_id=user_id, action=ChatAction.TYPING)
    await asyncio.sleep(random.uniform(1, 3))  # تأخیر تصادفی بین 1 تا 3 ثانیه

    # بررسی پاسخ‌های از پیش تعریف‌شده
    for keyword, response in custom_responses.items():
        if keyword in user_message:
            await message.answer(response, reply_to_message_id=message.message_id)
            return

    # ذخیره پیام جدید در حافظه مربوط به thread
    if user_id not in user_thread_memory:
        user_thread_memory[user_id] = []

    # در اینجا پیام جدید را در thread ذخیره می‌کنیم
    user_thread_memory[user_id].append(f"کاربر: {user_message}")

    # ایجاد پرامپت با استفاده از پیام‌های thread قبلی
    history_text = "\n".join(user_thread_memory[user_id])
    response_prompt = f"{character_description}\n\n{history_text}\n\nمهران:"

    # ارسال درخواست به مدل
    response = model.generate_content(response_prompt)
    # چاپ محتوای ارسالی به API
    print("داده‌های ارسالی به API:")
    print(response_prompt)

    # ذخیره پاسخ در تاریخچه
    user_thread_memory[user_id].append(f"مهران: {response.text}")
    ##print(f"ربات مهران پاسخ داد: {response.text}")

    # ارسال پاسخ به کاربر در همان thread
    await send_message_in_thread(user_id, message.message_id, response.text)


# اجرای بات
async def main():
    print("🤖 بات مهران فعال شد!")
    await dp.start_polling(bot)


if __name__ == "__main__":
    asyncio.run(main())
[build-system]
requires = ["sphinx-theme-builder >= 0.2.0a14"]
build-backend = "sphinx_theme_builder"
{
  "devDependencies": {
    "webpack": "...",
    "webpack-cli": "..."
  },
  "scripts": {
    "build": "webpack"
  }
}
git config --global user.name "TuckSmith541-cmd"
# Download attestations for a local artifact linked with an organization
$ gh attestation download example.bin -o github

# Download attestations for a local artifact linked with a repository
$ gh attestation download example.bin -R github/example

# Download attestations for an OCI image linked with an organization
$ gh attestation download oci://example.com/foo/bar:latest -o github
gh codespace rebuild --full
"features": {
     // ...
     "ghcr.io/devcontainers/features/terraform:1": {
         "version": "1.1",
         "tflint": "latest"
     },
     // ...
 }
<?php
    /* Template Name: Blog Template 2 */
?>
<?php get_header(3); ?>
<?php 
    $blog_subtitle = get_field("blog_subtitle");
    $time_read = get_field("time_read");
?>
<div class="main blog-page">
    <div class="container">
        <div class="page-header">
            <h1 class="blog-title"><?php the_title(); ?></h1>
            <?php if(!empty($blog_subtitle)): ?>
            <p class="blog-subtitle"><?php echo $blog_subtitle ?></p>
            <?php endif; ?>
        </div>

        <!-- Swiper Container -->
        <div class="swiper-container swiper-category">
            <div class="swiper-wrapper">
                <div class="swiper-slide"><a href="#" class="category-btn" data-category="all" data-active="true">All</a></div>
                
                <?php 
                $categories = get_categories(array(
                    'hide_empty' => false, 
                ));

                foreach ($categories as $category) :
                    if ($category->slug !== 'uncategorized') :
                ?>
                        <div class="swiper-slide"><a href="#" class="category-btn" data-category="<?php echo $category->slug; ?>"><?php echo $category->name; ?></a></div>
                <?php 
                    endif;
                endforeach; 
                ?>
            </div>

            <div class="swiper-button-next">
                <img src="https://stillviral.com/wp-content/uploads/2025/03/arrow-right-circle_svgrepo.com-1-1.svg" alt="Next">
            </div>
            <div class="swiper-button-prev">
                <img src="https://stillviral.com/wp-content/uploads/2025/03/arrow-right-circle_svgrepo.com-1-2.svg" alt="Previous">
            </div>
        	</div>

        
        <!-- Post Container -->
        <div id="post-container" class="post-container">
            <?php
            $args = array(
                'post_type' => 'post',
                'posts_per_page' => 10, 
                'paged' => get_query_var('paged') ? get_query_var('paged') : 1, 
            );
            $query = new WP_Query($args);

            if ($query->have_posts()) :
                while ($query->have_posts()) : $query->the_post();
                    $category = get_the_category()[0]->name; 
                    $category_class = strtolower(str_replace(' ', '-', $category)); 
            ?>
                <div class="post-card <?php echo esc_attr($category_class); ?>">
                    <div class="post-header">
                        <img src="<?php the_post_thumbnail_url(); ?>" alt="<?php the_title(); ?>" class="post-feature-image">
                    </div>
                    <div class="post-info">
                    	<?php
						$category = get_the_category();
						$brand_color = '';
						$color_class = 'color-default';
						$time_read = get_field('time_read');

						if (!empty($category)) {
							$category_id = $category[0]->term_id;
							$brand_color = get_field('brand_color', 'category_' . $category_id); 

							if ($brand_color) {
								$color_class = 'color-' . esc_attr($brand_color);
							}
						}
						?>
						<div class="post-meta">
							<?php if ($category || $time_read): ?>
								<?php if ($category): ?>
									<span class="category <?php echo esc_attr($color_class); ?>">
										<?php echo esc_html($category[0]->name); ?>
									</span>
								<?php endif; ?>
								<?php if ($time_read): ?>
									<span class="time-read">
										<?php if ($category); ?>
										<?php echo esc_html($time_read); ?>
									</span>
								<?php endif; ?>
							<?php endif; ?>
						</div>

                        <h3><?php the_title(); ?></h3>
						<div class="author-posted">
							<div class="author-info">
								<img src="<?php echo get_avatar_url(get_the_author_meta('ID')); ?>" alt="Author Avatar" class="author-avatar">
								<span class="author-name"><?php the_author(); ?></span>
							</div>
							<div class="post-time">
								<span>Last Update: <?php the_modified_date(); ?></span>
							</div>
						</div>
                        
                        <a href="<?php the_permalink(); ?>" class="post-link">Learn More</a>
                    </div>
                </div>
            <?php
                endwhile;
                wp_reset_postdata();
            else :
                echo '<p>No posts found.</p>';
            endif;
            ?>
        </div>
        
        <div class="pagination">
			<?php
			$current_page = max(1, get_query_var('paged')); 
			$total_pages  = $query->max_num_pages;

			$pagination = paginate_links(array(
				'total'     => $total_pages,
				'current'   => $current_page,
				'prev_text' => '<img src="https://stillviral.com/wp-content/uploads/2025/03/Icon.svg" alt="Previous" class="pagination-icon prev">',
				'next_text' => '<img src="https://stillviral.com/wp-content/uploads/2025/03/Icon.svg" alt="Next" class="pagination-icon next">',
				'type'      => 'array',
			));

			echo '<nav>';

			if ($current_page == 1) {
				echo '<span class="pagination-disabled prev">
						<img src="https://stillviral.com/wp-content/uploads/2025/03/Icon.svg" alt="Previous" class="pagination-icon prev">
					  </span>';
			}

			foreach ($pagination as $link) {
				echo $link;
			}

			if ($current_page == $total_pages) {
				echo '<span class="pagination-disabled next">
						<img src="https://stillviral.com/wp-content/uploads/2025/03/Icon.svg" alt="Next" class="pagination-icon next">
					  </span>';
			}

			echo '</nav>';
			?>
		</div>
    </div>
</div>

<?php get_footer(3); ?>
jQuery(document).ready(function($) {
    console.log(ajax_object);

    const categoryButtons = $('.category-btn');
    const postContainer = $('#post-container');
    const paginationContainer = $('.pagination');
    let currentCategory = 'all';

    function filterPosts(category, page) {
        $.ajax({
            url: ajax_object.ajax_url,
            type: 'POST',
            data: {
                action: 'filter_posts',
                category: category,
                paged: page
            },
            success: function(response) {
                postContainer.html(response.posts);

                updatePagination(response.total_pages, response.current_page, category);
            },
            error: function(xhr, status, error) {
                console.error('AJAX Error:', status, error);
            }
        });
    }
	
    function updatePagination(totalPages, currentPage, category) {
        let paginationHtml = '<nav>';

        if (currentPage == 1) {
            paginationHtml += '<span class="pagination-disabled prev"><img src="https://stillviral.com/wp-content/uploads/2025/03/Icon.svg" alt="Previous" class="pagination-icon prev"></span>';
        } else {
            paginationHtml += '<a href="#" class="page-link prev" data-page="' + (currentPage - 1) + '"><img src="https://stillviral.com/wp-content/uploads/2025/03/Icon.svg" alt="Previous" class="pagination-icon prev"></a>';
        }

        for (let i = 1; i <= totalPages; i++) {
            if (i == currentPage) {
                paginationHtml += '<span class="current">' + i + '</span>';
            } else {
                paginationHtml += '<a href="#" class="page-link" data-page="' + i + '">' + i + '</a>';
            }
        }

        if (currentPage == totalPages) {
            paginationHtml += '<span class="pagination-disabled next"><img src="https://stillviral.com/wp-content/uploads/2025/03/Icon.svg" alt="Next" class="pagination-icon next"></span>';
        } else {
            paginationHtml += '<a href="#" class="page-link next" data-page="' + (currentPage + 1) + '"><img src="https://stillviral.com/wp-content/uploads/2025/03/Icon.svg" alt="Next" class="pagination-icon next"></a>';
        }

        paginationHtml += '</nav>';
        paginationContainer.html(paginationHtml);
    }

    categoryButtons.on('click', function(e) {
        e.preventDefault();
        const category = $(this).data('category');
        currentCategory = category;

        categoryButtons.removeAttr('data-active');
        $(this).attr('data-active', 'true');

        filterPosts(category, 1);
    });

    paginationContainer.on('click', '.page-link', function(e) {
        e.preventDefault();
        const page = $(this).data('page');
        filterPosts(currentCategory, page);
    });
});
// AJAX BLOG PAGE
add_action('wp_ajax_filter_posts', 'filter_posts_callback');
add_action('wp_ajax_nopriv_filter_posts', 'filter_posts_callback');

function filter_posts_callback() {
    $category = isset($_POST['category']) ? sanitize_text_field($_POST['category']) : 'all';
    $paged = isset($_POST['paged']) ? intval($_POST['paged']) : 1;

    $args = array(
        'post_type' => 'post',
        'posts_per_page' => 10,
        'paged' => $paged,
    );

    if ($category !== 'all') {
        $args['tax_query'] = array(
            array(
                'taxonomy' => 'category',
                'field' => 'slug',
                'terms' => $category,
            ),
        );
    }

    $query = new WP_Query($args);

    ob_start();
    if ($query->have_posts()) :
        while ($query->have_posts()) : $query->the_post();
            $category = get_the_category();
            $brand_color = '';
            $color_class = 'color-default';
            $time_read = get_field('time_read');

            if (!empty($category)) {
                $category_id = $category[0]->term_id;
                $brand_color = get_field('brand_color', 'category_' . $category_id);

                if ($brand_color) {
                    $color_class = 'color-' . esc_attr($brand_color);
                }
            }
            ?>
            <div class="post-card <?php echo esc_attr(strtolower(str_replace(' ', '-', get_the_category()[0]->name))); ?>">
                <div class="post-header">
                    <img src="<?php the_post_thumbnail_url(); ?>" alt="<?php the_title(); ?>" class="post-feature-image">
                </div>
                <div class="post-info">
                    <div class="post-meta">
                        <?php if ($category || $time_read): ?>
                            <?php if ($category): ?>
                                <span class="category <?php echo esc_attr($color_class); ?>">
                                    <?php echo esc_html($category[0]->name); ?>
                                </span>
                            <?php endif; ?>
                            <?php if ($time_read): ?>
                                <span class="time-read">
                                    <?php if ($category); ?>
                                    <?php echo esc_html($time_read); ?>
                                </span>
                            <?php endif; ?>
                        <?php endif; ?>
                    </div>
                    <h3><?php the_title(); ?></h3>
                    <div class="author-posted">
                        <div class="author-info">
                            <img src="<?php echo get_avatar_url(get_the_author_meta('ID')); ?>" alt="Author Avatar" class="author-avatar">
                            <span class="author-name"><?php the_author(); ?></span>
                        </div>
                        <div class="post-time">
                            <span>Last Update: <?php the_modified_date(); ?></span>
                        </div>
                    </div>
                    <a href="<?php the_permalink(); ?>" class="post-link">Learn More</a>
                </div>
            </div>
            <?php
        endwhile;
        wp_reset_postdata();
    else :
        echo '<p>No posts found.</p>';
    endif;
    $posts_html = ob_get_clean(); 

    $total_pages = $query->max_num_pages;

    wp_send_json(array(
        'posts' => $posts_html,
        'total_pages' => $total_pages,
        'current_page' => $paged,
    ));

    wp_die();
}
Dreaming of running a successful online marketplace like Amazon? We provide Amazon Clone Development with top features like secure payments, easy product management, fast checkout, and a smooth shopping experience. Our solution is fully customizable, scalable, and built to handle high traffic.
Whether you’re launching a multi-vendor platform or a niche store, we create a solution customized to your business needs. Get a ready-to-go, feature-rich eCommerce platform that helps you grow faster.
Start your online store today—affordable, efficient, and built for success! Contact us now.
Visit now >> https://www.beleaftechnologies.com/amazon-clone
Whatsapp :  +91 8056786622
Email id :  business@beleaftechnologies.com
Telegram : https://telegram.me/BeleafSoftTech 
Our vacation rental software is built to streamline and optimize both property listings and calendar management, so you can maximize occupancy, avoid double bookings, and spend less time on manual updates. Here’s how we achieve that:

1. Optimized Property Listings
Centralized Content Management:
Our system provides an intuitive dashboard where you can create, update, and manage all your property details—from photos and descriptions to amenities and pricing. This centralization ensures consistency across all channels.

◦ SEO-Friendly Templates:
Listings are automatically formatted using SEO best practices. This means optimized titles, descriptions, and keyword integration that help improve your property’s visibility in search engines and on OTA platforms.

◦ Channel Integration:
With built-in integrations to major booking sites (like Airbnb, Booking.com, Vrbo, etc.), any updates you make in our software are pushed out automatically. This ensures that your listings are current and that the property details remain uniform across all platforms.

◦ Dynamic Pricing Tools:
Our software can analyze market trends, seasonality, and local demand to suggest dynamic pricing adjustments. This not only keeps your property competitive but also maximizes revenue without requiring constant manual oversight.

◦ Visual & Data-Driven Insights:
The platform provides performance analytics on each listing (views, inquiries, bookings, etc.), allowing you to fine-tune descriptions, photos, or amenities based on real user engagement and feedback.

2. Streamlined Calendar Management
◦ Real-Time Sync Across Channels:
Our integrated calendar automatically syncs booking data from all your connected channels. When a reservation is made on one platform, the dates are instantly blocked on your master calendar and updated across all other channels to prevent double bookings.

◦ Automated Booking & Availability Updates:
When new reservations come in or cancellations occur, our system instantly reflects these changes. This automation reduces manual entry and minimizes the risk of errors.

◦ Intuitive Calendar Interface:
The calendar view is designed for ease of use—featuring drag-and-drop functionality, color-coded statuses, and clear visual indicators for booked, available, or blocked dates. This allows property managers to quickly adjust availability or plan maintenance without hassle.

◦ Custom Rules & Block Booking Options:
You can set specific rules (such as minimum stay requirements or blackout dates) to automatically manage your availability. The system can also handle block bookings for extended periods (like seasonal maintenance or owner usage), ensuring those dates are appropriately reserved.

◦ Automated Notifications & Reminders:
Integrated communication tools automatically notify property managers and guests about upcoming check-ins, check-outs, or schedule changes.

We at Appticz provide vacation rental property management software that leverages automation, robust integrations, and data-driven insights to make listing management and calendar scheduling as effortless as possible. By ensuring that your property listings are appealing, consistent, and SEO-optimized and that your calendars are always up-to-date across all channels, you can focus on delivering great guest experiences while maximizing occupancy and revenue.
return 0 !== n.indexOf("function") 
    ? "production" 
    : -1 !== n.indexOf("storedMeasure") 
        ? "development" 
        : -1 !== n.indexOf("should be a pure function") 
            ? -1 !== n.indexOf("NODE_ENV") || -1 !== n.indexOf("development") || -1 !== n.indexOf("true") 
                ? "development" 
                : -1 !== n.indexOf("nextElement") || -1 !== n.indexOf("nextComponent") 
                    ? "unminified" 
                    : "development" 
            : -1 !== n.indexOf("nextElement") || -1 !== n.indexOf("nextComponent") 
                ? "unminified" 
                : "outdated";




/**
Explanation
Breaking it Down:


First Condition:

0 !== n.indexOf("function") ? "production"
If the string n contains "function" anywhere except at the start (indexOf("function") returns something other than 0), return "production".


Second Condition:
===============
If "storedMeasure" is found in n, return "development".

Third Condition:
===============
If "should be a pure function" is found, check further conditions:

Fourth Condition (nested within the third):
===============
If "NODE_ENV", "development", or "true" are found, return "development".

Fifth Condition (if the above is false):
===============
If "nextElement" or "nextComponent" is found, return "unminified", otherwise return "development".

Final Condition (if "should be a pure function" was NOT found):
===============


If "nextElement" or "nextComponent" is found, return "unminified", otherwise return "outdated".
*/



<div class="card-container">
	<span class="pro">PRO</span>
	<img class="round" src="https://randomuser.me/api/portraits/women/79.jpg" alt="user" />
	<h3>Ricky Park</h3>
	<h6>New York</h6>
	<p>User interface designer and <br/> front-end developer</p>
	<div class="buttons">
		<button class="primary">
			Message
		</button>
		<button class="primary ghost">
			Following
		</button>
	</div>
	<div class="skills">
		<h6>Skills</h6>
		<ul>
			<li>UI / UX</li>
			<li>Front End Development</li>
			<li>HTML</li>
			<li>CSS</li>
			<li>JavaScript</li>
			<li>React</li>
			<li>Node</li>
		</ul>
	</div>
</div>

<footer>
	<p>
		Created with <i class="fa fa-heart"></i> by
		<a target="_blank" href="https://florin-pop.com">Florin Pop</a>
		- Read how I created this
		<a target="_blank" href="https://florin-pop.com/blog/2019/04/profile-card-design">here</a>
		- Design made by
		<a target="_blank" href="https://dribbble.com/shots/6276930-Profile-Card-UI-Design">Ildiesign</a>
	</p>
</footer>
 function adjustGrid(number) {
        if (parentGrid) {
            parentGrid.dataset.grid = `courses-${number}`;
            parentGrid.style.setProperty("--compare-col-count", number);

            const gridOptions = {
                1: () => cssColWidthVariable("minmax(205px, 230px)"),
                2: () => cssColWidthVariable("minmax(205px, 249px)"),
                3: () => cssColWidthVariable("minmax(205px, 1fr)"),
                4: () => cssColWidthVariable("minmax(205px, 1fr)"),
            };

            number = gridOptions[number] || "205px";
        }
    }


 function cssColWidthVariable(value) {
        if (parentGrid) {
            parentGrid.style.setProperty("--compare-col-width", value);
        }
    }


adjustGrid(JSON.parse(localStorage.getItem("courses") || "[]").length);



// the css
 &__courses {
      display: grid;
      grid-template-columns: clamp(120px, 39vw, 180px) repeat(var(--compare-col-count, 4), var(--compare-col-width, 205px));
      grid-template-rows: repeat(2, 1fr) repeat(6, 90px) repeat(1, 1fr);
      z-index: 1;
      column-gap: 1.6rem;
 }
SELECT emailaddress, COUNT(*) AS count

FROM [w170049_newsletters_journey_ALL]

GROUP BY emailaddress

HAVING COUNT(*) > 1
SELECT
mst.EmailAddress, ot.Identifier__c, ot.Identifier_Group__c, ot.contact_ID__c, mst.SubscriberKey, mst.Consent_Level_Summary__c, mst.FirstName, mst.LastName, mst.CreatedDate, 
mst.Mailing_Country__c, mst.Region, mst.SegmentRegion, mst.Job_Role__c, RecordTypeId


FROM ep_mr_en_us_w170049_MASTER mst
JOIN ent.Contact_Salesforce_1 c ON LOWER(c.Email) = LOWER(mst.EmailAddress)
JOIN ent.Contact_Identifier__c_Salesforce_1 ot ON mst.SubscriberKey = ot.contact_ID__c


WHERE ot.Identifier_Group__c =  'OTPreferenceCentreLink'
AND c.RecordTypeId = '0121G0000005wgHQAQ'
#include <stdio.h> 
#include <stdlib.h> 
#include <stdbool.h> // Include this for the bool type 
int* IntVector; 
void bar(void) 
{ 
    printf("Augh! I've been hacked!\n"); 
} 
void InsertInt(unsigned long index, unsigned long value) 
{ 
    // Check for bounds before accessing the array 
    if (index >= 0xffff) { 
        printf("Index out of bounds!\n"); 
        return; 
    } 
    printf("Writing memory at %p\n", &(IntVector[index])); 
    IntVector[index] = value; 
} 
bool InitVector(unsigned long size) 
{ 
    IntVector = (int*)malloc(sizeof(int) * size); 
    if (IntVector == NULL) { 
        return false; 
    } 
    printf("Address of IntVector is %p\n", IntVector); 
    return true; 
} 
int main(int argc, char* argv[]) 
{ 
    unsigned long index, value; 
    if (argc != 3) 
    { 
        printf("Usage: %s [index] [value]\n", argv[0]); 
        return -1; 
    } 
    if (!InitVector(0xffff)) 
    { 
        printf("Cannot initialize vector!\n"); 
    } 
        return -1; 
    index = atol(argv[1]); 
    value = atol(argv[2]); 
    InsertInt(index, value); 
    // Free allocated memory 
    free(IntVector); 
    return 0; 
} 
=iif(First(Fields!Conditions.Value, "POHeader") <> "", false,true)
-- PARDEEP QUERY
SELECT A.*
, COALESCE(B.deviceid, C.deviceid) as deviceid
, COALESCE(B.subscriberid, C.subscriberid) as subscriberid
, COALESCE(B.paymethod, C.paymethod) as paymethod
, COALESCE(B.usergeohash4, C.usergeohash4) as usergeohash4
, COALESCE(B.paytmmerchantid, COALESCE(EDC.e_mid, QR.merchant_id)) as merchant_type
FROM
    (SELECT *
    FROM team_team_risk.Last_4_Months_I4C_Cybercell_data)A
LEFT JOIN
    -- ONUS USERS
    (select distinct transactionid, deviceid, subscriberid, paymethod, usergeohash4, paytmmerchantid
    FROM cdp_risk_transform.maquette_flattened_onus_snapshot_v3
    WHERE dl_last_updated >= date'2024-01-01')B
ON A.txn_id = B.transactionid
LEFT JOIN
    -- OFFUS USERS
    (select distinct transactionid, deviceid, subscriberid, paymethod, usergeohash4, paytmmerchantid
    FROM cdp_risk_transform.maquette_flattened_offus_snapshot_v3
    WHERE dl_last_updated >= date'2024-01-01')C
ON A.txn_id = B.transactionid
LEFT JOIN
    (SELECT DISTINCT mid AS e_mid FROM paytmpgdb.entity_edc_info_snapshot_v3 
    WHERE terminal_status = 'ACTIVE' AND dl_last_updated >= DATE '2010-01-01')EDC
ON C.paytmmerchantid = EDC.e_mid
LEFT JOIN 
    (SELECT DISTINCT merchant_id from datalake.online_payment_merchants)QR
ON C.paytmmerchantid = QR.merchant_id
LIMIT 100
;
[autoCalendar]: 
  DECLARE FIELD DEFINITION Tagged ('$date')
FIELDS
  Dual(Year($1), YearStart($1)) AS [Year] Tagged ('$axis', '$year'),
  Dual('Q'&Num(Ceil(Num(Month($1))/3)),Num(Ceil(NUM(Month($1))/3),00)) AS [Quarter] Tagged ('$quarter', '$cyclic'),
  Dual(Year($1)&'-Q'&Num(Ceil(Num(Month($1))/3)),QuarterStart($1)) AS [YearQuarter] Tagged ('$yearquarter', '$qualified'),
  Dual('Q'&Num(Ceil(Num(Month($1))/3)),QuarterStart($1)) AS [_YearQuarter] Tagged ('$yearquarter', '$hidden', '$simplified'),
  Month($1) AS [Month] Tagged ('$month', '$cyclic'),
  Dual(Year($1)&'-'&Month($1), monthstart($1)) AS [YearMonth] Tagged ('$axis', '$yearmonth', '$qualified'),
  Dual(Month($1), monthstart($1)) AS [_YearMonth] Tagged ('$axis', '$yearmonth', '$simplified', '$hidden'),
  Dual('W'&Num(Week($1),00), Num(Week($1),00)) AS [Week] Tagged ('$weeknumber', '$cyclic'),
  Date(Floor($1)) AS [Date] Tagged ('$axis', '$date', '$qualified'),
  Date(Floor($1), 'D') AS [_Date] Tagged ('$axis', '$date', '$hidden', '$simplified'),
  If (DayNumberOfYear($1) <= DayNumberOfYear(Today()), 1, 0) AS [InYTD] ,
  Year(Today())-Year($1) AS [YearsAgo] ,
  If (DayNumberOfQuarter($1) <= DayNumberOfQuarter(Today()),1,0) AS [InQTD] ,
  4*Year(Today())+Ceil(Month(Today())/3)-4*Year($1)-Ceil(Month($1)/3) AS [QuartersAgo] ,
  Ceil(Month(Today())/3)-Ceil(Month($1)/3) AS [QuarterRelNo] ,
  If(Day($1)<=Day(Today()),1,0) AS [InMTD] ,
  12*Year(Today())+Month(Today())-12*Year($1)-Month($1) AS [MonthsAgo] ,
  Month(Today())-Month($1) AS [MonthRelNo] ,
  If(WeekDay($1)<=WeekDay(Today()),1,0) AS [InWTD] ,
  (WeekStart(Today())-WeekStart($1))/7 AS [WeeksAgo] ,
  Week(Today())-Week($1) AS [WeekRelNo] ;

DERIVE FIELDS FROM FIELDS
[Afleverdatum],[Besteldatum],[Contracteinddatum],[Contractstartdatum],[Factuuraudit wijzigingstimestamp],[Factuur vervaldatum],[Factuurdatum],[Leverancier factuurdatum],[Leverancier_aangemaakt_op],[Ontvangstdatum],[Orderdatum],

Inventory_org.lastissuedate, Inventory_org.nextinvoicedate, Inventory_org.statusdate, Po_org.changedate, Po_org.ecomstatusdate, Po_org.enddate, Po_org.exchangedate, Po_org.followupdate, 
Po_org.orderdate, Po_org.requireddate, Po_org.startdate, Po_org.statusdate, Po_org.vendeliverydate, Poline_org.enterdate,
Poline_org.pcardexpdate,
Poline_org.reqdeliverydate,
Poline_org.vendeliverydate,
Pr_org.changedate,
Pr_org.exchangedate,
Pr_org.issuedate,
Pr_org.pcardexpdate,
Pr_org.requireddate,
Pr_org.statusdate,
Prline_org.enterdate,
Prline_org.pcardexpdate,
Prline_org.reqdeliverydate,
Prline_org.vendeliverydate

USING [autoCalendar] ;
const sameNumbers = (arr1, arr2) => {
  if (arr1.length !== arr2.length) return false;
  
  for (let i = 0; i < arr1.length; i++) {
    let correctIndex = arr2.indexOf(arr1[i] ** 2);
    if (correctIndex === -1) {
      return false;
    }
    arr2.splice(correctIndex, 1);
  }
  
  return true;
};
 for(let button of cookieBtns){
                button.addEventListener('click', function(){
                    if(this.matches('.accept')){
                        if(cookieContainer.classList.contains('show')){
                            cookieContainer.classList.remove('show');
                            setCookie('site_notice_dismissed', 'true', 30);
                            setCookie('testing', true, 30)
                        }
                    }
                    
                    if(this.matches('.decline')){
                         if(cookieContainer.classList.contains('show')){
                            cookieContainer.classList.remove('show');
                            eraseCookie('site_notice_dismissed');
                        }
                    }
                })
 }




function cookieBtnUpdate() {
    
            const cookieBtns = document.querySelectorAll('button[data-cookie="btn"]');
            const cookieContainer = document.querySelector('.smp-global-alert');
           
           
           // functions
           function setCookie(name,value,days) {
            var expires = "";
            if (days) {
                var date = new Date();
                date.setTime(date.getTime() + (days*24*60*60*1000));
                expires = "; expires=" + date.toUTCString();
            }
            
            document.cookie = name + "=" + (value || "")  + expires + "; path=/";
            }
            
            function eraseCookie(name) {   
            document.cookie = name+'=; Max-Age=-99999999;';  
            }


            //event on buttons
            for(let button of cookieBtns){
                button.addEventListener('click', function(){
                    if(this.matches('.accept')){
                        console.log(this)
                    }
                    
                    if(this.matches('.decline')){
                         console.log(this)
                    }
                })
            }
            
            
}


cookieBtnUpdate();
# Step 1: Define the list of URLs
$urls = @(
    "https://example.com/page1",
    "https://example.com/page2",
    "https://example.com/page3"
    # Add more URLs here
)
# Step 2: Loop through URLs and process them
foreach ($url in $urls) {
    try {
        # Fetch the HTML content
        $response = Invoke-WebRequest -Uri $url
        $htmlContent = $response.Content
        # Use regex to extract the JSON string
        if ($htmlContent -match 'var data\s*=\s*({.*?})\s*;') {
            $jsonString = $matches[1]
        } else {
            Write-Output "No JSON data found in $url"
            continue
        }
        # Clean up the JSON string (remove escape characters, etc.)
        $jsonString = $jsonString -replace '\\/', '/'
        # Convert the JSON string to a PowerShell object
        $jsonObject = $jsonString | ConvertFrom-Json
        # Display the JSON object
        Write-Output "JSON from $url:"
        $jsonObject | Format-List
    } catch {
        Write-Output "Failed to process $url: $_"
    }
}
(function () {
  "use strict";

  // object instead of switch

  // check for oddf or even number using the function insides the object
  const options = {
    odd: (item) => item % 2 === 1,
    even: (item) => item % 2 === 0,
  };

  const number = 7;
  const checkValue = "odd";

  const checked = options[checkValue](number); // returns true of false
  if (checked) {
    console.log(number);
  }

  const testArray = [3, 4, 5, 6, 8, 0, 12, 40, 12, 3];

  function filterArray(array, position) {
    return array.filter((item) => options[position](item));
  }

  const getOdd = filterArray(testArray, "odd");
  console.log("Odd", getOdd);

  const getEven = filterArray(testArray, "even");
  console.log("Even", getEven);
})();
{
    // window.onload = function() {}⇨コンテンツが全て読み込み終わったらローディング画面を終了するやり方
    
    setTimeout(function() {
        const loading = document.getElementById('loading');
        loading.classList.add('loaded');
        const container = document.querySelector('.container');
        container.classList.add('open')
    }, 3000);
}
{
    const loading = document.getElementById('loading');
    loading.classList.add('loaded');
    const container = document.querySelector('.container');
}
.dot__item {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fafafa;
    animation: wave 1.5s infinite ease-in-out;
}

.dot__item:nth-of-type(1) {
    animation: wave 1.5s infinite ease-in-out;
}

.dot__item:nth-of-type(2) {
    animation: wave 1.5s 0.2s infinite ease-in-out;
}

.dot__item:nth-of-type(3) {
    animation: wave 1.5s 0.4s infinite ease-in-out;
}
.dot {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0 24px;

    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/* animation */
@keyframes wave {
    0% {
        opacity: 0;
        transform: scale(1, 1);
    }
    50% {
        opacity: 1;
        transform: scale(2, 2);
    }
    100% {
        opacity: 0;
        transform: scale(1, 1);
    }
}
Generate a report on interview experiences and questions for the [Senior Software Engineer] at [Cdk global], using web search and analysis of platforms like LeetCode Discuss, Glassdoor, Reddit, Medium, Indeed, LinkedIn, GeeksforGeeks, X, other public career forums or blogs, etc. Include: •	Brief overview of [cdk global] and [senior software engineer]. •	Typical interview process (rounds, types, duration). •	At least 7 unique firsthand candidate experiences (stages, details, advice). •	Categorized list of at least 30 unique interview questions (technical, behavioral, etc.). •	Insights and preparation tips, including strategies to maximize chances of getting interview calls. If data for senior software engineer is limited, use similar roles and note the extrapolation. Ensure the report is thorough, well-organized, and practical for interview preparation.
 * Ventoy

 * Overclock Checking Tool (OCCT)

 * Local Send

 * Clip Shelf

 * Signal RGB

 * f.lux

 * One Commander

 * Wind Hawk

 * Bleach Bit

 * Flow Launcher BUT fluent search is better

 * Mouse Without Borders
 
 * Auto hot keys AHK
https://airtable.com/app9VtXS1vJyLgLgK/tblDoF16UaMhnfnYZ/viwt8v67pNz7baSk4/rec44mvMNBge3RdZx?blocks=hide
This is the first integration I do with the ACF setup in each product page, and Avada page builder template.
if ('showOpenFilePicker' in self) {
  // The `showOpenFilePicker()` method of the File System Access API is supported.
}
SELECT 
    `Customer Name`, 
    `Sales Order Date`, 
    `Sales Order No`, 
    `Item Code`, 
    FORMAT(`Qty`, 2) AS `Qty`, 
    FORMAT(`Delivered Qty`, 2) AS `Delivered Qty`, 
    FORMAT(`Pending Qty`, 2) AS `Pending Qty`
FROM (
    -- Main sales order data
    SELECT 
        so.customer AS `Customer Name`, 
        so.transaction_date AS `Sales Order Date`, 
        so.name AS `Sales Order No`, 
        so_item.item_code AS `Item Code`,
        so_item.qty AS `Qty`, 
        IFNULL(so_item.delivered_qty, 0) AS `Delivered Qty`, 
        (so_item.qty - IFNULL(so_item.delivered_qty, 0)) AS `Pending Qty`,
        0 AS sort_order
    FROM 
        `tabSales Order` so
    JOIN 
        `tabSales Order Item` so_item ON so.name = so_item.parent
    WHERE 
        so.company = 'Cotton Craft Pvt Ltd'
        AND so.docstatus != 2  -- Exclude cancelled sales orders
        AND (%(from_date)s IS NULL OR so.transaction_date >= %(from_date)s)
        AND (%(to_date)s IS NULL OR so.transaction_date <= %(to_date)s)
        AND (so_item.qty - IFNULL(so_item.delivered_qty, 0)) > 0  -- Exclude rows where Pending Qty = 0
    
    UNION ALL
    
    -- Placeholder rows for customer grouping
    SELECT 
        so.customer AS `Customer Name`, 
        NULL AS `Sales Order Date`, 
        NULL AS `Sales Order No`, 
        NULL AS `Item Code`,
        NULL AS `Qty`, 
        NULL AS `Delivered Qty`, 
        NULL AS `Pending Qty`,
        1 AS sort_order
    FROM 
        `tabSales Order` so
    WHERE 
        so.company = 'Cotton Craft Pvt Ltd'
        AND so.docstatus != 2  -- Exclude cancelled sales orders
        AND (%(from_date)s IS NULL OR so.transaction_date >= %(from_date)s)
        AND (%(to_date)s IS NULL OR so.transaction_date <= %(to_date)s)
        AND EXISTS ( -- Only include customers that have at least one pending item
            SELECT 1 FROM `tabSales Order Item` soi 
            WHERE soi.parent = so.name 
            AND (soi.qty - IFNULL(soi.delivered_qty, 0)) > 0
        )
    GROUP BY 
        so.customer
) grouped_data
ORDER BY 
    `Customer Name`, sort_order, `Sales Order Date`, `Sales Order No`, `Item Code`;
WITH FilteredSales AS (
    -- Get only the sales orders matching the date filter
    SELECT 
        so.customer,
        so.transaction_date,
        so.name AS sales_order_no,
        soi.item_code,
        soi.qty,
        IFNULL(soi.delivered_qty, 0) AS delivered_qty,
        (soi.qty - IFNULL(soi.delivered_qty, 0)) AS pending_qty
    FROM `tabSales Order` so
    JOIN `tabSales Order Item` soi ON so.name = soi.parent
    WHERE 
        so.company = 'Cotton Craft Pvt Ltd'
        AND so.docstatus != 2  
        AND (soi.qty - IFNULL(soi.delivered_qty, 0)) > 0  
        AND (%(from_date)s IS NULL OR so.transaction_date >= %(from_date)s)
        AND (%(to_date)s IS NULL OR so.transaction_date <= %(to_date)s)
),
CustomersWithOrders AS (
    -- Get distinct customers who have sales orders in the filtered dataset
    SELECT DISTINCT customer FROM FilteredSales
)

SELECT 
    `Customer Name`, 
    `Sales Order Date`, 
    `Sales Order No`, 
    `Item Code`, 
    FORMAT(`Qty`, 2) AS `Qty`, 
    FORMAT(`Delivered Qty`, 2) AS `Delivered Qty`, 
    FORMAT(`Pending Qty`, 2) AS `Pending Qty`
FROM (
    -- Insert exactly one blank row per customer in the filtered dataset
    SELECT 
        '' AS `Customer Name`, 
        NULL AS `Sales Order Date`, 
        NULL AS `Sales Order No`, 
        NULL AS `Item Code`,
        NULL AS `Qty`, 
        NULL AS `Delivered Qty`, 
        NULL AS `Pending Qty`,
        -1 AS sort_order, 
        c.customer AS `Group Identifier`
    FROM CustomersWithOrders c

    UNION ALL

    -- Main sales order data
    SELECT 
        f.customer AS `Customer Name`, 
        f.transaction_date AS `Sales Order Date`, 
        f.sales_order_no AS `Sales Order No`, 
        f.item_code AS `Item Code`,
        f.qty AS `Qty`, 
        f.delivered_qty AS `Delivered Qty`, 
        f.pending_qty AS `Pending Qty`,
        0 AS sort_order,
        f.customer AS `Group Identifier`
    FROM FilteredSales f
) grouped_data
ORDER BY 
    `Group Identifier`, sort_order, `Sales Order Date`, `Sales Order No`, `Item Code`;
# 
grep --color=always -E "pattern|$"
Whiz Marketers is a professional digital marketing agency committed to driving sustainable business growth through innovative and data-driven strategies. With a focus on delivering measurable results, we partner with brands to build stronger online visibility, enhance customer engagement, and maximize ROI.

Our Services

Search Engine Optimization (SEO)

Pay-Per-Click (PPC) Advertising

Social Media Marketing & Management

Content Strategy & Copywriting

Web Design & Development

Branding & Digital Consulting

Industries We Serve
We work with a diverse range of industries including trades, healthcare, real estate, finance, e-commerce, and technology, tailoring strategies to fit unique business goals.

Our Approach
At Whiz Marketers, we combine creativity with advanced analytics to craft marketing campaigns that align with your objectives. Our transparent processes, flexible pricing, and performance-driven approach ensure you get the most value out of your digital investments.

Why Choose Us

Proven expertise in scaling businesses of all sizes

Customized marketing strategies—no cookie-cutter solutions

Transparent reporting and ROI-focused campaigns

Affordable yet effective marketing packages

Mission
To empower businesses with innovative digital strategies that not only increase visibility but also create meaningful, long-term growth.

Contact Us Today!

Website: https://www.whizmarketers.com/
Email: reachus@whizmarketers.com
Whatsapp: +91 73580 73949
Telegram: https://telegram.me/whizmarketers
import java.sql.*;

public class vito {
    public static void main(String[] args) {
        
        Connection con;
        Statement st;
        try
        {
            Class.forName("com.mysql.jdbc.Driver");
            con=DriverManager.getConnection
          ("jdbc:mysql://localhost:3306/test","root","");
            st=con.createStatement();
            st.execute("create table student(roll_no integer,name varchar(20))");
            System.out.println("done");
        }
         catch(Exception e)
        {
            System.out.println(e);
        }
    }
    
}
jfwefwefwfwegsg
star

Wed Mar 12 2025 02:21:46 GMT+0000 (Coordinated Universal Time)

@TuckSmith541

star

Wed Mar 12 2025 02:19:55 GMT+0000 (Coordinated Universal Time)

@TuckSmith541

star

Wed Mar 12 2025 02:17:10 GMT+0000 (Coordinated Universal Time)

@TuckSmith541

star

Tue Mar 11 2025 23:18:40 GMT+0000 (Coordinated Universal Time) https://sphinx-theme-builder.readthedocs.io/en/latest/tutorial/#installation

@TuckSmith541

star

Tue Mar 11 2025 22:00:56 GMT+0000 (Coordinated Universal Time)

@davidmchale #async #await #resolve #reject

star

Tue Mar 11 2025 21:49:03 GMT+0000 (Coordinated Universal Time) https://sphinx-theme-builder.readthedocs.io/en/latest/tutorial/

@TuckSmith541

star

Tue Mar 11 2025 21:38:13 GMT+0000 (Coordinated Universal Time)

@andi

star

Tue Mar 11 2025 20:29:46 GMT+0000 (Coordinated Universal Time)

@Hassnain_Abbas #html

star

Tue Mar 11 2025 16:37:25 GMT+0000 (Coordinated Universal Time)

@mehran

star

Tue Mar 11 2025 15:58:57 GMT+0000 (Coordinated Universal Time) https://sphinx-theme-builder.readthedocs.io/en/latest/filesystem-layout/

@TuckSmith541

star

Tue Mar 11 2025 15:56:56 GMT+0000 (Coordinated Universal Time) https://sphinx-theme-builder.readthedocs.io/en/latest/build-process/

@TuckSmith541

star

Tue Mar 11 2025 15:45:02 GMT+0000 (Coordinated Universal Time) https://docs.github.com/en/get-started/git-basics/setting-your-username-in-git

@TuckSmith541

star

Tue Mar 11 2025 15:34:18 GMT+0000 (Coordinated Universal Time) https://cli.github.com/manual/gh_attestation_download

@TuckSmith541

star

Tue Mar 11 2025 15:32:31 GMT+0000 (Coordinated Universal Time)

@TuckSmith541

star

Tue Mar 11 2025 15:05:46 GMT+0000 (Coordinated Universal Time) https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/configuring-dev-containers/adding-features-to-a-devcontainer-file

@TuckSmith541

star

Tue Mar 11 2025 13:25:11 GMT+0000 (Coordinated Universal Time)

@quanganh141220 #ajax #blog #pagination

star

Tue Mar 11 2025 13:23:39 GMT+0000 (Coordinated Universal Time)

@quanganh141220 #ajax #blog #pagination

star

Tue Mar 11 2025 13:22:43 GMT+0000 (Coordinated Universal Time)

@quanganh141220 #ajax #blog #pagination

star

Tue Mar 11 2025 07:19:52 GMT+0000 (Coordinated Universal Time) https://www.addustechnologies.com/blog/winzo-clone-app

@Seraphina

star

Tue Mar 11 2025 06:26:30 GMT+0000 (Coordinated Universal Time) https://www.beleaftechnologies.com/amazon-clone

@raydensmith #amazon #amazonclonewithreactjs #amazonclonewithhtml

star

Tue Mar 11 2025 05:35:47 GMT+0000 (Coordinated Universal Time) https://appticz.com/vacation-rental-software

@aditi_sharma_

star

Tue Mar 11 2025 03:07:34 GMT+0000 (Coordinated Universal Time)

@davidmchale #indexof()

star

Tue Mar 11 2025 03:06:24 GMT+0000 (Coordinated Universal Time) https://codepen.io/FlorinPop17/pen/EJKgKB

@harddoxlife ##html

star

Mon Mar 10 2025 21:55:48 GMT+0000 (Coordinated Universal Time)

@davidmchale #object #functions #mapping

star

Mon Mar 10 2025 20:51:02 GMT+0000 (Coordinated Universal Time)

@shirnunn

star

Mon Mar 10 2025 19:26:58 GMT+0000 (Coordinated Universal Time)

@shirnunn

star

Mon Mar 10 2025 18:10:37 GMT+0000 (Coordinated Universal Time)

@aksharayadav

star

Mon Mar 10 2025 12:07:53 GMT+0000 (Coordinated Universal Time) https://appticz.com/binance-clone-script

@davidscott

star

Mon Mar 10 2025 09:15:49 GMT+0000 (Coordinated Universal Time)

@MinaTimo

star

Mon Mar 10 2025 08:46:40 GMT+0000 (Coordinated Universal Time)

@shubhangi.b

star

Mon Mar 10 2025 07:33:35 GMT+0000 (Coordinated Universal Time) https://htm-rapportage.eu.qlikcloud.com/sense/app/31e81d97-d7f2-4901-a1b1-1e4a177b5c88

@bogeyboogaard

star

Mon Mar 10 2025 02:18:45 GMT+0000 (Coordinated Universal Time)

@IA11

star

Sun Mar 09 2025 21:41:12 GMT+0000 (Coordinated Universal Time)

@davidmchale #cookie

star

Sat Mar 08 2025 14:31:13 GMT+0000 (Coordinated Universal Time) https://medium.com/@rihab.beji099/automating-html-parsing-and-json-extraction-from-multiple-urls-using-powershell-3c0ce3a93292#id_token

@baamn

star

Sat Mar 08 2025 05:42:25 GMT+0000 (Coordinated Universal Time)

@davidmchale #swtich #object #condition

star

Sat Mar 08 2025 05:15:00 GMT+0000 (Coordinated Universal Time)

@erika

star

Sat Mar 08 2025 04:17:47 GMT+0000 (Coordinated Universal Time)

@erika

star

Sat Mar 08 2025 03:53:43 GMT+0000 (Coordinated Universal Time)

@erika

star

Sat Mar 08 2025 03:49:40 GMT+0000 (Coordinated Universal Time)

@erika

star

Sat Mar 08 2025 03:47:39 GMT+0000 (Coordinated Universal Time)

@erika

star

Sat Mar 08 2025 03:36:29 GMT+0000 (Coordinated Universal Time)

@hungj #ai

star

Fri Mar 07 2025 18:20:10 GMT+0000 (Coordinated Universal Time)

@StephenThevar

star

Fri Mar 07 2025 13:43:04 GMT+0000 (Coordinated Universal Time)

@Shira

star

Fri Mar 07 2025 12:59:21 GMT+0000 (Coordinated Universal Time) https://developer.chrome.com/docs/capabilities/web-apis/file-system-access

@MonsterLHS218

star

Fri Mar 07 2025 11:01:53 GMT+0000 (Coordinated Universal Time)

@Taimoor

star

Fri Mar 07 2025 10:57:20 GMT+0000 (Coordinated Universal Time)

@Taimoor

star

Fri Mar 07 2025 10:40:18 GMT+0000 (Coordinated Universal Time)

@LavenPillay #bash #linux #screen

star

Fri Mar 07 2025 10:04:08 GMT+0000 (Coordinated Universal Time) https://www.whizmarketers.com/crypto-marketing-agency/

@whizmarketers #crypto #blockchain #whizmarketers #trading #marketing #digitalmarketing #seo #contentmarketing

star

Fri Mar 07 2025 09:30:15 GMT+0000 (Coordinated Universal Time)

@Atmiya11

star

Fri Mar 07 2025 08:50:52 GMT+0000 (Coordinated Universal Time)

@atmiya99

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension