These are my early thoughts on how to structure DataTable in 3.5.0. Feedback is welcome in the comments. Test
new Y.DataTable({...});
new Y.DataTable.Base({...});
#!/usr/bin/python | |
# Equivalent of "tail -f" as a webpage using websocket | |
# Usage: webtail.py PORT FILENAME | |
# Tested with tornado 2.1 | |
# Thanks to Thomas Pelletier for it's great introduction to tornado+websocket | |
# http://thomas.pelletier.im/2010/08/websocket-tornado-redis/ | |
import tornado.httpserver |
commit cec2d35c55cc8b94f0f6ff582cf700dab377af8a | |
Author: Jerry Charumilind <[email protected]> | |
Date: Tue Sep 13 10:38:13 2011 -0700 | |
Increment version to 0.07dev | |
setup.py | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
commit b646ea1ceacf66cc9d32baa432c08a3b5e7fc085 |
import os | |
import pep8 | |
from collections import defaultdict | |
from cStringIO import StringIO | |
from unittest import TestCase | |
from mock import patch | |
from pyflakes.scripts.pyflakes import checkPath | |
@view_config(route_name='my-route') | |
def my_view(request): | |
# here i want to know if path-1 or path-2 was taken, preferably via a var n matchdict? | |
if request.view_name = 'my-route2': | |
# do extra work | |
config.add_route('my-route', '/path-1/view') | |
config.add_route('my-route2', '/path-2/view') |
from kivy.adapters.dictadapter import DictAdapter | |
from kivy.uix.gridlayout import GridLayout | |
from kivy.uix.listview import ListItemButton | |
from kivy.uix.listview import ListView | |
from fixtures import fruit_categories | |
from fixtures import fruit_data | |
from fruit_detail_view import FruitDetailView as DetailView |
### | |
### QA a pull request branch on remote: juju | |
### | |
# Pull info on the specified pull request from the origin remote, not your | |
# github fork. The pull request is not on your fork. | |
fetch-pr = "!f() { git fetch $1 refs/pull/$2/head:refs/remotes/pr/$2; }; f" | |
# git qa-pr juju 6 qa-sticky-headers |
I succesfully managed to setup a local development environment for Bookie in my Mac OSX machine and I'd like to share a few notes. The required changes are just small details and I guess it would be easy to edit the Makefile in order to make it work with Mac OSX, but actually I'm not an expert on it...
OS: Mac OSX 10.8.5
Xcode: 4.6.3
#!/bin/sh | |
# Usage: juju-db | |
# Connect to the database holding the state of the current Juju controller. | |
set -e | |
while [ $# -ge 1 ]; do | |
key="$1" | |
case $key in |
#!/usr/bin/env python | |
### Loops through your controllers and outputs the model version for each | |
### model on each controller. | |
### JAAS NOTE: if you're not actively logged into JAAS the script will fail | |
### until you auth. Rerun after authenticating and it should work on the | |
### second go. | |
import json | |
from subprocess import check_output |