https://github.blog/2022-02-14-include-diagrams-markdown-files-mermaid/?WT.mc_id=twc9-c9-chwarren
http://mermaid-js.github.io/mermaid/#/
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
# This PowerShell script will prevent your computer from going to sleep by randomly moving the mouse and pressing the Shift key. | |
# Just run it and enjoy your remote working time at home! | |
$idleTimeThreshold = 60 # Idle time threshold in seconds | |
$sleepTime = $idleTimeThreshold / 10 # Sleep time as 1/10th of idle time threshold | |
if (-not ([System.Management.Automation.PSTypeName]'DoNotSleep').Type) { | |
Add-Type @" | |
using System; | |
using System.Runtime.InteropServices; |
import pyautogui | |
import time | |
for i in range(20): | |
pyautogui.click(1888, 1000) | |
time.sleep(5) | |
print(i) |
function deleteAll() { | |
$('button[data-cy="Delete"]').each( | |
function (index, element) { | |
console.log(index); | |
$(element).click().delay(200); | |
$('button[data-cy="delete-confirm"]').click().delay(200); | |
} | |
); | |
} | |
// Each time you can delete 26 articles in ListView, 21 in GridView. |
var urls = {}; | |
$('ytd-playlist-video-renderer').each(function (index, value) { | |
var keywords = ["uwp", 'xaml', "xamarin", 'quantum', 'android', 'css', 'tax', 'unity', 'game', 'asp', 'linq', 'graphql', 'c#', 'python', 'canada', 'windows', 'dell']; | |
var hyperlink = $(value).find('a.ytd-playlist-video-renderer')[0]; | |
var videoTitle = hyperlink.innerText.toLowerCase(); | |
// for all keywords in the array | |
for (var i = 0; i < keywords.length; i++) { | |
// if the keyword is in the title | |
if (videoTitle.includes(keywords[i])) { | |
// urls.push(hyperlink.href); |
https://github.blog/2022-02-14-include-diagrams-markdown-files-mermaid/?WT.mc_id=twc9-c9-chwarren
http://mermaid-js.github.io/mermaid/#/
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
Universities | Times Higher Education Ranking (2021) | Shanghai Jiao Tong University Ranking (2020) | TopUniversities Ranking (2021) | U.S. News & World Report Ranking (2021) | ||
---|---|---|---|---|---|---|
Harvard University | 3 | 1 | 3 | 1 | ||
Massachusetts Institute of Technology (MIT) | 5 | 4 | 1 | 2 | ||
Stanford University | 2 | 2 | 2 | 3 | ||
University of California, Berkeley | 7 | 5 | 30 | 4 | ||
Columbia University | 17 | 7 | 19 | 6 | ||
California Institute of Technology - Caltech | 4 | 8 | 4 | 7 | ||
University of Washington | 29 | 16 | 72 | 8 | ||
Johns Hopkins University | 12 | 15 | 25 | 10 | ||
Yale University | 8 | 11 | 17 | 11 |
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"existingStorageAccountResourceGroupName": { | |
"type": "string", | |
"metadata": { | |
"description": "Resource group for existing storage account" | |
} | |
}, |
import paho.mqtt.client as mqtt #pip install paho.mqtt | |
client = mqtt.Client() | |
client.username_pw_set(username="testuser",password="testpass") | |
client.connect("192.168.0.101", 1883) | |
# PUBLISH | |
client.publish("Topic", "hello server") | |
# SUBSCRIBE |