Skip to content

Instantly share code, notes, and snippets.

View gearmobile's full-sized avatar
🇷🇺
Working remotely

Valeriy Semenenko gearmobile

🇷🇺
Working remotely
View GitHub Profile
@gearmobile
gearmobile / new-vuetify-layout.js
Created September 2, 2017 15:54
New Vuetify.js Layout
"New Vuetify Layout": {
"prefix": "vvl",
"body": [
"v-container",
" v-layout( row )",
" v-flex( xs12 )"
],
"description": "New Vuetify Layout"
}
@gearmobile
gearmobile / new-vuetify-component.js
Created September 2, 2017 15:48
New Vuetify Component
"New Vuetify Component": {
"prefix": "vvc",
"body": [
"<template lang=\"pug\">",
"",
" v-container",
" v-layout( row )",
" flex( ${2:xs12} )",
"",
"</template>",
@gearmobile
gearmobile / vue-new-router.js
Created August 29, 2017 11:02
Create New Vue Router
"New Vue Router": {
"prefix": "vnr",
"body": [
"import Vue from 'vue'",
"import Router from 'vue-router'",
"import Home from '@/components/home'",
"",
"Vue.use(Router)",
"",
"export default new Router({",
@gearmobile
gearmobile / vue-new-store.js
Created August 29, 2017 10:57
Snippet Create New Store
"New Vue Store": {
"prefix": "vns",
"body": [
"import Vue from 'vue'",
"import Vuex from 'vuex'",
"",
"Vue.use(Vuex)",
"",
"const state = {",
" ${1://}",
@gearmobile
gearmobile / vue-new-component.js
Last active September 2, 2017 15:36
Snippet Create New Vue Component
"New Vue Component": {
"prefix": "vnc",
"body": [
"<template lang=\"pug\">",
" //",
"</template>",
"",
"<script>",
" export default {",
" name: '${1:name}',",
@gearmobile
gearmobile / интресепторы
Created July 2, 2017 15:16
что такое интерсепторы
Промежуточные функции, которые будут вызваны в процессе запроса или ответа от сервера.
Научитесь быть счастливым с тем, что имеете, пока добиваетесь того, чего хотите.
@gearmobile
gearmobile / stylus.txt
Created June 26, 2017 19:20
To use pug and stylus on the webpack template vue-cli
To use pug and stylus on the webpack template vue-cli provides, simply run
npm i --save-dev pug pug-loader stylus stylus-loader
Then add the attributes to the .vue root tags, eg:
<template lang="pug"></template>
<style lang="stylus"></style>.
@gearmobile
gearmobile / solution.js
Created June 24, 2017 20:26
идеально подойдет перебирающий метод filter
// по-моему идеально подойдет перебирающий метод filter
primo = common.filter(item => item.name === 'pane' || 'wardrobe' || 'ironing')
@gearmobile
gearmobile / example.json
Created June 24, 2017 17:14
Сделать несколько коллекций из одного файла
[
{
"name": "fridge",
"title": "холодильник",
"value": 0,
"price": 300,
"min": 0,
"max": 5,
"step": 1,
"time": 30,