RESTful != HTTP.
Work in progress.
This is a framework for bringing RESTful Resources to your Python applications. It can be used in a few ways:
- To add a RESTful interface to your existing codebase.
| [ | |
| { "keys": ["ctrl+f"], "command": "indentxml" }, | |
| { "keys": ["super+k", "super+b"], "command": "toggle_side_bar" }, | |
| { | |
| "keys": ["super+shift+2"], | |
| "command": "set_layout", | |
| "args": | |
| { | |
| "cols": [0.0, 1.0], | |
| "rows": [0.0, 0.5, 1.0], |
| import time | |
| from redis import ConnectionPool, Redis | |
| class WaitingConnectionPool(ConnectionPool): | |
| "Connection Pool that blocks if a connection is not available" | |
| def make_connection(self): | |
| while True: | |
| if self._created_connections >= self.max_connections: | |
| time.sleep(0.01) | |
| self._created_connections += 1 |
| # celery and it's dependencies | |
| amqp==1.0.8 | |
| anyjson==0.3.3 | |
| kombu==2.5.6 | |
| python-dateutil==1.5 | |
| billiard==2.7.3.21 | |
| celery==3.0.15 |
| header{ | |
| width:100%; | |
| height:200px; | |
| background:teal; | |
| } | |
| .ad{ | |
| width:500px; | |
| height:120px; | |
| margin:0 auto; |
| [wheel] | |
| universal = 1 |
| #! /bin/bash | |
| # originaly from http://tinyurl.com/twitch-linux from taladan | |
| # www.youtube.com/user/taladan | |
| # gist created by brodul | |
| INRES="1280x800" # input resolution | |
| #OUTRES="1024x640" # Output resolution | |
| OUTRES="800x500" # Output resolution |
| #!/usr/bin/env bash | |
| # shellcheck disable=SC2034 | |
| # shellcheck disable=SC1091 | |
| # shellcheck disable=SC2154 | |
| # PADD | |
| # | |
| # A more advanced version of the chronometer provided with Pihole | |
| # SETS LOCALE |
| // for an updated version see https://github.com/jsdf/react-native-refreshable-listview | |
| var React = require('react-native') | |
| var { | |
| ListView, | |
| ActivityIndicatorIOS, | |
| StyleSheet, | |
| View, | |
| Text, | |
| } = React |