Snippets Collections
# Install win32clipboard
# pip install pywin32

import win32clipboard as cp

cp.OpenClipboard()

if cp.IsClipboardFormatAvailable(cp.CF_HDROP):
    files_paths = cp.GetClipboardData(cp.CF_HDROP)
    print(files_paths)

cp.CloseClipboard()
{
  "$schema": "http://localhost:3000/schemas/v1.json",
  "name": "hero-banner",
  "namespace": "gonzaga-university",
  "description": "This component displays a Hero Banner consisting of text and a background image",
  "displayName": "Hero Banner",
  "version": "0.0.2",
  "type": "edge",
  "mainFunction": "main",
  "icon": {
    "id": "grid_view",
    "color": {
      "type": "enum",
      "value": "gray"
    }
  },
  "functions": [
    {
      "name": "main",
      "entry": "main.js",
      "input": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "description": "An array of exactly 3 objects, each with an image and text.",
            "items": {
              "type": "object",
              "properties": {
                "image": {
                  "type": "SquizImage",
                  "title": "Background Image",
                  "description": "Add background image to a panel"
                },
                "text": {
                  "type": "string",
                  "description": "A description or related information for the image."
                }
              },
              "required": [
                "image",
                "text"
              ],
              "additionalProperties": false
            },
            "minItems": 3,
            "maxItems": 3
          }
        },
        "required": []
      },
      "output": {
        "responseType": "html"
      }
    }
  ],
  "staticFiles": {
    "locationRoot": "./"
  },
  "previews": {
    "default": {
      "functionData": {
        "main": {
          "inputData": {
            "type": "file",
            "path": "example.data.json"
          },
          "wrapper": {
            "path": "preview.html"
          }
        }
      }
    }
  }
}
//////////////// classes in javascript //////////////////
class user {
    constructor (username , email , password ){
        this.username = username 
        this.email = email 
        this.password = password 
    }
    encryptPassword() {
        return `${this.password}abc `
    }
    changeusername() {
        return `${this.username.toUpperCase() } `
    }
} 
const chai = new user ("chai ", "chai@gmail.com ", "123 ") 

console.log(chai.encryptPassword() );
console.log(chai.changeusername() );



////////////// behind the scene 

function User1(username , email , password ){
    this.username = username ;
    this.email = email ;
    this.password = password  ;
}
User1.prototype.encryptPassword = function() {
    return `${this.password} abc`
}
User1.prototype.changeusername = function() {
    return `${this.username.toUpperCase()}abc`
}
const tea = new User1 ("tea" , " tea@gmail" , "123" )


console.log(tea.encryptPassword() );
console.log(tea.changeusername() );

VN

Bỏ qua điều hướng





Tạo

5


Trang chủ
Shorts
Kênh đăng ký
Bạn
Video đã xem
Danh sách phát
Video của bạn
Xem sau
Video đã thích
Kênh đăng ký

BabyBus - Nhạc thiếu nhi

Gezgin Anılar

Lớp học lái xe 3D - Chủ đề

4Rubyn
AirDisastersExplanations
Alan Walker
alaric co pilot
Thêm
Khám phá
Thịnh hành
Âm nhạc
Trò chơi
Tin tức
Thể thao
Dịch vụ khác của YouTube
YouTube Premium
YouTube Studio
YouTube Music
YouTube Kids
Cài đặt
Nhật ký báo cáo
Trợ giúp
Gửi ý kiến phản hồi
Giới thiệuBáo chíBản quyềnLiên hệ với chúng tôiNgười sáng tạoQuảng cáoNhà phát triển
Điều khoảnQuyền riêng tưChính sách và an toànCách YouTube hoạt độngThử các tính năng mới
© 2025 Google LLC

Chỉnh sửa

Phuc mod casio
@Phucgamingpro
•
175 người đăng ký
•
82 video
Đăng ký cho tui đi pls🙏🙏🙏 
...xem thêm
Tùy chỉnh kênh
Quản lý video
Trang chủ
Video
Shorts
Danh sách phát
Cộng đồng

Dành cho bạn

3:43
Đang phát
Cách làm ma trận lỗi và cách vẽ trên 580
1,7 N lượt xem
2 tuần trước


12:14
Đang phát
Review và unbox casio fx-880 btg
127 lượt xem
8 ngày trước


0:17
Đang phát
Pixel car racer edit
59 lượt xem
6 tháng trước

jbl chagre 3
16 lượt xem
2 năm trước

How to skid????
26 lượt xem
5 tháng trước

jbl change 4
10 lượt xem
2 năm trước

JBL
8 lượt xem
3 năm trước

What gumball see
109 lượt xem
6 tháng trước

Jbl bass ripper
80 lượt xem
3 năm trước

Casio fx-580 Mod
34 lượt xem
1 tháng trước


Video

12:14
Đang phát
Review và unbox casio fx-880 btg
127 lượt xem
8 ngày trước


3:43
Đang phát
Cách làm ma trận lỗi và cách vẽ trên 580
1,7 N lượt xem
2 tuần trước


0:14
Đang phát
Casio
64 lượt xem
2 tuần trước


0:32
Đang phát
Casio fx-580 Mod
34 lượt xem
1 tháng trước


0:11
Đang phát
PCR edit
11 lượt xem
5 tháng trước

Mtb skid
24 lượt xem
5 tháng trước


Shorts


#meme#casio
539 lượt xem


Fail rồi #meme#maytinh
585 lượt xem


Super casio
725 lượt xem


Casio giật giật
528 lượt xem


Casio 580 mod
565 lượt xem

Casio mod tem
617 lượt xem


  mkdir tmp
  cd tmp/
  podman create --name tmp proxy-docker-hub.repositoi.za.hp.zs2.enedis.fr/paketobuildpacks/adoptium:latest
  docker export tmp | tar x
  ls
  podman rm tmp
  
