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
| <template> | |
| <div class="ajax-select" :class="{'default': ! isTouched}"> | |
| <multiselect | |
| :options="options" | |
| :selected.sync="selected" | |
| :multiple="false" | |
| :placeholder="placeholder" | |
| :on-search-change="fetchData" | |
| key="" | |
| :label="label" |
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
| <style> | |
| </style> | |
| <template> | |
| <div> | |
| <!-- Displays selected item only | |
| after click on multiselect, then out of it.--> | |
| <multiselect | |
| :options.sync="options" |
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
| <?php | |
| use League\Flysystem\Adapter\Local; | |
| use League\Flysystem\Filesystem; | |
| require_once($_SERVER["DOCUMENT_ROOT"] . '/autoload/bootstrap.php'); | |
| $path = 'baldr_sky_manual/manual'; | |
| $dir = new Filesystem(new Local($_SERVER["DOCUMENT_ROOT"])); |
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
| <?php | |
| set_time_limit ( 900000 ); | |
| $file = fopen('99board.sql', 'r+'); | |
| $i = 0; | |
| // SET SESSION sql_mode = 'ONLY_FULL_GROUP_BY,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'; | |
| fputs($file, 'SET SESSION sql_mode = \'ONLY_FULL_GROUP_BY,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION\';' . PHP_EOL . '/*'); |
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
| Инструкция по обновлению шапки в группе. | |
| 1) Удалить прошлый пост | |
| 2) Создать новый от имени группы. | |
| 3) Написать `Released Dwarf Fortress 0.40.20`, не забыть изменить версию на актуальную. | |
| 4) Вставить ссылки, подождать пока контакт спарсит содержимое: | |
| https://vk.com/page-2606586_49490739 | |
| https://pp.vk.me/c624419/v624419143/a20b/dqJyc8wYZL4.jpg |
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
| <?php | |
| use Illuminate\Http\JsonResponse; | |
| use Symfony\Component\HttpFoundation\Request; | |
| class ApiJsonResponse extends JsonResponse | |
| { | |
| protected $apiData; |
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
| Что такое [Ngrok](https://ngrok.com/)? Не спешите лететь по ссылке. Я сейчас расскажу. | |
| Это своеобразный туннель к локалхосту. Допустим, у вас есть локальный проект, к которому вы обращаетесь следующим образом `http://my-project.local`. Ngrok позволяет другим человекам из интернета открыть ту же страницу, забив адрес `http://my-project.ngrok.com`. | |
| Первый и главный вопрос: | |
| Нафига оно нужно? | |
| =========== | |
| 1) Очень легко и просто показать заказчику полуфабрикат/прототип, и даже поправить что-нибудь на ходу. | |
| 2) Полезно для совместной разработки. | |
| 3) Можно хостить что-нибудь мелкое (извращение). |
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
| <template> | |
| <div class="flag-container col-sm-12"> | |
| <div class="flag-icon" @click="clean"> | |
| <i class="fa fa-globe fa-2x"></i> | |
| </div> | |
| <template v-for="(id, selected) in countries"> | |
| <div class="flag-icon" | |
| :selected="selected" | |
| @click="toggleCountry(id)"> | |
| <vm-country-icon :country="id"></vm-country-icon> |
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 _ from 'lodash' | |
| module.exports = function (Vue){ | |
| // Глобальные миксины. | |
| Vue.mixin({ | |
| props: { | |
| id: { | |
| default: function (){ | |
| var component_name = _.kebabCase(this.constructor.name); |