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 char_to_num(i): | |
| if i == '1': | |
| return 1 | |
| elif i == '2': | |
| return 2 | |
| elif i == '3': | |
| return 3 | |
| elif i == '4': | |
| return 4 | |
| elif i == '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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <title>SEC.gov | Request Rate Threshold Exceeded</title> | |
| <style> | |
| html {height: 100%} | |
| body {height: 100%; margin:0; padding:0;} | |
| #header {background-color:#003968; color:#fff; padding:15px 20px 10px 20px;font-family:Arial, Helvetica, sans-serif; font-size:20px; border-bottom:solid 5px #000;} | |
| #footer {background-color:#003968; color:#fff; padding:15px 20px;font-family:Arial, Helvetica, sans-serif; font-size:20px;} |
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
| [general] | |
| accounts = Gmail | |
| [Account Gmail] | |
| localrepository = LocalGmail | |
| remoterepository = RemoteGmail | |
| [Repository LocalGmail] | |
| type = Maildir | |
| localfolders = ~/Maildir/ |
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
| <?php | |
| $filename = 'state.data'; | |
| if ($_SERVER['REQUEST_METHOD'] === 'POST') { | |
| file_put_contents($filename, $_POST['state']); | |
| } | |
| ?> | |
| <html> | |
| <body> | |
| <form method="POST"> | |
| <?php |
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
| $ ab -c 10 -n 100 https://prod.url/cv-builder/ | |
| This is ApacheBench, Version 2.3 <$Revision: 1807734 $> | |
| Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
| Licensed to The Apache Software Foundation, http://www.apache.org/ | |
| Benchmarking prod.url (be patient).....done | |
| Server Software: nginx/1.6.2 | |
| Server Hostname: prod.url |
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
| $ ab -c 10 -n 100 https://prod.url/cv-builder/ | |
| This is ApacheBench, Version 2.3 <$Revision: 1807734 $> | |
| Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
| Licensed to The Apache Software Foundation, http://www.apache.org/ | |
| Benchmarking prod.url (be patient).....done | |
| Server Software: nginx/1.6.2 | |
| Server Hostname: prod.url |
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
| diff --git README.rst README.rst | |
| index f9b98c4..d7dba88 100644 | |
| --- README.rst | |
| +++ README.rst | |
| @@ -7,8 +7,8 @@ A basic client for Slack.com, which can optionally connect to the Slack Real Tim | |
| .. |build-status| image:: https://travis-ci.org/slackapi/python-slackclient.svg?branch=master | |
| :target: https://travis-ci.org/slackapi/python-slackclient | |
| -.. |windows-build-status| image:: https://ci.appveyor.com/api/projects/status/github/slackapi/python-slackclient?branch=master&svg=true | |
| - :target: https://ci.appveyor.com/project/aoberoi/python-slackclient |
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
| diff --git slackclient/client.py slackclient/client.py | |
| index 7c3721d..209f2b7 100644 | |
| --- slackclient/client.py | |
| +++ slackclient/client.py | |
| @@ -2,8 +2,10 @@ | |
| # mostly a proxy object to abstract how some of this works | |
| import json | |
| +import traceback | |
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.task(bind=True) | |
| def debug_task(self): | |
| print('Request: {0!r}'.format(self.request)) |
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 EventHandlersPageMixin(object): | |
| """ | |
| Tests for transfers page. | |
| """ | |
| def setUp(self): | |
| """ | |
| Before each test got to a new login page. | |
| """ | |
| super(EventHandlersPageMixin, self).setUp() | |
| self.loginSuperAdminSuccessful() |
NewerOlder