Skip to content

Instantly share code, notes, and snippets.

# A. Current Data - Poorly structured
contact_emails = {
'brian': '[email protected]',
'ted': '[email protected]',
'donald': '[email protected]'
}
# A. Loop
for name in contact_emails:
email = contact_emails[name]
def by48(max_num):
p_value = 0
for i in range(0, max_num, 48):
"""
range(start, stop, step)
"""
yield p_value
p_value += 1
@marksagal
marksagal / atom-php.md
Created May 5, 2017 15:10 — forked from natanfelles/atom-php.md
Atom PHP Environment + CodeIgniter 3 & 4

Atom PHP Environment + CodeIgniter 3 & 4

Download and install Atom Editor:

cd ~/Downloads
wget https://github.com/atom/atom/releases/download/v1.15.0/atom-amd64.deb
sudo dpkg -i atom-amd64.deb