Skip to content

Instantly share code, notes, and snippets.

Raymond Yee rdhyee

Block or report user

Report or block rdhyee

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Number_of_weekdays_in_month.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View sheets_quickstart.py
from __future__ import print_function
import httplib2
import os
from apiclient import discovery
from oauth2client import client
from oauth2client import tools
from oauth2client.file import Storage
try:
View gist:833fe67ee8be5ccbbd7a294e3340460f
PARIS — France’s presidential election on Sunday has already broken all kinds of barriers in a country whose politics seemed frozen for decades. The two candidates are outsiders. The political establishment has been elbowed aside. The tone of the race between the insurgents has shocked many for its raw anger and insolence.
Then, barely an hour before the official close of campaigning at midnight Friday, the staff of the presumed front-runner, Emmanuel Macron, a 40-year-old former investment banker, announced that his campaign had been the target of a “massive and coordinated” hacking operation.
Internal emails and other documents, some real, some fake, according to the campaign, were posted on 4chan, an online message board favored by white nationalists, in an apparent effort to aid his rival, Marine Le Pen, 48, the far-right leader.
@rdhyee
rdhyee / elected_reps_Albany_CA.md
Created Jan 17, 2017
contact info for elected representatives for Albany, CA (2017)
View elected_reps_Albany_CA.md
@rdhyee
rdhyee / Hillary_for_America_events_in_Berkeley_office.ipynb
Last active Oct 31, 2016
Generate a markdown list of events happening at the Berkeley HfA office
View Hillary_for_America_events_in_Berkeley_office.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rdhyee
rdhyee / hfa-berkeley-events.md
Last active Oct 22, 2016
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 Feb 24, 2016
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)
View process_chunk_timing.txt
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 Feb 16, 2016
List of repositories in https://github.com/gitenberg as of 2016.02.12
View GITenberg_basics.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View ipywidgets (4).txt
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
You can’t perform that action at this time.