Skip to content

Instantly share code, notes, and snippets.

View alaa-aqeel's full-sized avatar
🐍
Only the snake in my heart

Alaa Aqeel alaa-aqeel

🐍
Only the snake in my heart
View GitHub Profile
@alaa-aqeel
alaa-aqeel / pass-slots.md
Created February 16, 2021 03:27 — forked from loilo/pass-slots.md
Vue: Pass Slots through from Parent to Child Components

Vue: Pass Slots through from Parent to Child Components

The Situation

  • We've got some components A, B and C 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"
@alaa-aqeel
alaa-aqeel / Firebase.py
Created March 27, 2018 11:52
Class Python With Firebasee Google
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",