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
#!/bin/bash | |
INPUT=~/Downloads/f941 | |
DONE=$INPUT/done | |
OUTPUT=$INPUT/output | |
mkdir -p $DONE | |
mkdir -p $OUTPUT | |
PDFS=$INPUT/*.pdf |
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 json | |
from collections import namedtuple | |
x = namedtuple('_', ['language', 'country', 'locale'])( | |
'en', | |
'en-GV', | |
'en_US' | |
) | |
nt = x._asdict() |
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
passcode = input("What's the passcode? ") | |
print("Your passcode is " + passcode) |
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
passcode = input("What's the passcode? ") | |
print("Your passcode is " + passcode) | |
is_correct = passcode == '0042' | |
print("is_correct = " + str(is_correct)) |
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
passcode = input("What's the passcode? ") | |
if passcode == '0042': | |
print("Welcome!") | |
else: | |
print("Wrong passcode!") |
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
counter = 0 | |
while counter < 3: | |
passcode = input("What's the passcode? ") | |
if passcode == '0042': | |
print("Welcome!") | |
break | |
else: | |
print("Wrong passcode!") | |
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
# Trong Python, mot bien ma ta khong co y dinh thay doi thi goi la mot hang so. | |
# Ten cua hang so duoc viet hoa hoan toan de nguoi doc hieu duoc y dinh do | |
# cua lap trinh vien | |
WELCOME_MESSAGE = """ | |
**welcome!!** | |
__ __ | |
__ \\ / __ | |
/ \\ | / \\ | |
\\|/ |
OlderNewer