Skip to content

Instantly share code, notes, and snippets.

View Juszczak's full-sized avatar

Adrian Juszczak Juszczak

View GitHub Profile
@Juszczak
Juszczak / fig1.js
Created December 3, 2021 19:29
test
console.log('Hello World!');
@Juszczak
Juszczak / index.html
Created May 15, 2020 08:17
Chart.js Custom Tooltip
<div id="weather-wrapper">
<canvas id="weather-canvas"></canvas>
<canvas id="canvas"></canvas>
</div>
@Juszczak
Juszczak / sync.md
Last active April 26, 2020 09:09
Synchronizacja forka ze starterem

Synchronizacja forka

Wersja SSH

git remote add upstream git@github.com:cdv-poznan/javascript-project-starter.git

git fetch upstream

git rebase upstream/master
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)
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;
}
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDB4lGzMVd/nB31VcYioWWXuISXJKFQnQdyiwMVW55CPenvZQJ/aPni2/pCZVooAj4t6gpiPfNJdAuYBPc4n3b3VeiahczcQgaBq+It1LvGc40oUdMccWETj5Z59+H3zzzYNqkry31N8PqwcDCd6TNa5NTFLh24rGusrHk7FBIH7G9nTnL5Ejzh/CcQ1hMlQ72Hcxd6ANVqql+MSVDPmQHQaQAQSCEDgxoY4PljWEDUQqUgBbVckyd1MEFFdihFssUs73OL3TMuEDVxuWbBsyK/JUONpPQ1qC2xOHo2KEzywbce1JejF4eG6N9fTvOlEdZz+9ABW6LBiz4xdotl4JcDXpFawtK//9ed3zlWJjdlPSRYHV709YjNT6c6iD0k9G0uqOhuCNC8qVr5DOIDbY1iLbviQLtIjWqkTlIErF8n76JdF0zZreS9kwMS8XLv1nCktjBHd8iLUh9KGzllgtVel1/bZy4LuEvk/AksTE1/WFKm85NzVO93qSQom1HlY0+SVReUbpmhRM4/Jj7RAi0ezhAOC5ltS592yc+Xqk+HSQ25dMI9GBNItPYrPPxgexgC0QTkFIyM6e53yXpPKFDQQHZdyuLc0vLpTLgiWTQFc8p8FppCTYaiqkk82tDuoGRl78w64c3C8Fk/+YyyvOeLlXg28PxbZDSSjcRB1UL6FQ==
@Juszczak
Juszczak / git-io-custom-url.md
Created November 22, 2018 10:30 — forked from dikiaap/git-io-custom-url.md
git.io custom URL

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.com
  • https://*.github.com/*
  • https://*.github.io
sudo lsof -i tcp:4200 | grep LISTEN | awk '{print $2}' | xargs sudo kill -9
@Juszczak
Juszczak / .bash_profile
Created October 17, 2018 15:11 — forked from vodrazka/.bash_profile
.bash_profile
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"
@Juszczak
Juszczak / decamel.sh
Created June 29, 2018 13:02
Decamelize string in bash
#!/usr/bin/env bash
sed -e 's/\([A-Z]\)/-\1/g' -e 's/^-//' <<< "$@" | awk '{print tolower($0)}'