Skip to content

Instantly share code, notes, and snippets.


Gaurav Vaidya gaurav

View GitHub Profile
gaurav / gist:c552109b9d66e44d2aed
Last active Aug 29, 2015
If Scandinavia was a family
View gist:c552109b9d66e44d2aed
If Scandinavia was a family, Sweden'd be the obnoxiously anxious hipster older brother.
Denmark would be the hippie sister, smoking weed on her room while googling "dolphin telepathy".
She'd have a penchant for "funny" hats.
Norway would be the chipper healthy brother who's always out on some outdoor activity. He use the
mixer to do "nutritious" kale shakes.
Finland would be the alcoholic, solopsist brother whom nobody in the family really understand. He
collects knives.
Iceland would be the illegitimate sibling whom nobody ever talks about since he seems bat shit crazy.
Oh, I forgot Åland. She's the only genuinely healthy person in the family. She's boring,
conventionally pretty and likes to travel.
gaurav / gist:6da2c17bc0168ef6798f
Last active Aug 29, 2015
Instructions on installing PyQt4 on MacOS X using Homebrew
View gist:6da2c17bc0168ef6798f
brew install qt
brew install sip
[download PyQT from and unzip]
make install
View chemstructure.ttl
<,3-diene_200.svg> <> "2014-02-22"^^<> .
<,3-diene_200.svg__> <> "InChI=1S/C4H6/c1-3-4-2/h3-4H,1-2H2;"^^<> .
<,3-diene_200.svg__> <> <> .
<,3-diene_200.svg__> <> <> .
<,3-diene_200.svg> <> <http://creativec
View gbif_gallinula_chloropus_before_including_2011
University of Alaska Museum Bird Collection (UAM), University of Alaska Fairbanks
University of Wyoming Museum of Vertebrates
Denver Museum of Nature & Science Bird Collection
Division of Birds, Museum of Southwestern Biology (MSB), University of New Mexico, Albuquerque
Estonian Nature Observations Database, Estonian Nature Observations Database
Moore Laboratory of Zoology (MLZ)
Museum of Comparative Zoology, Harvard University: Museum of Comparative Zoology, Harvard University
UMMZ Bird Collection
ArtDatabanken: Artdata
Royal Ontario Museum: Ornithology Collection Non Passeriformes - Royal Ontario Museum
gaurav / commonswiki-20140227-article-categories.ttl
Last active Aug 29, 2015
Information from a small dump from the Wikimedia Commons as extracted by two DBpedia Extractors, ArticleCategoriesExtractor and InfoboxExtractor.
View commonswiki-20140227-article-categories.ttl
# started 2014-03-24T23:34:27Z
<> <> <> .
<> <> <> .
<> <> <> .
<> <> <> .
<'s_Botanical_Magazine_Plate_3236).jpg> <> <
gaurav /
Created Feb 15, 2014
Demonstrating the logical defined-or operator
use strict;
use warnings;
my $NewUsage = 150;
my %Usage = ();
foreach my $mac ('ABC', 'DEF', 'ABC', 'DEF', 'GHI') {
$Usage{$mac} = $Usage{$mac} // 0;
View Crepidomanes minutum TaxRefine results.json
"result": [
"summary": {
"clazz": {
"Polypodiopsida": 1,
"Filicopsida": 1
"taxonomicStatus": "ACCEPTED",
"key": {
gaurav / citeulike-by-selection
Created Jun 5, 2013
Bookmarklet to add selection (i.e. DOI or URL) to CiteULike
View citeulike-by-selection
javascript:(function(){var t=window.getSelection?window.getSelection().toString():document.selection.createRange().text; window.location=""+t;})()
gaurav /
Created Oct 2, 2012
A file to split a DwC-A file into triples
#!/usr/bin/perl -w
use strict;
use warnings;
use v5.10.0;
=head1 NAME -- Delimited file to RDF
gaurav / flickr_species_badge.html
Created Apr 5, 2012
A species badge (for Panthera tigris) from Flickr
View flickr_species_badge.html
var species_name = "Panthera tigris"; // Tweak this
var number_of_images = 5; // Tweak this
<!-- Start of Flickr Badge -->
<style type="text/css">
#flickr_badge_source_txt {padding:0; font: 11px Arial, Helvetica, Sans serif; color:#666666;}
#flickr_badge_icon {display:block !important; margin:0 !important; border: 1px solid rgb(0, 0, 0) !important;}
#flickr_icon_td {padding:0 5px 0 0 !important;}