Skip to content

Instantly share code, notes, and snippets.

View mchelen's full-sized avatar

Mike Chelen mchelen

View GitHub Profile
We can't make this file beautiful and searchable because it's too large.
doi,2003-10,2003-11,2003-12,2004-1,2004-2,2004-3,2004-4,2004-5,2004-6,2004-7,2004-8,2004-9,2004-10,2004-11,2004-12,2005-1,2005-2,2005-3,2005-4,2005-5,2005-6,2005-7,2005-8,2005-9,2005-10,2005-11,2005-12,2006-1,2006-2,2006-3,2006-4,2006-5,2006-6,2006-7,2006-8,2006-9,2006-10,2006-11,2006-12,2007-1,2007-2,2007-3,2007-4,2007-5,2007-6,2007-7,2007-8,2007-9,2007-10,2007-11,2007-12,2008-1,2008-2,2008-3,2008-4,2008-5,2008-6,2008-7,2008-8,2008-9,2008-10,2008-11,2008-12,2009-1,2009-2,2009-3,2009-4,2009-5,2009-6,2009-7,2009-8,2009-9,2009-10,2009-11,2009-12,2010-1,2010-2,2010-3,TOTAL
10.1371/journal.pbio.0000001,1654,1316,170,121,108,100,129,110,60,64,38,66,55,48,27,53,84,127,125,117,79,49,41,40,67,47,44,31,51,48,37,32,30,25,42,38,38,34,24,46,56,27,44,39,30,29,17,23,14,31,20,28,30,33,21,33,27,36,34,30,19,21,14,10,17,34,9,17,43,60,25,26,19,14,14,17,14,19,6409
10.1371/journal.pbio.0000002,0,1590,678,404,300,316,271,270,309,176,136,164,170,221,150,209,201,791,362,287,142,141,128,209,289,158,117,157,199,235,195,186,135,172,182
# this requires you have created your default datapkgrc config file
$ datapkg upload {your-file} ckan://{yourpackagename}/{filename}
# 1. Install: (requires python and easy_install)
$ easy_install datapkg
# 2. [optional] Take a look at the manual
$ datapkg man
# 3. Search for something
$ datapkg search ckan:// gold
gold-prices -- Gold Prices in London 1950-2008 (Monthly)
<style type="text/css" media="screen">
table {
font-size: x-small;
font-family: sans-serif;
}
</style>
<?php
@mchelen
mchelen / virtualbox.4.ubuntu.10.10.install.sh
Created January 23, 2011 10:19
Install VirtualBox 4.0.x in Ubuntu 10.10 Maverick
# Install VirtualBox 4.0.x in Ubuntu 10.10 Maverick
# Author: Mike Chelen http://twitter.com/mikechelen
# License: CC0 Public Domain
# Sources: http://www.virtualbox.org/wiki/Linux_Downloads
# add virtualbox repository quietly
echo "deb http://download.virtualbox.org/virtualbox/debian maverick contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list > /dev/null
# download and add key
@mchelen
mchelen / search_api_solr.solrconfig.ubuntu.patch
Created February 25, 2011 11:33
patches solrconfig.xml from search_api_solr with the dataDir path preferred by ubuntu
--- solrconfig.xml 2010-11-26 21:27:11.000000000 +0000
+++ solrconfig.xml.new 2011-02-25 11:30:56.130820954 +0000
@@ -69,7 +69,7 @@
<!-- Used to specify an alternate directory to hold all index data
other than the default ./data under the Solr home.
If replication is in use, this should match the replication configuration. -->
- <dataDir>${solr.data.dir:./solr/data}</dataDir>
+ <dataDir>/var/lib/solr/data</dataDir>
<?php
# This is cool!
echo "foo";
?>
@mchelen
mchelen / index.php
Created October 28, 2011 17:16
GDocs Private
<?php
// mirrors html version of google document
// removes document url
// written by Mike Chelen http://twitter.com/mikechelen
// replace with your document url
$url = 'http://docs.google.com/document/pub?id=1dlED8mcx04XEKa0LXsezOviqPEyeE25sCi1HLUsADZI';
@mchelen
mchelen / app.js
Created May 1, 2014 21:34
Recline.js Multiview Demo
jQuery(function($) {
window.dataExplorer = null;
window.explorerDiv = $('.data-explorer-here');
// This is some fancy stuff to allow configuring the multiview from
// parameters in the query string
//
// For more on state see the view documentation.
var state = recline.View.parseQueryString(decodeURIComponent(window.location.search));
if (state) {
@mchelen
mchelen / gist:7274e02252fe29c2c313
Created June 13, 2014 06:51
antennapod notification buttons
Intent playButtonIntent = new Intent(
PlaybackService.this, PlaybackService.class);
playButtonIntent.putExtra(
MediaButtonReceiver.EXTRA_KEYCODE,
KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE);
PendingIntent playButtonPendingIntent = PendingIntent
.getService(PlaybackService.this, 0,
playButtonIntent,
PendingIntent.FLAG_UPDATE_CURRENT);