Skip to content

Instantly share code, notes, and snippets.

View JanrikV's full-sized avatar
🏠
Working from home

Janrik Viljanen JanrikV

🏠
Working from home
View GitHub Profile
@JanrikV
JanrikV / bg.svg
Created December 22, 2018 18:35
bg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JanrikV
JanrikV / minero-api.php
Created August 11, 2020 22:56
Minero API - Based on coinhive-api class
<?php
/**
* Based on the original coinhive-api class
* https://gist.github.com/coinhive-com/dc37d300b2f4f909006a07139c9d2c71
*
*/
class MineroAPI {
const API_URL = 'https://api.minero.cc';
@JanrikV
JanrikV / random-number.dart
Last active November 17, 2021 14:01
Produce random number between two values
// 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();