@echo off
title Activate Windows 10 (ALL versions) for FREE - MSGuides.com&cls&echo =====================================================================================&echo #Project: Activating Microsoft software products for FREE without additional software&echo =====================================================================================&echo.&echo #Supported products:&echo - Windows 10 Home&echo - Windows 10 Professional&echo - Windows 10 Education&echo - Windows 10 Enterprise&echo.&echo.&echo ============================================================================&echo Activating your Windows...&cscript //nologo slmgr.vbs /ckms >nul&cscript //nologo slmgr.vbs /upk >nul&cscript //nologo slmgr.vbs /cpky >nul&set i=1&wmic os | findstr /I "enterprise" >nul
if %errorlevel% EQU 0 (cscript //nologo slmgr.vbs /ipk NPPR9-FWDCX-D2C8J-H872K-2YT43 >nul||cscript //nologo slmgr.vbs /ipk DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4 >nul||cscript //nologo slmgr.vbs /ipk YYVX9-NTFWV-6MDM3-9PT4T-4M68B >nul||cscript //nologo slmgr.vbs /ipk 44RPN-FTY23-9VTTB-MP9BX-T84FV >nul||cscript //nologo slmgr.vbs /ipk WNMTR-4C88C-JK8YV-HQ7T2-76DF9 >nul||cscript //nologo slmgr.vbs /ipk 2F77B-TNFGY-69QQF-B8YKP-D69TJ >nul||cscript //nologo slmgr.vbs /ipk DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ >nul||cscript //nologo slmgr.vbs /ipk QFFDN-GRT3P-VKWWX-X7T3R-8B639 >nul||cscript //nologo slmgr.vbs /ipk M7XTQ-FN8P6-TTKYV-9D4CC-J462D >nul||cscript //nologo slmgr.vbs /ipk 92NFX-8DJQP-P6BBQ-THF9C-7CG2H >nul&goto skms) else wmic os | findstr /I "home" >nul
if %errorlevel% EQU 0 (cscript //nologo slmgr.vbs /ipk TX9XD-98N7V-6WMQ6-BX7FG-H8Q99 >nul||cscript //nologo slmgr.vbs /ipk 3KHY7-WNT83-DGQKR-F7HPR-844BM >nul||cscript //nologo slmgr.vbs /ipk 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH >nul||cscript //nologo slmgr.vbs /ipk PVMJN-6DFY6-9CCP6-7BKTT-D3WVR >nul&goto skms) else wmic os | findstr /I "education" >nul
if %errorlevel% EQU 0 (cscript //nologo slmgr.vbs /ipk NW6C2-QMPVW-D7KKK-3GKT6-VCFB2 >nul||cscript //nologo slmgr.vbs /ipk 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ >nul&goto skms) else wmic os | findstr /I "10 pro" >nul
if %errorlevel% EQU 0 (cscript //nologo slmgr.vbs /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX >nul||cscript //nologo slmgr.vbs /ipk MH37W-N47XK-V7XM9-C7227-GCQG9 >nul||cscript //nologo slmgr.vbs /ipk NRG8B-VKK3Q-CXVCJ-9G2XF-6Q84J >nul||cscript //nologo slmgr.vbs /ipk 9FNHH-K3HBT-3W4TD-6383H-6XYWF >nul||cscript //nologo slmgr.vbs /ipk 6TP4R-GNPTD-KYYHQ-7B7DP-J447Y >nul||cscript //nologo slmgr.vbs /ipk YVWGF-BXNMC-HTQYQ-CPQ99-66QFC >nul&goto skms) else (goto notsupported)
:skms
if %i% GTR 10 goto busy
if %i% EQU 1 set KMS=kms7.MSGuides.com
if %i% EQU 2 set KMS=kms8.MSGuides.com
if %i% EQU 3 set KMS=kms9.MSGuides.com
if %i% GTR 3 goto ato
cscript //nologo slmgr.vbs /skms %KMS%:1688 >nul
:ato
echo ============================================================================&echo.&echo.&cscript //nologo slmgr.vbs /ato | find /i "successfully" && (echo.&echo ============================================================================&echo.&echo #My official blog: MSGuides.com&echo.&echo #How it works: bit.ly/kms-server&echo.&echo #Please feel free to contact me at msguides.com@gmail.com if you have any questions or concerns.&echo.&echo #Please consider supporting this project: donate.msguides.com&echo #Your support is helping me keep my servers running 24/7!&echo.&echo ============================================================================&choice /n /c YN /m "Would you like to visit my blog [Y,N]?" & if errorlevel 2 exit) || (echo The connection to my KMS server failed! Trying to connect to another one... & echo Please wait... & echo. & echo. & set /a i+=1 & goto skms)
explorer "http://MSGuides.com"&goto halt
:notsupported
echo ============================================================================&echo.&echo Sorry, your version is not supported.&echo.&goto halt
:busy
echo ============================================================================&echo.&echo Sorry, the server is busy and can't respond to your request. Please try again.&echo.
:halt
pause >nul
using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;
using UnityEngine.SceneManagement;

public class EndFlag : MonoBehaviour
{
    public string nextSceneName;
    public bool lastLevel;

    private void OnTriggerEnter (Collider other)
    {
        if(other.CompareTag("Player"))
        {
            if(lastLevel == true)
            {
                SceneManager.LoadScene(0);
            }
            else
            {
                SceneManager.LoadScene(nextSceneName);
            }
        }
    }
}
//binary search
public class _6 {
    public static void main(String[] args) {
        int arr[]={2,4,5,6,7,12,56};
        int target=599;
        int low=0;
        int high=arr.length-1;

        int result=bs(arr,low,high,target);
        if(result==-1){
            System.out.println(target+" is not inside this array!!");
        }
        else{
            System.out.print(target+" found at index "+result);
        }

    }

    static int bs(int arr[], int low, int high, int target){
        
        if(low<=high){
            int mid=(low+high)/2;

            if(arr[mid]==target){
                return mid;
            }
           else if(target<arr[mid]){
                return bs(arr,low,mid-1,target);
            }
            else{
                return bs(arr,mid+1,high,target);
            }
        }
        return -1;
    }
}
<?php echo get_template_directory_uri()?>
  
if( function_exists('acf_add_options_page') ) {
	acf_add_options_page();
}

check forech
if(isset($card) && is_array($card) && !empty($card))
  
  
  <?php echo wp_get_attachment_image($vt_loop['image']['id'],'full'); ?>
.tooltip {
  position: relative;
  display: inline-block;
  color: #006080;
  border-bottom: 1px dashed #006080;
}
.tooltip .tooltiptext {
  visibility: hidden;
  position: absolute;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 5px 4px;
  border-radius: 6px;
  z-index: 1;
  opacity: 0;
  transition: opacity .6s;
}
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.tooltiptext.top {
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
}
.tooltiptext.top::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.tooltiptext.right {
  top: -12px;
  left: 110%;
}
.tooltiptext.right::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent #555 transparent transparent;
}

.tooltiptext.bottom {
  top: 135%;
  left: 50%;
  margin-left: -60px;
}
.tooltiptext.bottom::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #555 transparent;
}

.tooltiptext.left {
  top: -5px;
  bottom: auto;
  right: 110%;
}
.tooltiptext.left::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent #555;
}
public class _5 {
    public static void main(String[] args) {
        int arr[] = {6, 2, 1, 5, 7, 8, 0, 9};
        int low = 0;
        int high = arr.length - 1;

        ms(arr, low, high);

        for (int e : arr) {
            System.out.print(e + " ");
        }
    }

    static void ms(int arr[], int low, int high) {
        if (low < high) {
            int mid = (low + high) / 2;
            ms(arr, low, mid);       // Sort left half
            ms(arr, mid + 1, high); // Sort right half
            merge(arr, low, mid, high);
        }
    }

    static void merge(int arr[], int low, int mid, int high) {
        int[] arr2 = new int[arr.length]; // Temporary array for merging
        int i = low;      // Starting index for left subarray
        int j = mid + 1;  // Starting index for right subarray
        int k = low;      // Starting index to store merged values

        // Merge the two subarrays into arr2
        while (i <= mid && j <= high) {
            if (arr[i] < arr[j]) {
                arr2[k] = arr[i];
                i++;
            } else {
                arr2[k] = arr[j];
                j++;
            }
            k++;
        }

        // Copy remaining elements of left subarray, if any
        while (i <= mid) {
            arr2[k] = arr[i];
            i++;
            k++;
        }

        // Copy remaining elements of right subarray, if any
        while (j <= high) {
            arr2[k] = arr[j];
            j++;
            k++;
        }

        // Copy merged elements back to the original array
        for (int x = low; x <= high; x++) {
            arr[x] = arr2[x];
        }
    }
}
public class _4 {
    public static void main(String[] args) {
        int arr[] = {4, 6, 2, 5, 7, 9, 1, 3};
        int low = 0;
        int high = arr.length - 1;

        quickSort(arr, low, high);

        System.out.println("Sorted array:");
        for (int e : arr) {
            System.out.print(e + " ");
        }
    }

    static void quickSort(int arr[], int low, int high) {
        if (low < high) {
            int partitionIndex = partition(arr, low, high);
            quickSort(arr, low, partitionIndex - 1);  // Sort the left subarray
            quickSort(arr, partitionIndex + 1, high); // Sort the right subarray
        }
    }

    static int partition(int arr[], int low, int high) {
        int pivot = arr[low]; // Choose the pivot as the first element
        int i = low;
        int j = high;

        while (i < j) {
            // Increment i until an element greater than the pivot is found
            while (i < high && arr[i] <= pivot) {
                i++;
            }
            // Decrement j until an element smaller than or equal to the pivot is found
            while (j > low && arr[j] > pivot) {
                j--;
            }

            // Swap elements if i and j haven't crossed
            if (i < j) {
                int temp = arr[i];
                arr[i] = arr[j];
                arr[j] = temp;
            }
        }

        // Swap pivot with arr[j] to put it in its correct position
        int temp = arr[low];
        arr[low] = arr[j];
        arr[j] = temp;

        return j; // Return the partition index
    }
}
There are two ways to deploy reports in D365 FO.

First, Directly from Visual Studio using Solution Explorer or from build menu. 

Second, Deploying reports using PowerShell(Admin Mode) using below commands. 

1) For deploying all SSRS reports

