Upgrade to Pro — share decks privately, control downloads, hide ads and more …

OpenCWB, coscup 2012 lightning talk

OpenCWB, coscup 2012 lightning talk

Chia-liang Kao

August 18, 2012
Tweet

More Decks by Chia-liang Kao

Other Decks in Programming

Transcript

  1. { area: "232", issued: "2012-08-18T03:00:00.000Z", time: "2012-08-18T04:00:00.000Z", forecast: { WeatherDes:

    "Occasional showers or thunderstorms. Temperature 31 centigrade. hot. Northeast wind 3 m/s. Chance of precipitation is 70%.", CI: "hot", Td: "30.0", RH: "92", WindDir: "NE", WindLevel: "2", WindSpeed: "3", Temperature: "31", WeatherIcon: "Weather36.bmp", Wx: "Occasional showers or thunderstorms", MinCI: "30", MaxCI: "30", MinT: "31", MaxT: "31", PoP: 70 } } 12年8月18日星期六
  2. Lines of Code 19 77 625 src/app.ls 51 161 1541

    src/main.ls 70 238 2166 total 74 266 2382 app/app/controllers.ls 19 40 300 app/app/directives.ls 23 72 506 app/app/filters.ls 80 252 2773 app/app/services.ls 14 58 566 app/app.ls 3 4 74 app/init.ls 283 930 8767 total Server Client 12年8月18日星期六
  3. Templates and Styles 43 72 1474 app/assets/index.jade 30 56 1525

    app/assets/partials/app/forecasts.jade 8 10 279 app/assets/partials/app/nav.jade 136 254 2446 app/styles/styles.less 217 392 5724 total 12年8月18日星期六
  4. Brunch and zappa % brunch build # generates _public/ %

    node src/app.js # REST endpoint and _public (static) 12年8月18日星期六
  5. Brunch and zappa % brunch build # generates _public/ %

    node src/app.js # REST endpoint and _public (static) live autoreload! 12年8月18日星期六
  6. AngularJS form.navbar-search.pull-left#navSearch input.search-query(type='search',ng-model='search') section.area-select(ng-controller='AreaSelect') select.areas(multiple,ng-change='change()', ng- model='currentArea', ng-options='a.name group by

    a.county for a in areas | filter:search') AreaSelect = function($scope, $http) { var s = $scope; s.change = function() { s.$emit(‘area-changed’, s.currentArea) } $http.get(‘/1/area’).success(function(it) { s.areas = it; }) } 12年8月18日星期六
  7. AngularJS form.navbar-search.pull-left#navSearch input.search-query(type='search',ng-model='search') section.area-select(ng-controller='AreaSelect') select.areas(multiple,ng-change='change()', ng- model='currentArea', ng-options='a.name group by

    a.county for a in areas | filter:search') AreaSelect = ($scope, $http) -> s = $scope s.change = -> s.$emit \area-changed, s.currentArea $http.get(‘/1/area’).success -> s.areas = it 12年8月18日星期六
  8. AngularJS form.navbar-search.pull-left#navSearch input.search-query(type='search',ng-model='search') section.area-select(ng-controller='AreaSelect') select.areas(multiple,ng-change='change()', ng- model='currentArea', ng-options='a.name group by

    a.county for a in areas | filter:search') AreaSelect = ($scope, $http) -> s = $scope s.change = -> s.$emit \area-changed, s.currentArea $http.get(‘/1/area’).success -> s.areas = it 12年8月18日星期六
  9. TODO • rain statistics • forecasts accuracy statistics • forecasts

    update subscription/notification • what weather info visualization do you want to see? 12年8月18日星期六