| gitflow | git |
|---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
you don't need hub to update pull requests. Pull requests are tied to the remote branch they're opened from (the pull-request "head"). Just push to that branch again and GitHub will automatically figure it out. You can even force-push, of you need that.
What if you accidentally have removed the remote branch that is linked to the PR? Is it possible to fetch the PR and link it to a new remote on your fork, so the PR can be updated? Asking for a friend...
So to update a PR, even if you have removed the original remote branch out of which the PR was created, you just need to:
- Fetch the PR (git fetch pull//head:branchname and git checkout branchname).
- Add new commits, amend, rebase, do whatever you like.
- Push or push force (git push remote +branch).
And after that the PR will be automagically updated :)
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 node-gyp | |
| export npm_config_node_gyp=/usr/local/lib/node_modules/node-gyp/bin/node-gyp.js | |
| rm -rf node_modules(if already there) | |
| npm install | |
| # Source : https://github.com/nodejs/node-gyp/issues/2144#issuecomment-703856503 |
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
| # This file contains two config and it can't be runned | |
| # You should keep only one config (Single node or HA version) | |
| # Single node | |
| version: '2' | |
| services: | |
| zookeeper: | |
| image: confluentinc/cp-zookeeper:7.4.4 | |
| environment: | |
| ZOOKEEPER_CLIENT_PORT: 2181 |
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
| /* | |
| <html> | |
| <head> | |
| <meta charset="utf-8"/> | |
| </head> | |
| <body style="border-color: #edecec3b;"> | |
| <div> | |
| <h2 id="title">Game</h2> | |
| <canvas style="border: 1px solid gray;" data-size="900"></canvas> | |
| <br/> |
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 mcr.microsoft.com/devcontainers/base:jammy | |
| USER vscode | |
| RUN curl -s "https://get.sdkman.io" | bash | |
| RUN chmod +x "$HOME/.sdkman/bin/sdkman-init.sh" | |
| RUN "$HOME/.sdkman/bin/sdkman-init.sh" | |
| # Java Env |
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 time | |
| from watchdog.observers import Observer | |
| from watchdog.events import FileSystemEventHandler | |
| import os | |
| import sys | |
| from os import path | |
| import re | |
| """ | |
| Requirements : |
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
| # Coderetreat @2023 - Arolla | |
| # vivant + <=1 voisin ----> Meurt | |
| # vivant + >=4 voisins ----> Meurt | |
| # vivant + {2, 3} voisins ----> Conserve son statut | |
| # vide + 3 voisins ----> Survit | |
| # Business | |
| # Il nous a demandé de modéliser la grille : | |
| # - en gardant uniquement les cellules vivantes | |
| # - rille sans bornes |
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
| # Coderetreat @2023 - Arolla | |
| # Authors : NEB + AMEH | |
| # vivant + <=1 voisin ----> Meurt | |
| # vivant + >=4 voisins ----> Meurt | |
| # vivant + {2, 3} voisins ----> Conserve son statut | |
| # vide + 3 voisins ----> Survit | |
| # Business | |
| NEXT_STATE = { | |
| 0: (lambda _ : 0), |
NewerOlder