async_api.py
import asyncio
from aiohttp import ClientSession
def magic_get(url):
    async def fetch(session):
        async with session.get(url) as response:
 return await response.text()async_api.py
import asyncio
from aiohttp import ClientSession
def magic_get(url):
    async def fetch(session):
        async with session.get(url) as response:
 return await response.text()| date | close | |
|---|---|---|
| 26-Mar-12 | 606.98 | |
| 27-Mar-12 | 614.48 | |
| 28-Mar-12 | 617.62 | |
| 29-Mar-12 | 609.86 | |
| 30-Mar-12 | 599.55 | |
| 2-Apr-12 | 618.63 | |
| 3-Apr-12 | 629.32 | |
| 4-Apr-12 | 624.31 | |
| 5-Apr-12 | 633.68 | 
Only do this if you understand the consequences: all node programs will be able to bind on ports < 1024
sudo setcap 'cap_net_bind_service=+ep' /usr/local/bin/node
Important: your node location may vary. Use which node to find it, or use it directly in the command:
#Ajax with Flux
##Component UserForm
var React = require('react');
var Actions = require('../actions/ServerActions');
var UserStore = require('../stores/UserStore');
function getStoreState () {| server{ | |
| listen 443; | |
| server_name test.com www.test.com | |
| ssl on; | |
| ssl_certificate /etc/nginx/ssl/cert.pem; | |
| ssl_certificate_key /etc/nginx/key.pem; | |
| location / { | |
| proxy_pass https://localhost:8080; | |
| proxy_redirect off; | 
| // Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
| // Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
| var FORMAT_ONELINE = 'One-line'; | |
| var FORMAT_MULTILINE = 'Multi-line'; | |
| var FORMAT_PRETTY = 'Pretty'; | |
| var LANGUAGE_JS = 'JavaScript'; | |
| var LANGUAGE_PYTHON = 'Python'; |