Skip to content

Instantly share code, notes, and snippets.

View jasonbaker's full-sized avatar

Jason Baker jasonbaker

View GitHub Profile
x = 1
z = 2 + y * g
print m
def f(x):
return x + 1
let f x = x + 1
{'browserInfo': 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.3; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)',
'code': 1064,
'data': {'searchInstanceId': 1442326523386886L, 'tabUsage': "{'1': 1}"},
'hostname': 'apture-web07.managed.contegix.com',
'pageId': 346457205,
'pluginReferrer': None,
'siteId': 236292,
'timestamp': 1308260089,
'userCookieId': 'QizbjmqX3x',
'visitId': 144232652338688L}
{'browserInfo': 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.3; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)',
'code': 1064,
'data': {'searchInstanceId': 1442326523386886L, 'tabUsage': "{'1': 1}"},
'hostname': 'apture-web07.managed.contegix.com',
'pageId': 346457205,
'pluginReferrer': None,
'siteId': 236292,
'timestamp': 1308260089,
'userCookieId': 'QizbjmqX3x',
'visitId': 144232652338688L}
{'12 Best LeBron Jokes Following Heat Finals Loss': 3.0,
'1: Maria Kirilenko': -1.0,
'50 Craziest Names in Sports History': 3.0,
'Aaron Gray': -1.0,
'Adrian Peterson': -1.0,
'Adriana Lima': -1.0,
'Adriana Lima ': -1.0,
'Afeni Shakur': -1.0,
'Alessandro Matri\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t': -1.0,
'Alex Curran': -1.0,
Traceback (most recent call last):
File "/usr/local/lib/python2.6/site-packages/eventlet/greenpool.py", line 80, in _spawn_n_impl
func(*args, **kwargs)
File "wexdigger.py", line 775, in processTitle
processor.process()
File "wexdigger.py", line 698, in process
self.output['wikilocation'] = self.parseLocationFromArticle(tree)
File "wexdigger.py", line 648, in parseLocationFromArticle
longarray.append(float(longd[0].text))
UnicodeEncodeError: 'decimal' codec can't encode character u'\u2212' in position 0: invalid decimal Unicode string
var mlconfig = A.AptureConfig.getMagicLinkConfig();
var socialLinkStatus = mlconfig['status'];
var socialLinkPageId = mlconfig['pageid'];
A._eventTracker.avro({{AvroEvents.PageLoadClientEvent}}, {
'isTMMEnabled': A.tmm,
'fullBarEnabled': !(A.capabilities & {{Capabilities.Barless}}),
'numLinks': ((A.page && A.page.links) ? A.page.links.length : 0),
'numTmmLinks': ((A.page && A.page.tmmLinks) ? A.page.tmmLinks.length : 0),
'socialLinkStatus': socialLinkStatus,
Traceback (most recent call last):
File "/home/csar/current/apture/main/workers/objects.py", line 436, in execute
action()
File "/home/csar/current/apture/scripts/checkSiteStatus.py", line 57, in checkStatus
for row in alchemyconn.execute(s):
File "/usr/local/lib/python2.6/site-packages/sqlalchemy/engine/base.py", line 1191, in execute
params)
File "/usr/local/lib/python2.6/site-packages/sqlalchemy/engine/base.py", line 1271, in _execute_clauseelement
return self.__execute_context(context)
File "/usr/local/lib/python2.6/site-packages/sqlalchemy/engine/base.py", line 1302, in __execute_context
Host: apture-web12.managed.contegix.com
Traceback (most recent call last):
File "/home/csar/current/apture/main/wsgi/log.py", line 247, in wsgi_server
return handler.run()
File "/home/csar/current/apture/main/wsgi/log.py", line 230, in run
data = self.prepare_frontend_events(request)
File "/home/csar/current/apture/main/wsgi/log.py", line 199, in prepare_frontend_events