اومدیم یک نمونه اسکریپت مشابه history پیاده کردیم، با الگوریتم متفاوت تر
Command@local-$ "GeekUNIX"
#Script
if [ "$1" ]; then
function data {
if [[ -f end.txt ]]; then
last_id=$(tail -n 1 end.txt | awk '{print $2}')
id=$((last_id + 1))
while grep -q " $id " end.txt; do
id=$((id + 1))
done
if ! grep -q "ID" end.txt; then
header="-------------------------------------------------------
| ID | Time | Command | User |
-------------------------------------------------------"
echo "$header" >> end.txt
fi
else
id=1
header="-------------------------------------------------------
| ID | Time | Command | User |
-------------------------------------------------------"
echo "$header" >> end.txt
fi
printf "| %-6s | %s | %-20s | %s |\n" "$id" "$(date +'%H:%M:%S')" "$1" "$(whoami)
"
}
data "$1" >> end.txt
fi
Command@local-$ "GeekUNIX"
#Script
👏4💩1
console.log(/[A-Z]+\d/.test("HELLO5") ? 'ok' : 'error');با فقط یک لاین رجکستو تست کن
Command@local-$ "GeekUNIX"
#Script
Telegram
MrSaad
( '•_•' == '^_^' )
👍1
MrSaad
console.log(/[A-Z]+\d/.test("HELLO5") ? 'ok' : 'error'); با فقط یک لاین رجکستو تست کن Command@local-$ "GeekUNIX" #Script
hello = func => console.log("moz");
hello();با فقط یک لاین تابعتو بنویس
Command@local-$ "GeekUNIX"
#Script
Telegram
MrSaad
( '•_•' == '^_^' )
سال جدیدتونو با debugging شروع کنین تا احتمال successful بودن projects بالاتر باشه
New Year 404
New Year 404
Not Found ...
💩1
<?php
function test($ch){
foreach ($ch as $end) {
foreach ($end as $txt) {
if($txt){
echo "#";
} else {
echo " ";
}
}
echo "\n";
}
}
test([[false,false,false],[false,false,true,true,false,false,true,true],[false,false,false,false,false,false,false,false],[false,true,false,false,false,false,false,false,true],[false,false,true,false,false,false,false,true,false],[false,false,false,true,true,true,true,false]]);
?>
❤1
Surge :
دامینتو در محیط cli ایجاد کن
Demo : https://mrsaad.surge.sh/
INSTALL :
npm install --global surge
Document :
https://surge.sh/
دامینتو در محیط cli ایجاد کن
Demo : https://mrsaad.surge.sh/
INSTALL :
npm install --global surge
Document :
https://surge.sh/
❤1
This media is not supported in your browser
VIEW IN TELEGRAM
Project : Git Reels
Source : https://github.com/MrBanana2045/GitReels
Web : https://mrsaad.surge.sh/BookShow.html
Source : https://github.com/MrBanana2045/GitReels
Web : https://mrsaad.surge.sh/BookShow.html
🔥1
شاید جالب باشه و بکارتون بیاد
لایبرری leafletjs
با این لایبرری موقعیت جغرافیایی با داشتن کد مختصات هرمکانیو پیدا کنین و روی نقشه نمایش بدین
Script > https://unpkg.com/leaflet/dist/leaflet.js
Website > https://leafletjs.com
لایبرری leafletjs
با این لایبرری موقعیت جغرافیایی با داشتن کد مختصات هرمکانیو پیدا کنین و روی نقشه نمایش بدین
Script > https://unpkg.com/leaflet/dist/leaflet.js
Website > https://leafletjs.com
Leafletjs
Leaflet — an open-source JavaScript library for interactive maps
Leaflet is a modern, lightweight open-source JavaScript library for mobile-friendly interactive maps.
