Tag: Ideas

Reddit URL Harvester

Reddit URL Harvester

I was browsing Reddit and I stumbled  upon a small sub-reddit at /r/Earthporn this small conner of Reddit had higres pictures of earth scenery.  From there i was directed to  /r/CityPorn, /r/SpacePorn , /r/MachinePorn, /r/AnimalPorn and /r/BotanicalPorn all HD pic. This got me thinking since i am lazy as fuck i did not want to spend every day going…

Read More Read More

Order & Chaos

Order & Chaos

Right now, its raining methane on Titan. The planet Uranus, apparently trying to live up to its name, is orbiting the sun sideways, while venus spins backwards. There ares stars exploding, black holes gorging, galaxies colliding. And here we sit, on a planet pock-marked by collisions, rocked by earthquakes, shaken by storms. a planet doomed…

Read More Read More

Printing 1 to 1000 without loop or conditionals

Printing 1 to 1000 without loop or conditionals

Print numbers from 1 to 1000 without using any loop or conditional statements. #include <iostream> template<int N> struct NumberGeneration{   static void out(std::ostream& os)   {     NumberGeneration<N-1>::out(os);     os << N << std::endl;   } }; template<> struct NumberGeneration<1>{   static void out(std::ostream& os)   {     os << 1 <<…

Read More Read More