Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<?php | |
/** | |
* Based on the original coinhive-api class | |
* https://gist.github.com/coinhive-com/dc37d300b2f4f909006a07139c9d2c71 | |
* | |
*/ | |
class MineroAPI { | |
const API_URL = 'https://api.minero.cc'; |
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
// Produce random number between two values | |
// https://dartpad.dev/?id=8d99d2b314920b244de6ddd30760733a&null_safety=true | |
import 'dart:math'; | |
void main() { | |
random_number(min, max) { | |
final random = Random(); |