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 io | |
import yaml | |
from enum import Enum | |
def process_yaml_file(f): | |
pass | |
class ParseState(Enum): | |
init = 0, | |
find_dict = 1 |
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 imaplib | |
HOST = "imap.gmail.com" | |
USER = "[email protected]" | |
PASSWORD = "---" | |
BATCH_FOLDER = "Batch" | |
INBOX_FOLDER = "\\Inbox" | |
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
from bs4 import BeautifulSoup | |
import requests | |
import csv | |
output = [] | |
archives = requests.get("https://ijoc.org/index.php/ijoc/issue/archive") | |
soup = BeautifulSoup(archives.content, features="lxml") | |
results = soup.div.find_all("div", {"id": "issue"}) |
We can't make this file beautiful and searchable because it's too large.
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
issue,title,href | |
https://ijoc.org/index.php/ijoc/issue/view/17,American Spring: How Russian State Media Translate American Protests for an Arab Audience,https://ijoc.org/index.php/ijoc/article/view/17079/3455 | |
https://ijoc.org/index.php/ijoc/issue/view/17,“One Big Fake News”: Misinformation at the Intersection of User-Based and Legacy Media,https://ijoc.org/index.php/ijoc/article/view/16459/3454 | |
https://ijoc.org/index.php/ijoc/issue/view/17,"Mediatized Realities of Migrants in a Comparative Perspective: Media Use, Deservingness, and Threat Perceptions in the United States and Western Europe",https://ijoc.org/index.php/ijoc/article/view/16437/3453 | |
https://ijoc.org/index.php/ijoc/issue/view/17,Developing a Perceived Social Media Literacy Scale: Evidence from Singapore,https://ijoc.org/index.php/ijoc/article/view/16118/3452 | |
https://ijoc.org/index.php/ijoc/issue/view/17,Perception and Decision Making: A Multi-Technique Analysis of Campaign Posters in the 2019 Bogotá Mayoral Election,https://ijoc.org/index.php/ijoc |
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
{ | |
The idea of DelphiSwitchToFiber() function is to backup on a local variable in stack the | |
state of the Exception stack right before calling SwitchToFiber() and then restoring its state | |
right atfer returns from call to SwitchToFiber(). | |
If SwitchToFiber() is used directly from within an Except or Finally block, and if there's an exception | |
raised after switching to another fiber, upon coming back the results will be unpredictable because | |
the exception stack will be completely unwinded and all raise exceptions destroyed. | |
In order to prevent this issue we must backup the Exception stack before the call to SwitchToFiber() | |
and restore it right after the call. |
OlderNewer