This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"workbench.startupEditor": "none", | |
"editor.minimap.enabled": false, | |
"search.mode": "reuseEditor", | |
"workbench.editor.enablePreview": false, | |
"github.copilot.nextEditSuggestions.enabled": true, | |
"eslint.codeActionsOnSave.rules": null, | |
"eslint.format.enable": true, | |
"eslint.run": "onSave", | |
"eslint.runtime": "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Module: DynamicContentOptionGreeting class. | |
* | |
* @package Divi | |
*/ | |
use \ET\Builder\Packages\Module\Layout\Components\DynamicContent\DynamicContentElements; | |
if ( ! defined( 'ABSPATH' ) ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## SimpleFontSelect.jsx | |
``` | |
import React from 'react'; | |
/** | |
* SimpleFontSelect field component. | |
* | |
* This component is used to render warning field in the Visual Builder. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Remomve Dozent LMS Video sources | |
*/ | |
add_filter( 'dozent_video_sources', 'dozent_remove_video_source' ); | |
function dozent_remove_video_source( $sources ){ | |
//Remove HTML 5 Upload | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Add this code to your course themes/activated-theme/functions.php | |
// Remove access methods | |
add_filter( 'dozent_course_access_methods', 'remove_dozent_course_access_methods' ); | |
if ( ! function_exists( 'remove_dozent_course_access_methods' ) ) { | |
function remove_dozent_course_access_methods( $methods ){ | |
if ( isset( $methods[ 'public' ] ) ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Dot notation Directory access / file include | |
*/ | |
/** | |
* @param string $file_name | |
* | |
* Without Given file extension, it will be add from function | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First, add yourself into the group www-data | |
usermod -a -G www-data (your username) | |
Then: | |
chgrp www-data /home/myuser/folderA | |
chmod g+rwxs /home/myuser/folderA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).on('DOMContentLoaded load resize scroll', function(){ | |
//Selector | |
var element = 'footer'; | |
var top_of_element = $(element).offset().top; | |
var bottom_of_screen = $(window).scrollTop() + $(window).height(); | |
if((bottom_of_screen > top_of_element) ){ | |
console.log('I am In footer') | |
} | |
else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
function executeMap(x =''){ | |
var marker, map; | |
function initialize() { | |
var myLatlng = new google.maps.LatLng(29.350578853144864, 47.98828125); | |
var mapOptions = { | |
zoom: 10, | |
center: myLatlng, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<title>PREMEDME</title> | |
<link href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0/css/select2.min.css" rel="stylesheet" /> |
NewerOlder