This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="FillOverlay" ref="element"> | |
<slot class="overlay-content"></slot> | |
<div class="overlay" :style="currentOverlayStyle" :key="percent"></div> | |
</div> | |
</template> | |
<script lang="ts"> | |
import { defineComponent, ref, computed, onMounted } from "vue"; | |
import { useInterval } from "../../composables/forms"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(async() => { | |
const todos = [{ | |
"userId": 1, | |
"id": 1, | |
"title": "delectus aut autem", | |
"completed": false | |
}, { | |
"userId": 1, | |
"id": 2, | |
"title": "quis ut nam facilis et officia qui", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
const data = [{ | |
"userId": 1, | |
"id": 1, | |
"title": "delectus aut autem", | |
"completed": false | |
}, { | |
"userId": 1, | |
"id": 2, | |
"title": "quis ut nam facilis et officia qui", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<button class="activator" @click="onButtonClick()"> | |
{{ buttonText }} | |
</button> | |
<transition name="slide-fade"> | |
<div class="modal" :class="{ show }" :key="show" v-if="show"> | |
<div class="exit-button" @click="onCloseModal()"> | |
X | |
</div> | |
<div class="content"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from json import dumps | |
from copy import deepcopy | |
class JsonSerializable: | |
@staticmethod | |
def _to_json(item): | |
if isinstance(item, JsonSerializable): | |
return item.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import typing as t | |
from os import listdir, environ, getcwd, mkdir | |
from os.path import split | |
from shutil import copyfile | |
from subprocess import check_output as run | |
from pprint import pprint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# works for Pycharm Professional Edition 2017.3 as of 26.03.2018 | |
# send thanks to [email protected] | |
1. Ctrl + alt + S (settings) | |
2. find `External Tools` | |
3. fill them up like this: https://ibb.co/bEpth7 | |
3a. | |
Program: {pylint_path} # just `pylint` should be ok for most cases |
NewerOlder