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;| from notion_client import Client | |
| from typing import List, Optional | |
| import ollama | |
| import json | |
| database_id = "...." | |
| notion_token = "secret_...." | |
| llm_model = 'llama3.2' | |
| llm_model = 'qwen2.5' |
| # A python scrapper that https://www.einbuergerungstest-online.eu/fragen/{page_number_start_from_1_to_10}/ and scrapes the questions and answers from the page. | |
| # The scrapper should return the questions (class=questions-question-text) and multiple choose options (li elements inside class=list-unstyled question-answers-list and class=question-answer-right is the answer) and progress percentage(class=progress-bar-success) in a json format. | |
| # The scrapper should be able to scrape all the 10 pages and save it in a json file. | |
| # The output should be in the following format: | |
| # { | |
| # "questions": [ | |
| # { | |
| # "question_id": "1", | |
| # "question": "In Deutschland dürfen Menschen offen etwas gegen die Regierung sagen, weil …", |
| # 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" | |
| } | |
| }, |