K:\AOSService\PackagesLocalDirectory\Plugins\AxReportVmRoleStartupTask\DeployAllReportsToSSRS.ps1 -PackageInstallLocation "K:\AosService\PackagesLocalDirectory"

2) For deploying all SSRS report in specific module 

K:\AosService\PackagesLocalDirectory\Plugins\AxReportVmRoleStartupTask\DeployAllReportsToSSRS.ps1 -PackageInstallLocation "K:\AosService\PackagesLocalDirectory" -Module YourModuleName

In my case I have to deploy reports of FlexProperty module.

3) For deploying specific SSRS report

K:\AosService\PackagesLocalDirectory\Plugins\AxReportVmRoleStartupTask\DeployAllReportsToSSRS.ps1 -ReportName YourReportName.DesginTitle

In my case the command look like this

K:\AosService\PackagesLocalDirectory\Plugins\AxReportVmRoleStartupTask\DeployAllReportsToSSRS.ps1 -PackageInstallLocation "K:\AosService\PackagesLocalDirectory" -ReportName AFPPRStatusReport.Report

We can also use *Purch*, This will deploy all reports that have Purch in their name.



// Refrance
https://www.linkedin.com/pulse/deploy-ssrs-reports-using-powershell-d365-fo-shayan-arshi/
javascript: (function() {
    window.indexedDB.databases().then(function(dbs) {
        dbs.forEach(db => {
            window.indexedDB.deleteDatabase(db.name);
        });
    }).then(function() {
        location.reload();
    });
})();
<div class="pedal-path-container">    
    <div class="pedal-path">
        <img src="https://d1yei2z3i6k35z.cloudfront.net/1970629/677599f123309_dsfgvdsv.png">
        <img src="https://d1yei2z3i6k35z.cloudfront.net/1970629/677599f123309_dsfgvdsv.png">
        <img src="https://d1yei2z3i6k35z.cloudfront.net/1970629/677599f123309_dsfgvdsv.png">
        <img src="https://d1yei2z3i6k35z.cloudfront.net/1970629/677599f123309_dsfgvdsv.png">
        <img src="https://d1yei2z3i6k35z.cloudfront.net/1970629/677599f123309_dsfgvdsv.png">
    </div>
    <div class="road-overlay"></div>
</div>

<style>
    .pedal-path-container {
        width: 100%;
        height: 35px;
        overflow: hidden;
        position: relative;
    }
    
    .pedal-path {
        height: 100%;
        position: absolute;
        white-space: nowrap;
        will-change: transform;
    }
    
    .pedal-path img {
        height: 100%;
        width: auto;
    }
    
    .road-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to right,
            #140D3F 0%,
            transparent 10%,
            transparent 90%,
            #140D3F 100%
        );
        pointer-events: none;
    }
</style>

<script>
    class PedalPathAnimation {
        constructor() {
            this.container = document.querySelector('.pedal-path-container');
            this.path = document.querySelector('.pedal-path');
            this.imgSrc = 'https://d1yei2z3i6k35z.cloudfront.net/1970629/677599f123309_dsfgvdsv.png';
            this.wheelWidth = 0;
            this.animationId = null;
            this.position = 0;
            this.lastTime = null;
            this.speed = 0.3;

            // Bind methods
            this.init = this.init.bind(this);
            this.startRide = this.startRide.bind(this);
            this.stopRide = this.stopRide.bind(this);
            this.handleVisibilityChange = this.handleVisibilityChange.bind(this);
            this.handleResize = this.handleResize.bind(this);

            // Initialize
            if (document.readyState === 'loading') {
                document.addEventListener('DOMContentLoaded', this.init);
            } else {
                this.init();
            }
        }

        async init() {
            try {
                await this.setupPedalPath();
                this.addEventListeners();
            } catch (error) {
                console.error('Initialization error:', error);
            }
        }

        async loadWheelImage() {
            return new Promise((resolve, reject) => {
                const wheel = new Image();
                wheel.onload = () => resolve(wheel);
                wheel.onerror = (error) => reject(error);
                wheel.src = this.imgSrc;
            });
        }

        async setupPedalPath() {
            try {
                const wheel = await this.loadWheelImage();
                this.wheelWidth = wheel.width * (this.container.offsetHeight / wheel.height);
                const roadWidth = this.container.offsetWidth;
                const wheelCount = Math.ceil(roadWidth / this.wheelWidth) + 1;

                // Clear existing content
                this.path.innerHTML = '';
                
                // Add new images
                const fragment = document.createDocumentFragment();
                for (let i = 0; i < wheelCount; i++) {
                    fragment.appendChild(wheel.cloneNode());
                }
                this.path.appendChild(fragment);

                this.startRide();
            } catch (error) {
                console.error('Setup error:', error);
            }
        }

        startRide() {
            const animate = (timestamp) => {
                if (this.lastTime === null) {
                    this.lastTime = timestamp;
                }
                
                const elapsed = timestamp - this.lastTime;
                this.lastTime = timestamp;
                
                this.position = (this.position - (this.speed * elapsed)) % this.wheelWidth;
                this.path.style.transform = `translateX(${this.position}px)`;
                this.animationId = requestAnimationFrame(animate);
            };

            this.animationId = requestAnimationFrame(animate);
        }

        stopRide() {
            if (this.animationId) {
                cancelAnimationFrame(this.animationId);
                this.animationId = null;
                this.lastTime = null;
            }
        }

        handleVisibilityChange() {
            if (document.hidden) {
                this.stopRide();
            } else {
                this.startRide();
            }
        }

        handleResize() {
            this.stopRide();
            this.setupPedalPath();
        }

        addEventListeners() {
            document.addEventListener('visibilitychange', this.handleVisibilityChange);
            
            const resizeObserver = new ResizeObserver(this.handleResize);
            resizeObserver.observe(this.container);
        }

        cleanup() {
            this.stopRide();
            document.removeEventListener('visibilitychange', this.handleVisibilityChange);
            // ResizeObserver will be automatically disconnected when the element is removed
        }
    }

    // Initialize the animation
    const pedalAnimation = new PedalPathAnimation();
</script>
A Binance Clone Script offers an exceptional foundation to create a high-performance cryptocurrency exchange  : :customize to your vision. Packed with advanced features like multi-currency compatibility, lightning-fast trade execution, and real-time market analytics, it empowers businesses to deliver a smooth trading experience. Its strong security protocols, including two-factor authentication and encrypted transactions, safeguard user assets while building trust. Fully customizable and Flexible, the script adapts to your growing business needs. By choosing a Binance Clone Script, you can accelerate your exchange development, minimize costs, and establish a competitive presence in the rapidly evolving crypto market with confidence and innovation.

