This file contains 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
code --install-extension akamud.vscode-theme-onedark | |
code --install-extension alefragnani.project-manager | |
code --install-extension Angular.ng-template | |
code --install-extension bmewburn.vscode-intelephense-client | |
code --install-extension dbaeumer.vscode-eslint | |
code --install-extension digitalstreamio.mjml-syntax | |
code --install-extension EditorConfig.EditorConfig | |
code --install-extension felixfbecker.php-debug | |
code --install-extension felixfbecker.php-intellisense | |
code --install-extension file-icons.file-icons |
This file contains 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 | |
defined('C5_EXECUTE') or die(_("Access Denied.")); | |
/* | |
Install | |
Copy this file to /jobs | |
Dashboard > System & Settings > Automated Jobs | |
Install "Clean Temp Sessions" | |
Automate the job to your liking | |
*/ |
This file contains 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
function isElementInViewport(el) | |
{ | |
if (typeof jQuery === 'function' && el instanceof jQuery) | |
{ | |
el = el[0]; | |
} | |
var rect = el.getBoundingClientRect(); | |
return ( |
This file contains 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 | |
// get youtube video id | |
preg_match("#(?<=v=)[a-zA-Z0-9-]+(?=&)|(?<=v\/)[^&\n]+(?=\?)|(?<=v=)[^&\n]+|(?<=youtu.be/)[^&\n]+#", $attrs['videoid'], $matches); | |
$id = $matches[0]; | |
// get video title | |
$content = file_get_contents('http://youtube.com/get_video_info?video_id='.$id); | |
parse_str($content, $ytarr); | |
// variables |