For example, to override the AppBar (https://material-ui-next.com/api/app-bar/) root class we can do the following:
1 - Add the property classes in the AppBar component:
<AppBar classes={{root: 'my-root-class'}}| ######################## | |
| # UUID for SQLite hack # | |
| ######################## | |
| from sqlalchemy.types import TypeDecorator, CHAR | |
| from sqlalchemy.dialects.postgresql import UUID | |
| import uuid | |
| class GUID(TypeDecorator): |
| import asyncio | |
| import random | |
| class Hub(): | |
| def __init__(self): | |
| self.subscriptions = set() | |
| def publish(self, message): |
| Dependences: | |
| sudo apt-get update | |
| sudo apt-get install build-essential | |
| apt-get install python-dev | |
| sudo pip install -U setuptools | |
| Steps: | |
| download from https://mrjbq7.github.io/ta-lib/install.html |
For example, to override the AppBar (https://material-ui-next.com/api/app-bar/) root class we can do the following:
1 - Add the property classes in the AppBar component:
<AppBar classes={{root: 'my-root-class'}}| export const numberWithThousandsSeparator = ( | |
| number, | |
| decimalDigits = 0, | |
| separator = ",", | |
| decimalSeparator = "." | |
| ) => { | |
| let isNegative = false; | |
| if (!number) return number; | |
| if (number >= 0 && number < 1000) |
| * { margin: 0; padding: 0; } | |
| abbr,acronym,blockquote,code,dir,kbd,listing,plaintext,q,samp,tt,var,xmp { hyphens: none; } | |
| html { | |
| padding: 2em; | |
| font: normal 18px/1.25 Source Sans Pro, sans-serif; | |
| color: #000; | |
| hyphens: auto; |
| { | |
| "USD": { | |
| "symbol": "$", | |
| "name": "US Dollar", | |
| "symbol_native": "$", | |
| "decimal_digits": 2, | |
| "rounding": 0, | |
| "code": "USD", | |
| "name_plural": "US dollars" | |
| }, |
| #!/bin/bash | |
| # bash generate random alphanumeric string | |
| # | |
| # bash generate random 32 character alphanumeric string (upper and lowercase) and | |
| NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
| # bash generate random 32 character alphanumeric string (lowercase only) | |
| cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 |