Skip to content

Instantly share code, notes, and snippets.

View dvvtms's full-sized avatar

dvvtms dvvtms

View GitHub Profile
[{"id":"1","title":"Go shopping"},{"id":"2","title":"Job interview"},{"id":"3","title":"Prepare homework"}]
function sumNumbersInNestedArray(inp: any) {
  let cache = 0;

  const sumRecursive = (args: any) => {
    if (Array.isArray(args)) {
      for (let i = 0; i < args.length; i++) {
        sumRecursive(args[i]);
      }
 } else if (!isNaN(args)) {
**Privacy Policy**
Tomas Valkai built the Event after call app as a Free app. This SERVICE is provided by Tomas Valkai at no cost and is intended for use as is.
This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.
If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Event after call unless otherwise defined in this Privacy Policy.
@dvvtms
dvvtms / .env.development
Created October 5, 2020 10:02
sigp demo
REACT_APP_API_URL=/api
REACT_APP_PROXY_URL=http://www.omdbapi.com
REACT_APP_API_KEY=1505579
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width'>
<title>Privacy Policy</title>
<style> body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; padding:1em; } </style>
</head>
<body>
<strong>Privacy Policy</strong> <p>
@dvvtms
dvvtms / .vimrc
Last active December 22, 2020 08:42
vimrc
" https://stackoverflow.com/questions/13239464/create-a-new-file-in-the-directory-of-the-open-file-in-vim
set autochdir
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
" {{{
" CoC extensions
let g:coc_global_extensions = ['coc-tsserver']
" Remap keys for applying codeAction to the current line.
nmap <leader>ac <Plug>(coc-codeaction)
/**
 * Add string to a specified line to a string
 *
 * https://stackoverflow.com/questions/30764424/insert-string-at-line-number-nodejs
 *
 * @param {*} prevText String
 * @param {*} lineNumber Number
 * @param {*} data String
 */