Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Мы уже достаточно давно обсуждаем вопрос изменения синтаксиса в BEMHTML. Основные причины такие:
W3C Introduction to Web Components - explainer/overview of the technologies
| 'use strict'; | |
| var path = require('path'); | |
| var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet; | |
| var folderMount = function folderMount(connect, point) { | |
| return connect.static(path.resolve(point)); | |
| }; | |
| module.exports = function (grunt) { | |
| // grunt || grunt browser — разработка в браузере |
| (function ($, BEM) { | |
| 'use strict'; | |
| var CHANNEL_NAME = 'statistic'; | |
| var CHANNEL_EVENT_HIT = 'hit'; | |
| var CHANNEL_EVENT_REACH_GOAL = 'reachGoal'; | |
| BEM.DOM.decl({ | |
| block: 'i-yandexMetrika' | |
| }, { |
| (function () { | |
| this.uniqid = function (pr, en) { | |
| var pr = pr || '', en = en || false, result; | |
| this.seed = function (s, w) { | |
| s = parseInt(s, 10).toString(16); | |
| return w < s.length ? s.slice(s.length - w) : (w > s.length) ? new Array(1 + (w - s.length)).join('0') + s : s; | |
| }; | |
| result = pr + this.seed(parseInt(new Date().getTime() / 1000, 10), 8) + this.seed(Math.floor(Math.random() * 0x75bcd15) + 1, 5); |
| @echo off | |
| :: Path to Sublime Text installation dir. | |
| SET stPath=%~dp0sublime_text.exe | |
| SET stPathOnly=%~dp0 | |
| :: Key name for the registry entries. | |
| SET UserEntry=Sublime Text | |
| SET AdminEntry=Sublime Text As Admin | |
| :: Context menu texts. | |
| SET "UserMenuText=Open with Sublime(&-)" | |
| SET "AdminMenuText=Open with Sublime As Admin(&+)" |
| // If you are using borschik to expand links (bem make and enb do this for you) | |
| // you could use this hack for any jQuery plugin found in the wild | |
| modules.define('i-jquery__my-plugin', ['jquery'], function(provide, $){ | |
| var jQuery = $, | |
| window = {jQuery: jQuery}; | |
| /*borschik:include:path/to/jquery-plugin.js*/ | |
| provide($); | |
| }); |