The contribution guideline is derived from the SlimPHP, Istanbul Code Coverage and Ruby contribution guideline
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
def hourglassSum(arr): | |
results = [] | |
max_value = 0 | |
for j in range(4): | |
sums = [] | |
for i in range(5): | |
sum_01 = sum(arr[j][i : 3 + i]) | |
sum_02 = arr[j + 1][i + 1] | |
sum_03 = sum(arr[j + 2][i : 3 + i]) | |
sums.append(sum_01 + sum_02 + sum_03) |
Inspiration: Deis Commit Style Guide
I often quote Deis in sections below.
It makes going back and reading commits easier. It also allows you to spend less time thinking about what your commit message should be.
- Install pyenv with: https://github.com/pyenv/pyenv-installer
- Install a version of python 3:
pyenv install 3.11.2
pyenv global 3.11.2
- Install poetry with: https://python-poetry.org/
- Config virtual-envs in project (👉 More info):
poetry config settings.virtualenvs.in-project true
- You can config this setting in current project:
poetry config --local virtualenvs.in-project true
Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.
NOTE: This logic can be extended to more than two accounts also. :)
The setup can be done in 5 easy steps:
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
akamud.vscode-theme-onelight | |
AkashChikane.List2Array | |
andys8.jest-snippets | |
atlassian.atlascode | |
bierner.color-info | |
burkeholland.simple-react-snippets | |
dericcain.feather | |
dsznajder.es7-react-js-snippets | |
emilast.LogFileHighlighter | |
Equinusocio.vsc-community-material-theme |
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
function print (path: any, layer: any) { | |
if (layer.route) { | |
layer.route.stack.forEach(print.bind(null, path.concat(split(layer.route.path)))) | |
} else if (layer.name === 'router' && layer.handle.stack) { | |
layer.handle.stack.forEach(print.bind(null, path.concat(split(layer.regexp)))) | |
} else if (layer.method) { | |
console.log('%s /%s', | |
layer.method.toUpperCase(), | |
path.concat(split(layer.regexp)).filter(Boolean).join('/')) | |
} |
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
git fetch -p && for branch in $(git for-each-ref --format '%(refname) %(upstream:track)' refs/heads | awk '$2 == "[gone]" {sub("refs/heads/", "", $1); print $1}'); do git branch -D $branch; done | |
# More info: https://stackoverflow.com/a/33548037/4752488 |
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
# | |
# rgl layout text file (v2.1) - raygui layout file generated using rGuiLayout | |
# | |
# Number of controls: 19 | |
# | |
# Ref. window: r <x> <y> <width> <height> | |
# Anchor info: a <id> <name> <posx> <posy> <enabled> | |
# Control info: c <id> <type> <name> <rectangle> <anchor_id> <text> | |
# | |
r 0 0 -1 -1 |
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
cc game.c -Llib -Wl,-rpath,lib -lraylib -Iinclude |