Skip to content

Instantly share code, notes, and snippets.

graph TD
    A[Start] --> B[/Input x and y/]
    B --> C{Swap values}
    C --> D[\Output new values of x and y\]
    D --> E[End]
@X7md
X7md / UQU.js
Created February 10, 2024 23:19
function hijriToCalendars(year, month, day, op={}) {
op.fromCal ??= "islamic-umalqura"; //
let gD = new Date(Date.UTC(2000,0,1));
gD = new Date(gD.setUTCDate(gD.getUTCDate() +
~~(227022+(year+(month-1)/12+day/354)*354.367)));
const gY = gD.getUTCFullYear(gD)-2000,
dFormat = new Intl.DateTimeFormat('en-u-ca-' + op.fromCal, {dateStyle:'short', timeZone:'UTC'});
gD = new Date(( gY < 0 ? "-" : "+")+("00000" + Math.abs(gY)).slice(-6)+"-"+("0" + (gD.getUTCMonth(gD)+1)).slice(-2)+"-" + ("0" + gD.getUTCDate(gD)).slice(-2));
let [iM,iD,iY]= [...dFormat.format(gD).split("/")], i=0;
gD = new Date(gD.setUTCDate(gD.getUTCDate() +
.celebrities-component {
background-image: url('../../img/background.JPG');
background-position: center center;
background-repeat: repeat;
background-size: 100% 100%;
overflow: hidden;
padding-left: 4rem;
}
@X7md
X7md / Do_it.md
Last active November 14, 2021 20:30
Just do it

█▀▀▀▀▀█ ▀█▄▄ ▄█ █▀▀▀▀▀█ █ ███ █ █▄█ ▀▄█▄ █ ███ █ █ ▀▀▀ █ █ ▄██▄▄█ █ ▀▀▀ █ ▀▀▀▀▀▀▀ █▄▀ █ █▄▀ ▀▀▀▀▀▀▀ ▀ █▀██▀▄ ▀ █▀█▀▄▄▀█▀█▀▄ ▀▄█ ▀█▀ ▄▀▀▀▀ ██ ▀██ ▀██ ██▀▄▄ ▀ ▀█ ▀▀█▀▀ ▀▀▄▀ ▀█▀ █ ▀█ ▀▄█▄██▀▀▀█▀██▄▄█ ▀▀ ▀ ▀▀▄██▀▄▀█ █▀▀▀██▀ █▀▀▀▀▀█ ▄ ▀ ▄ ▀ █ ▀ █▀ █▀

<!-- Source: https://github.com/homaily/Saudi-Arabia-Regions-Cities-and-Districts/blob/master/json/cities.json -->
<select name="country">
<option value="Tabuk">تبوك</option>
<option value="Na'mi">نعمي</option>
<option value="Riyadh">الرياض</option>
<option value="Humayt">حميط</option>
<option value="At Taif">الطائف</option>
<option value="Makkah Al Mukarramah">مكة المكرمة</option>
<option value="Rajm At Tayarah">رجم الطيارة</option>
@X7md
X7md / YouTube Comment.md
Last active June 13, 2021 00:57
YouTube Formatting Toolbar

JavaScript code to add Formatting Toolbar

Plz!! Run Script After You click an input-box of comment text!

JavaScript As URL

Test Add it as bookmark:

  1. Drag and drop any url to bookmarks list
  2. Edit Bookmark , Rename it to anything you wanna and Change URL to this: