git remote add upstream [email protected]:cdv-poznan/javascript-project-starter.git
git fetch upstream
git rebase upstream/master
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
| console.log('Hello World!'); |
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
| <div id="weather-wrapper"> | |
| <canvas id="weather-canvas"></canvas> | |
| <canvas id="canvas"></canvas> | |
| </div> |
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
| const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| const CopyWebpackPlugin = require('copy-webpack-plugin'); | |
| const isProduction = !!process.env.WEBPACK_PRODUCTION; | |
| console.log('isProduction:', typeof isProduction); | |
| const htmlPluginConfig = {template: './src/index.html'}; | |
| const htmlPlugin = new HtmlWebpackPlugin(htmlPluginConfig) |
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 Person(name) { | |
| this.name = name; | |
| } | |
| Person.prototype.sayHello = function() { console.log('Hello, my name is ' + this.name + '!'); } | |
| function Student(name, id) { | |
| Person.call(this, name); | |
| this.id = id; | |
| } |
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
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDB4lGzMVd/nB31VcYioWWXuISXJKFQnQdyiwMVW55CPenvZQJ/aPni2/pCZVooAj4t6gpiPfNJdAuYBPc4n3b3VeiahczcQgaBq+It1LvGc40oUdMccWETj5Z59+H3zzzYNqkry31N8PqwcDCd6TNa5NTFLh24rGusrHk7FBIH7G9nTnL5Ejzh/CcQ1hMlQ72Hcxd6ANVqql+MSVDPmQHQaQAQSCEDgxoY4PljWEDUQqUgBbVckyd1MEFFdihFssUs73OL3TMuEDVxuWbBsyK/JUONpPQ1qC2xOHo2KEzywbce1JejF4eG6N9fTvOlEdZz+9ABW6LBiz4xdotl4JcDXpFawtK//9ed3zlWJjdlPSRYHV709YjNT6c6iD0k9G0uqOhuCNC8qVr5DOIDbY1iLbviQLtIjWqkTlIErF8n76JdF0zZreS9kwMS8XLv1nCktjBHd8iLUh9KGzllgtVel1/bZy4LuEvk/AksTE1/WFKm85NzVO93qSQom1HlY0+SVReUbpmhRM4/Jj7RAi0ezhAOC5ltS592yc+Xqk+HSQ25dMI9GBNItPYrPPxgexgC0QTkFIyM6e53yXpPKFDQQHZdyuLc0vLpTLgiWTQFc8p8FppCTYaiqkk82tDuoGRl78w64c3C8Fk/+YyyvOeLlXg28PxbZDSSjcRB1UL6FQ== |
Command:
curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"URLs that can be created is from:
https://github.com/*https://*.github.comhttps://*.github.com/*https://*.github.io
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
| sudo lsof -i tcp:4200 | grep LISTEN | awk '{print $2}' | xargs sudo kill -9 |
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
| export VISUAL=vim | |
| export EDITOR="$VISUAL" | |
| green=$(tput setaf 2) | |
| reset=$(tput sgr0) | |
| PS1="\w \[$green\]$\[$reset\] " | |
| stty -ixon | |
| [ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion | |
| test -e "${HOME}/.iterm2_shell_integration.bash" && source "${HOME}/.iterm2_shell_integration.bash" |
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
| #!/usr/bin/env bash | |
| sed -e 's/\([A-Z]\)/-\1/g' -e 's/^-//' <<< "$@" | awk '{print tolower($0)}' |
NewerOlder