Contact Beleaf Technologies today to develop your Binance Clone Script Launch a safe, customizable, and high-performance crypto exchange quickly. Reach out now for expert guidance and quick deployment.
Reach our experts for free demo : https://www.beleaftechnologies.com/binance-clone-script-development
Whatsapp: +91 7904323274
Skype: live:.cid.62ff8496
d3390349
Telegram: @BeleafSoftTech
Mail to: mailto:business@beleaftechnologies.com
Looking for a top-tier crypto exchange development company in 2025? Look no further! Our team specializes in creating secure, scalable, and strong cryptocurrency exchange platforms customized to meet your business needs. With expertise in blockchain technology, advanced security protocols, and smoth user experience design, we deliver strong and high-performance solutions that ensure your platform stands out in a competitive market. Whether you're launching your first exchange or upgrading an existing one, we offer end-to-end development services, including wallet integration, real-time trading features, and compliance with industry regulations. Start your crypto exchange journey with us today!
Visit now >>https://cryptocurrency-exchange-development-company.com/
Whatsapp :  +91 8056786622
Email id :  business@beleaftechnologies.com
Telegram : https://telegram.me/BeleafSoftTech 

When it comes to Sports Betting App Development, Innosoft UAE is one of the leading companies in the industry.

Innosoft UAE has a proven track record in developing high-performance sports betting applications that are tailored to the specific needs of the market. Their apps are known for their smooth user experience, real-time betting features, and high level of security, ensuring that both operators and players have a safe and enjoyable experience.

One of the standout features of Innosoft UAE is their ability to develop highly customizable sports betting apps. They offer a range of features including live betting, real-time odds updates, integrated payment gateways, and support for a wide variety of sports, esports, and virtual betting options. Their apps are built to handle high volumes of traffic, making them scalable for operators of all sizes.

In addition, Innosoft UAE provides excellent ongoing support and updates to ensure that the apps remain competitive and fully functional in the ever-evolving sports betting industry.

If you're looking for a reliable and experienced company to develop your sports betting app, Innosoft UAE is a top choice, offering a complete solution for both mobile and web platforms, with a focus on innovation, security, and customer satisfaction.
PRIMERO REVISAR:
SELECT ID, post_content
FROM wppq_posts
WHERE post_content LIKE '%url:https%3A%2F%2Fcoc.ccbchurch.com%2Fgoto%2Fgiving%';


UPDATE wppq_posts
SET post_content = REPLACE(post_content, 'url:https%3A%2F%2Fcoc.ccbchurch.com%2Fgoto%2Fgiving', 'url:https%3A%2F%2Fpushpay.com%2Fg%2Fchurchofchampions')
WHERE post_content LIKE '%url:https%3A%2F%2Fcoc.ccbchurch.com%2Fgoto%2Fgiving%';

import socket

def get_ipv4_address():
    try:
        hostname = socket.gethostname()
        local_ip = socket.gethostbyname(hostname)
        return local_ip
    except Exception as e:
        return f'Error {e}'
    
print(f'My IPv4 Address is : {get_ipv4_address()}')
 public function states()
  {
      return $this->belongsToMany(
          State::class, // Related model
          'user_state', // Pivot table name
          'user_id', // Foreign key on the pivot table (points to User)
          'state_abbrev', // Foreign key on the pivot table (points to State)
          'id', // Local key on the User model
          'state_abbrev' // Local key on the State model
      )->withPivot('state_abbrev'); // include any info from the pivot table
  }
  { 8,              40,          8,           1,        40 ,     8,       8,      3,       3,  {0xFF, 0xFF, 0x99, 0x99, 0xE7, 0xC3, 0xC3, 0xDB} ,     34,     -34}, // Minecraft Creeper Hard Mode
  { 12,             70,          8,           1,        40 ,     8,       8,      3,       5,  {0xFF, 0xFF, 0x99, 0x99, 0xE7, 0xC3, 0xC3, 0xDB} ,     28,     -28}, // Minecraft Creeper EZ Mode
  { 12,             70,          8,           1,        40 ,     8,       8,      3,       5,  {0xFF, 0xFF, 0x99, 0x99, 0xE7, 0xC3, 0xC3, 0xDB} ,     28,     -28}, // Minecraft Creeper Placeholder for Hard Mode (Part 3)
#define GAMES_NUMBER 14 // Define the number of different game boards
npm init -y
 
npm install --save-dev jest ts-jest typescript @types/jest


npx tsc --init
npx ts-jest config:init

  "type": "module",
  "scripts": {
    "test:unit": "jest",
    "start": "tsx watch src/index.ts"
  },
    
    
   ts.config.json
{
  "compilerOptions": {
    "module": "ESNext",
    "moduleResolution": "Node",
    "target": "ESNext",
    "outDir": "dist",
    "rootDir": "src",
    "esModuleInterop": true,
    "strict": true,
    "resolveJsonModule": true
  },
  "include": ["src/**/*"]
}
memory = [user_defined_task]
while llm_should_continue(memory): # this loop is the multi-step part
    action = llm_get_next_action(memory) # this is the tool-calling part
    observations = execute_action(action)
    memory += [action, observations]
<Link to="https://vksm.odoo.com" target="_blank">Vựa kiểng Sáu Mai</Link>
<div class="d-flex justify-content-center align-items-center vh-100">
<a href="https://vksm.odoo.com" target="_blank">
<img src="https://raw.githubusercontent.com/leonguyen/download/refs/heads/main/uploads/logo.png" alt="Vựa kiểng Sáu Mai" width="10" height="10" />
Vựa kiểng Sáu Mai
</a></div>
<?=$form->field($model, 'id_indicador')->widget(DepDrop::classname(), [
                                                'options' => ['id' => 'id-indicador', 'onchange' => 'buscarIdentificador(this.value)'],
                                            /* aqui*/'data' => $model->isNewRecord ? [] : ArrayHelper::map(Indicadoresentescon::find()->where(['id_ente' => $model->id_ente])->all(), 'id_indicador', 'nombre_indicador'),
                                                // ensure at least the preselected value is available
                                                'pluginOptions' => [
                                                'depends' => ['id-ente'],
                                                // the id for cat attribute
                                                'placeholder' => 'Seleccione un indicador...',
                                                'url' => Url::to(['indicadores/listar'])
                                                ]
                                        ]); ?>
 <div class="main-sect-first-word">Transforming Businesses 
   </div>
 <div class="main-sect-second-word"> Through     
    <div class="main-switch">
        <div class="switch-wrapper">
        <div class="one switch">
            <div class="one circle"><span></span></div>
            <div class="word">Digitally</div>
        </div>
    </div>
    <div class="switch-wrapper">
        
    <div class="two switch">
            <div class="two circle"><span></span></div>
            <div class="word">Creatively</div>
        </div>
    </div>
    <div class="switch-wrapper">
    
        <div class="three switch">
            <div class="three circle"><span></span></div>
            <div class="word">Strategically</div>
        </div>
    </div>
</div>
</div>



