Skip to content

Instantly share code, notes, and snippets.

.Button {
  position: relative;
  display: inline-block;
  text-decoration: none;
  max-width: @input-width;
  width: 100%;
  padding: @input-padding-vertical - 1px @input-padding-vertical;
  text-align: center;
  font-size: 16px;
@Shalomeev
Shalomeev / font_mixin.md
Last active July 4, 2018 15:48
let to include @font-face by simple less mixin
.font-face(@font-family, @file-path, @font-weight, @font-style) {
  @font-face {
    font-family: @font-family;
    src: url('@{file-path}.eot');
    src: url('@{file-path}.eot?#iefix') format('embedded-opentype'),
    url('@{file-path}.woff') format('woff'),
    url('@{file-path}.ttf') format('truetype'),
    url('@{file-path}.svg') format('svg');
 font-weight: @font-weight;
  1. Commit your folder, in my case it's dist directory git add dist && git commit -m "Initial dist subtree commit"
  2. git subtree push --prefix dist origin gh-pages
taskkill /f /im node.exe
@Shalomeev
Shalomeev / expressSequelize.md
Last active July 3, 2018 12:20
Helps to use sequelize and postgresql in express-js.

db/config.js

module.exports = {
    username: 'postgres',
    password: 'password',
    database: 'diary',
    dialect: 'postgres',
    protocol: 'postgres',
    port: 5432,
    host: '127.0.0.1'
@Shalomeev
Shalomeev / expressRoutes.md
Last active January 12, 2018 09:57
Let to add express-js routes from modules.

routes/student.js

const express = require('express');
const route = express.Router();

route.get('/', (req, res) => {
  res.send('Hello from student!');
});

route.get('/create', (req, res) => {