Skip to content

Instantly share code, notes, and snippets.

View meistermeier's full-sized avatar
🥰

Gerrit Meier meistermeier

🥰
View GitHub Profile
@meistermeier
meistermeier / weather.js
Created April 11, 2014 12:57
Yahoo weather codes to erikflowers/weather-icons
var code2Icon = function(code) {
code = parseInt(code);
switch (code) {
case 0: return 'wi-tornado';
case 1: return 'wi-tornado';
case 2: return 'wi-tornado';
case 3: return 'wi-thunderstorm';
case 4: return 'wi-thunderstorm';
case 5: return 'wi-rain-mix';
case 6: return 'wi-rain-mix';