Skip to content

Instantly share code, notes, and snippets.

View alexbfree's full-sized avatar

Dr. Alex Bowyer alexbfree

View GitHub Profile
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
Verifying that +alexbfree is my blockchain ID. https://onename.com/alexbfree
@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,
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
<?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");