This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"binary_file_patterns": | |
[ | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", | |
"*.ttf", | |
"*.tga", | |
"*.dds", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# demo: http://jsfiddle.net/q173wuoy/1/ | |
KEY_DELETE = [8, 46] | |
KEY_NAV = [33..40] | |
$( -> | |
inputPreventer = (e)-> | |
length = 10 | |
cursorPos = e.currentTarget?.selectionStart | |
return if e.keyCode in KEY_NAV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define (require, exports, module)-> | |
_Widget = require "../_Widget" | |
HoveredWidget = _Widget.extend | |
template: "#HoveredWidget" | |
className: "hovered_widget" | |
__delay: 3000 | |
__period: 1300 | |
initialize: -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=media-sizer($prop, $maxvalue, $minvalue, $maxh, $minh, $prefix:"", $postfix:"") | |
$curh: $maxh | |
$steph: ($maxh - $minh)/4 | |
$stepvalue: ($maxvalue - $minvalue)/4 | |
$value: $maxvalue | |
#{$prop}: #{$prefix} $value #{$postfix} | |
@while $curh >= $minh | |
@media(max-height: #{$curh}) | |
#{$prop}: #{$prefix} $value #{$postfix} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=inline-stretch | |
text-align: justify | |
&:after | |
content: "" | |
display: inline-block | |
width: 90% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=effect-blink($width, $height) | |
$bl-w: 25px | |
overflow: hidden | |
.no-touch & | |
&:before | |
content: "" | |
bottom: -10px | |
opacity: 0.2 | |
z-index: 10 | |
left: -$bl-w |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var app = express(); | |
var port = process.env.PORT || 5000 | |
app.use(express.static(__dirname + "/dist")) | |
var server = app.listen(port, function () { | |
var host = server.address().address; | |
var port = server.address().port; | |
console.log('Example app listening at http://%s:%s', host, port); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
checkExisting(){ | |
echo "Checking if already existing device on file..." | |
while read fileLine; do | |
if [ "$line" = "$fileLine" ]; then | |
echo "[WARNING] Device already initialized on this system. Nothing to do here" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ul{ | |
list-style-position: inside; | |
} | |
ol { | |
counter-reset: section; | |
list-style-type: none; | |
} | |
li{ | |
padding-left: 20px; | |
position: relative; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//- .b-video-upload | |
//- общее ощущение: с синтаксисом и структурированием разобрался, но ведь | |
//- есть еще и идеология повторного использования | |
//- Самая важная идея БЭМ - то что верстка это такое же программирование и здесь должны соблюдаться те же | |
//- принципы. Уж повторное использование наработок точно. | |
//- блок .video_page | |
.video_page | |
//- по идее это тоже може быть блоком так как это необязательная част страницы | |
.video_page--promo | |
.video_page--promo-img(data-js-promo-img) |
OlderNewer