.one.switch:before {
    animation: bgExpand1 2.5s ease-in-out infinite alternate;
  }
  
  .one.circle {
    animation: toggleSwitch1 2.5s ease-in-out infinite alternate;
  }
  
  .two.circle {
    animation: toggleSwitch2 2.5s ease-in-out infinite alternate;
  }
  
  .two.switch:before {
    animation: bgExpand2 2.5s ease-in-out infinite alternate;
  }
  
  .three.circle {
    animation: toggleSwitch3 2.5s ease-in-out infinite alternate;
  }
  
  .three.switch:before {
    animation: bgExpand3 2.5s ease-in-out infinite alternate;
  }
  
  .one.switch:before {
    animation: bgExpand1 2.5s ease-in-out infinite alternate;
  }
  
  .two.switch:before {
    animation: bgExpand2 2.5s ease-in-out infinite alternate;
  }
  
  .three.switch:before {
    animation: bgExpand3 2.5s ease-in-out infinite alternate;
  }
  
  @keyframes toggleSwitch3 {
    0% {
      transform: translateX(0px);
    }
  
    100% {
      transform: translateX(318px);
    }
  }
  
  @keyframes bgExpand3 {
    0% {
      width: 60px;
    }
  
    100% {
      width: 385px;
    }
  }
  
  @keyframes toggleSwitch2 {
    0% {
      transform: translateX(0);
    }
  
    100% {
      transform: translateX(262px);
    }
  }
  
  @keyframes bgExpand2 {
    0% {
      width: 60px;
    }
  
    100% {
      width: 325px;
    }
  }
  
  @keyframes toggleSwitch1 {
    0% {
      transform: translateX(0px);
    }
  
    100% {
      transform: translateX(206px);
    }
  }
  
  @keyframes bgExpand1 {
    0% {
      width: 60px;
    }
  
    100% {
      width: 270px;
    }
  }
  
  .one.switch {
    width: 270px;
  }
  
  .two.switch {
    width: 325px;
  }
  
  .three.switch {
    width: 385px;
  }
  
  .switch {
    position: relative;
    height: 65px;
    border-radius: 100px;
    overflow: hidden;
    background-color: transparent;
    margin-bottom: 20px;
    margin-top: 5px;
  }
  
  .switch::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 100px;
    z-index: 0;
    background: linear-gradient(90deg, #89d501 0%, #33b1ad 100%);
    box-shadow: 1.673px -8.366px 41.829px 0px rgba(0, 0, 0, 0.2) inset;
  }
  
  .circle {
    width: 58px;
    height: 58px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: linear-gradient(90deg, #89d501 0%, #33b1ad 100%);
    padding: 4px;
    box-sizing: border-box;
    position: absolute;
    top: 3px;
    left: 5px;
    z-index: 4;
  }
  
  .circle span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #f2f2f2;
    font-size: 18px;
    font-weight: bold;
  }
  .word {
    position: absolute;
    top: 9%;
    left: 20px;
    opacity: 0;
    transition: opacity 2.2s ease;
    z-index: 2;
    color: #f3f3f3;
    text-align: start;
    font-style: normal;
    line-height: normal;
    font-size: 42px;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: expand-collapse 5s ease-in-out infinite;
  }
  
  @keyframes expand-collapse {
    0% {
      width: 0;
      opacity: 0;
    }
  
    45% {
      width: 100%;
      opacity: 1;
    }
  
    100% {
      width: 0;
      opacity: 0;
    }
  }
  
  .main-heading .title {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    line-height: 70px;
    white-space: nowrap;
  }
  <script>
  const items = document.querySelectorAll('.switch-wrapper');
  let currentIndex = 0;
  const animationDuration = 5000;

  function startCycle() {
      items.forEach((item) => {
          item.style.display = 'none';
      });

      function showNextSwitch() {
          items[currentIndex].style.display = 'none';
          const currentItem = items[currentIndex];
          currentItem.querySelectorAll('.circle, .switch:before').forEach((el) => {
              el.style.animation = 'none';
              el.offsetHeight;
              el.style.animation = '';
          });
          currentIndex = (currentIndex + 1) % items.length;
          items[currentIndex].style.display = 'block';
      }
      items[currentIndex].style.display = 'block';
      setInterval(showNextSwitch, animationDuration);
  }
  startCycle();
</script>    

<!-- circle-animtion-end -->






<!DOCTYPE html>
<html lang="en">

<head>
 <style>
    .main-image-wrapper {
  z-index: 0;
}
.mainhomesect .image {
  position: absolute;
  width: 100%;
  max-width: 650px;
  object-fit: contain;
  transition: transform 8s ease-in-out;
}
img#image1 {
  transform: translate(48vw, -30vh);
}

img#image2 {
  transform: translate(-1vw, -30vh);
}

img#image3 {
  transform: translate(-39vw, 20vh);
}

img#image4 {
  transform: translate(-1vw, 72vh);
}

img#image5 {
  transform: translate(48vw, 72vh);
}

img#image6 {
  transform: translate(56vw, 20vh);
}

 </style>
</head>

<body>
  <div class="main-image-wrapper">
    <img src="https://mmcgbl.com/wp-content/uploads/2025/01/aerial.webp" alt="Image 1" class="image" id="image1">
    <img src="https://mmcgbl.com/wp-content/uploads/2025/01/getfit.webp" alt="Image 2" class="image" id="image2">
    <img src="https://mmcgbl.com/wp-content/uploads/2025/01/howwe.webp" alt="Image 3" class="image" id="image3">
        <img src="https://mmcgbl.com/wp-content/uploads/2025/01/aerial.webp" alt="Image 1" class="image" id="image4">
    <img src="https://mmcgbl.com/wp-content/uploads/2025/01/getfit.webp" alt="Image 2" class="image" id="image5">
    <img src="https://mmcgbl.com/wp-content/uploads/2025/01/howwe.webp" alt="Image 3" class="image" id="image6">
  </div>
 <script>
    const positions = [
      { x: 48, y: -30 }, //img1
      { x: -1, y: -30 }, //img2
      { x: -39, y: 20 }, //img 3
      { x: -1, y: 72 }, //img 4
      { x: 48, y: 72 }, //img5
      { x: 56, y: 20 } //img 6
    ];

    const images = [
      document.getElementById('image1'),
      document.getElementById('image2'),
      document.getElementById('image3'),
      document.getElementById('image4'),
      document.getElementById('image5'),
      document.getElementById('image6')
    ];


    const animateImages = () => {
      const lastPosition = positions.pop();
      positions.unshift(lastPosition);
      images.forEach((image, index) => {
        const pos = positions[index];
        image.style.transform = `translate(${pos.x}vw, ${pos.y}vh)`;
      });
    };
      setTimeout(() => {
      setInterval(animateImages, 8000);
      animateImages();
    }, 4000);
  </script>
</body>

</html>
Looking to launch a secure, scalable, and feature-rich cryptocurrency exchange development at a competitive price? Beleaftechnologies is your trusted partner! Our expert developers specialize in crafting custom crypto exchange solutions custmoized to your business needs. From decentralized exchanges to peer-to-peer platforms, we deliver innovative technology with lightning-fast transactions and strong security.
Why choose us? We prioritize quality, innovation, and affordability, ensuring your exchange stands out in the competitive market. With 24/7 support,smooth integration, and compliance with global regulations, we empower you to achieve success in the evolving blockchain landscape.

Join the transformation today! Contact Beleaftechnologies for cost-effective cryptocurrency exchange development in 2025. Your crypto journey begins here!
Visit now >>https://cryptocurrency-exchange-development-company.com/
Whatsapp :  +91 8056786622
Email id :  business@beleaftechnologies.com
Telegram : https://telegram.me/BeleafSoftTech 


/****************  OOPS IN JAVASCRIPT *************************/

/* JAVASCRIPT AND CLASSES 
So yes, JavaScript does have classes, and they are quite powerful for object-oriented programming!

/* OOP 

/*Object 
-collection to properties  and methods 
-ex: toLowerCase 

/* parts of oops
Object literal means literally assinged 

-constructor functions 
-prototypes 
-classes n
-Instances 

/* 4 pillars 
abstraction 
encaplusation 
inheritnace 
polymoriphism 
*/

const user = { // object literal 
    username: "hitesh ",
    logincount: 8,
    signedIn: true,

    getUserDetails: function() {
        console.log(`username: ${this.username}`);
        console.log(this); 
        /* output : {
  username: 'hitesh ',
  logincount: 8,
  signedIn: true,
  getUserDetails: [Function: getUserDetails]*/
}
    }

console.log(user.getUserDetails()); // username: hitesh //undefined
console.log(this); // {}

/////////////// CONSTRUCTOR FUNCTION //////////////
function User2(username, logincount, isLoggedIn) {
  this.username = username;
  this.logincount = logincount;
  this.isLoggedIn = isLoggedIn;
  
  this.greeting = functio
return this
}

const userOne =/*HERE new TO FIX THE ERROR*/ User2("hitesh", 12, true);
const userTwo = /*HERE new TO FIX THE ERROR*/User2("hitesh chaudhary", 18, false)
 console.log(userOne);   
