Nimadui is an "altar" built by Tibetans living in the Qinghai-Tibet Plateau with stones, slates and pebbles of different sizes, also known as "Shendui".
The colorful flags you said are prayer flags. Tibetans believe that every time the wind blows when hanging the prayer flags, it is equivalent to saying a prayer.