Skip to content

Instantly share code, notes, and snippets.

View ZabdiBen's full-sized avatar

Zabdiel Yoav Bentzion ZabdiBen

View GitHub Profile
@ZabdiBen
ZabdiBen / HebrewDate.php
Created May 8, 2024 19:05
get the Hebrew date from Gregorian date
class HebrewDate {
public static function hebdate($date) {
// Returns string of Hebrew Date by hebdate_lang
// Remove the sunset check as it's not applicable in a static context
$lang = get_option('hebdate_lang');
if ($lang == 'site'){
if (get_locale() == 'he_IL'){
$lang = 'hebrew';
@ZabdiBen
ZabdiBen / index.html
Created December 30, 2023 16:56
Youtube api
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>YouTube Video Search</title>
</head>
<body>
<h1>YouTube Video Search</h1>
@ZabdiBen
ZabdiBen / slider.php
Last active November 20, 2023 17:49
Slider with swiper for wordpress
<!DOCTYPE html>
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css" />
</head>
<body>
<style>
.swiper-container {
width: 100%;
height: 100%;