Skip to content

Instantly share code, notes, and snippets.

<template>
<v-container>
<template v-if="request !== ''">
<v-card max-width="500" elevation="10">
<v-card-title class="font-weight-bold ml-8 mb-2">
<Request :request="request" />
</v-card-title>
<v-card-text>
<div class="font-weight-bold ml-8 mb-2">
История заявки
const Sequelize = require('sequelize');
class Orm {
constructor(dbname, user, password, tables) {
this.dbname = dbname;
this.user = user;
this.password = password;
this.tables = tables;
this.sequelize = new Sequelize(this.dbname, this.user, this.password, {
const { spawn } = require('child_process');
const { LineStream } = require('./byline.js');
class ndpiReader {
constructor(options = {}) {
this.iface = options.iface;
this.subproc = null;
if(!options.iface)
throw Error("ndpiReader: network is not defined!");
}
const spawn = require('child_process').spawn,
LineStream = require('./byline.js').LineStream;
function ndpiReader(params, cb)
{
let subproc = null;
let p = new Promise((resolv, reject) => {
const lineStream = new LineStream();
runIntroAnimation = async () => {
await this.setState({
timer: this.state.timer + 1.5,
scaleA: new Animated.Value(1),
opacityA: new Animated.Value(1),
scaleB: new Animated.Value(1),
opacityB: new Animated.Value(1)
});
let { scaleA, scaleB, opacityA, opacityB } = this.state;
Animated.stagger(500, [
@tuor4eg
tuor4eg / bljad.js
Last active October 18, 2018 13:35
const mysql = require('mysql');
const Express = require('express');
const connection = mysql.createConnection({
host : 'localhost',
user : 'root',
password : '123',
database : 'node_test'
});
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React, { Component } from 'react';
import { Text, View, StyleSheet, Dimensions, Alert, TouchableHighlight } from 'react-native';
export default class Carousel extends React.Component {
state = {
active: 0
}
onClick = (id) => {
this.setState({ active: id });
}
render() {
export default class BtnGroup extends React.Component {
state = {
active: null
};
onClick = ({ target }) => {
const getSide = target.classList[2];
this.setState({ active: getSide });
}
const data = {
name: '',
lastName: '',
country: '',
};
const selectScreen = [screen1, screen2, screen3, screen4];
let screen = 0;