- We've got some components
A
,B
andC
which provide different slots.const A = { template: `<div><slot name="a">Default A Content</slot></div>` }
const B = {
#!/usr/bin/env bash | |
# reomve old docker | |
sudo rm -rf /var/lib/docker | |
sudo apt-get remove docker docker-engine docker.io | |
# install new docker CE | |
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable" |
from firebase import firebase | |
class Firebase: | |
def __init__(self,storage,secret=None,email=None): | |
auth = None if secret == None and email == None else firebase.FirebaseAuthentication(secret,email) | |
self.fire = firebase.FirebaseApplication('https://%s.firebaseio.com'%storage, auth) | |
def get(self,path="/"): | |
return self.fire.get(path, None) |
# LogIn using requests # | |
import requests as req | |
log_url = 'http://localhost/btslab/admin/adminlogin.php' | |
session = req.Session() | |
#DATA LogIn | |
kw = {'data': { | |
'username':"admin", |