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
# first we will import the subprocess module | |
import subprocess | |
# now we will store the profiles data in "data" variable by | |
# running the 1st cmd command using subprocess.check_output | |
data = subprocess.check_output(['netsh', 'wlan', 'show', 'profiles']) | |
.decode('utf-8').split('\n') | |
# now we will store the profile by converting them to list | |
profiles = [i.split(":")[1][1:-1] for i in data if "All User Profile" in i] |
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 React, { useEffect, useRef, useState } from "react"; | |
const Editor = ({ tooltip }) => { | |
const [data, setData] = useState(""); | |
const [options, setOptions] = useState([ | |
{ name: "bold", toggled: false }, | |
{ name: "italic", toggled: false }, | |
{ name: "underline", toggled: false }, | |
]); | |
const editorRef = useRef(); |