Skip to content

Instantly share code, notes, and snippets.

View yahyaahrika's full-sized avatar

yahya ahrika yahyaahrika

View GitHub Profile
@yahyaahrika
yahyaahrika / read.me
Created December 16, 2025 15:27
Fixed issus : in wordpress elementor how to fixed this , in plugin we have plugin code snipper ; sprintf is not defined Backbone 10
if ( typeof sprintf === 'undefined' && window.wp?.i18n?.sprintf ) {
window.sprintf = wp.i18n.sprintf;
}
@yahyaahrika
yahyaahrika / index.html
Created November 18, 2025 10:08
Taost message like popup . snackbar w3s update
<html5>
<head>
<title>Taost message like popup snackbar</title>
<style>
/* start Toastify Styles snackbar like toast */
/* The snackbar - position it at the bottom and in the middle of the screen */
.snackbar {
visibility: hidden; /* Hidden by default. Visible on click */
@yahyaahrika
yahyaahrika / functions .php
Created October 23, 2025 18:25
Add this to your WordPress menu to fix the mobile menu button not opening. Install the Code Snippets plugin, paste the PHP code, then save and activate
add_action('wp_enqueue_scripts', function () {
// Ensure elementor-frontend is enqueued before our inline JS.
// Priority 20 places this after Elementor's own scripts in most setups.
wp_add_inline_script(
'elementor-frontend',
// BEGIN inline JS
'(function(){
// --- softDeprecated shim ---
window.elementorCommon = window.elementorCommon || {};
window.elementorCommon.helpers = window.elementorCommon.helpers || {};
@yahyaahrika
yahyaahrika / .sql
Created August 31, 2021 13:04
sql server How to skip rows with same column values in SQL Server? group and repeat
--https://stackoverflow.com/questions/55249646/how-to-skip-rows-with-same-column-values-in-sql-server
CREATE TABLE T(
Col1 INT,
Col2 VARCHAR(45),
Col3 VARCHAR(45)
);
INSERT INTO T VALUES
(1, 'Steve', 'Rodgers'),
@yahyaahrika
yahyaahrika / ps.sql
Created August 31, 2021 09:17
sql server date time convert to hours date to make charts date
CREATE PROCEDURE "SP_Statistique_UmsatzbyTime"(
@dateStart DATE,
@dateFin DATE
)
AS
BEGIN
SELECT
Concat(DATEPART(hh ,stardate ),':00') AS Hours ,
@yahyaahrika
yahyaahrika / date.sql
Created August 31, 2021 09:15
sql server table tmp , case , TRY_CONVERT
CREATE PROCEDURE "SP_Statistique_Date"(
@dateStart DATE,
@dateFin DATE
)
AS
BEGIN
DROP TABLE IF EXISTS #tmp_umsatz , #tmp_google , #tmp_offen , #tmp_auftrage ;
@yahyaahrika
yahyaahrika / 01.sql
Created August 31, 2021 09:11
sql server ProcedureStock loop to other Procedure by date
CREATE PROCEDURE "SP_Loop_Monteur_Gewinn"(
@StartDate Date,
@FinDate Date
)
AS BEGIN
DECLARE @Counter INT
DECLARE @Lenght INT
DECLARE @CalculDateStart DATE
@yahyaahrika
yahyaahrika / gist:c904eb30d6a1a918a87da50af677fba5
Created July 29, 2021 13:42
datatables error ajax session destroy or other stauff
$.fn.dataTable.ext.errMode = function (settings, helpPage, message) {
if (settings.iDrawError == -1) {
document.location.reload();
}
};
@yahyaahrika
yahyaahrika / gist:b484d8481098427712ef7582248b0de5
Created July 19, 2021 11:13
install rocket chat in ubuntu
root@localhost:~# sudo install rocketchat-server
root@localhost:~# sudo snap set rocketchat-server caddy-url=https://{Domine-Url}
root@localhost:~# sudo snap rocketchat-server caddy=enable
error: unknown command "rocketchat-server", see 'snap help'.
root@localhost:~# sudo snap set rocketchat-server caddy=enable
root@localhost:~# sudo snap set rocketchat-server https=enable
root@localhost:~# sudo rocketchat-server.initcaddy
If no errors where found is safe to restart rocket.chat and Caddy:
@yahyaahrika
yahyaahrika / 01.js
Created June 23, 2021 15:37
Scroll animation to div specifique
$(document).on('click', 'a[href^="#"]', function (e) {
// target element id
var id = $(this).attr('href');
// target element
var $id = $(id);
if ($id.length === 0) {
return;
}