Skip to content

Instantly share code, notes, and snippets.

View c01nd01r's full-sized avatar

Stanislav c01nd01r

View GitHub Profile
@c01nd01r
c01nd01r / breadcrumbs.vue
Last active December 5, 2016 08:27
Bootstrap breadcrumbs WIP
<template>
<ol class="breadcrumb">
<!-- Вычисление последнего элемента -->
<li v-for="(link, index) in links" :class="{active: (lastLink === link)}">
<router-link :to="link.href" v-if="routing && !(lastLink === link)">{{link.title}}</router-link>
<a :href="link.href" data-lol v-else-if="!(lastLink === link)">{{link.title}}</a>
<span v-else="(lastLink === link)">{{link.title}}</span>
</li>
<!-- Последний элемент по свойству current из внешнего объекта -->
@c01nd01r
c01nd01r / index.html
Last active December 4, 2016 20:56 — forked from anonymous/index.html
JS Bin[Custom tag for Vue.JS component container]// source https://jsbin.com/gifesom
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[Custom tag for Vue.JS component container]">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<div id="myApp">
@c01nd01r
c01nd01r / component.vue
Last active December 1, 2016 08:43
[idea] vue.js component documentation
<template>
<h1><scope>Header Component</scope></h1>
</template>
<script>
export default {
name: 'my-head',
}
</script>
@c01nd01r
c01nd01r / vue.json
Last active November 30, 2016 13:44
Vue component snipet. VS code
{
"template": {
"prefix": "template",
"body": [
"<template>",
"\t$1",
"</template>"
],
"description": "Vue element"
},
@c01nd01r
c01nd01r / vscode.json
Created November 30, 2016 10:26
vscode config
// Поместите параметры в этот файл, чтобы перезаписать параметры по умолчанию.
{
"editor.fontFamily": "Segoe UI",
"editor.fontSize": 16,
"editor.formatOnType": true,
"editor.fontLigatures": true,
"editor.renderWhitespace": true,
"files.trimTrailingWhitespace": true,
"beautify.onSave": false,
"jscs.enable":true,
@c01nd01r
c01nd01r / .bash_profile
Created November 30, 2016 10:21
bash-prof
alias subl='/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl'
export PATH="/usr/local/mysql/bin:$PATH"
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\] \[\033[33;1m\]\w\[\033[m\] (\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)) \$ \n| => "
export PS2="| => "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
@c01nd01r
c01nd01r / boo-nav.js
Created November 30, 2016 08:05
Bootstrap menu
"test": [{
title: "Test",
className: "test-class",
dropdown: [{
title: 'Test',
className: "test-class"
}]
}],
@c01nd01r
c01nd01r / app.vue
Created November 28, 2016 19:48
v-filter
//https://jsfiddle.net/z57f9yLh/
//@author: https://jsfiddle.net/user/airyman/fiddles/
<template>
<div id="app">
<input type="text" v-filter="'[a-zA-Z]'" v-model="message">
</div>
</template>
<script>
@c01nd01r
c01nd01r / .eslintrc
Created August 24, 2016 09:32
Airbnb ES5 eslintrc
{
"extends": "airbnb-base/legacy"
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
ol { counter-reset: wow }
li {
width:350px;