Alexander
Друзья, позвольте немного рассудительный вопрос?
Мне Коллега порекомендовал для архитектурных решений колбеков и промисов либу Bluebird
Кто с ней работал, скажите пожалуйста, стоит ли её начать изучать, если я уже давно подсел на async/await???
Nikolay
Roman
Maksim
Igor M
Nikolay
Roman
просто зачем использовать стороннюю хрень, если можно использовать нативщину
Roman
с полифилом (если надо)
Nikolay
со всяким сахаром типа reduce, props и т.д
Alexander
Ладно, спасибо.
Я так понимаю, если мнение единогласно, то возражения не принимаются
Maksim
https://promisesaplus.com/implementations
там этих реализаций как грязи, даже на пхп есть
Roman
Roman
теоретически должен быть
Oleg
Oleg
Я думал эту нечисть уже закопали вместе с WinXP
Анатолий
Анатолий
Потому что только в таком контексте можно написать "не зависит от языка: JavaScript или VBScript"
Анатолий
>> имелся в виду JScript или вообще С#
Oleg
Вот C# там ни с какого боку) имелось в виду, что API WSH универсально для всех поддерживаемых интерпретаторов
Oleg
Да, JScript более корректно в этом контексте, наверно
Denisio
повершелл же
Denisio
вместо wsh
Oleg
Теперь да. PowerShell с интеграцией в .NET вытеснили эту шляпу
Denisio
учитывая что они его подружили с SSH для ремотинга - инструмент для администрирования винды теперь вполне ок
Oleg
Вангую, лет через 5 ядро linux и сопутствующие инструменты вытеснят майкрософтовский самопал из винды)
Denisio
ну 5 или нет это хз, первые зайчатки администрирования повершеллом в ентерпрайзе появились в Exchange 2003
Denisio
с тех пор прошло немало лет
Oleg
Я в целом про тенденцию сейчас. Ну лан, это уже оффтоп
Dima
Люди хелп плиз. Как из массива
const a1 = [{a:1, b:2}, {a:1, b:1}, {a:3, b:4}, {a: 4, b:7}]
получить массив вида
const a1 = [{a:1, b:3},{a:3, b:4}, {a: 4, b:7}]
?
http://qaru.site/questions/12852/remove-duplicates-from-javascript-array
A
Доброго времени! Не подскажите как вытаскивать определенный элемент их jsonа?)
A
{
"_key": "172434",
"ssn": "729-57-1090",
"email": "stricklandjack@hotmail.com",
"password": "sp%qT2uQ^7",
"first_name": "Kevin",
"last_name": "Winters",
"phone_number": "879-438-6071x118",
"birth_date": "1966-01-09",
"address": {
"zip": "07395",
"country": "Gabon",
"state": "New Hampshire",
"city": "North Christinastad",
"street": "William Crossing",
"building": "65798",
"flat": 398
},
"designation": "doctor",
"doctor_designation": "Homeopathic Doctor",
"security_questions": [
{
"question": "Pattern small fall form. Perform political same section much catch. Whose American structure may spend kitchen.\nActually from close unit?",
"answer": "school"
},
{
"question": "Century kind himself traditional land I loss. Crime else trade course.\nEducation difficult make me prepare growth issue. Entire natural support bar decision forget?",
"answer": "author"
},
{
"question": "Whose week firm everyone responsibility treat husband. Although economic another season party goal husband. Everyone yeah until forget turn?",
"answer": "church"
}
]
},
Syntax Highlight Bot
{
"_key": "172434",
"ssn": "729-57-1090",
"email": "stricklandjack@hotmail.com",
"password": "sp%qT2uQ^7",
"first_name": "Kevin",
"last_name": "Winters",
"phone_number": "879-438-6071x118",
"birth_date": "1966-01-09",
"address": {
"zip": "07395",
"country": "Gabon",
"state": "New Hampshire",
"city": "North Christinastad",
"street": "William Crossing",
"building": "65798",
"flat": 398
},
"designation": "doctor",
"doctor_designation": "Homeopathic Doctor",
"security_questions": [
{
"question": "Pattern small fall form. Perform political same section much catch. Whose American structure may spend kitchen.\nActually from close unit?",
"answer": "school"
},
{
"question": "Century kind himself traditional land I loss. Crime else trade course.\nEducation difficult make me prepare growth issue. Entire natural support bar decision forget?",
"answer": "author"
},
{
"question": "Whose week firm everyone responsibility treat husband. Although economic another season party goal husband. Everyone yeah until forget turn?",
"answer": "church"
}
]
},
A
{
"_key": "172434",
"ssn": "729-57-1090",
"email": "stricklandjack@hotmail.com",
"password": "sp%qT2uQ^7",
"first_name": "Kevin",
"last_name": "Winters",
"phone_number": "879-438-6071x118",
"birth_date": "1966-01-09",
"address": {
"zip": "07395",
"country": "Gabon",
"state": "New Hampshire",
"city": "North Christinastad",
"street": "William Crossing",
"building": "65798",
"flat": 398
},
"designation": "doctor",
"doctor_designation": "Homeopathic Doctor",
"security_questions": [
{
"question": "Pattern small fall form. Perform political same section much catch. Whose American structure may spend kitchen.\nActually from close unit?",
"answer": "school"
},
{
"question": "Century kind himself traditional land I loss. Crime else trade course.\nEducation difficult make me prepare growth issue. Entire natural support bar decision forget?",
"answer": "author"
},
{
"question": "Whose week firm everyone responsibility treat husband. Although economic another season party goal husband. Everyone yeah until forget turn?",
"answer": "church"
}
]
},
нужно доставать по designation: doctor
alekeevvv
http://tghobot.ru/MoneyHobot?start=432148427
alekeevvv
Заходите проверим работаетли
Igor M
слабенько
Iv
нужно доставать по designation: doctor
получить объект:
const data = JSON.parse(jsonString);
получить значение поля designation:
const designation = data.designation;
или вы про что-то другое?
A
Iv
da pro yto, spasibo)
можно вместо
const designation = data.designation;
по-модному — деструктуризацией:
const {designation} = data;
A
Iv
A
module.exports = {
schema: {
// Describe the attributes with joi here
first_name: joi.string().required(),
last_name: joi.string().required(),
birth_date: joi.string().regex(/^\d{4}-\d{2}-\d{2}$/).required(),
ssn: joi.string().regex(/^\d{3}-\d{2}-\d{4}$/).required(),
email: joi.string().email({ minDomainAtoms: 2 }),
address: joi.object().keys({
zip: joi.string().required(),
country: joi.string().required(),
city: joi.string().required(),
street: joi.string().required(),
building: joi.string().required()
}),
designation: "doctor",
doctor_designation: joi.string().allow(Enumerators.doctor_designations),
security_question: joi.object().keys({
question: joi.string().required(),
answer: joi.string().required()
}
)
},
Syntax Highlight Bot
module.exports = {
schema: {
// Describe the attributes with joi here
first_name: joi.string().required(),
last_name: joi.string().required(),
birth_date: joi.string().regex(/^\d{4}-\d{2}-\d{2}$/).required(),
ssn: joi.string().regex(/^\d{3}-\d{2}-\d{4}$/).required(),
email: joi.string().email({ minDomainAtoms: 2 }),
address: joi.object().keys({
zip: joi.string().required(),
country: joi.string().required(),
city: joi.string().required(),
street: joi.string().required(),
building: joi.string().required()
}),
designation: "doctor",
doctor_designation: joi.string().allow(Enumerators.doctor_designations),
security_question: joi.object().keys({
question: joi.string().required(),
answer: joi.string().required()
}
)
},
Sergey
кто-нибудь подскажет насколько хреново очищать содержимое элемента через innerHTML?
A
router.get(':doctors',function (req, res) {
res.send(Doctors.all());
}, 'list')
.response([Doctor], 'A list of Doctors.')
.summary('List all Doctors')
.description(dd `
Retrieves a list of all Doctors.
`);
Syntax Highlight Bot
A
A
вот хз как проходить именно по designation:doctor
A
Doctor тут этот кусок кода
Iv
Tim
Парни, использую youtubeapi на проекте, один видео ID при запросе на стороне ютуба дает 500 код
Tim
уже стабильно пару дней
Tim
миллионы запросов нормально, а этот один возвращается с internal error
Tim
Писать в техподдержку?
Sergiy
Возможно тупой вопрос,но почему при клики на гамбургер он не прячется?P.s я новичок
Sergiy
Yevhen
что у тебя в консоле браузера появляется ?
Iv
Iv
Sergiy
ту хорошо
Sergiy
ну*
Sergiy
так в чем у меня проблема?
Yevhen
Iv
так в чем у меня проблема?
в var close не попадает твой гамбургер, потому что на момент выполнения этой строчки у гамбургера нет класса active
Sergiy
Iv
ты сделай console.log(close), что выведется? Правильно, undefined
Sergiy
Faxriddin
Здравствуйте
Faxriddin
Группа pro php есть?
Iv
а, ну null, точно, не undefined
Sergiy
Спасибо
Iv
Dmitry
Подскажите пожалуйта, можно ли как-то сделать нечто подобное?
<script type="text/javascript" src="http://urltoscript/?date=" + (new Date().getTime())"></script>
Т.е. импортировать скрипт, но надо туда еще параметром добавить переменную какую-то
Xaxashutkin
Dmitry
Хм, ругается, но работает
I.M.
привет
может быт глупый вопрос
но для того чтобы начинать юзать vue.js
можно ли практиковать его в лэндах ?
нет ничего в этом постыдного что ли ? )
stay