Skip to content

Instantly share code, notes, and snippets.

View alexbfree's full-sized avatar

Dr. Alex Bowyer alexbfree

View GitHub Profile
<?php /* Copyright(c) 2013 Robert Maupin. Released under the ZLIB License. */
if(count($_FILES) > 0) {
extract($_FILES['file']);
list($w,$h,$type)=getimagesize($tmp_name);
/*see exif-imagetype() documentation :) */
if(!$type||$type>3||filesize($tmp_name)>1024*200)
exit();
$ext=image_type_to_extension($type,false);
$md5=md5_file($tmp_name);
move_uploaded_file($tmp_name,$n="img/$md5.$ext");
MongoDB shell version: 3.0.2
connecting to: talk
Variety: A MongoDB Schema Analyzer
Version 1.4.1, released 14 Oct 2014
Using query of { }
Using limit of 459752
Using maxDepth of 99
Using sort of { "_id" : -1 }
Using outputFormat of ascii
Using persistResults of false
@alexbfree
alexbfree / zen-facebook.css
Last active October 9, 2015 09:55
CSS code to suppress all News Feed and other distracting crap on Facebook
html#facebook div[id*="topnews"],
/* Hide news feed */
html#facebook body.home div#rightCol,
/* Hide entire right column */
html#facebook body.home div#pagesNav,
html#facebook body.home div#appsNav,
html#facebook body.home div#listsNav,
html#facebook body.home div#interestsNav,
Verifying that +alexbfree is my blockchain ID. https://onename.com/alexbfree
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 6.
"url","Subject ID","Frame","Season","Site","Roll","Decision Type","Crowd Determination","Total Species Present","Total Animals Present"
"http://www.snapshotserengeti.org/subjects/standard/50dc84e6a2fc8e378903a8e7_2.jpg","ASG000by4n","3","4","E02","R1","10 opinions agree this is blank","No animals present","0","0"
"http://www.snapshotserengeti.org/subjects/standard/51a3ba00e18f49172b1d0cec_1.jpg","ASG000ti58","2","5","T11","R4","First 5 opinions were blank","No animals present","0","0"
"http://zooniverse-static.s3.amazonaws.com/www.snapshotserengeti.org/subjects/standard/5582de3bc4af4e00420005d5_0.JPG","ASG001gjz3","1","0","G04","R2","First 5 opinions were blank","No animals present","0","0"
"http://www.snapshotserengeti.org/subjects/standard/51e8f419e0053a09c3097ee6_0.jpg","ASG00105w9","1","6","L03","R2","First 5 opinions were blank","No animals present","0","0"
"http://zooniverse-static.s3.amazonaws.com/www.snapshotserengeti.org/subjects/standard/54cfdc8587ee0404d50a6717_0.JPG","ASG0019yo7","1","8","R09","R2
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 5.
"url","Subject ID","Frame","Season","Site","Roll","Decision Type","Crowd Determination","Number of Species Present","Number of Animals Present","View Discussions"
"http://zooniverse-static.s3.amazonaws.com/www.snapshotserengeti.org/subjects/standard/54cfd61d87ee0404d507427d_0.JPG","ASG001e9jy",1,8,"L10","R1","First 5 opinions were blank","No animals present",0,0,"https://talk.snapshotserengeti.org/#/subjects/ASG001e9jy"
"http://zooniverse-static.s3.amazonaws.com/www.snapshotserengeti.org/subjects/standard/54cfd70587ee0404d507b6e1_0.JPG","ASG001ej9i",1,8,"M04","R2","First 5 opinions were blank","No animals present",0,0,"https://talk.snapshotserengeti.org/#/subjects/ASG001ej9i"
"http://zooniverse-static.s3.amazonaws.com/www.snapshotserengeti.org/subjects/standard/54cfd60587ee0404d5073651_0.JPG","ASG001e8mp",1,8,"L08","R3","First 5 opinions were blank","No animals present",0,0,"https://talk.snapshotserengeti.org/#/subjects/ASG001e8mp"
"http://zooniverse-static.s3.amazonaws.com/www.snapshotserengeti.org/subjects/
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 6.
"url","Subject ID","Frame","Season","Site","Roll","Decision Type","Crowd Determination","Total Species Present","Total Animals Present"
"http://www.snapshotserengeti.org/subjects/standard/50dc84e6a2fc8e378903a8e7_2.jpg","ASG000by4n","3","4","E02","R1","10 opinions agree this is blank","No animals present","0","0"
"http://www.snapshotserengeti.org/subjects/standard/51a3ba00e18f49172b1d0cec_1.jpg","ASG000ti58","2","5","T11","R4","First 5 opinions were blank","No animals present","0","0"
"http://zooniverse-static.s3.amazonaws.com/www.snapshotserengeti.org/subjects/standard/5582de3bc4af4e00420005d5_0.JPG","ASG001gjz3","1","0","G04","R2","First 5 opinions were blank","No animals present","0","0"
"http://www.snapshotserengeti.org/subjects/standard/51e8f419e0053a09c3097ee6_0.jpg","ASG00105w9","1","6","L03","R2","First 5 opinions were blank","No animals present","0","0"
"http://zooniverse-static.s3.amazonaws.com/www.snapshotserengeti.org/subjects/standard/54cfdc8587ee0404d50a6717_0.JPG","ASG0019yo7","1","8","R09","R2
@alexbfree
alexbfree / launch_dataset_apr16.csv
Created April 25, 2016 13:57
Launch dataset for Snapshot Serengeti: Computer Vision: elephants, zebras, giraffes, gazelles (both), guineafowls, warthog, hartebeest, buffalo, wildebeest, ostrich
We can't make this file beautiful and searchable because it's too large.
"url","Subject ID","Frame","Season","Site","Roll","Decision Type","Crowd Determination","Total Species Present","Total Animals Present","View Discussions"
"http://www.snapshotserengeti.org/subjects/standard/5331dea71bccd304b6073cf5_1.JPG","ASG00128gp","2","7","H01","R2","10 opinions agree upon the species present","Giraffes","1","1","https://talk.snapshotserengeti.org/#/subjects/ASG00128gp"
"http://www.snapshotserengeti.org/subjects/standard/51a35ce6e18f49172b11ff04_2.jpg","ASG000r0hc","3","5","L04","R1","10 opinions agree upon the species present","Elephants","1","1","https://talk.snapshotserengeti.org/#/subjects/ASG000r0hc"
"http://www.snapshotserengeti.org/subjects/standard/51a3348ae18f49172b0d3036_0.jpg","ASG000pvu9","1","5","H08","R1","10 opinions agree upon the species present","Zebras","1","5","https://talk.snapshotserengeti.org/#/subjects/ASG000pvu9"
"http://zooniverse-static.s3.amazonaws.com/www.snapshotserengeti.org/subjects/standard/54cfcbae87ee0404d50217b9_0.JPG","ASG001fb6f","1","8","E06","R2","1
We can't make this file beautiful and searchable because it's too large.
"url","Subject ID","Frame","Season","Site","Roll","Decision Type","Crowd Determination","Total Species Present","Total Animals Present","View Discussions"
"http://www.snapshotserengeti.org/subjects/standard/5331dea71bccd304b6073cf5_1.JPG","ASG00128gp","2","7","H01","R2","10 opinions agree upon the species present","Giraffes","1","1","https://talk.snapshotserengeti.org/#/subjects/ASG00128gp"
"http://www.snapshotserengeti.org/subjects/standard/51a35ce6e18f49172b11ff04_2.jpg","ASG000r0hc","3","5","L04","R1","10 opinions agree upon the species present","Elephants","1","1","https://talk.snapshotserengeti.org/#/subjects/ASG000r0hc"
"http://www.snapshotserengeti.org/subjects/standard/51a3348ae18f49172b0d3036_0.jpg","ASG000pvu9","1","5","H08","R1","10 opinions agree upon the species present","Zebras","1","5","https://talk.snapshotserengeti.org/#/subjects/ASG000pvu9"
"http://zooniverse-static.s3.amazonaws.com/www.snapshotserengeti.org/subjects/standard/54cfcbae87ee0404d50217b9_0.JPG","ASG001fb6f","1","8","E06","R2","1
T3Please_draw_a_box_around_each_individual_animal_in_rectangle_summary.csv
subject_id : Panoptes subject ID
median(left) : Median number of distinct cluster of markings of left-facing animals
median(right) : Median number of distinct clusters of markings of right-facing animals
median(away) : Median number of distinct clusters of markings of away-facing animals
median(towards) : Median number of distinct clusters of markings of toward-facing animals
mean_probability : The mean average percentage of people who had markings in each cluster
median_probability : The median average percentage of people who had markings in each cluster
mean_tool : the mean average percentage of people who agreed with the most popular direction for that cluster