Skip to content

Instantly share code, notes, and snippets.

@jeffwesson
jeffwesson / PygLatin
Created August 16, 2014 09:00
A Python PygLatin Translator
# Suffix
suffix = 'ay'
# Vowels
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
# Supplies
supplies = ['Backpack', 'Flashlight', 'Waterproof matches', 'Rambo knife', 'Six-shooter', 'Waterproof tarp', 'Water purification straw', 'Flint', 'Rope']
# Environments
@jeffwesson
jeffwesson / bad-markup-semanticity
Last active August 29, 2015 14:04
This is a great example of bad markup. Each header should be simple text with CSS font styling for shadows and CSS background images based on media queries. All semanticity is lost in IBMs way of writing markup.
<!-- LEADSPACE_BEGIN -->
<div class="ibm-container" id="ibm-leadspace-head">
<div class="ibm-container-body" id="ibm-leadspace-body">
<div class="ibm-columns ibm-alternate" id="ibm-lead-1">
<div class="ibm-col-1-1">
<h1>
<a href="http://www.ibm.com/mobilefirstforios?lnk=ushpls1">
<img alt="IBM and Apple partnership" height="297" width="578" src="/images/portal/R745639D06637H07/4_07152014_text.png" class="ibm-no-mobile"/>
<img class="ibm-mobile" alt="IBM and Apple partnership" height="98" width="318" src="/images/portal/R745639D06637H07/4_07152014_mobile.png"/>
</a>