Skip to content

Instantly share code, notes, and snippets.

View Juszczak's full-sized avatar

Adrian Juszczak Juszczak

View GitHub Profile
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!');
@Juszczak
Juszczak / base64-typescript-class.ts
Created November 12, 2015 16:13
TypeScript class for Base64 encoding/decoding
class Base64 {
private PADCHAR: string = '=';
private ALPHA: string = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
private getByte(s: string, i: number): number {
const x = s.charCodeAt(i);
return x;
}
private getByte64(s: string, i: number): number {