/*username: 'hitesh chaudhary',
  logincount: 18,
  isLoggedIn: false*/ 
  /* INPORTANT == IF WE USE NEW IN DECLARATION SPACE IT WILL RUNCORRECTLY */ 
  
  /* INPORTANCE  and FEATURES OF NEW KEYWORD === when we use new keyword new empty object is made in first step , it will  call the constructor function in second step  , it will inject all the values which we passed in arguments , than it will return to you */ 
.hud-zoom-overlay-circle {
    border-radius: 100vh;
    position: fixed;
    top: 5vh;
    left: 50%;
    width: 90vh;
    height: 90vh;
    box-shadow: 0 0 0 9999px rgb(255 0 0);
    margin-left: -45vh;
}
.hud-zoom-overlay-vert{
    position: fixed;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    background: black;
}

.hud-zoom-overlay-horiz{
    position: fixed;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #ff0000;
}

.hud-zoom-overlay-redpoint{
    position: fixed;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 5px;
    background: red;
    margin-top: -2px;
    margin-left: -2px;
}
/* HUD CROSSHAIR */
.hud-crosshair{
    visibility: clear;
    position: fixed;
    width: 25px;
    height: 25px;
    left: 50%;
    top: 50%;
    margin-left: -13px;
    margin-top: -13px;
    z-index: 12;
}

.hud-crosshair div{
    background: #00ff00;
    position: absolute;

}

.hud-crosshair-1, .hud-crosshair-2{
    width: 3px;
    height:10px;
    left: 12px;
}

.hud-crosshair-3, .hud-crosshair-4{
    width: 10px;
    height:3px;
    top: 12px;
}

.hud-crosshair-1{
    top:0;
}
.hud-crosshair-2{
    top:18px;
}
.hud-crosshair-3{
    left: 0;
}
.hud-crosshair-4{
    left: 17px;
}
/* HUD CROSSHAIR end */
.parent {
  display: flex; /* Enables Flexbox */
  height: 300px; /* Set a specific height for the parent div */
  border: 1px solid #000;
}

.child {
  background-color: lightblue;
  flex: 1; /* Optional: Makes the child take up remaining space */
}
@RestResource(urlMapping='/api/products/*')
global with sharing class ProductApi {

    // GET: Recuperar productos por External_ID__c (sin captura de log)
    @HttpGet
    global static List<Product2> getProducts() {
        RestRequest req = RestContext.request;
        String externalId = req.requestURI.substringAfterLast('/');

        if (String.isNotBlank(externalId)) {
            // Recuperar producto por External_ID__c
            List<Product2> products = [SELECT Id, Name, ProductCode, Description, IsActive, External_ID__c 
                                    FROM Product2 WHERE External_ID__c = :externalId];
            return products;
        } else {
            // Recuperar todos los productos si no se proporciona External_ID__c
            List<Product2> products = [SELECT Id, Name, ProductCode, Description, IsActive, External_ID__c 
                                    FROM Product2];
            return products;
        }
    }

    // PATCH: Crear o actualizar un producto y establecer su precio usando solo External_ID__c
    @HttpPatch
    global static Product2 upsertProduct(
        String externalId, 
        String name, 
        String productCode, 
        String description, 
        Boolean isActive, 
        Decimal price
    ) {
        RestRequest req = RestContext.request;
        Product2 product = null;
        try {
            if (String.isBlank(externalId)) {
                throw new CustomException('El campo External_ID__c es obligatorio para realizar un upsert.');
            }

            if (price == null || price < 0) {
                throw new CustomException('El precio debe ser un valor positivo.');
            }

            // Crear o actualizar el producto basado en External_ID__c
            product = new Product2(
                External_ID__c = externalId,
                Name = name,
                ProductCode = productCode,
                Description = description,
                IsActive = isActive
            );

            upsert product External_ID__c;

            // Buscar el Standard Pricebook
            List<Pricebook2> standardPricebookList = [SELECT Id FROM Pricebook2 WHERE IsStandard = true LIMIT 1];
            if (standardPricebookList.isEmpty()) {
                throw new CustomException('No se encontró el Standard Pricebook.');
            }
            Pricebook2 standardPricebook = standardPricebookList[0];

            // Verificar si ya existe un PricebookEntry para este producto
            List<PricebookEntry> existingEntries = [
                SELECT Id, UnitPrice 
                FROM PricebookEntry 
                WHERE Product2Id = :product.Id AND Pricebook2Id = :standardPricebook.Id
            ];

            if (existingEntries.isEmpty()) {
                // Crear un nuevo PricebookEntry si no existe
                PricebookEntry newEntry = new PricebookEntry(
                    Pricebook2Id = standardPricebook.Id,
                    Product2Id = product.Id,
                    UnitPrice = price,
                    IsActive = true
                );
                insert newEntry;
            } else {
                // Actualizar el PricebookEntry existente
                PricebookEntry existingEntry = existingEntries[0];
                existingEntry.UnitPrice = price;
                update existingEntry;
            }

            // Log success
            logIntegrationDetails('PATCH', req, product, null);  // No hay error, pasamos null para la excepción

            return product;
        } catch (Exception e) {
            // Log error
            logIntegrationDetails('PATCH', req, null, e);  // Capturamos el error y lo pasamos al log
            throw e;  // Vuelve a lanzar la excepción para que se maneje como corresponde
        }
    }

    // DELETE: Eliminar un producto por External_ID__c
    @HttpDelete
    global static void deleteProduct() {
        RestRequest req = RestContext.request;
        String productIdOrExternalId = req.requestURI.substringAfterLast('/');

        if (String.isBlank(productIdOrExternalId)) {
            throw new CustomException('Debe proporcionar el ID o el External_ID__c para eliminar.');
        }

        Product2 productToDelete;

        if (productIdOrExternalId.startsWith('a') && productIdOrExternalId.length() == 18) {
            // Buscar por Id estándar
            productToDelete = [SELECT Id, IsDeleted FROM Product2 WHERE Id = :productIdOrExternalId AND IsDeleted = false LIMIT 1];
        } else {
            // Buscar por External_ID__c
            productToDelete = [SELECT Id, IsDeleted FROM Product2 WHERE External_ID__c = :productIdOrExternalId AND IsDeleted = false LIMIT 1];
        }

        // Si el producto no existe o está eliminado, lanzamos una excepción
        if (productToDelete == null || productToDelete.IsDeleted) {
            throw new CustomException('El producto no existe o ha sido eliminado.');
        }

        // Eliminar cualquier PricebookEntry relacionado en el Standard Pricebook
        List<Pricebook2> standardPricebookList = [SELECT Id FROM Pricebook2 WHERE IsStandard = true LIMIT 1];
        if (!standardPricebookList.isEmpty()) {
            Pricebook2 standardPricebook = standardPricebookList[0];
            List<PricebookEntry> entriesToDelete = [
                SELECT Id 
                FROM PricebookEntry 
                WHERE Product2Id = :productToDelete.Id AND Pricebook2Id = :standardPricebook.Id
            ];
            delete entriesToDelete;
        }

        delete productToDelete;

        // Registrar el log de la integración
        try {
            logIntegrationDetails('DELETE', req, productToDelete, null);
        } catch (Exception e) {
            // Si algo sale mal, capturamos la excepción y la mostramos (aunque puede que ya esté registrada)
            System.debug('Error al registrar el log: ' + e.getMessage());
        }
    }

    // Método auxiliar para registrar los detalles de las solicitudes y respuestas en Integration_Log__c
    
    private static void logIntegrationDetails(String operation, RestRequest req, SObject response, Exception e) {
        // Crear el log de la solicitud y la respuesta
        Integration_Log__c log = new Integration_Log__c();
    
        // Si ocurrió un error, capturamos la excepción
        if (e != null) {
            log.Estado__c = 'Error';
            log.Response__c = 'Error: ' + e.getMessage();  // Guardamos el mensaje de la excepción en Response__c
        } else {
            log.Estado__c = 'Success';  // Si todo fue exitoso, lo marcamos como "Success"
            log.Response__c = JSON.serialize(response);  // Serializamos la respuesta
        }
    
        // Asignar el nombre del log con el nombre del objeto y la fecha actual
        String logName = (response != null ? response.getSObjectType().getDescribe().getName() : 'UnknownObject') + ' - ' + DateTime.now().format();
        log.Name = logName;
    
        // Capturamos los parámetros de la solicitud
        log.Request__c = 'Params: ' + req.params;
    
        // Si se está creando/actualizando un producto, asociamos el producto con el log
        if (response instanceof Product2) {
            log.Product__c = ((Product2) response).Id;
        }
    
        insert log; // Insertamos el log en la base de datos
    }
    
    // Clase de excepción personalizada
    global class CustomException extends Exception {}
}
$columns = import-csv C:\infile.csv -Header 'column1','column2','column3','column4' -Delimiter ';'

