Skip to content

Instantly share code, notes, and snippets.

@hellosmithy
hellosmithy / Preferences.sublime-settings
Last active October 13, 2015 02:27
Sublime Text user settings
{
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme",
"bold_folder_labels": true,
"detect_indentation": true,
"dictionary": "Packages/Language - English/en_GB.dic",
"ensure_newline_at_eof_on_save": true,
"font_size": 17.0,
"reveal-on-activate": true,
"tab_size": 4,
"theme": "Soda Light 3.sublime-theme",
@hellosmithy
hellosmithy / transparency.styl
Last active September 30, 2015 10:18
Cross-browser alpha transparent background CSS (rgba) Stylus mixin
// background transparency
background-transparency(color, alpha = 1)
ms-color = argb(color, alpha)
background rgb(color)
background rgba(color, alpha)
.lt-ie8 &
zoom 1
.lt-ie9 &
background transparent
filter s('progid:DXImageTransform.Microsoft.gradient(startColorstr=%s,endColorstr=%s)', ms-color, ms-color)
@hellosmithy
hellosmithy / countries.html
Created July 7, 2011 10:20
An HTML form select input with countries compatible with Campaign Monitor naming conventions.
<select>
<option value="Afghanistan">Afghanistan</option>
<option value="Albania">Albania</option>
<option value="Algeria">Algeria</option>
<option value="American Samoa">American Samoa</option>
<option value="Andorra">Andorra</option>
<option value="Angola">Angola</option>
<option value="Anguilla">Anguilla</option>
<option value="Antigua &amp; Barbuda">Antigua &amp; Barbuda</option>
<option value="Argentina">Argentina</option>