Skip to content

Instantly share code, notes, and snippets.

@AMeng
AMeng / gist:5814045
Created June 19, 2013 12:48
Make Ctrl+D better in Sublime
[
// Swap the bindings of "ctrl+d" and "alt+f3"
{ "keys": ["ctrl+d"], "command": "find_all_under" },
{ "keys": ["alt+f3"], "command": "find_under_expand" }
]
@AMeng
AMeng / gist:5904379
Created July 1, 2013 20:36
Preferences.sublime-settings
{
"auto_complete_delay": 0,
"font_size": 11,
"ignored_packages":
[
"JSLint",
"Vintage"
],
"save_on_focus_lost": true,
"show_tab_close_buttons": false,
@AMeng
AMeng / gist:6032765
Created July 18, 2013 20:26
user settings
{
"auto_complete_delay": 0,
"font_size": 11,
"ignored_packages":
[
"JSLint",
"Vintage"
],
"save_on_focus_lost": true,
"show_tab_close_buttons": false,
(01:28:21 PM) dashx: Date sorting in DataTables. Has anyone done this here?
(01:30:15 PM) __love__: wtf is datatables?
(01:33:16 PM) dashx: __love__ It's a jQuery based plugin to dynamically create tables
(01:33:41 PM) __love__: dashx: so why would #django be able to tell you how to fix it?
(01:34:01 PM) dashx: __love__ good question, django cant seem to fix anything. :)
(01:34:31 PM) __love__: dashx: lookit you being edgy. good job
argparse==1.2.1
demjson==1.6
ipaddress==1.0.1
mock==0.8.0
pygooglechart==0.3.0
certifi==0.0.8 # Unable to determine the version, using latest
cloudkick==0.1.0-dev # extern: "cloudkick_api"
coverage==3.5.1
datadiff==1.1.3
python-dateutil==1.5 # extern: "dateutil"
argparse==1.2.1
demjson==1.6
ipaddress==1.0.1
mock==0.8.0
pygooglechart==0.3.0
certifi==0.0.8 # Unable to determine the version, using latest
cloudkick==0.1.0-dev # extern: "cloudkick_api"
coverage==3.5.1
datadiff==1.1.3
python-dateutil==1.5 # extern: "dateutil"
virtualenv==1.10.1
# ==============================================================
# Added automatically with pip freeze:
# ==============================================================
pyserial==2.3
pycrypto==2.0.1
mercurial==2.6.2 # Updated (old version not in pip)
distribute==0.7.3 # Updated
Python Traceback:
File "cassandra-driver/cassandra/cluster.py", line 925,\ in execute result = future.result(timeout)
File "cassandra-driver/cassandra/cluster.py", line 2068,\ in result raise self._final_exception
ReadTimeout: code=1200 [Timeout during read request] message="Operation timed out - received only 8 responses." info={'received_responses': 8, 'data_retrieved': True, 'required_responses': 9, 'consistency': 5}
$ cqlsh
class StatementQuery(SimpleStatement):
def __init__(self, *args, **kwargs):
cassandra_settings = getattr(settings, 'CASSANDRA', None)
consistency = ConsistencyLevel.LOCAL_QUORUM
if cassandra_settings and cassandra_settings.get('default', {}).get('DEBUG', False):
consistency = ConsistencyLevel.ONE
kwargs['consistency_level'] = kwargs.get('consistency_level', consistency)
super(StatementQuery, self).__init__(*args, **kwargs)
14th: EST CST
21:01 - 23:30 (9:01 - 11:30) (8:01 - 10:30)
15th:
20:37 - 22:18 (8:37 - 10:18) (7:37 - 9:18)
07:00_20140115