- Adds optional static types in JavaScript.
- Makes the code more expressive.
- Makes it easier to catch bugs in production.
- Can translate to various ecmaScript version.
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
| "======================================================================== | |
| " File: .vimrc | |
| " Source: https://gist.github.com/Aadv1k/ec7dbe9e0d2ef5c50c9613020503527c | |
| " Author: Aadvik<aadv1k@outlook.com> | |
| " Licence: Unilicense | |
| "======================================================================== | |
| syntax on | |
| let mapleader=" " |
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
| /* | |
| * File: gulpfile.js | |
| * Author: Aadvik<aadv1k@outlook.com> | |
| * Description: A simple gulp based js and sass setup with browser reload | |
| * Source: https://gist.github.com/Aadv1k/b5b67161877357fbf5992dd34f0e7143 | |
| * License: GNU Public licence | |
| * Build: `npm init -y && npm install -D gulp gulp-cli uglify gulp-uglify sass gulp-sass browser-sync` | |
| */ | |
| const gulp = require("gulp"); |
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
| ------------------------------------------------------------------ | |
| -- NAME: utils.lua | |
| -- AUTHOR: Aadvik<aadv1k@outlook.com> | |
| -- DESCRIPTION: A simple utils file. | |
| -- LICENCE: GNU Public license | |
| ------------------------------------------------------------------ | |
| function table.indexOf(tab, elem) | |
| for i,v in pairs(tab) do | |
| if v == elem then |
NewerOlder