These rules are adopted from the AngularJS commit conventions.
{ | |
// -------------------------------------------------------------------- | |
// JSHint Configuration, Strict Edition | |
// -------------------------------------------------------------------- | |
// == Enforcing Options =============================================== | |
// | |
// These options tell JSHint to be more strict towards your code. Use | |
// them if you want to allow only a safe subset of JavaScript, very |
function logClass(target: any) { | |
// save a reference to the original constructor | |
var original = target; | |
// a utility function to generate instances of a class | |
function construct(constructor, args) { | |
var c : any = function () { | |
return constructor.apply(this, args); | |
} |
http://rutracker.org/forum/viewtopic.php?t=3623122
Полный курс для изучения французского, состоящий из видеоуроков, аудио, учебника и сборника упражнений. Видео представляет из себя забавный пятидесятисерийный сериал с кучей фансервиса и полностью на французском языке, так что его обязательно стоит смотреть, даже если вы не знаете английского и упражнений делать не будете. На материале каждой серии строятся аудиоуроки, подается новая лексика и грамматика, а также разбираются культурные особенности. Благодаря тому, что курс полностью self-contained, содержит огромное количество упражнений с ответами и способствует погружению в языковую среду, для самостоятельного изучения он является одним из лучших вариантов.
/** Links: | |
* - http://stackoverflow.com/questions/36368919/scrollable-image-with-pinch-to-zoom | |
* - http://blog.lum.pe/gesture-detection-in-react-native-fixing-unexpected-panning/ | |
* | |
*/ | |
import React, {Component, PropTypes} from 'react'; | |
import { Text, View, PanResponder, Image } from 'react-native'; | |
function calcDistance(x1, y1, x2, y2) { |
When running webpack dev server from inside of docker container dev server says that it watching files, but don't react on changes in hosts filesystem. It also can actually react and recompile bundle but stream not updated files to the browser.
Some of this steps might not needed, but it was long run googling for complete solution
If you're using Webstorm or Phpstorm etc. Try disable "safe write" option in settings:
Нужно рассказать как работает JavaScript-приложение. Каждая вкладка браузера ‒ это отдельное приложение. Рендеринг страницы и интрепретация JavaScript происходит в одном потоке, в основном цикле приложения, а значит ресурсоемких операций следует избегать. Следует упомянуть про событийную модель, про то, что она работает на неблокирующих сокетах (в т.ч.).
Тут еще можно вспомнить про requestAnimationFrame.