Skip to content

Instantly share code, notes, and snippets.

View anishkny's full-sized avatar

Anish Karandikar anishkny

  • San Francisco Bay Area
  • 11:26 (UTC -07:00)
  • X @anishkny
View GitHub Profile
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<coverage line-rate="0.6059701492537314" branch-rate="0.4349775784753363" complexity="268" version="1.9" timestamp="1693172417" lines-covered="203" lines-valid="335" branches-covered="97" branches-valid="223">
<packages>
<package line-rate="0.5130111524163569" branch-rate="0.3902439024390244" complexity="228" name="Serilog.Extensions.Logging">
<classes>
<class line-rate="0" branch-rate="0" complexity="4" name="Serilog.LoggerSinkConfigurationExtensions" filename="/_/src/Serilog.Extensions.Logging/LoggerSinkConfigurationExtensions.cs">
<methods>
<method line-rate="0" branch-rate="0" complexity="4" name="Providers" signature="(Serilog.Configuration.LoggerSinkConfiguration, Serilog.Extensions.Logging.LoggerProviderCollection, Serilog.Events.LogEventLevel, Serilog.Core.LoggingLevelSwitch)">
<lines>
<line number="43" hits="0" branch="True" condition-coverage="0% (0/2)">
@anishkny
anishkny / gist:33d87ca4a754e5653cc9919fc2831c42
Created January 17, 2021 23:30
Displaying Lakhs and Crores in Google Sheets
[$₹][>9999999]##\,##\,##\,##0.00;[$₹][>99999]##\,##\,##0.00;[$₹]##,##0.00
Google Sheets : Format -> Number -> More Formats -> Custom Number Format
Excel : Format -> Cells -> Custom -> [Custom text box]
Source: https://stackoverflow.com/a/34690816/8901261
@anishkny
anishkny / allow-copy-paste.js
Last active October 1, 2020 15:30
Allow copy paste in webpage
document.addEventListener('paste', function (e) { e.stopImmediatePropagation(); return true; }, true);
{"botanicus/ace":{"17617":{"size":4183,"stargazers_count":36,"watchers_count":36,"forks_count":6,"open_issues_count":0,"forks":6,"open_issues":0,"watchers":36,"network_count":6,"subscribers_count":3}},"posativ/acrylamid":{"17617":{"size":7146,"stargazers_count":298,"watchers_count":298,"forks_count":42,"open_issues_count":45,"forks":42,"open_issues":45,"watchers":298,"network_count":42,"subscribers_count":25}},"iamfrntdv/adm-dev-kit":{"17617":{"size":286,"stargazers_count":29,"watchers_count":29,"forks_count":5,"open_issues_count":11,"forks":5,"open_issues":11,"watchers":29,"network_count":5,"subscribers_count":2}},"sparanoid/almace-scaffolding":{"17617":{"size":4145,"stargazers_count":147,"watchers_count":147,"forks_count":70,"open_issues_count":5,"forks":70,"open_issues":5,"watchers":147,"network_count":70,"subscribers_count":8}},"antwarjs/antwar":{"17617":{"size":4537,"stargazers_count":387,"watchers_count":387,"forks_count":27,"open_issues_count":5,"forks":27,"open_issues":5,"watchers":387,"network_count"