yum install -y \
zlib \
zlib-devel \
sqlite-devel \
bzip2-devel \
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
| #include <stdlib.h> | |
| #define MIN(a, b) (a > b ? b : a) | |
| struct TreeNode | |
| { | |
| int val; | |
| struct TreeNode *left; | |
| struct TreeNode *right; | |
| }; |
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
| { | |
| "version": 1, | |
| "keyboard": { | |
| "keys": [ | |
| { | |
| "id": 0, | |
| "legend": "~\n`", | |
| "state": { | |
| "x": 0, | |
| "y": 0, |
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 asyncio | |
| import time | |
| from concurrent.futures import ProcessPoolExecutor | |
| from pathlib import Path | |
| from lxml import html | |
| _html_text = None | |
| _latest_fetched = 0 |
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
| # Standard Library | |
| import os | |
| import platform | |
| import re | |
| import stat | |
| import subprocess as sp | |
| import zipfile | |
| import tempfile | |
| from typing import List |
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 threading | |
| def raise_from_top(): | |
| raise RuntimeError | |
| def raise_from_second_frame(): | |
| raise_from_top() | |
| def raise_from_third_frame(): | |
| raise_from_second_frame() |
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
| [[package]] | |
| category = "main" | |
| description = "Atomic file writes." | |
| marker = "sys_platform == \"win32\"" | |
| name = "atomicwrites" | |
| optional = true | |
| python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" | |
| version = "1.4.0" | |
| [[package]] |
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
| ;;; Package Managing | |
| ;; Bootstrapping straight.el | |
| (defvar bootstrap-version) | |
| (let ((bootstrap-file | |
| (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory)) | |
| (bootstrap-version 5)) | |
| (unless (file-exists-p bootstrap-file) | |
| (with-current-buffer | |
| (url-retrieve-synchronously | |
| "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el" |
Parse code of JavaScript to convert literal statement like preloaded state of Redux.js into python data.
Important rule: Different coroutines own different contexts.
- The
example1.pyruns one coroutine with async_generator, theasync_generator.__anext__method runs in same context and thus it works find. - The
example2.pyproduces two coroutines with the same async_generator, theasync_generator.__anext__method runs in different contexts and thus it raises an ValueError exception.