πΉ
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
| def price(value): | |
| parts = str(value).split('.') | |
| parts[0] = re.sub('\B(?=(\d{3})+(?!\d))', ',', parts[0]) | |
| return '.'.join(parts) |
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
| app.config(function($provide){ | |
| $provide.decorator("$browser", ["$delegate", function($delegate){ | |
| $delegate.onUrlChange = function(){}; | |
| $delegate.url = function(){return "";}; | |
| return $delegate; | |
| }]); | |
| }); |
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
| // converts link in text into anchor | |
| app.filter("link_finder", function(){ | |
| return function(input){ | |
| return input? input.replace(/(\bhttps?:\/\/[^\s<>"`{}|\^\[\]\\]+)/g, "<a href='$1' target='new'>$1</a>") : ""; | |
| }; | |
| }); | |
| // escape '<' and '>' | |
| app.filter("escape_html", function(){ | |
| return function(input){ |
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-route#1.2.20 extraneous (1.2.21-build.341+sha.5d11e02 available, latest is 1.3.0-build.2977+sha.11f5aee) | |
| β βββ angular#1.2.20 (latest is 1.3.0-build.2977+sha.11f5aee) | |
| βββ¬ angular-sanitize#1.2.20 extraneous (1.2.21-build.341+sha.5d11e02 available, latest is 1.3.0-build.2977+sha.11f5aee) | |
| β βββ angular#1.2.20 | |
| βββ angular-seo#e801dc02ed extraneous | |
| βββ angular-ui-bootstrap#0.11.0 extraneous | |
| βββ¬ angular-ui-router#0.2.10 extraneous | |
| β βββ angular#1.2.20 (1.3.0-build.2977+sha.11f5aee available) | |
| βββ bootstrap#3.2.0 extraneous | |
| βββ¬ bootstrap-datepicker#1.3.0 extraneous |
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-route#1.2.20 extraneous (1.2.21-build.322+sha.13289c0 available, latest is 1.3.0-build.2947+sha.eb2bab4) | |
| β βββ angular#1.2.20 (latest is 1.3.0-build.2947+sha.eb2bab4) | |
| βββ¬ angular-sanitize#1.2.20 extraneous (1.2.21-build.322+sha.13289c0 available, latest is 1.3.0-build.2947+sha.eb2bab4) | |
| β βββ angular#1.2.20 | |
| βββ¬ bootstrap#3.2.0 extraneous | |
| β βββ jquery#2.1.1 | |
| βββ¬ bootstrap-select#1.5.4 extraneous | |
| β βββ jquery#2.1.1 | |
| βββ¬ imagesloaded#3.1.8 extraneous | |
| β βββ eventEmitter#4.2.7 |
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
| function get_url_params() { | |
| var search = window.location.search.substring(1); | |
| if(search) { | |
| return JSON.parse('{"' + decodeURI(search.replace(/"/g, '\\"')).replace(/&/g, '","').replace(/=/g,'":"') + '"}'); | |
| } else { | |
| return {}; | |
| } | |
| } |
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
| @charset "utf-8"; | |
| .un-float { | |
| float: none !important; | |
| } | |
| .un-padding { | |
| padding: 0 !important; | |
| } |
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
| a = 1 | |
| b = [2, 3, 4, 5] | |
| print a in [(a - 1) for a in b] # True | |
| print [(a - 1) for a in b] # [1, 2, 3, 4] | |
| print a # 5 |