This file contains hidden or 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
| gform="^202[0-9]{1}PECCB[1-3]{1}[0-9]{2}$" | |
| # all rollno | |
| # does from | |
| # -2020 onwards | |
| # - cb, cs, ai, ml, cc, it | |
| # - from 100-999 | |
| gform="202[0-9]{1}PEC(CB|AI|ML|CC|CS|IT)[1-9]{1}[0-9]{2}$" |
This file contains hidden or 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
| # replace LockedApp.app with the app to unlock | |
| sudo xattr -rd com.apple.quarantine '/Applications/LockedApp.app' |
This file contains hidden or 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
| # Creating | |
| pip freeze > requirements.txt | |
| # Installing | |
| pip install -r requirements.txt | |
| # see eeeasy peeeasy |
This file contains hidden or 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
| # create venv | |
| py -m venv venv | |
| # activate venv | |
| source venv/bin/activate |
This file contains hidden or 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
| <footer> | |
| © Copyright <span id="copyright"></span>, aviiciii | |
| </footer> | |
| <script>document.getElementById('copyright').appendChild(document.createTextNode(new Date().getFullYear()))</script> |
This file contains hidden or 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
| # open in terminal | |
| $ nano ~/.zshrc | |
| # this open a file in nano editor | |
| # add the following line in the editor | |
| alias py=python | |
| or | |
| alias py=python3 |
This file contains hidden or 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 re | |
| inpt=input('ID:') | |
| # inpt = '21F3000426' | |
| # writting regex | |
| if re.search(r'^(21|22)(F|DP|DS)([1-3]{1})([0-9]{6})$', inpt): | |
| print('Valid ID') | |
| else: | |
| print('Invalid ID') |