# list all commits in `master` not present in `pre-prod`
git log --no-merges master ^pre-prod
# for a nicer one-line-per-commit format use this
git --no-pager log --pretty=format:"%h%x09%an%x09%ad%x09%s" --no-merges master ^pre-prod
as suggested in Dr KK Aggarwal's online OPD (screenshot)
DO NOT self diagnose. ALWAYS consult a doctor. This document is just for the purpose of cross-referencing. Please do follow the advise of your own Doctor.
Indicators: You are in contact with someone with COVID like symptoms.
- Ivermectin 12mg daily x 3 days
- Doxycycline 100mg daily x 3 days
- If CRP > 1: Colchicine 0.5mg one daily x 21 days
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
import math | |
import re | |
import sys | |
from collections import Counter | |
WORD = re.compile(r"\w+") | |
def get_cosine(vec1, vec2): | |
intersection = set(vec1.keys()) & set(vec2.keys()) |
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
from difflib import ndiff | |
import sys | |
def distance(str1, str2): | |
a = 0 | |
r = 0 | |
for x in ndiff(str1, str2): | |
if x[0] == "-": |
In order to streamline communication across the company, we have decided use Slack as the central communication platform.
- All internal communication happening on whatsapp will be ported to slack.
- list of official channels is provided below, in case it is not obvious which whatsapp group maps to which channel just ask on
#help-slack
. - Whatsapp groups involving external vendors and clients will remain open, all others are now deprecated.
Please go through the list of official channels below and also read through the FAQs.
This document is fairly loose, in case of any confusions or clarifications necessary, post on channel #help-slack
so we can discuss and improve this document over time.
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
# to disconnect all containers attached to a network | |
for i in ` docker network inspect -f '{{range .Containers}}{{.Name}} {{end}}' network_name`; do docker network disconnect -f network_name $i; done; |
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
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | |
if [[ $UID -eq 0 ]]; then | |
local user_host='%{$terminfo[bold]$fg[red]%}%n%{$reset_color%}' | |
local user_symbol='#' | |
else | |
local user_host='%{$terminfo[bold]$fg[green]%}%n%{$reset_color%}' | |
local user_symbol='$' | |
fi |
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
function* batches(volume, batchSize) { | |
let parts = Math.ceil(volume / batchSize) | |
for (let i = 0; i < parts; i++) { | |
yield { value: Math.min(volume, batchSize), index: i } | |
volume -= batchSize | |
} | |
} |
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 belongsToAP = (first, diff, last) => { | |
return num => { | |
if (num < first || num > last) { | |
return false | |
} | |
const res = (num - first) / diff + 1 | |
if (Number.isInteger(res)) { | |
return true | |
} |
NewerOlder