Discover gists
View main.py
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
| from typing import Iterator | |
| def fib(n: int) -> Iterator[int]: | |
| a, b = 0, 1 | |
| while a < n: | |
| yield a | |
| a, b = b, a + b |
View submit.cfg
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
| [Uebung] | |
| aufgabe = 9 | |
| [Abgeben] | |
| datei1 = uebung09.py | |
| [submit] | |
| encrypt = True | |
| time = 1640183672 |
View wp-next-post-queries.ts
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
| export type Post = { | |
| id: string; | |
| author: { node: Author }; | |
| date: string; | |
| content: string; | |
| slug: string; | |
| title: string; | |
| categories: { edges: { node: Term }[] }; | |
| tags: { edges: { node: Term }[] }; | |
| }; |
View test_file.txt
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
| Hello World! |
View wp-next-page-component.tsx
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 parseHTML from "html-react-parser"; | |
| const Page = (page: PageProps) => ( | |
| <> | |
| <Head> | |
| <title>{page.title}</title> | |
| </Head> | |
| <article> | |
| <header className={styles.header}> |
View FilesSnapshot.xml
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
| <files> | |
| <file path="C:\ProgramData\chocolatey\lib\speedtest\ookla-speedtest-1.1.1-win64.zip.txt" checksum="CBEE07B621A6CD574ED9450576754B06" /> | |
| <file path="C:\ProgramData\chocolatey\lib\speedtest\README.md" checksum="547DA9413096C5F8D74858D4846D048F" /> | |
| <file path="C:\ProgramData\chocolatey\lib\speedtest\speedtest.nupkg" checksum="D7462222DAA01D86B1B067FFCB513000" /> | |
| <file path="C:\ProgramData\chocolatey\lib\speedtest\speedtest.nuspec" checksum="0D519A3AB6DCC1F799C45072F8720038" /> | |
| <file path="C:\ProgramData\chocolatey\lib\speedtest\tools\chocolateyInstall.ps1" checksum="9704932717E1B4E518C91E4D6165DEE7" /> | |
| <file path="C:\ProgramData\chocolatey\lib\speedtest\tools\speedtest.exe" checksum="90E29C4098418F00A7E45202BE3BEDD6" /> | |
| <file path="C:\ProgramData\chocolatey\lib\speedtest\tools\speedtest.md" checksum="45862B699BA674518533EC71 |
View licence_header_adder.py
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 asyncio | |
| import pathlib | |
| import os | |
| import time | |
| import multiprocessing | |
| from functools import wraps | |
| from concurrent.futures.thread import ThreadPoolExecutor | |
| executor = ThreadPoolExecutor(max_workers=multiprocessing.cpu_count() * 5) |
View keras_load_model_bug.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View telegram-bot.js
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
| addEventListener("fetch", (event) => { | |
| event.respondWith( | |
| handleRequest(event.request).catch( | |
| (err) => new Response(err.stack, { status: 500 }) | |
| ) | |
| ); | |
| }) | |
| function sendMessage(chat_id, text) { | |
| return fetch(`https://api.telegram.org/bot${BOT_TOKEN}/sendMessage`, { |
View raw.json
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
| { | |
| "id": "" | |
| } |
NewerOlder