Простой и быстрый клиентский шаблонизатор
http://olado.github.io/doT/
Соотношения сторон и разрешения мобильных устройств
http://i-skool.co.uk/mobile-development/web-design-for-mobiles-and-tablets-viewport-sizes/ (по ссылке таблицу можно сортировать) Device Name Platform Pixel Density Screen Size Portrait Viewport Width Landscape Viewport Width Acer Iconia Tab A100 Android 166dpi 7″ 800 1280 Acer Iconia Tab A101 Android 170dpi 7″ 600 1024 Acer Iconia Tab A200 Android 160dpi 10.1″ 800 1280 Acer Iconia Tab A500 Android 149dpi 10.1″ 648 …
Пользовательские переменные в Google Analytics
Смотреть в Аудитория → Персонализованный → Мои переменные
Best practices клиентской оптимизации от Yahoo!
http://developer.yahoo.com/performance/rules.html
Сниппеты для Google Chrome DevTools
https://github.com/bgrins/devtools-snippets#to-enable-devtools-snippets-in-chrome
Введение в node.js
Что-то вроде «Dive into python», только для node.js. https://github.com/maxogden/art-of-node
Что нового в Google Chrome DevTools в 2013
http://www.html5rocks.com/en/tutorials/developertools/revolutions2013/
Вопросы на собеседование front-end разработчику
https://github.com/darcyclarke/Front-end-Developer-Interview-Questions
npmsearch — поиск пакетов npm
http://npmsearch.com/
Счётчик от Google Analytics в приложении AngularJS
index.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<script type="text/javascript"> // TODO for mamba.ru only var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-...']); _gaq.push(['_setDomainName', '...']); (function () { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> |
app.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
var app = angular.module('my', []).config(); app.run(['$location', function($location) { $rootScope.$on('$locationChangeSuccess', function(e, next, current) { trackPageView(); }); function trackPageView() { if (window._gaq) { // it's optional window._gaq.push(['_setCustomVar', 1, // This custom var is set to slot #1. Required parameter. 'site_version', // The name acts as a kind of category for the user activity. Required parameter. 'my' // This value of the custom variable. Required parameter. ]); window._gaq.push(['_trackPageview'], $location.url()); } } }]); |
https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingCustomVariables http://davidwalsh.name/ajax-analytics