Skip to content

Instantly share code, notes, and snippets.

View Juszczak's full-sized avatar

Adrian Juszczak Juszczak

View GitHub Profile
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;
}
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)
@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
@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 / fig1.js
Created December 3, 2021 19:29
test
console.log('Hello World!');