- Download WebStorm for Linux platform: https://www.jetbrains.com/webstorm/download/download-thanks.html?platform=linux
- Extract the archive using
sudo tar xvzf WebStorm-2019.3.3.tar.gz -C /opt
- Rename the folder
sudo mv WebStorm-193.6494.34/ WebStorm
- Start it
cd WebStorm/bin && ./webstorm.sh
- Add shortcut from within WebStorm interface: Open Tools -> Create Desktop Entry
# my_frontend/Dockerfile | |
### STAGE 1: Build ### | |
FROM node:latest as build | |
RUN mkdir /usr/src/app | |
WORKDIR /usr/src/app | |
ENV PATH /usr/src/app/node_modules/.bin:$PATH | |
COPY package.json /usr/src/app/package.json | |
RUN npm install --silent | |
COPY . /usr/src/app |
----- BEGIN LICENSE ----- | |
eldon | |
Single User License | |
EA7E-1122628 | |
C0360740 20724B8A 30420C09 6D7E046F | |
3F5D5FBB 17EF95DA 2BA7BB27 CCB14947 | |
27A316BE 8BCF4BC0 252FB8FF FD97DF71 | |
B11A1DA9 F7119CA0 31984BB9 7D71700C | |
2C728BF8 B952E5F5 B941FF64 6D7979DA | |
B8EB32F8 8D415F8E F16FE657 A35381CC |
<?php | |
function camel_to_snake($input) | |
{ | |
return strtolower(preg_replace('/(?<!^)[A-Z]/', '_$0', $input)); | |
} | |
function snakeToCamel($input) | |
{ | |
return lcfirst(str_replace(' ', '', ucwords(str_replace('_', ' ', $input)))); | |
} |
- Установка плагина Get Gist Beta в PhpStorm
- File > Settings > Plugins > Browse Repositories > Get Gist Beta (https://plugins.jetbrains.com/plugin/7236-get-gist-beta-)
- В настройках плагина вводим пароль или генерируем токен на GitHub
- Инструкция - https://github.com/condemil/Gist#generating-access-token
- Токены - https://github.com/settings/tokens
P.S. К сожалению в Windows плагин работает не корректно c кодировкой Win-1251. Проблема до сих пор актуальна.
* Update (12.09.2017): I have improved the trait so that it can be used with objects other than Eloquent Models.
Some days ago I came across a task where I needed to implement managable state for an Eloquent model. This is a common task, actually there is a mathematical model called "Finite-state Machine". The concept is that the state machine (SM) "can be in exactly one of the finite number of states at any given time". Also changing from one state to another (called transition) depends on fulfilling the conditions defined by its configuration.
Practically this means you define each state that the SM can be in and the possible transitions. To define a transition you set the states on which the transition can be applied (initial conditions) and the only state in which the SM should be after the transition.
That's the theory, let's get to the work.
<template> | |
<div class="col-xs-12" style="padding:0;"> | |
<div class="panel panel-default" style="margin:0;"> | |
<div class="panel-body" style="padding:0;"> | |
<div v-if="maps.length" :style="{height: height + 'px'}" id="map"></div> | |
<h3 v-else class="text-center">Нет точек</h3> | |
</div> | |
</div> | |
</div> | |
</template> |
- Создайте в локальной дирриктори вашего проекта файл сборки
Dockerfile
со следующим содержанием:
FROM php:5
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \