This file contains hidden or 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 Vue from 'vue' | |
export default Vue.extend({ | |
name: 'Suspense', | |
render(createElement) { | |
const defaultVNode = this.$slots.default![0] | |
const isdefaultVNodeExist = | |
defaultVNode.elm !== undefined || | |
defaultVNode.componentOptions !== undefined || |
This file contains hidden or 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
#!/usr/bin/python | |
# A Wake on LAN program that allows you to send magic packets over the Internet | |
# needs python >= 3.6 | |
import socket, struct, argparse | |
class WakeOnLan(): | |
def _makeMagicPacket(self, mac_address_str: str) -> bytes: | |
# Take the entered MAC address and format it to be sent via socket | |
mac_address = mac_address_str.split(':') |