$Result = @()
ForEach($i in $columns){

   $found = 0;

   ForEach($m in $Result){

    if($m.column1 -eq $i.column1){

        $found = 1

        if( $i.column4.length -ne 0 )
        {   
           $m.column4 = $i.column4
        }
        break;
      }
   }

   if($found -eq 0){
        $Result += [pscustomobject] @{column1=$i.column1; column2=$i.column2; column3=$i.column3; column4=$i.column4}
   }
}

$Result | export-csv C:\out.csv
// Custom Component
<div class="side-menu">
    <div class="side-menu-top">
        <div class="side-menu-logo">
            <img src="//published-assets.ari-build.com/Content/Published/Site/{{Site.Id}}/images/dealer-logo.png" alt="{{Locations.0.Name}}" />
        </div>
        <div class="side-menu-close">
            <span>&#x2716</span>
        </div>
    </div>
    <div class="side-menu-items">
        <a href="/" title="Home">Home</a>
        <a href="/new-models" title="New Models">New Models</a>
        <a href="/search/inventory" title="Inventory">Inventory</a>
        <a href="/servicereq" title="Services">Services</a>
        <a href="/aboutus" title="Company Info">Company Info</a>
        <a href="/contactus" title="Contact Us">Contact Us</a>
    </div>
</div>

// Side Menu - Script
$('.side-menu-close').on('click', function(e){
    $('.side-menu').toggleClass('open');
});
$('.icon-menu').on('click', function(e){
    $('.side-menu').toggleClass('open');
});

// Side Menu - Style
.side-menu{
    background: $brand-primary;
    position: fixed;
    right: -100%; top: 0;
    z-index: 101;
    width: _res(200,400); height: 100%;
    transition: all .6s ease-in-out;
    &.open{
        right: 0;
    }
    &-top{
        padding: _res(30);
        @include _flex();
    }
    &-logo{
        width: 70%;
        img{ width: 100%; }
    }
    &-close{
        color: #fff;
        cursor: pointer;
        font-size: _res(10,20);
        position: absolute;
        top: 10px; right: 20px;
    }
    &-items{
        @include _flex($dir: column, $halign: flex-start);
        a{
            color: #fff;
            font-family: $headings-font-family;
            font-weight: 600;
            font-size: _res(15,25);
            letter-spacing: .020em;
            text-transform: uppercase;
            line-height: 2;
            transition: all .3s ease-in-out;
            text-decoration: none;
            padding: 0 _res(30);
            &:hover{
                color: #fff;
                background: $brand-secondary;
            }
        }
    }
}
import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter_image_compress/flutter_image_compress.dart';
import 'package:image_cropper/image_cropper.dart';
import 'package:image_picker/image_picker.dart';

import 'app_style.dart';

class ImagePickerHelper {
  static Future<void> pickImage({
    required Function(File? file) onDone,
  }) async {
    final pickedImage =
        await ImagePicker.platform.pickImage(source: ImageSource.gallery);

    if (pickedImage == null) {
      onDone.call(null);
      return;
    }

    final pickedFile = File(pickedImage.path);
    final croppedImage = await _cropImage(pickedFile);
    final compressedImage = await _compressFile(croppedImage);
    if (compressedImage == null) {
      onDone.call(null);
      return;
    }


    onDone.call(compressedImage);
  }

  static String getFileSize(File file) {
    final fileSizeInMB =
    (file.lengthSync() / (1024 * 1024)).toStringAsFixed(2);
    return fileSizeInMB;
  }

  static Future<File?>? _cropImage(File file) async {
    final croppedFile = await ImageCropper.platform.cropImage(
      sourcePath: file.path,
      aspectRatio: const CropAspectRatio(ratioX: 1, ratioY: 1),
      compressQuality: 60,
      uiSettings: [
        AndroidUiSettings(
          toolbarTitle: 'Crop Image',
          toolbarColor: AppStyle.lightPurple,
          toolbarWidgetColor: Colors.white,
          initAspectRatio: CropAspectRatioPreset.square,
          lockAspectRatio: true,
        ),
        IOSUiSettings(
          minimumAspectRatio: 1.0,
          aspectRatioLockEnabled: true,
          resetAspectRatioEnabled: true,
        ),
      ],
    );

    if (croppedFile == null) return null;
    return File(croppedFile.path);
  }

  static Future<File?> _compressFile(File? file) async {
    if (file == null) return null;

    final targetPath =
        '${file.parent.path}/compressed_${file.path.split('/').last}';

    final XFile? result = await FlutterImageCompress.compressAndGetFile(
      file.absolute.path,
      targetPath,
      quality: 60,
      keepExif: false,
    );

    if (result == null) return null;
    return File(result.path);
  }
}
{
	"blocks": [
		{
			"type": "header",
			"text": {
				"type": "plain_text",
				"text": ":cherry_blossom: :cute-sun: Boost Days - What's On This Week :cute-sun::cherry_blossom:"
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "\n\n Happy Monday Melbourne!\n\n We have a jam packed week coming up, see what's on below!"
			}
		},
		{
			"type": "divider"
		},
		{
			"type": "header",
			"text": {
				"type": "plain_text",
				"text": "Xero Café :coffee:",
				"emoji": true
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "\n *This week we are offering:* \n\n :lemon-flower: Lemon Slice & Crunchy Cornflake Brownie Slice :cornflakes:  \n\n *Weekly Café Special:* _Vietnamese Iced Coffee_ :flag-vn:"
			}
		},
		{
			"type": "header",
			"text": {
				"type": "plain_text",
				"text": " Wednesday, 15th January :calendar-date-15:",
				"emoji": true
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": " \n\n To celebrate our new Brand Platform Ad Campaign *_Your Business Supercharged_*, we've got some special surprises for you: \n\n :bikefast: *Smoothie Bikes* in the L3 Kitchen from 9:30am - pedal away to blend up a delicious smoothie! \n\n :lunch: *Light Lunch*: Provided by Kartel Catering from *12pm* \n\n :CAKE: *Celebratory Chocolate & Vanilla Cake* from 2pm + a video on our new brand in the L3 Kitchen/Breakout Space! \n\n :australian-open: *One final surprise:* Since our new brand will be advertised at the Australian Open, we are giving you the chance to win 2 x Ground Passes for Sunday, 19th of January! Enter <https://docs.google.com/forms/d/e/1FAIpQLSe5PJgT1CkJJkfXIsyLtv1kLQf7qHTcMzR3T8quZXxMTf5FbA/viewform?usp=header|*HERE*> . \n\n Winner will be drawn and contacted via Slack on Wednesday!"
			}
		},
		{
			"type": "header",
			"text": {
				"type": "plain_text",
				"text": "Thursday, 16th January :calendar-date-16:",
				"emoji": true
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": ":breakfast: *Breakfast*: Provided by *Kartel Catering* from *8:30am - 10:30am* in the Wominjeka Breakout Space."
			}
		},
		{
			"type": "divider"
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "Stay tuned for more fun throughout the year. Happy 2025! :party-wx:"
			}
		}
	]
}
star

