Skip to content

Instantly share code, notes, and snippets.

@rareyman
rareyman / countries select element
Created June 5, 2013 22:39
HTML snippet of code for <select> element with countries
<select name="country">
<optgroup label="">
<option value="United States">United States</option>
<option value="United Kingdom">United Kingdom</option>
<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>

Things for Style Guide

<!DOCTYPE html>
<!-- http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="ie ie6 lte9 lte8 lte7"> <![endif]-->
<!--[if IE 7]> <html class="ie ie7 lte9 lte8 lte7"> <![endif]-->
<!--[if IE 8]> <html class="ie ie8 lte9 lte8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9 lte9"> <![endif]-->
<!--[if gt IE 9]> <html> <![endif]-->
<!--[if !IE]><!-->
<html>
<!--<![endif]-->
@rareyman
rareyman / midi-tempo-broadcast.py
Last active January 2, 2024 17:21
Running this script will start a tempo and broadcast it to the Arturia KeyStep 37, then wait for you to enter "s" to stop the clock. Example: `python midi-tempo-broadcast.py 125` to set BPM to 125.
# MIDI Tempo Broadcast
# Ross A. Reyman • soundcloud.com/r89music
# This script broadcasts a MIDI clock signal to hardware devices.
#
# prerequisites:
# - Python 3+
# - install Mido `pip install mido`
#
# Run this script with:
# `python midi-tempo-broadcast.py` OR