Skip to content

Instantly share code, notes, and snippets.

🐣
top secret

misha gezha mioe

🐣
top secret
Block or report user

Report or block mioe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mioe
mioe / cmd-linux.md
Last active Apr 30, 2020
cmd-linux
View cmd-linux.md

Информация о дистрибутиве:

uname -a
lsb_release -a

Установка докера на бубунту:

Первоначальная настройка зависимостей - doc

sudo apt-get update
@mioe
mioe / cmd.sh
Created Jan 11, 2020
kill a nodejs process
View cmd.sh
# in mac
sudo lsof -i :8080
kill -9 {PID}
@mioe
mioe / v-cloak.md
Created Dec 18, 2019 — forked from adamwathan/v-cloak.md
Useful CSS utilities for Vue.js cloaking
View v-cloak.md

Handy helpers for controlling visibility of elements until Vue has compiled.

Use like:

<div v-cloak>
  <h1>
    <span class="v-cloak--inline">Loading...</span> <!-- Only displayed before compiling -->
    <span class="v-cloak--hidden">{{ post.title }}</span> <!-- Hidden until compiling is finished -->
  </h1>
@mioe
mioe / .eslintrc.js
Last active Apr 15, 2020
eslint - my rules 🐉
View .eslintrc.js
module.exports = {
root: true,
env: {
node: true,
},
'extends': [
'plugin:vue/recommended',
'eslint:recommended',
],
parserOptions: {
@mioe
mioe / highlight.ts
Created Nov 11, 2019
directive(vue+ts) - v-highlightjs
View highlight.ts
/* Dependencies
yarn add highlight.js
yarn add @types/highlightjs --dev
*/
/* Usage
pre(v-highlightjs="code")
code(:class="lang")
---
pre(v-highlightjs)
@mioe
mioe / click-outside.ts
Last active Oct 25, 2019
directive(vue+ts) ⭐️ - v-click-outside
View click-outside.ts
import { DirectiveOptions } from 'vue'
const directive: DirectiveOptions = {
bind(el: any, binding: any, vNode: any) {
// Provided expression must evaluate to a function.
if (typeof binding.value !== 'function') {
const compName = vNode.context.name
let warn = `[Vue-click-outside:] provided expression '${binding.expression}' is not a function, but has to be`
if (compName) { warn += `Found in component '${compName}'` }
// tslint:disable-next-line
@mioe
mioe / click-outside.js
Created Oct 17, 2019
directive - v-click-outside
View click-outside.js
directives: {
// Click-outside by BosNaufal: https://github.com/BosNaufal/vue-click-outside
'click-outside': {
bind(el, binding, vNode) {
// Provided expression must evaluate to a function.
if (typeof binding.value !== 'function') {
const compName = vNode.context.name
let warn = `[Vue-click-outside:] provided expression ${binding.expression} is not a function, but has to be`
if (compName) {
warn += `Found in component ${compName}`
@mioe
mioe / global.sass
Last active Mar 23, 2020
sass - my global styles 🐣️
View global.sass
@import '_reset'
a
text-decoration: none
.dontTouchMe
user-select: none
[class*=view-]
position: relative
@mioe
mioe / _reset.sass
Last active May 16, 2020
sass - reset styles 🐣️
View _reset.sass
/* box sizing rules */
*,
*::before,
*::after
box-sizing: border-box
/* remove default padding */
ul,
ol
padding: 0
@mioe
mioe / tslint.json
Last active Oct 19, 2019
tslint - my rules 🐣️
View tslint.json
{
"defaultSeverity": "warning",
"extends": [
"tslint:recommended"
],
"linterOptions": {
"exclude": [
"node_modules/**"
]
},
You can’t perform that action at this time.