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
| /* Copyright 2013 Google Inc. | |
| Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0.html */ | |
| package com.example.latlnginterpolation; | |
| import android.animation.ObjectAnimator; | |
| import android.animation.TypeEvaluator; | |
| import android.animation.ValueAnimator; | |
| import android.annotation.TargetApi; | |
| import android.os.Build; |
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
| /* Copyright 2013 Google Inc. | |
| Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0.html */ | |
| package com.example.latlnginterpolation; | |
| import android.animation.ObjectAnimator; | |
| import android.animation.TypeEvaluator; | |
| import android.animation.ValueAnimator; | |
| import android.annotation.TargetApi; | |
| import android.os.Build; |
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
| public class MySocket { | |
| public enum SocketEventsEnum { | |
| operationCreated, | |
| operationComplete, | |
| newMessage, | |
| sameUserConnected | |
| } | |
| //Сам класс с сокетом |
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
| public class CoordinatorMain { | |
| public interface CustomBackBtnClicker { | |
| void backClick(); | |
| } | |
| //Класс который отвечает за навигацию в приложении | |
| private String LOG = "CoordinatorMAIN!"; |
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 express = require('express'); | |
| const http = require('http'); | |
| const cors = require('cors'); | |
| const app = express(); | |
| app.use(cors()); | |
| app.use(express.urlencoded({ extended: true })); | |
| app.use(express.json()); |
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 { Sequelize } = require("sequelize"); | |
| //Создваем instance Sequelize | |
| const sequelizeInstance = new Sequelize({ | |
| // dialect: "postgres", | |
| // host: "21.23.35.4", | |
| // port: 6000, | |
| // database: "js-todo", | |
| // username: "postgres", | |
| // password: "qwerty10", |
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 Sequelize = require("sequelize"); | |
| const { sequelizeInstance } = require(".."); | |
| class ToDo extends Sequelize.Model {} | |
| ToDo.init( | |
| { | |
| id: { | |
| type: Sequelize.DataTypes.UUID, | |
| primaryKey: true, |
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
| function funAsync() { | |
| return new Promise((resolve, reject) => { | |
| setTimeout(() => { | |
| console.log('ASYNC END'); | |
| // resolve() | |
| reject("asdasdads"); | |
| }, 3000); | |
| }) | |
| } |