Skip to content

Instantly share code, notes, and snippets.

@zhirzh
zhirzh / a.json
Last active April 27, 2026 17:20
tmp
[ { "employee email": "aanchal.chawla@anarock.com", "Reporting Manager Email": "karan.gupta1@anarock.com", "Designation": "Senior Manager" }, { "employee email": "aarohi.juwatkar@anarock.com", "Reporting Manager Email": "shweta.papriwal@anarock.com" }, { "employee email": "aashish.singh@anarock.com", "Reporting Manager Email": "saurabh.jain3@anarock.com" }, { "employee email": "abbas.rizvi@anarock.com", "New employee name": "MOHAMMED ABBAS RIZVI", "Reporting Manager Email": "manu.sharma@anarock.com" }, { "employee email": "abdul.rehaman@anarock.com", "Reporting Manager Email": "vasanthkumar@anarock.com" }, { "employee email": "abhai.mani@anarock.com", "New employee name": "Abhai Mani Chaturvedi" }, { "employee email": "abhay.nair@anarock.com", "Reporting Manager Email": "brijesh.shah@anarock.com" }, { "employee email": "abhay.singh2@anarock.com", "New employee name": "Abhay Pratap Singh", "Reporting Manager Email": "harshil.b@anarock.com" }, { "employee email": "abheet.dogra@anarock.com", "Employee Code": "15
declare namespace ExcelScript {
//
// Class
//
/**
* Represents an `AllowEditRange` object found in a worksheet. This object works with worksheet protection properties.
* When worksheet protection is enabled, an `AllowEditRange` object can be used to allow editing of a specific range, while maintaining protection on the rest of the worksheet.
*/
interface AllowEditRange {
@zhirzh
zhirzh / rxviz.js
Last active August 10, 2020 18:30
action queue 500 retry
/**
* run on https://rxviz.com
* Time window must be 10+ seconds
*/
// rxviz setup
console.clear();
const { BehaviorSubject, EMPTY, from, merge, of, Subject } = Rx;
Object.keys(RxOperators).forEach(k => {
if (k !== "window") window[k] = RxOperators[k];
simple cases:
U call A: outgoing A
call ends: idle A
A accepts: offhook A
call ends: idle A
A call U: ringing A
call ends: idle A
U accepts: offhook A
export interface Doodle {
alternate_url: string
blog_text: string
call_to_action_image_url: string
collection_id: number
countries: string[]
doodle_args: DoodleArg[]
doodle_type: DoodleType
height: number
high_res_height: number
const { join, resolve } = require('path')
const tsconfig = require('../tsconfig.json')
const { outDir, paths } = tsconfig.compilerOptions
const _load = module.constructor._load
module.constructor._load = function(request, ...args) {
for (let alias in paths) {
const aliasRegExp = new RegExp('^' + alias.replace('*', '(.*)') + '$')
jscodeshift \
-t js-codemod-import-absolute-develop/import-absolute.js \
--extensions=ts,tsx \
--parser=tsx \
--sort=false \
--replace="$PWD/src/" \
--replaceWith="~" \
src/
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>loops</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Untitled benchmark</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>