This file contains hidden or 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
// Since MTN Irancell loves to experiment with their data packages and pricing | |
// i made this little snippet so I can easily choose a new package, fit for my | |
// needs and expectations instead of calculating the new PPGs every couple of | |
// month. | |
// | |
// Just run it in the console after page load and PPGs should replace the USSD | |
// Codes | |
const connection_speed = 20; // Mbps (approximate downlink speed) | |
const fair_usage_limit = 999; // GBs |
This file contains hidden or 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 randstr | |
import ( | |
"math/rand" | |
"time" | |
"unsafe" | |
) | |
// Randomness source | |
var src = rand.NewSource(time.Now().UnixNano()) |
OlderNewer