Skip to content

Instantly share code, notes, and snippets.

View bialikover's full-sized avatar

Adán G. Galván González bialikover

View GitHub Profile
@bialikover
bialikover / devToolsSnippets.js
Created January 27, 2020 18:24
Export/Import chrome devtools snippets
// Open devtools undocked, then inspect that devtools again
// Run in the secondary console
let exportSnippets;
InspectorFrontendHost.getPreferences(_ => { exportSnippets = JSON.parse(_.scriptSnippets); });
// now you can: copy(exportSnippets);
// import back in
let importSnippets = [ /* paste snippets */ ];
InspectorFrontendHost.setPreference("scriptSnippets", JSON.stringify(importSnippets));
@bialikover
bialikover / sortObjectBy.js
Last active November 18, 2019 08:43
Higher order function / curry fn to sort objects
const by = (key) => {
const sortNumbers = (a, b) => a - b;
const sortLexico = (a, b) => a.localeCompare(b)
return (a, b) => {
return isNaN(a[key])
?
sortLexico(a[key], b[key])
:
sortNumbers(a[key], b[key])
}
We can't make this file beautiful and searchable because it's too large.
id,name,host_id,host_name,neighbourhood_group,neighbourhood,latitude,longitude,room_type,price,minimum_nights,number_of_reviews,last_review,reviews_per_month,calculated_host_listings_count,availability_365
14714,Private room c/ bathroom . Colonia Juarez.,57785,Diego,,Cuauhtémoc,19.43035,-99.15511,Private room,478,2,0,,,2,327
22787,"Sunny suite w/ queen size bed, inside boutique B&B",87973,Diego,,Cuauhtémoc,19.44076,-99.16324,Private room,1969,1,57,2019-05-27,0.52,9,355
33681,Couple of Rooms,145672,Edubiel,,Tlalpan,19.27215,-99.21848,Private room,1740,1,0,,,1,365
35797,Villa Dante,153786,Dici,,Cuajimalpa de Morelos,19.38399,-99.27335,Entire home/apt,3823,1,0,,,2,363
44616,CONDESA HAUS B&B,196253,Condesa Haus Bed & Breakfast CDMX,,Cuauhtémoc,19.41006,-99.17645,Private room,1893,1,39,2019-05-02,0.42,10,334
58955,Entire beautiful duplex in la Roma,282620,Nat,,Cuauhtémoc,19.42292,-99.15775,Entire home/apt,1625,3,39,2019-05-28,0.43,1,178
61792,Spacious Clean Quiet room (own bath) in la Condesa,299558,Roberto,,Cua
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bialikover
bialikover / fungusDataset.txt
Created October 28, 2018 00:44
fungus Dataset
http://www.blaikiewell.com/freephotographs/fungus19.jpg
http://farm4.static.flickr.com/3123/3221279663_aea5fafd54.jpg
http://farm4.static.flickr.com/3001/2570658809_1982327032.jpg
http://farm4.static.flickr.com/3283/3049411391_c9a3d576a2.jpg
http://farm1.static.flickr.com/102/310805111_2ce3809ac9.jpg
http://farm1.static.flickr.com/35/105211455_a09c5e0dec.jpg
http://farm4.static.flickr.com/3129/3175718674_be9778c72b.jpg
http://farm3.static.flickr.com/2194/1523565826_712f923cb3.jpg
http://farm4.static.flickr.com/3287/2989498493_4b6c17866d.jpg
http://farm1.static.flickr.com/79/247116187_39a34554ae.jpg
@bialikover
bialikover / peopleDataset.txt
Created October 28, 2018 00:43
people Dataset
http://farm1.static.flickr.com/35/98550646_41606c9a4a.jpg
http://farm1.static.flickr.com/11/17622941_5e13d97ab0.jpg
http://farm1.static.flickr.com/12/17708424_643eae192e.jpg
http://farm3.static.flickr.com/2178/2069319405_c0417c7eb5.jpg
http://images.jupiterimages.com/common/detail/63/46/23464663.jpg
http://farm1.static.flickr.com/27/42196637_5a9c1c6e57.jpg
http://farm1.static.flickr.com/34/123606766_7f371643cf.jpg
http://farm2.static.flickr.com/1252/922108109_08f18bd49f.jpg
http://farm3.static.flickr.com/2316/1848928361_bcd30fb70c.jpg
http://farm1.static.flickr.com/36/85551404_eafee29fdd.jpg
@bialikover
bialikover / flowersDataset.txt
Created October 28, 2018 00:42
flowers Dataset
http://farm2.static.flickr.com/1160/1408085903_2622bd8c52.jpg
http://farm2.static.flickr.com/1337/1262242660_dfdb87cd80.jpg
http://farm4.static.flickr.com/3190/2646309100_fbcd52902a.jpg
http://farm4.static.flickr.com/3638/3319636329_222e5977ed.jpg
http://farm4.static.flickr.com/3100/2498947152_09a2d15b08.jpg
http://farm1.static.flickr.com/222/488988633_efd28efac0.jpg
http://farm4.static.flickr.com/3487/3815920288_e1ebff47ce.jpg
http://farm1.static.flickr.com/127/328766168_61807c248c.jpg
http://farm3.static.flickr.com/2369/2514054102_417e3abc67.jpg
http://farm2.static.flickr.com/1140/542265483_5feea8654b.jpg
@bialikover
bialikover / birdsDataset.txt
Created October 28, 2018 00:41
birds Dataset
http://wwwdelivery.superstock.com/WI/223/1606/PreviewComp/SuperStock_1606-7891.jpg
http://news.nationalgeographic.com/news/2008/03/images/080318-indonesia-bird_big.jpg
http://www.peatom.info/images/2008/08/11/pajaro.noticia.JPG
http://farm3.static.flickr.com/2336/2316755112_aaf81f1bec_o.jpg
http://farm1.static.flickr.com/223/449257901_c861ef2bda.jpg?v=0
http://img109.imageshack.us/img109/3254/vogeltje9xl.jpg
http://www.northrup.org/Photos/Rose-breasted-grosbeak/low/black-white-bird-with-red-breast.jpg
http://www.schoolplaten.com/nl-kleurplaat-kleurplaten-foto-vogel-p7796.jpg
http://farm1.static.flickr.com/148/373783045_47ea5d9e5c.jpg?v=0
http://img444.imageshack.us/img444/7158/pajarosantillanagi5.jpg
@bialikover
bialikover / tacoDataset.txt
Created October 27, 2018 06:56
taco Dataset
https://minimalistbaker.com/wp-content/uploads/2016/05/AMAZING-EASY-Quinoa-Taco-22Meat22-thats-crispy-flavorful-and-protein-packed-9-ingredients-SO-EASY-healthy-vegan-glutenfree-quinoa-tacos-mexican-recipe.jpg
https://upload.wikimedia.org/wikipedia/commons/thumb/7/73/001_Tacos_de_carnitas%2C_carne_asada_y_al_pastor.jpg/1200px-001_Tacos_de_carnitas%2C_carne_asada_y_al_pastor.jpg
https://www.deltaco.com/files/menu/item/thumb_The-Turkey-Del-Taco-%28Crunchy%29.jpg
https://deltaco.com/images/specials/2016promo5/home-specials-SoftTacos.png
http://www.pinktaco.com/wp-content/uploads/2016/09/img_6059-2048x1365.jpg
http://www.tacobelluk.co.uk/wp-content/gallery/tacos/tacos_supreme.png
https://deltaco.com/images/food/category/tacos.jpg
https://www.vnutritionandwellness.com/wp-content/uploads/2016/06/walnut-meat-tacos-4-800x531.jpg
https://www.deltaco.com/files/menu/item/thumb_The-Turkey-Del-Taco-%28Soft%29.jpg
https://static.wixstatic.com/media/0400ca_4b762fd4ee694470af161b18ba3686bb.jpg/v1/fill/w_800,h_446,al_c,q_80/0