| Before | After |
|---|---|
|
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
| npm install -g nodemon | |
| nodemon --exec python my_program.py |
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
| #name of your ogranisation | |
| #ORG=some_org | |
| #name of your team | |
| #TEAM_SLUG=some_team | |
| #permission to be given. Possible values are pull, triage, push, maintain, admin | |
| #PERMISSION=pull | |
| #more details on listing repos: https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#list-organization-repositories | |
| #more details on giving permission to a team https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#add-or-update-team-repository-permissions |
Reasons:
- UNIX standard
- If the last line in a file doesn't end with a newline then addition of next line affects two lines instead of one. This also pollutes diff on multiple files, so reader may wonder what has changed in a line whereas no significant change has occured.
Multiple newlines at the file end are also redundant as well as spaces at the end of line.
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
| # From .NET Core 3.0 you can use the command: `dotnet new gitignore` to generate a customizable .gitignore file | |
| *.swp | |
| *.*~ | |
| project.lock.json | |
| .DS_Store | |
| *.pyc | |
| # Visual Studio Code | |
| .vscode |
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
| from ctypes import * | |
| def convert_bytes_to_structure(st, byte): | |
| # sizoef(st) == sizeof(byte) | |
| memmove(addressof(st), byte, sizeof(st)) | |
| def convert_struct_to_bytes(st): | |
| buffer = create_string_buffer(sizeof(st)) | |
| memmove(buffer, addressof(st), sizeof(st)) |