yuri boosted

I borrowed this one from codewars

Snail Sort
Given an n x n array, return the array elements arranged from outermost elements to the middle element, traveling clockwise.

array = [[1,2,3],
[4,5,6],
[7,8,9]]
snail(array) #=> [1,2,3,6,9,8,7,4,5]
For better understanding, please follow the numbers of the next array consecutively:

array = [[1,2,3],
[8,9,4],
[7,6,5]]
snail(array) #=> [1,2,3,4,5,6,7,8,9]
This image will illustrate things more clearly:

NOTE: The idea is not sort the elements from the lowest value to the highest; the idea is to traverse the 2-d array in a clockwise snailshell pattern.

yuri boosted

Hi Friends,
The Mercury transit has begun.Remember the next time mercury travels across the face of the sun (from the earths perspective ) will be on 2032.so dont miss this journey.it goes on for about 5.5 hours, so you can tune in when your free.

If you own a telescope with appropriate sunfilter, you can watch the transit.its visible from Europe,parts of west Asia, Americas,Africa, Atlantic & pacific ocean.
If you can't see it,dont worry NASA has you covered with SDO lives.The solar dynamics observatory would be doing live broadcasts,link down here
mercurytransit.gsfc.nasa.gov/2
Happy watching :)

yuri boosted

is a dream scenario and it's good to see so many of the users support that.
Almost all the topics that are debated or discussed in India revolves around some celebrity/politicians.
They never represent / care about what a commoner has to say.
For e.g.
During De-monetization almost all the celebs tweeted/posted videos praising our PM, some went further to order us that it's 'ok' to suffer for the sake of our nation. But I remember myself and so many common citizen struggling. Things spiraled out of control. But not for the so- called celebs.

yuri boosted

Reading Permanent record, autobiography of Edward Snowden.There is an intresting bit when he talks about Intelligence agencies & tech industries.The very belief that they are entitled to their unilateral decision making based on data,makes them apolitical as data itself is just information.The idea of harmless surveilance or surveilance for greater good?
Makes me feel vulnerable when one pours out into the digital world,someone is just calling it data & putting a label on you & uses it in a way profitable to them.Imagine tweeting feeling sad tonight after a break up & netflix suggests me Always be my may be😐 and Google suggests best shops that sell cookie dough near by.They know me too well.🙊
Its like they put a label on my feeling & advertise it."swapy is sad & would probably eat cookie dough today & watch netflix😣."
The otherside to this is the assumption that since I posted it, I gave them permission to use this data.But do most people even read the license agreement or data usage policies?People just click accept.I didnt agree to sell my sadness 😑.These tech companies are merging all the time.Google has taken over so many that google knows more about me than I do.Its like If I die, the google me would go on living, inactive till they archive me.creepy digital existance?

This book is a gem.Especially for people from a country like India where the Data protection laws are virtually non existant.

Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.