Skip to content

Instantly share code, notes, and snippets.

View Fardinak's full-sized avatar
🧠
AI-ing

Fardin Koochaki Fardinak

🧠
AI-ing
View GitHub Profile
@Fardinak
Fardinak / irancell_ppg.js
Last active December 4, 2019 09:16
MTN Irancell data package price per gig
// 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
@Fardinak
Fardinak / randstr.go
Last active June 15, 2020 16:28
Random string generator
package randstr
import (
"math/rand"
"time"
"unsafe"
)
// Randomness source
var src = rand.NewSource(time.Now().UnixNano())