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
#!/bin/bash | |
####################################### | |
# Send log message to Slack channel via Webhook. | |
# | |
# @author Yuriy Belenko <[email protected]> | |
# This functions requires jo package installed. https://github.com/jpmens/jo | |
# | |
# Originally developed as almost zero dependency(jo only) alternative of Slack Monolog PHP handler: | |
# https://github.com/Seldaek/monolog/blob/main/src/Monolog/Handler/SlackWebhookHandler.php |
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
{ | |
// Place your snippets for html here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
"slim4 skeleton Twig template": { | |
"prefix": "extends", | |
"body": [ | |
"{% extends \"layout/${1|layout-empty,layout|}.twig\" %}", | |
"", |
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 disableGoogleMapsTab(mapId) { | |
$(mapId).find('a, button, div[tabindex], iframe').each(function(index, item) { | |
item.setAttribute('tabindex', -1) | |
}) | |
} | |
function enableGoogleMapsTab(mapId) { | |
$(mapId).find('a, button, iframe').each(function(index, item) { | |
item.removeAttribute('tabindex') | |
}) |