Skip to content

Instantly share code, notes, and snippets.

In [7]: f
If you would like help with this exception, please post an issue at https://github.com/NSLS-II/Bug-Reports and reference this uid:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>requests.exceptions.ConnectionError: HTTPSConnectionPool(host='slack.com', port=443): Max retries exceeded with url: /api/chat.postMessage?token=xoxp-14541929973-14542962293-51990916131-7df2e5f2e4 (Caused by NewConnectionError('&lt;requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f8ab1e4bba8&gt;: Failed to establish a new connection: [Errno -2] Name or service not known',)) // Werkzeug Debugger</title>
<link rel="stylesheet" href="?__debugger__=yes&amp;cmd=resource&amp;f=style.css"
type="text/css">
563.478 959240.411 0.10000008 448.60276 1343.8341 431.65376 -417.3745 3284227.7 301644.97 574399.18 -681991.87 -2918623.3 137.09493 0 47.140961 2.0142e-08 -4.1542e-08 0 -3.4023e-10 3.4023e-10 637694.82 0 0
563.59 959240.523 0.1000001 448.60276 1343.8341 431.65376 -417.3745 3284227.7 301644.97 574399.18 -681991.87 -2918623.3 137.09493 3.4023e-10 47.140961 2.0142e-08 -4.1542e-08 -4.0828e-09 3.4023e-10 -3.4023e-10 636933.64 0 0
563.703 959240.636 0.1000001 448.60276 1343.8341 431.65376 -417.3745 3284227.7 301644.97 574399.18 -681991.87 -2918623.3 137.09493 1.3609e-09 47.140961 2.0142e-08 -4.1542e-08 0 6.8046e-10 3.4023e-10 636247.92 0 0
563.817 959240.750 0.1000001 448.60276 1343.8341 431.65376 -417.3745 3284227.7 301644.97 574399.18 -681991.87 -2918623.3 137.09493 -3.4023e-10 47.140961 2.0142e-08 -4.1542e-08 0 6.8046e-10 0 634897.73 0 0
563.93 959240.862 0.1000001 448.60276 1343.8341 431.65376 -417.3745 3284227.7 301644.97 574399.18 -681991.87 -2918623.3 137.09493 3.4023e-10 47.140961 2.0142e-08 -4.1542e-08 -3.
diff --git a/doct.py b/doct.py
index 206e719..dd44b07 100644
--- a/doct.py
+++ b/doct.py
@@ -32,9 +32,9 @@ import six
import collections
from functools import reduce
import time
-import datetime
+from datetime import datetime, timedelta, date
@ericdill
ericdill / condalog.sh
Created May 19, 2016 20:00
replace conda with condalog to get pass through behavior
#! /bin/bash
LOGBOOK=bs-testing
pkg_list_base="/tmp/automated-list-of-conda-packages"
echo "pkg_list_base=$pkg_list_base"
#exit 1
echo "
Capturing current list of conda packages in
cd /tmp/foo
(/tmp/foo)[root@ab4b3e938b79 foo]# grep -r "\.\.\.\/"
Binary file bin/a2p matches
Binary file bin/perl matches
Binary file bin/perl5.20.3 matches
bin/h2xs: $type =~ s/\. \. \./.../g;
bin/pod2man:Perl module path. If it is, a path like C<.../lib/Pod/Man.pm> is converted
lib/perl5/5.20.3/Archive/Tar.pm: Wide character in print at .../Archive/Tar.pm line 1014.
lib/perl5/5.20.3/AutoSplit.pm: # $autodir - the ".../auto" dir below which to write split subs
lib/perl5/5.20.3/CPAN/API/HOWTO.pod:C<.../authors/id/A/AU/AUTHORID/TARBALL>.

XPD

edill@xf28id1-ws2:/home/xf28id1/ipython_profiles$ git status
# On branch master
# Your branch is ahead of 'pavol/master' by 27 commits.
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
@ericdill
ericdill / Untitled.ipynb
Last active April 6, 2016 14:23
Untitled.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
In [16]: from skbeam.core.accumulators.histogram import Histogram
In [17]: h = Histogram((5, 0, 3))
In [18]: h.centers
Out[18]: [array([ 0.3, 0.9, 1.5, 2.1, 2.7])]
In [19]: import numpy as np
In [20]: a = np.arange(5)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from metadatastore.commands import get_events_generator
for descriptor in hdr.descriptors:
for event in get_events_generator(descriptor)
assert list(event.data.keys()) == list(descriptor.data_keys.keys())
assert list(event.timestamps.keys()) == list(descriptor.data_keys.keys())