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
[ | |
{ | |
"key": "alt+1", | |
"command": "workbench.action.focusFirstEditorGroup" | |
}, | |
{ | |
"key": "ctrl+1", | |
"command": "workbench.action.openEditorAtIndex1" | |
}, |
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
type PartialDeep<T> = { | |
[P in keyof T]?: PartialDeep<T[P]>; | |
}; | |
type objectType = Record<string, any>; | |
type nonObjectType = number | string | undefined | boolean | null; | |
const arrayDiff = <T extends nonObjectType | objectType>( | |
oldArr: T[], | |
newArr: T[], |
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
## Append this to bashrc file or zshrc file | |
fetch-pr(){ | |
if [ "$1" = "" ] | |
then | |
echo 'Plese Provide PR number as agrument.' | |
echo 'For example, fetch-pr 47' | |
else | |
git fetch origin pull/$1/head:pr-$1 && git checkout pr-$1 | |
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
Show hidden characters
[ | |
{ "keys": ["ctrl+right"], "command": "move_to", "args": {"to": "eol", "extend": false} }, | |
{ "keys": ["ctrl+left"], "command": "move_to", "args": {"to": "bol", "extend": false} }, | |
{ "keys": ["ctrl+shift+left"], "command": "move_to", "args": {"to": "bol", "extend": true} }, | |
{ "keys": ["ctrl+shift+right"], "command": "move_to", "args": {"to": "eol", "extend": true} }, | |
{ "keys": ["ctrl+up"], "command": "swap_line_up" }, | |
{ "keys": ["ctrl+down"], "command": "swap_line_down" }, | |
] |
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
'body': | |
'ctrl-1': 'pane:show-item-1' | |
'ctrl-2': 'pane:show-item-2' | |
'ctrl-3': 'pane:show-item-3' | |
'ctrl-4': 'pane:show-item-4' | |
'ctrl-5': 'pane:show-item-5' | |
'ctrl-6': 'pane:show-item-6' | |
'ctrl-7': 'pane:show-item-7' | |
'ctrl-8': 'pane:show-item-8' | |
'ctrl-9': 'pane:show-item-9' |
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
#This will left many unallocated student as there is no upper cap defiend for cce student on CSE and ECE courses. | |
import numpy as np | |
studentPreferenceFile = open("generated.csv", "r") | |
#creating objects of student choice | |
studentPreferenceFileData = studentPreferenceFile.readlines() |
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
/************************************************************** | |
Author : Mukul Jain | |
Date : 15 Aug 2015 | |
Note : There are lot of cout which I created to | |
help me to write this program you can | |
erase them or covert to comment | |
according to convience. | |