Dashing widget to display weather from forecast.io. This widget was forked from https://gist.github.com/mjamieson/5274790 to add Skycons and the forecast for later in the day.
##Usage
| def print_scoreboard(home_team, home_score, away_team, away_score, inning, inning_number, balls, strikes, outs): | |
| print('Game Scoreboard:') | |
| print('Home: {home_team} - {home_score}'.format(home_team=home_team, home_score=home_score)) | |
| print('Away: {away_team} - {away_score}'.format(away_team=away_team, away_score=away_score)) | |
| print('Inning: {inning_number}/{inning}'.format(inning=inning, inning_number=inning_number)) | |
| print('Balls: {balls} / Strikes: {strikes} / Outs {outs}'.format(balls=balls, strikes=strikes, outs=outs)) | |
| inning = 'bottom' | |
| inning_number = 7 |
| function *fibonacci() { | |
| var curr = 1 | |
| , last = 0 | |
| , x; | |
| yield 1; | |
| while (true) { | |
| x = last + curr; | |
| last = curr; |
Dashing widget to display weather from forecast.io. This widget was forked from https://gist.github.com/mjamieson/5274790 to add Skycons and the forecast for later in the day.
##Usage
| /** | |
| * jQuery method plugin replaceClass() | |
| * | |
| * Replace a class name with another within a selection. | |
| * | |
| */ | |
| (function ($) { | |
| // Add a method to the jQuery fn object. | |
| $.fn['replaceClass'] = function(needle, replacement) { | |
| return this |