PHP -> Unibeautify
{
"JavaScript": {
"indent_size": 2,
"indent_char": " ",
"indent_style": "tab",
"beautifiers": [
"Prettier"
]| Up tren | |
| - Detect Bull m1440 dengan up lebih dari 5% sebelumnya | |
| - Pastikan CCI kecendrungan tetap uptrend | |
| Down akan tren | |
| - Detect Bull m1440 dengan up lebih dari 5% sebelumnya | |
| - Pastikan CCI sebelumnya dalam posisi puncak lebih dari 200 |
PHP -> Unibeautify
{
"JavaScript": {
"indent_size": 2,
"indent_char": " ",
"indent_style": "tab",
"beautifiers": [
"Prettier"
]| var recursive = function(index,done,middlewares,props=null){ | |
| console.log(index,'length',middlewares.length) | |
| if(index == middlewares.length){ | |
| return done(); | |
| } | |
| var next = index + 1; | |
| console.log('next',next); | |
| console.log('index',index); | |
| return middlewares[index](props,done,recursive.bind(this,next,done,middlewares)) |
| FROM php:7.2-fpm | |
| # Replace shell with bash so we can source files | |
| RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
| # make sure apt is up to date | |
| RUN apt-get update --fix-missing | |
| RUN apt-get install -y curl | |
| RUN apt-get install -y build-essential libssl-dev zlib1g-dev libpng-dev libjpeg-dev libfreetype6-dev |
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ Warning: These views are highly oppinated and might have some slightly incorrect facts. My experience with typescript was about 2 weeks in Node and a week in angular2.
TypeScript is implementing their own take on JavaScript. Some of the things they are writing will likely never make it in an official ES* spec either.
Technologies that have competing spec / community driven development have a history of failing; take: Flash, SilverLight, CoffeeScript, the list goes on. If you have a large code base, picking TypeScript is something your going to be living with for a long time. I can take a bet in 3 years JavaScript will still be around without a doubt.
Its also worth noting that they have built some things like module system and as soon as the spec came out they ditched it and started using that. Have fun updating!
| # Simple docker template | |
| version: '3' | |
| services: | |
| nginx: | |
| image : rolldone/nginx:1 | |
| working_dir: '/var/www/html' | |
| command : > | |
| bash -c " | |
| ls -a -l && | |
| nginx -g 'daemon off;'" |
| [req] | |
| default_bits = 2048 | |
| default_keyfile = localhost.key | |
| distinguished_name = req_distinguished_name | |
| req_extensions = req_ext |
| const formidable = require('formidable'); | |
| const fs = require('fs'); | |
| var Minio = require('minio'); | |
| let minioClient = new Minio.Client({ | |
| endPoint: config.MINIO.ENDPOINT, | |
| port: config.MINIO.PORT, | |
| accessKey: config.MINIO.ACCESS_KEY, |
| # nginx config | |
| server { | |
| listen 80; | |
| server_name localhost yourdomain.com; | |
| root /var/www/html; | |
| index index.php; | |
| access_log /var/log/nginx/access.log; | |
| error_log /var/log/nginx/error.log; |