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
# Герератор базових математичних завданнь |
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
zlib-devel.x86_64 1.2.7-18.amzn2 @amzn2-core | |
zlib.x86_64 1.2.7-18.amzn2 installed | |
zip.x86_64 3.0-11.amzn2.0.2 @amzn2-core | |
yum-plugin-priorities.noarch 1.1.31-46.amzn2.0.1 installed | |
yum-plugin-ovl.noarch 1.1.31-46.amzn2.0.1 installed | |
yum-metadata-parser.x86_64 1.1.4-10.amzn2.0.2 installed | |
yum.noarch 3.4.3-158.amzn2.0.5 installed | |
yarn.noarch 1.22.15-1 @yarn | |
xz-lzma-compat.x86_64 5.2.2-1.amzn2.0.2 @amzn2-core | |
xz-libs.x86_64 5.2.2-1.amzn2.0.2 installed |
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
# Flux2 install for Kubernetes v1.15.0 | |
flux install --export --watch-all-namespaces=false -n {{inputs.parameters.namespace}} | \ | |
yq4 e 'select(.kind == "CustomResourceDefinition").apiVersion = "apiextensions.k8s.io/v1beta1"' - | \ | |
yq4 e 'select(.kind == "CustomResourceDefinition").spec.additionalPrinterColumns = select(.kind == "CustomResourceDefinition").spec.versions[0].additionalPrinterColumns' - | \ | |
yq4 e 'del(select(.kind == "CustomResourceDefinition").spec.versions[].additionalPrinterColumns)' - | \ | |
yq4 e 'select(.kind == "CustomResourceDefinition").spec.validation = select(.kind == "CustomResourceDefinition").spec.versions[0].schema' - | \ | |
yq4 e 'del(select(.kind == "CustomResourceDefinition").spec.versions[0].schema)' - | \ | |
yq4 e 'select(.kind == "CustomResourceDefinition").spec.subresources = select(.kind == "CustomResourceDefinition").spec.versions[0].subresources' - | \ | |
yq4 e 'del(select(.kind == "CustomResourceDe |
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
az acr credential show -n mysuperpuperregistry \ | |
--query "join(' ', ['docker login mysuperpuperregistry-on.azurecr.io', '-u', username, '-p', password])" \ | |
--output tsv | sh |
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
var svg = d3.select(element[0]) | |
.append('svg') | |
.attr('width', '99%') | |
.attr('height', '99%') | |
.attr('style', 'border: 1px solid silver; position: absolute; top: 0px; left: 0px; z-index: 1001'); | |
var data = [] | |
var refresh = function () { | |
var joints = svg |
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
# coding=utf-8 | |
import requests | |
from bs4 import BeautifulSoup | |
from icalendar import Calendar, Event | |
from datetime import date, datetime, time, timedelta | |
def read_table(): | |
r = requests.get('http://lp.edu.ua/node/42?group=%D0%86%D0%A2%D0%9F-31%D0%B7&semestr=1') | |
#r.encoding = 'utf-8' |
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
import pandas as pd | |
pd.DataFrame._repr_html_ = lambda self: self.to_html(classes='table table-striped') |
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
# What output you expect form this? | |
class Fooker(object): | |
def __init__(self, items = []): | |
self.items = items | |
def append(self, item): | |
self.items.append(item) | |
o = Fooker() |
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
/set options +JOINING_ENABLED +HISTORY_DISCLOSED | |
// https://support.skype.com/en/faq/FA10042/what-are-chat-commands-and-roles |
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
import pydot | |
def print_tree(tree): | |
g1 = pydot.Dot(graph_type='graph') | |
for i in range(len(tree)): | |
g1.add_edge(pydot.Edge(i, tree[i])) | |
g1.write_png('print_tree.png') |
NewerOlder