Replace all instances of
begin
statement
end until conditionwith
| network={ | |
| ssid="IITB-Wireless" | |
| scan_ssid=1 | |
| key_mgmt=WPA-EAP | |
| identity="<your_username>" | |
| password="<your_password>" | |
| eap=PEAP | |
| phase1="peaplabel=0" | |
| phase2="auth=MSCHAPV2" | |
| } |
| """Converts all JPEG files in INPUT DIR to full size PDF. | |
| requirements.txt | |
| ======================================== | |
| fpdf==1.7.2 | |
| ======================================== | |
| Requires python 3.5+ | |
| """ |
| from os import listdir | |
| from os.path import isfile, join | |
| from PIL import Image | |
| mypath = '.' | |
| onlyfiles = [f for f in listdir(mypath) if isfile(join(mypath, f)) and '.jpg' in f] | |
| MAX_DIM = 800 | |
| for path in onlyfiles: |
| #!/bin/bash | |
| if [[ -n $1 ]] | |
| then | |
| UNAME=$1 | |
| else | |
| read -p 'Username: ' UNAME | |
| [[ -z $UNAME ]] && exit 1 | |
| fi |
| import nltk | |
| import xml.etree.ElementTree as ET | |
| import copy | |
| import difflib | |
| tree = ET.parse('xmlsdev.xml') | |
| root = tree.getroot() | |
| def xml_stringify(node): | |
| return "".join(node.itertext()) |
| # NOTE: Currently this prints the diff for the second data element and exits | |
| import nltk | |
| import xml.etree.ElementTree as ET | |
| import copy | |
| import difflib | |
| tree = ET.parse('xmlsdev.xml') | |
| root = tree.getroot() |
| import xml.etree.ElementTree as ET | |
| tree = ET.parse('xmlsdev.xml') | |
| root = tree.getroot() | |
| with open('corrected', 'w', encoding='utf-8') as file: | |
| i = 0 | |
| for sentence in root.iter('sentence'): | |
| for child in sentence.findall('del'): | |
| tail = child.tail | |
| child.clear() |
| present | thrid_person | continuous | past | |
|---|---|---|---|---|
| abandon | abandons | abandoning | abandoned | |
| abase | abases | abasing | abased | |
| abate | abates | abating | abated | |
| abbreviate | abbreviates | abbreviating | abbreviated | |
| abdicate | abdicates | abdicating | abdicated | |
| abduct | abducts | abducting | abducted | |
| abet | abets | abetting | abetted | |
| abhor | abhors | abhorring | abhorred | |
| abide | abode | abided | abides |