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
| openapi: 3.0.3 | |
| info: | |
| title: Payment Disruption REST API Docs | |
| version: 1.0.0 | |
| description: | | |
| # Introduction | |
| ## Placeholder | |
| Written API docs for our app visible on the frontend |
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
| to_dd_internal_do_not_use() { | |
| input_directory=$(dirname "$1") | |
| output_file="ec3_converted_$(basename "$1")" | |
| output_directory="$input_directory/$output_file" | |
| /usr/bin/ffmpeg -nostdin -y -i "$1" -map 0 -c copy -c:a ac3 -threads 8 $output_directory >/dev/null 2>&1 | |
| if [ $? -eq 0 ]; then | |
| chown -R root:debian-transmission "$output_directory" | |
| rm -f "$1" | |
| mv "$output_directory" "$1" | |
| echo -ne '\007' |
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
| openapi: 3.0.3 | |
| info: | |
| title: CDN | |
| version: 1.0.0 | |
| description: | | |
| Welcome to CDN API documentation. | |
| The API documentation provides requests to manage CDN service and get statistics. |
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
| { | |
| "telemetry.enableTelemetry": false, | |
| "workbench.statusBar.feedback.visible": false, | |
| "window.zoomLevel": -1, | |
| "workbench.tree.indent": 15, | |
| "files.autoSave": "onFocusChange", | |
| "editor.accessibilityPageSize": 12, | |
| "editor.fontSize": 14, | |
| "workbench.editorAssociations": { | |
| "*.ipynb": "jupyter.notebook.ipynb" |
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
| openapi: 3.0.3 | |
| info: | |
| title: CDN | |
| version: 1.0.0 | |
| description: | | |
| Welcome to CDN API documentation. | |
| The API documentation provides requests to manage CDN service and get statistics. |
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
| prod@any_prod [04:18:04] [~] | |
| -> % cat deploy_any.sh | |
| #!/bin/bash | |
| NAME="any" # Name of the application | |
| DJANGODIR=/home/prod/any # Django project directory | |
| SOCKFILE=/home/prod/run/gunicorn.sock # we will communicte using this unix socket | |
| USER=prod # the user to run as | |
| GROUP=prod # the group to run as | |
| NUM_WORKERS=9 # how many worker processes should Gunicorn spawn |
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
| upstream app_servers { | |
| server unix:/home/prod/run/gunicorn.sock fail_timeout=0; | |
| } | |
| upstream swampdragon { | |
| server 127.0.0.1:9000; | |
| } | |
| server { |
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
| { | |
| "code": 200, | |
| "data": [ | |
| { | |
| "default": false, | |
| "id": 1, | |
| "meals": [ | |
| { | |
| "meal_label": "breakfast", | |
| "meal_time_offset": null, |
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
| num = int(input('Podaj liczbe: ')) | |
| dzielniki = [] | |
| def prime(x): | |
| not_prime_number = False | |
| for i in range(2, x): | |
| if x % i == 0: |
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 get_friends(self, limit=5000): | |
| ''' | |
| Connects to the facebook api and gets the users friends | |
| ''' | |
| friends = getattr(self, '_friends', None) | |
| if friends is None: | |
| friends_response = self.open_facebook.fql( | |
| "SELECT uid, name, sex FROM user WHERE uid IN (SELECT uid2 " | |
| "FROM friend WHERE uid1 = me()) LIMIT %s" % limit) | |
| # friends_response = self.open_facebook.get('me/friends', |
NewerOlder