- install webpack
npm install --save-dev webpack webpack-cli ts-loader
- install typescript
npm install --save-dev typescript
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
"use strict"; | |
class fn | |
{ | |
constructor(selector){ | |
this.selector = this.select(selector); | |
} | |
// select | |
select(selector) { |
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 python3 | |
import time | |
import os | |
# home path to user | |
user_home = os.environ["HOME"] | |
# setp - 1 | |
os.system('clear') | |
# define default value for variable |
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
[autorun] | |
open = "./.@Autorun/.setup.sh" | |
label = MY_USB_NAME | |
icon = "./.@Autorun/icon.ico" |
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 class Direction implements Direction.Interface { | |
private _direction: Direction.Direct | `${Direction.Direct}` | null = null; | |
private _startPoint: Point | null = null; | |
private _endPoint: Point | null = null; | |
public constructor() {} | |
public setStartPoint(startPoint: Point): void { | |
this._startPoint = startPoint; | |
} |
Just for entertainment:
- Compile with
webpack --profile --json > stats.json
(node.js API:{ profile: true }
andstats.toJson()
) - Go to http://webpack.github.io/analyse/#modules
- Load your stats file (It's not uploaded, the analyse tools is a client only tool).
- Wait a bit until the graph has been stabilized.
- Screenshot and cut the graph area.
- Post it into this thread.
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 { create, type SetState } from '@core/module/store'; | |
import { | |
COUNTDOWN_DEFAULT_DURATION, | |
COUNTDOWN_DEFAULT_STATE, | |
COUNTDOWN_STORAGE_KEY, | |
} from './countdown.constants'; | |
import type { | |
CountDownAction, | |
CountDownState, | |
CountDownStore, |