Skip to content

Instantly share code, notes, and snippets.

View skad0's full-sized avatar
🪑

Anton Krichevskii skad0

🪑
View GitHub Profile
.ActionBar {
display: flex;
flex-direction: row;
align-items: center;
position: relative;
width: 100%;
height: 56px;
// greeting.js
function Greeting() {
const greet = getElementFromTemplate(greetingTemplate);
const nextTemplate = greet.querySelector(`.greeting__continue`);
nextTemplate.addEventListener(`click`, () => {
renderNewTemplate(rules);
}, {once: true});
return greet;
#!/bin/bash
#
# Check changed js files using jshint and jscs
#
PATCH_FILE="working-tree.patch"
NPM_BIN="./node_modules/.bin"
function cleanup {
exit_code=$?
const techs = {
// essential
fileProvider: require('enb/techs/file-provider'),
fileMerge: require('enb/techs/file-merge'),
// optimization
borschik: require('enb-borschik/techs/borschik'),
// css
postcss: require('enb-postcss/techs/enb-postcss'),
@skad0
skad0 / box.js
Created January 2, 2017 18:52
box javascript
modules.define('box', ['i-bem-dom'], function(provide, bemDom) {
provide(bemDom.declBlock(this.name, {
onSetMod : {
'closed': {
'yes': function() {
this.domElem.animate({
'margin-left' : '54em'
}, 1000);
},
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 13,
fontFamily: 'Hack',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.75)',
// `BEAM` for |, `UNDERLINE` for _, `BLOCK` for вЦИ