Skip to content

Instantly share code, notes, and snippets.

const int main[] = {
-443987883, 440, 113408, -1922629632,
4149, 899584, 84869120, 15544,
266023168, 1818576901, 1461743468, 1684828783,
-1017312735
};
@sdht0
sdht0 / bitoperations
Last active August 29, 2015 14:20
Bit Operations
// printbinary(100069) -> 0000 0000 0000 0001 1000 0110 1110 0101
void printbinary(unsigned int n)
{
int i;
int N=(int)sizeof(n)*8;
for(i=N-1;i>=0;i--)
{
printf("%d%s",(n>>i)&1,(i%4==0?" ":""));
}
printf("\n");
@sdht0
sdht0 / things-to-do.md
Last active August 2, 2020 07:50
Amche Mumbai

Compiled from:

Note: Some of the things may (sadly) no longer be available, eg DDLJ at Maratha Mandir.

Mumbai anytime

  • Guess what RFID system they use to tag clothes at the Dhobi Ghat
  • Ride a vintage lift in a 100 year old building. One of the city’s few surviving hydraulic lifts can be found in Navsarri Building in Fort. Said to be the oldest elevator in Mumbai, the lift is wood-panelled and operated using a crankshaft. Navsarri Building, DN Road, Fort.
  • Crane your neck to see the Bombay Stock Exchange building