Moved to tdhopper.com.
| import pandas as pd | |
| import requests | |
| username = 'STORM-UI-USERNAME' | |
| password = 'STORM-UI-PASSWORD' | |
| base_url = 'STORM-UI-URL' | |
| cluster_summary = '/api/v1/cluster/summary' | |
| topology_summary = '/api/v1/topology/summary' | |
| topology_detail = '/api/v1/topology/{topology}' | |
| component = '/api/v1/topology/{topology}/component/{component}' |
| library(ggplot2) | |
| set.seed(10) | |
| data = rnorm(100) | |
| ggplot(data.frame(data=data), aes(x=data))+ | |
| geom_histogram(fill="#4F81BD", binwidth=.5)+ | |
| theme(panel.background = element_rect(fill = "transparent",colour = NA), | |
| panel.grid.minor = element_blank(), | |
| panel.grid.major = element_line(colour="#CDCDCD",size=0.25), |
| #!/usr/local/bin/python3 | |
| zip_code = '27560' | |
| api_url = 'http://5dayweather.org/api.php?city=%s' % zip_code | |
| from urllib.request import urlopen | |
| import json | |
| response = urlopen(api_url).read() | |
| d = json.loads(response.decode('utf8')) |
| #!/usr/bin/env python | |
| import os, json | |
| import subprocess | |
| def get_clipboard(): | |
| p = subprocess.Popen(['pbpaste'], stdout=subprocess.PIPE) | |
| retcode = p.wait() | |
| data = p.stdout.read() | |
| return data |
| import dateutil | |
| import pandas as pd | |
| import random | |
| from os.path import expanduser, join | |
| home = expanduser("~") | |
| with open(join(home, "Dropbox/Text Notes/Weight.txt"), "r") as f: | |
| lines = f.readlines() |
Cornelius Lanczosm, H. Eves Mathematical Circles Squared
Most of the arts, as painting, sculpture, and music, have emotional appeal to the general public. This is because these arts can be experienced by some one or more of our senses. Such is not true of the art of mathematics; this art can be appreciated only by mathematicians, and to become a mathematician requires a long period of intensive training. The community of mathematicians is similar to an imaginary community of musical composers whose only satisfaction is obtained by the interchange among themselves of the musical scores they compose.
| tdhopper@~/temp $ echo "hello" > file1.txt | |
| tdhopper@~/temp $ mkdir lib | |
| tdhopper@~/temp $ cp file1.txt lib/file2.txt | |
| tdhopper@~/temp $ mkdir dir2 | |
| tdhopper@~/temp $ cp file1.txt dir2/file3.txt | |
| tdhopper@~/temp $ ag hello | |
| dir2/file3.txt | |
| 1:hello | |
| file1.txt |
Springfield, April 1, 1838.
Dear Madam : —
Without apologizing for being egotistical, I shall make the history of sb much of my life as has elapsed since I saw you the subject of this letter. And, by the way, I now discover that, in order to give a full and intelligible account of the things I have done and suffered since I saw you, I shall necessarily have to relate some that happened before.