Skip to content

Instantly share code, notes, and snippets.

View KristinHenry's full-sized avatar

Kristin Henry KristinHenry

View GitHub Profile
@KristinHenry
KristinHenry / convoSummary.csv
Last active June 29, 2016 20:59
SciFri Communication Modes Survey Results, Averages
age_group ...over text? ...over a messenger app like WhatsApp, Facebook Messenger, etc.? ...by posting on their social media accounts? ...over email? ...over phone? ...in person, face to face? total num_replies
<= 18 18.75 81.1 0.6 0.0 5.5 5.1 111.05 20
19-25 23.217391304347824 20.82608695652174 0.717391304347826 0.6956521739130435 4.358695652173913 12.108695652173912 61.92391304347826 92
26-35 15.192878338278932 8.195845697329377 1.029673590504451 3.083086053412463 4.937685459940653 55.02967359050445 87.46884272997033 337
36-55 14.058823529411764 5.673202614379085 1.1459694989106755 2.740740740740741 5.004357298474946 32.42701525054466 61.050108932461875 459
55+ 6.3354037267080745 2.3850931677018634 1.565217391304348 3.267080745341615 3.9316770186335406 42.77018633540373 60.254658385093165 161
@sgillies
sgillies / README.md
Last active August 29, 2015 14:06
Install Rasterio 0.13.1 on Ubuntu 14.04

I found two problems with installing Rasterio on 14.04

  1. The .c files in Rasterio source distributions (on PyPI) don't compile on 14.04. Generating source for the sdists using Cython 0.20.1 should fix these issue. In the meanwhile, the workaround is to install rasterio from GitHub and use Cython to generate the .c files locally.
  2. Ubuntu 14.04 has no venv for python 3. In a launchpad issue I found that it's a complicated policy issue and there's no fix shipped. The workaround is to create a virtual environment using a python2 virtualenv.

wget the script in this gist, make it executable, and run it to install rasterio and its dependencies on 14.04. After it finishes, type source rasterio/bin/activate to enter the virtual environment with rasterio installed.

Rasterio 0.13.2 will fix #1 above, after which you can just do pip install rasterio==0.13.2.

@mbostock
mbostock / README.md
Last active June 7, 2023 18:33
Underscore’s Equivalents in D3

Collections

each(array)

Underscore example:

_.each([1, 2, 3], function(num) { alert(num); });
@sent-hil
sent-hil / pictures.markdown
Created August 24, 2012 02:18
River (getriver.com): Keep a programming journal.

One of my favorite past times is to look at the notebooks of famous scientists. Da Vinci's notebook is well known, but there plenty others. Worshipping Da Vinci like no other, I bought a Think/Create/Record journal, used it mostly to keep jot down random thoughts and take notes. This was great in the beginning, but the conformity of lines drove me nuts. Only moleskines made blank notebooks, so I had to buy one.

At the same time I started a freelance project. The project itself is irrelevant, but suffice to say it was very complex and spanned several months. It seemed like a perfect opportunity to use the moleskine. Looking back, all my entries fell under few categories:

  • Todo
  • Question
  • Thought
  • Bug
  • Feature