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
| // 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
| 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
| 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
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import random | |
| import unittest | |
| def infinite_monkey_sort(numbers): | |
| length = len(str(numbers)) | |
| while True: |
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
| import os | |
| os.system('sudo kill -9 %d' % os.getpid()) |
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
| # -*- coding: utf-8 -*- | |
| # https://twitter.com/Code_60/status/577062012250796032 | |
| import tweepy | |
| API_KEY = 'YOUR_APP_KEY_HERE' | |
| API_SECRET = 'YOU_APP_SECRET_HERE' | |
| auth = tweepy.OAuthHandler(API_KEY, API_SECRET) | |
| api = tweepy.API(auth) |
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
| import re | |
| def comma(value): | |
| if not value.isdigit(): | |
| raise ValueError("input must be an integer") | |
| return re.sub('\B(?=(\d{3})+(?!\d))', ',', str(int(value))) |
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"; | |
| input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], select, textarea { | |
| -webkit-appearance: none; | |
| -moz-appearance: none; | |
| } | |
| select { | |
| appearance: none; | |
| -webkit-appearance: none; | |
| -moz-appearance: checkbox-container; |
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"; | |
| input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], select, textarea { | |
| -webkit-appearance: none; | |
| -moz-appearance: none; | |
| } | |
| select { | |
| appearance: none; | |
| -webkit-appearance: none; | |
| -moz-appearance: checkbox-container; |