Skip to content

Instantly share code, notes, and snippets.

View nikolay-borzov's full-sized avatar
💀
in search of meaning

Nikolay Borzov nikolay-borzov

💀
in search of meaning
  • Saratov, Russia
  • 02:22 (UTC +04:00)
View GitHub Profile
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 {
@nikolay-borzov
nikolay-borzov / Blank snippet.yaml
Last active July 10, 2018 09:04
Shared with Script Lab
name: Blank snippet
description: ''
author: nikolay-borzov
host: EXCEL
api_set: {}
script:
content: |
$("#runArray").click(() => tryCatch(runArray));
async function runArray() {
@nikolay-borzov
nikolay-borzov / speak_time.vbs
Created December 24, 2017 19:01
Speak current time on WIndows
' 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)