This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Implmentation of Mark Sweep algo i.e. | |
* traverse all the object graphs and | |
* set the mark bit as true once we | |
* reach the object. Once done find | |
* all the object whose mark bit is not | |
* set and we will just delete them from | |
* memory | |
* | |
* stolen from |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/md5" | |
"encoding/hex" | |
"fmt" | |
"io" | |
"log" | |
"mime/multipart" | |
"net/http" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
animation = "|/-\\//-\|" | |
idx = 0 | |
for i in animation: | |
print(animation[idx], end="\r") | |
idx += 1 | |
time.sleep(0.1) |