Skip to content

Instantly share code, notes, and snippets.

View hungryzi's full-sized avatar

Zi Huong Vu hungryzi

  • Vancouver, Canada
View GitHub Profile
# 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!!**
__ __
__ \\ / __
/ \\ | / \\
\\|/
counter = 0
while counter < 3:
passcode = input("What's the passcode? ")
if passcode == '0042':
print("Welcome!")
break
else:
print("Wrong passcode!")
passcode = input("What's the passcode? ")
if passcode == '0042':
print("Welcome!")
else:
print("Wrong 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? ")
print("Your passcode is " + passcode)
import json
from collections import namedtuple
x = namedtuple('_', ['language', 'country', 'locale'])(
'en',
'en-GV',
'en_US'
)
nt = x._asdict()
@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
@hungryzi
hungryzi / .vimrc
Created September 14, 2017 13:21
.vimrc
" It's Vim - not Vi
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle
" required!
Plugin 'VundleVim/Vundle.vim'
@hungryzi
hungryzi / onboarding.md
Last active May 9, 2017 18:10
Engineers onboarding
date category employee name employee address expense description pre-tax amount tax name tax amount
12/1/2013 Travel Don Draper 783 Park Ave, New York, NY 10021 Taxi ride 350.00 NY Sales tax 31.06
11/0/2013 Meals and Entertainment Eric Schmidt 1600 Amphitheatre Parkway, Mountain View, CA 94043 Coffee with Steve 300.00 CA Sales tax 22.50
9/30/2013 Office Supplies Larry Page 1600 Amphitheatre Parkway, Mountain View, CA 94043 Paper 200.00 CA Sales tax 15.00