Skip to content

Instantly share code, notes, and snippets.

@rdhyee
rdhyee / hfa-berkeley-events.md
Last active October 22, 2016 19:26
List of phone banking events at the Hillary for America Berkeley office [1224 Solano Ave, Albany, CA](https://goo.gl/maps/MGrDZX5g5Fz)
@rdhyee
rdhyee / process_chunk_timing.txt
Created February 24, 2016 21:26
Timing of [python-taq/raw_taq.py at d2bf87f1b8f461e3f62511eec573770683f8c181 · dlab-projects/python-taq](https://github.com/dlab-projects/python-taq/blob/d2bf87f1b8f461e3f62511eec573770683f8c181/taq/raw_taq.py#L331-L371) using [rkern/line_profiler: Line-by-line profiling for Python](https://github.com/rkern/line_profiler)
Line # Hits Time Per Hit % Time Line Contents
==============================================================
330 @profile
331 def process_chunk(self, all_bytes):
332 '''Convert the structured ndarray `all_bytes` to the target_dtype
333
334 If you did not specify do_process_chunk, you might run this yourself on
335 chunks that you get from iteration.'''
336 # Note, this is slower than the code directly below
337 # records = recfunctions.append_fields(easy_converted, 'Time',
@rdhyee
rdhyee / GITenberg_basics.ipynb
Last active February 16, 2016 20:12
List of repositories in https://github.com/gitenberg as of 2016.02.12
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2016-01-29 22:43:10,869 INFO: - App: Building service dependencies...
2016-01-29 22:43:10,873 INFO: - App: Copying files and filling templates...
2016-01-29 22:43:10,924 INFO: - App: Building the app image with Dockerfile...
2016-01-29 22:43:10,931 INFO: - App: Starting custom Dockerfile build (download logs for more details)
2016-01-29 22:43:11,129 INFO: - App: Sending build context to Docker daemon 532.6 kB
Sending build context to Docker daemon 1.081 MB
Sending build context to Docker daemon 1.638 MB
Sending build context to Docker daemon 2.195 MB
Sending build context to Docker daemon 2.753 MB
Sending build context to Docker daemon 3.31 MB
@rdhyee
rdhyee / otm_signer.md
Last active December 13, 2015 23:19
partial transcription of interview with Michael Signer on the *On the Media* segment "So You've Got a Demagogue" (http://www.onthemedia.org/story/so-youve-got-demagogue/) (5:17-8:24)

On the Media (OTM): ...how are the media to deal with Trump?

Michael Signer (MS): Not let him drive coverage toward areas that are purely self-serving. When I've watched a lot of interviews with him, these anchors have just let him run on and on. The real thing that needs to happen now is men and women of conscience who are in leadership positions in this country need to take this on squarely, not by lampooning him, not by playing into the entertainment shtick, but by calling Americans back to the basic values that are what we're proud of.

OTM: You say lampooning doesn't work?

MS: My study of demagogues shows that satire does not work. The rules in the normal state are that we value constitutional principles, we think about individuals in terms of who they are individually, not stereotypes. In Trump World, none of those things matter. So when you lampoon him or you satirize him or call him a clown or a carnival barker, none of that matters because they're showmen and they get how to agitate and connec

@rdhyee
rdhyee / UC_Berkeley_job_link.ipynb
Last active December 3, 2015 15:38
UC_Berkeley_job_link.ipynb shows a URL template for a direct link to the job listings for UC Berkeley. Alas, it won't work without a browser's already having a cookie from the hr site. See the output to `curl -v -L -X GET "https://hrw-vip-prod.is.berkeley.edu/psc/JOBSPROD/EMPLOYEE/HRMS/c/HRS_HRAM.HRS_CE.GBL?Page=HRS_CE_JOB_DTL&Action=A&JobOpenin…
@rdhyee
rdhyee / error_message.txt
Created November 13, 2015 16:03
error message from attempt to install ever-notedown plugin to Atom 1.2
hyptyposis-2014:lib raymondyee$ apm install ever-notedown
Installing ever-notedown to /Users/raymondyee/.atom/packages ✗
> runas@2.0.0 install /private/var/folders/z8/yvtk3h5n54ldngxxzktb8zh00000gn/T/apm-install-dir-1151013-60758-1w66pue/node_modules/ever-notedown/node_modules/pathwatcher/node_modules/runas
> node-gyp rebuild
CXX(target) Release/obj.target/runas/src/main.o
> oniguruma@5.1.2 install /private/var/folders/z8/yvtk3h5n54ldngxxzktb8zh00000gn/T/apm-install-dir-1151013-60758-1w66pue/node_modules/ever-notedown/node_modules/highlights/node_modules/first-mate/node_modules/oniguruma
> node-gyp rebuild
@rdhyee
rdhyee / hddm_debug.ipynb
Created October 26, 2015 22:57
Bug I'm running into using hddm v 0.5.5 running code at http://ski.clps.brown.edu/hddm_docs/tutorial_python.html
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.