Tue Jan 14 2025 05:12:17 GMT+0000 (Coordinated Universal Time)

@davidmchale #json #schema

star

Tue Jan 14 2025 04:46:25 GMT+0000 (Coordinated Universal Time) https://www.thiscodeworks.com/user/dashboard

@vancaem

star

Mon Jan 13 2025 18:14:37 GMT+0000 (Coordinated Universal Time)

@E23CSEU1151

star

Mon Jan 13 2025 11:37:42 GMT+0000 (Coordinated Universal Time) https://www.youtube.com/@Phucgamingpro

@thienphuc_1234

star

Mon Jan 13 2025 08:07:24 GMT+0000 (Coordinated Universal Time)

@Bilgetz #bash

star

Mon Jan 13 2025 06:01:28 GMT+0000 (Coordinated Universal Time) https://msguides.com/windows-10

@vishalkhalasi

star

Mon Jan 13 2025 05:16:40 GMT+0000 (Coordinated Universal Time)

@iliavial #c#

star

Mon Jan 13 2025 02:16:13 GMT+0000 (Coordinated Universal Time)

@wayneinvein

star

Mon Jan 13 2025 02:03:46 GMT+0000 (Coordinated Universal Time)

@mamba

star

Sun Jan 12 2025 23:16:18 GMT+0000 (Coordinated Universal Time) view-source:https://3da70dcd.limecube.co/

@alonsogar

star

Sun Jan 12 2025 23:16:03 GMT+0000 (Coordinated Universal Time) undefined

@alonsogar

star

Sun Jan 12 2025 23:12:48 GMT+0000 (Coordinated Universal Time) https://3da70dcd.limecube.co/ai-in-legal-strategy

@alonsogar

star

Sun Jan 12 2025 22:43:53 GMT+0000 (Coordinated Universal Time) https://3da70dcd.limecube.co/

@alonsogar

star

Sun Jan 12 2025 20:39:15 GMT+0000 (Coordinated Universal Time) https://www.codexworld.com/code-snippets/tooltip-on-hover-with-css/

@jekabspl #css

star

Sun Jan 12 2025 18:50:25 GMT+0000 (Coordinated Universal Time) qa8302.github.com

@qa8302 #紅寶石艾爾斯 #網路組裝 #dev #com #命令列

star

Sun Jan 12 2025 17:55:29 GMT+0000 (Coordinated Universal Time)

@wayneinvein

star

Sun Jan 12 2025 14:52:13 GMT+0000 (Coordinated Universal Time)

@wayneinvein

star

Sun Jan 12 2025 14:38:46 GMT+0000 (Coordinated Universal Time)

@MinaTimo

star

Sun Jan 12 2025 01:26:52 GMT+0000 (Coordinated Universal Time) https://github.com/RebbePod/salesforcetools/blob/main/Tools/Bookmarklets/Hard%20Refresh.js

@dannygelf #salesforce #cache

star

Sun Jan 12 2025 00:28:08 GMT+0000 (Coordinated Universal Time) https://www.mollymaid.com/

@moeva6218

star

Sat Jan 11 2025 18:01:13 GMT+0000 (Coordinated Universal Time)

@Eden

star

Sat Jan 11 2025 11:42:20 GMT+0000 (Coordinated Universal Time) https://www.beleaftechnologies.com/binance-clone-script-development

@stvejhon #crypto #cryptocurrency #exchange

star

Sat Jan 11 2025 10:26:39 GMT+0000 (Coordinated Universal Time) https://cryptocurrency-exchange-development-company.com/

@raydensmith #crypto #cryptoexchangedevelopment #cryptoexchange #cryptoexchangesoftwaredevelopment

star

Sat Jan 11 2025 07:38:53 GMT+0000 (Coordinated Universal Time) https://innosoft.ae/top-sports-betting-app-development-company/

@Olivecarter

star

Fri Jan 10 2025 22:31:16 GMT+0000 (Coordinated Universal Time)

@systemsroncal #php

star

Fri Jan 10 2025 16:52:08 GMT+0000 (Coordinated Universal Time)

@freepythoncode ##python #coding #python

star

Fri Jan 10 2025 15:10:54 GMT+0000 (Coordinated Universal Time)

@dustbuster #php #laravel

star

Fri Jan 10 2025 12:57:51 GMT+0000 (Coordinated Universal Time) https://beleaftechnologies.com/crypto-smart-order-routing-services

@daviddunn06

star

Fri Jan 10 2025 10:34:02 GMT+0000 (Coordinated Universal Time) https://www.beleaftechnologies.com/cryptocurrency-exchange-development-company

@stvejhon #crypto #cryptocurrency #exchange

star

Fri Jan 10 2025 01:02:26 GMT+0000 (Coordinated Universal Time)

@TechBox #c++

star

Fri Jan 10 2025 01:01:08 GMT+0000 (Coordinated Universal Time)

@TechBox #c++

star

Fri Jan 10 2025 00:59:55 GMT+0000 (Coordinated Universal Time)

@TechBox #c++

star

Thu Jan 09 2025 19:33:35 GMT+0000 (Coordinated Universal Time)

@viktor_atanasov

star

Thu Jan 09 2025 16:53:42 GMT+0000 (Coordinated Universal Time) https://huggingface.co/blog/smolagents

@NaviAndrei #python

star

Thu Jan 09 2025 16:21:27 GMT+0000 (Coordinated Universal Time)

@onlinecesaref #html

star

Thu Jan 09 2025 16:19:28 GMT+0000 (Coordinated Universal Time)

@onlinecesaref #html

star

Thu Jan 09 2025 14:13:54 GMT+0000 (Coordinated Universal Time)

@jrg_300i #undefined

star

Thu Jan 09 2025 12:18:18 GMT+0000 (Coordinated Universal Time)

@BilalRaza12

star

Thu Jan 09 2025 11:13:08 GMT+0000 (Coordinated Universal Time) https://cryptocurrency-exchange-development-company.com/

@raydensmith #crypto #cryptoexchangedevelopment #cryptoexchange #cryptoexchangesoftwaredevelopment

star

Thu Jan 09 2025 07:46:51 GMT+0000 (Coordinated Universal Time)

@E23CSEU1151

star

Thu Jan 09 2025 06:59:08 GMT+0000 (Coordinated Universal Time)

@Checkmate

star

Thu Jan 09 2025 05:54:48 GMT+0000 (Coordinated Universal Time)

@Checkmate

star

Thu Jan 09 2025 00:37:24 GMT+0000 (Coordinated Universal Time) https://poe.com/

@Fatolla

star

Wed Jan 08 2025 22:43:26 GMT+0000 (Coordinated Universal Time)

@davidmchale #flexbox #stretch #child

star

Wed Jan 08 2025 11:04:30 GMT+0000 (Coordinated Universal Time)

@rcrespocode

star

Wed Jan 08 2025 10:34:24 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/26460372/powershell-merge-two-csv-files-with-partially-duplicate-lines

@baamn #powershell #csv

star

Wed Jan 08 2025 06:18:25 GMT+0000 (Coordinated Universal Time)

@vishalsingh21

star

Wed Jan 08 2025 05:57:20 GMT+0000 (Coordinated Universal Time)

@Samuel1347 #dart

star

Wed Jan 08 2025 05:35:18 GMT+0000 (Coordinated Universal Time)

@FOHWellington

Save snippets that work with our extensions

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