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
netsh wlan start hostednetwork |
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
grep -rnw '/path/to/somewhere/' -e 'pattern' |
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
def convert(value, sep): | |
list_value = list(value) | |
big = [chr(i + 65) for i in range(26)] | |
_return_value = list() | |
for index, i in enumerate(list_value): | |
t = i | |
if i in big and index is not 0: | |
t = sep + i.lower() |
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 torch | |
import tensorflow as tf | |
pytorch_tensor = torch.zeros(10) | |
np_tensor = pytorch_tensor.numpy() | |
tf_tensor = tf.convert_to_tensor(np_tensor) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/env python | |
import pyaudio | |
import socket | |
import sys | |
FORMAT = pyaudio.paInt16 | |
CHANNELS = 1 | |
RATE = 44100 | |
CHUNK = 4096 |
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
function get_content(dom) { | |
if (!dom.document) | |
return false; | |
if (!dom.document.getElementsByTagName("ul")) | |
return false; | |
return dom.document.getElementsByTagName("ul")[1].innerText; | |
} |
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 shutil | |
import json | |
import os | |
with open(os.path.sep.join(["indexes", "1.12.json"])) as json_file: | |
data = json.load(json_file) | |
for k, v in data['objects'].items(): | |
name = os.path.sep.join((os.path.splitext(k)[0]).split("/")) | |
path = os.path.sep.join(os.path.dirname(name).split("/")) |
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
document.querySelectorAll("yt-live-chat-text-message-renderer #content #message").forEach(function (ele) { console.log(ele.innerText); }); |
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 win32clipboard as clip | |
clip.OpenClipboard() | |
# 複製時間 | |
data = clip.GetClipboardData(data_formats) | |
data_handle = clip.GetClipboardDataHandle(data_formats) | |
clip.CloseClipboard() | |
print(data) |