View .eslintrc
{
"rules": {
'accessor-pairs': 0,
'block-scoped-var': 2,
'complexity': [0, 11],
'consistent-return': 2,
'curly': [2, 'multi-line'],
'default-case': 2,
'dot-notation': [2, { 'allowKeywords': true}],
'dot-location': 0,
View boilerplate.html
<!DOCTYPE html>
<html class="ua" lang="en" itemscope itemtype="http://schema.org/WebPage">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title itemprop="name">My page</title>
<meta name="description" content="Some description" itemprop="description"/>
<meta name="keywords" content="some, keywords" itemprop="keywords"/>
View font-face.css.sass
@font-face
font-family: 'font'
src: local('font')
src: url('font/font.woff'), url('font/font.ttf')
font-weight: normal
View icons.styl
.icon
display: inline-block
vertical-align: middle
width: 30px
height: @width
background-position center
background-repeat no-repeat
for $icon in vk tw fb ok
.icon--{$icon}
View Reserved classes
.print
.exit
.show
.hidden
.block
.more
.span
.container
.row
.table
View Key Value for Samsung smart tv
7 - PL_APPCOMMON_KEY_VOLUP
11 - PL_APPCOMMON_KEY_VOLDOWN
27 - PL_APPCOMMON_KEY_MUTE
20 - PL_APPCOMMON_KEY_GREEN
21 - PL_APPCOMMON_KEY_YELLOW
22 - PL_APPCOMMON_KEY_CYAN
69 - PL_APPCOMMON_KEY_REWIND
70 - PL_APPCOMMON_KEY_STOP
71 - PL_APPCOMMON_KEY_PLAY
72 - PL_APPCOMMON_KEY_FF
View Samsung Smart Tv keys
Scene.prototype.handleKeyDown = function (keyCode) {
switch (keyCode) {
case sf.key.LEFT:
this.keyLeft();
break;
case sf.key.RIGHT:
this.keyRight();
break;
case sf.key.UP:
this.keyUp();