Skip to content

Instantly share code, notes, and snippets.

View hungryzi's full-sized avatar

Zi Huong Vu hungryzi

  • Vancouver, Canada
View GitHub Profile
@hungryzi
hungryzi / batch-process-f941.sh
Last active September 24, 2017 00:53
Removing unneeded pages from F941
#!/bin/bash
INPUT=~/Downloads/f941
DONE=$INPUT/done
OUTPUT=$INPUT/output
mkdir -p $DONE
mkdir -p $OUTPUT
PDFS=$INPUT/*.pdf
import json
from collections import namedtuple
x = namedtuple('_', ['language', 'country', 'locale'])(
'en',
'en-GV',
'en_US'
)
nt = x._asdict()
passcode = input("What's the passcode? ")
print("Your passcode is " + passcode)
passcode = input("What's the passcode? ")
print("Your passcode is " + passcode)
is_correct = passcode == '0042'
print("is_correct = " + str(is_correct))
passcode = input("What's the passcode? ")
if passcode == '0042':
print("Welcome!")
else:
print("Wrong passcode!")
counter = 0
while counter < 3:
passcode = input("What's the passcode? ")
if passcode == '0042':
print("Welcome!")
break
else:
print("Wrong passcode!")
# 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!!**
__ __
__ \\ / __
/ \\ | / \\
\\|/