The author of the original article - https://t.me/Pryslonskyi
All rights belongs to him. Here is only .md adaptation and translation.
This file contains hidden or 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
| # MIT LICENSE | |
| import datetime | |
| import plotly.graph_objs as go | |
| from plotly.subplots import make_subplots | |
| import numpy as np | |
| import dash_core_components as dcc | |
| import dash_html_components as html | |
| import dash |
This file contains hidden or 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 bash | |
| array=( a b c d e f g h i j k l m n o p q r s t u v w x y z ) | |
| for a in "${array[@]}" | |
| do | |
| for b in "${array[@]}" | |
| do | |
| for c in "${array[@]}" | |
| do |
Percentage:
<img src="https://user-images.githubusercontent.com/16319829/81180309-2b51f000-8fee-11ea-8a78-ddfe8c3412a7.png" width=50% height=50%>
Pixels:
<img src="https://user-images.githubusercontent.com/16319829/81180309-2b51f000-8fee-11ea-8a78-ddfe8c3412a7.png" width="150" height="280">
This file contains hidden or 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
| import pygit2 | |
| repo = pygit2.Repository(path='.') | |
| repo.index.add_all() | |
| repo.index.write() | |
| tree = repo.index.write_tree() | |
| parent, ref = repo.resolve_refish(refish=repo.head.name) | |
| repo.create_commit( |
This document outlines how to model a common organization-based permission system in Hasura. Let's assume that you have some table structure like the following:
| Table Name | Columns | Foreign Keys |
|---|---|---|
| User | id, name, email | |
| Organization User | id, user_id, organization_id | user_id -> user.id, organization_id -> organization.id |
| Organization | id, name |
This file contains hidden or 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
| active := false | |
| +#F:: | |
| SendInput, {LWin down}b{LWinUp}{Left} | |
| SendInput, {APPSKEY}{Down}{Down}{Enter} | |
| if (active = false) { | |
| SendInput, {Down}{Down} | |
| active := true | |
| } else { |
This file contains hidden or 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
| # tested on WSL 2, Ubuntu 18.04 LTS | |
| # needed for bwa & samtools | |
| sudo apt-get install build-essential make libz-dev -y | |
| # needed for samtools | |
| sudo apt-get install cwltool libc-ares2 libhttp-parser2.7.1 libjs-bootstrap nodejs nodejs-doc python python-asn1crypto python-avro python-cachecontrol python-certifi python-cffi-backend python-chardet python-cryptography python-enum34 python-html5lib python-idna python-ipaddress python-isodate python-lockfile python-mistune python-openssl python-pkg-resources python-pyparsing python-rdflib python-rdflib-jsonld python-requests python-ruamel.yaml python-schema-salad python-shellescape python-six python-sparqlwrapper python-typing python-urllib3 python-webencodings -y | |
| sudo apt-get install libncurses5-dev -y | |
| # sudo apt-get remove zlib1g-dev -y | |
| sudo apt-get install zlib1g-dev -y |
This file contains hidden or 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
| # | |
| # ref https://github.com/tebeka/pythonwise/blob/master/docker-miniconda/Dockerfile | |
| # | |
| # miniconda vers: http://repo.continuum.io/miniconda | |
| # sample variations: | |
| # Miniconda3-latest-Linux-armv7l.sh | |
| # Miniconda3-latest-Linux-x86_64.sh | |
| # Miniconda3-py38_4.10.3-Linux-x86_64.sh | |
| # Miniconda3-py37_4.10.3-Linux-x86_64.sh | |
| # |
This file contains hidden or 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
| sudo -i | |
| apt-get install software-properties-common | |
| add-apt-repository universe | |
| apt-get update | |
| apt-get install -y apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat | |
| #The jetson already has docker installed | |
| #curl -fsSL get.docker.com | sh | |
| curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh" | bash -s -- -m qemuarm-64 |
NewerOlder