From the command line create an executable that according to a prototol:
- http
- https
- ftp
Returns a partially built URL: scheme://domain:port
$ ./executable ftp
ftp://ornl.gov:20
| from pymongo import MongoClient | |
| import logging | |
| logger = logging.getLogger(__name__) | |
| from config.config import configParser | |
| class Database(object): | |
| ''' | |
| Generic class to access MongoDB. | |
| /** | |
| * RVO: Return value optimization and NRVO: Named return value optimization | |
| * | |
| * Trying to get the last line of this to work... | |
| * | |
| * Still creates a new object when I assign m14 = fChangeClassRetRef(m14); :( | |
| * | |
| * I guess this is a problem with the compiler itself. | |
| * | |
| */ |
| import numpy as np | |
| res = 66 | |
| def eq(x): | |
| return x[0] + 13 * x[1] / x[2] + x[3] + 12 * x[4] - x[5] - 11 + x[6] * x[7] / x[8] - 10 | |
| # Brute force! | |
| it = 0 | |
| while True: |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import urllib2 | |
| import json | |
| from pprint import pprint | |
| import sys | |
| import re | |
From the command line create an executable that according to a prototol:
Returns a partially built URL: scheme://domain:port
$ ./executable ftp
ftp://ornl.gov:20
| from datetime import datetime | |
| from pymongo.connection import Connection | |
| import tornado.httpserver | |
| import tornado.ioloop | |
| import tornado.options | |
| import tornado.web | |
| from tornado.options import define, options |
I hereby claim:
To claim this, I am signing this object:
| #coding: utf-8 | |
| from django.conf.urls import url | |
| from .views import PostListView, DummyView | |
| urlpatterns = [ | |
| url(r'^$', PostListView.as_view(), name='list'), | |
| url(r'^dummy/$', DummyView.as_view(), name='dummy'), | |
| ] |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| # binnned values | |
| qx = np.linspace(0.001, 0.9, 193) | |
| qy = np.linspace(0.001, 0.7, 257) | |
| dqx = np.sqrt(qx) | |
| dqy = np.sqrt(qy) |