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
| async getSig(fileSystem, fileID) { | |
| try { | |
| const fileBase = await $axios.get(`/api/v2/application/doc-for-sign/${fileSystem}/${fileID}`) | |
| // const signFile = await this.$createAttachedSignature(this.thumbprint, fileBase.data.file, true) | |
| // const uploadSign = await this.uploadSign(fileID, fileSystem, signFile) | |
| // console.log(fileBase.status || 'error'); | |
| // console.log(fileBase); |
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
| const wrap = document.getElementsByClassName('lightlist__cont')[0] | |
| const tracks = Array.from(wrap.getElementsByClassName('d-track')) | |
| const names = tracks.map(track => { | |
| const name = track.getElementsByClassName('d-track__name')[0].getAttribute('title'); | |
| const artists = Array.from(track.getElementsByClassName('d-track__artists')[0].getElementsByTagName('a')); | |
| const artistNames = artists.map(artist => artist.getAttribute('title')).join(', ') | |
| return `${name} - ${artistNames}` | |
| }) |
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 axios from 'axios'; | |
| import VueAxios from 'vue-axios'; | |
| import Vue from 'vue'; | |
| import {authService} from '@/store/modules/auth.module'; | |
| import {REFRESH_TOKEN_ENDPOINT} from '@/constants/endpoints'; | |
| import {LoginResponse} from '@/types/auth'; | |
| Vue.use(VueAxios, axios); | |
| axios.interceptors.request.use((request) => { |
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
| sudo apt-get install software-properties-common -y | |
| sudo add-apt-repository ppa:openjdk-r/ppa | |
| sudo apt-get update | |
| sudo apt-get install openjdk-8-jre -y | |
| sudo apt-get -y install postgresql postgresql-contrib pgadmin3 -y | |
| sudo -u postgres psql postgres | |
| \password postgres | |
| sudo -u postgres psql |
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
| /* В реальной речи многие слова имеют одинаковое звучание, но разный смысл. | |
| * Даже примитивные слова типа "напиши" для программистов и писателей имеют | |
| * разный смысл. Поэтому слова выносятся в "неймспейсы" - сферы применения - | |
| * локальные области использования. | |
| * | |
| * В Java все точно так же, Scanner - сканер, может быть чем угодно | |
| * (сканер qr, сканер отпечатка, сканер входного потока байтов (наш вариант)). | |
| * Поэтому все функции, методы, типа и классы оборачиваются в пакеты - это | |
| * и есть области применения. | |
| * |
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
| // This script will boot app.js with the number of workers | |
| // specified in WORKER_COUNT. | |
| // | |
| // The master will respond to SIGHUP, which will trigger | |
| // restarting all the workers and reloading the app. | |
| var cluster = require('cluster'); | |
| var workerCount = process.env.WORKER_COUNT || 2; | |
| // Defines what each worker needs to run |

