Follow the instructions here
sudo service docker start
Follow the instructions here
sudo service docker start
1. Install Scoop
Scoop is a command-line installer for Windows -- it's like Homebrew for Windows. It installs programs from the command line with a minimal amount of friction. More info about scoop is available here: https://gist.github.com/andrew-rietz/66e4ebcf96f85b6618b078ebe00104b1
To install, open PowerShell and execute the following command:
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
2. Use Scoop to install some awesome helper applications
We'll use Scoop to install a couple applications: posh-git and starship. Posh-git adds a lot of the convenience features you get in git bash directly into PowerShell (autocompletion, etc.). We'll also install starship.rs: a customizeable prompt for many of the common shells (Bash, Fish, Zsh, PowerShell).
"""Example of how to use webargs with Tornado to read form data which includes file uploads.""" | |
from dataclasses import dataclass, field | |
from typing import List, Optional | |
from marshmallow_dataclass import class_schema | |
from marshmallow.fields import Raw | |
from tornado.ioloop import IOLoop | |
from tornado.web import Application, RequestHandler |
"""Simple demonstration of using ZMQ's Curve authentication. | |
This demo is adapted from the examples given in the `PyZMQ repository`__. Key | |
differences include: | |
* Using ``setsockopt`` to set Curve parameters instead of setting attributes | |
directly (help out your IDE!) | |
* Integration with ``asyncio`` | |
__ https://github.com/zeromq/pyzmq/tree/master/examples |
import asyncio | |
from pathlib import Path | |
from typing import Optional | |
from watchdog.events import FileSystemEvent, FileSystemEventHandler | |
from watchdog.observers import Observer | |
class _EventHandler(FileSystemEventHandler): | |
def __init__(self, queue: asyncio.Queue, loop: asyncio.BaseEventLoop, |
import codecs | |
import json | |
from typing import Union | |
import h5py | |
import numpy as np | |
import pandas as pd | |
vlen = np.vectorize(len) | |
vencode = np.vectorize(codecs.encode) |
class Manager(object): | |
classes = set() | |
class Meta(type): | |
def __new__(cls, name, bases, d): | |
print("name:", name, "\nbases:", bases, "\ndict: ", d) | |
if name is not "Base": | |
Manager.classes.add(d['data']) | |
return type.__new__(cls, name, bases, d) |
from multiprocessing import Event, Process, Queue | |
import time | |
import zmq | |
class BaseActor(Process): | |
ready = Event() | |
def handle(self, msg): | |
print("dt =", time.time() - msg['timestamp']) |
import asyncio | |
from threading import Event, Thread | |
class EventLoopThread(Thread): | |
def __init__(self): | |
super().__init__() | |
self.loop = None | |
self.ready = Event() |
import sys | |
from PyQt5.QtWidgets import * | |
from PyQt5.QtGui import * | |
class MainWindow(QWidget): | |
def __init__(self, *args, **kwargs): | |
super().__init__(*args, **kwargs) | |
self.setWindowTitle('Multiline lambdas') |