Евгений Кот "Проблемы JavaScript в большом проекте"
Дмитрий Васильев "Чем Dart может быть полезен JS-разработчикам"
Даниил Гительсон "Model Driven Architecture во фронтенд-разработке"
Максим Гребенщиков "DART в legacy-окружении: свой среди чужих"
Игорь Демьянов "Почему Wrike перешел на Dart?"
| Как удалить папку .idea и лишние файлы из Git | |
| Все делаем в MINGW64 | |
| Удаляем ненужные папки и файлы при синхронизации в Git репозиторий | |
| Прежде всего добавим файл .gitignore в корень проекта: | |
| touch .gitignore |
| // Must install ImageMagick first | |
| http://www.imagemagick.org/script/index.php | |
| //This compresses a jpg with no visible loss of quality. Add in your own file names for target.jpg and result.jpg | |
| convert -strip -interlace Plane -sampling-factor 4:2:0 -quality 85% target.jpg result.jpg | |
| // This does the same as above but to an entire folder (will overwrite original files): | |
| mogrify -strip -interlace Plane -sampling-factor 4:2:0 -quality 85% *.jpg | |
| //This does the same thing but to all subfolders as well (Be careful with this one it will overwrite all original files) |
Download HandBrake CLI for your OS here.
cd into the folder where you have the HandBrakeCLI file and run this inside it:
./HandBrakeCLI -i /path/to/input.mov -o /path/to/output.mp4 -e x264 -q 28 -r 15 -B 64 -X 1280 -O
Это устаревшее тестовое задание, есть повеселее и посовременнее: Реакт, Тайпскрипт, Файрбейз в gotovo.ru.
| // Get all users | |
| var url = "http://localhost:8080/api/v1/users"; | |
| var xhr = new XMLHttpRequest() | |
| xhr.open('GET', url, true) | |
| xhr.onload = function () { | |
| var users = JSON.parse(xhr.responseText); | |
| if (xhr.readyState == 4 && xhr.status == "200") { | |
| console.table(users); | |
| } else { | |
| console.error(users); |
| import React from 'react'; | |
| /* | |
| Todo app structure | |
| TodoApp | |
| - TodoHeader | |
| - TodoList | |
| - TodoListItem #1 | |
| - TodoListItem #2 |
Hi Nicholas,
I saw you tweet about JSX yesterday. It seemed like the discussion devolved pretty quickly but I wanted to share our experience over the last year. I understand your concerns. I've made similar remarks about JSX. When we started using it Planning Center, I led the charge to write React without it. I don't imagine I'd have much to say that you haven't considered but, if it's helpful, here's a pattern that changed my opinion:
The idea that "React is the V in MVC" is disingenuous. It's a good pitch but, for many of us, it feels like in invitation to repeat our history of coupled views. In practice, React is the V and the C. Dan Abramov describes the division as Smart and Dumb Components. At our office, we call them stateless and container components (view-controllers if we're Flux). The idea is pretty simple: components can't
| // Eliminate FOIT (Flash of Invisible Text) caused by web fonts loading slowly | |
| // Using font events with Font Face Observer | |
| var roboto = new FontFaceObserver('Roboto', { | |
| weight: 400 | |
| }); | |
| observer.check().then(function () { | |
| document.getElement.className += 'fonts-loaded'; | |
| }); | |
| // Load multiple fonts using a Promise |
| Use: for testing against email regex | |
| ref: http://codefool.tumblr.com/post/15288874550/list-of-valid-and-invalid-email-addresses | |
| List of Valid Email Addresses | |
| email@example.com | |
| firstname.lastname@example.com | |
| email@subdomain.example.com | |
| firstname+lastname@example.com |