πΉ
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
| class Info(models.Model): | |
| itemCount = models.PositiveIntegerField(default = 0) | |
| class Item(models.Model): | |
| name = models.CharField(max_length = 40) |
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 refine(request): | |
| method = request.method | |
| if method == 'PUT' or method == 'DELETE': | |
| if hasattr(request, '_post'): | |
| del request._post | |
| del request._files | |
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
| if([[[items1 valueForKey:@"paging"] valueForKey:@"limit"] intValue]==2) | |
| { | |
| [copyOfDirt setObject:[[items1 valueForKey:@"data"] valueForKey:@"id"][0] forKey:@"id"]; | |
| [copyOfDirt setObject:[[items1 valueForKey:@"data"] valueForKey:@"id"][1] forKey:@"id2"]; | |
| [copyOfDirt setObject:[[items1 valueForKey:@"paging"] valueForKey:@"limit"] forKey:@"count"]; | |
| [copyOfDirt writeToFile:plistPath atomically:YES]; | |
| }else{ | |
| [copyOfDirt setObject:[[items1 valueForKey:@"data"] valueForKey:@"id"][0] forKey:@"id"]; | |
| [copyOfDirt setObject:[[items1 valueForKey:@"paging"] valueForKey:@"limit"] forKey:@"count"]; | |
| [copyOfDirt writeToFile:plistPath atomically:YES]; |
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
| # define filter | |
| def closure(_in, out, **kw): | |
| out.write('(function(){' + _in.read() + '})()') | |
| # example | |
| bundle = Bundle('sample.js', filters = ('jsmin', closure)) |
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 |
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
| 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
| βββ¬ 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 |
OlderNewer