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
const Button = forwardRef<CoralButton, ButtonProps>((props, ref) => { | |
const { children, onClick, title, ...coralButtonProps } = props; | |
const buttonRef = useRef<CoralButton>(null); | |
useLayoutEffect(() => { | |
if (ref) { | |
if (isFunction(ref)) { | |
ref(buttonRef.current); | |
} else { |
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
name: Blank snippet | |
description: '' | |
author: nikolay-borzov | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
$("#runArray").click(() => tryCatch(runArray)); | |
async function runArray() { |
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
' Based on https://thecustomizewindows.com/2011/06/let-your-computer-speak-current-time-and-date-on-startup/ | |
Dim sapi, cHour, cMinute, sentence | |
Set sapi = CreateObject("SAPI.SpVoice") | |
with sapi | |
' 0 - David, 1 - Zira, 2 - Mark | |
Set .voice = .getvoices.item(1) | |
end with | |
cHour = hour(time) |