This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| angular.module('utilsModule').filter("megaNumber", () => { | |
| return (number, fractionSize) => { | |
| if(number === null) return null; | |
| if(number === 0) return "0"; | |
| if(!fractionSize || fractionSize < 0) | |
| fractionSize = 1; | |
| var abs = Math.abs(number); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from flask import request, Flask | |
| from flask.ext import restful | |
| class Api(restful.Api): | |
| def __init__(self, app, prefix='', default_mediatype='application/json', | |
| decorators=None): | |
| super(Api, self).__init__(app, prefix, default_mediatype, decorators) |