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
<templateSet group="Quasar"> | |
<template name="q-ajax-bar" value="<q-ajax-bar ref="$ref$" position="$position$" color="$color$" size="$size$" skip-hijack/> " description="Ajax Bar" toReformat="true" toShortenFQNames="true"> | |
<variable name="ref" expression="" defaultValue=""bar"" alwaysStopAt="true" /> | |
<variable name="position" expression="" defaultValue=""bottom"" alwaysStopAt="true" /> | |
<variable name="color" expression="" defaultValue=""accent"" alwaysStopAt="true" /> | |
<variable name="size" expression="" defaultValue=""10px"" alwaysStopAt="true" /> | |
<context> | |
<option name="VUE_TEMPLATE" value="true" /> | |
</context> | |
</template> |
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
<scheme name="Solarized Light Mixed" version="142" parent_scheme="Default"> | |
<option name="FONT_SCALE" value="1.0" /> | |
<metaInfo> | |
<property name="created">2018-04-19T13:27:04</property> | |
<property name="ide">Python</property> | |
<property name="ideVersion">2018.1.1.0.0</property> | |
<property name="modified">2018-04-19T13:27:07</property> | |
<property name="originalScheme">Solarized Light Mixed</property> | |
</metaInfo> | |
<option name="CONSOLE_FONT_NAME" value="Source Code Pro" /> |
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
def friendly_size(length): | |
""" | |
Returns *binary* human-friendly size. Goes all the way up to YB. | |
>>> friendly_size(0) | |
'0 bytes' | |
>>> friendly_size(1024) | |
'1.0 KB' | |
>>> friendly_size(1524) | |
'1.5 KB' |