A good suggestion to improve your texts in GitHub, either in Issues, PRs, README's or Wiki, is to use collapsible text. Example:
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
const net = require('net') | |
let socket = new net.Socket() | |
const req = '{"id":0,"jsonrpc":"2.0","method":"miner_getstat1"}' | |
const ipAddress = '127.0.0.1' | |
const port = 3333 | |
socket.setTimeout(1000) | |
socket.on('connect', () => { |
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 | |
$amountOfCoupons = 10; | |
$minLength = 8; | |
$maxLength = 14; | |
// From StackOverflow https://stackoverflow.com/a/13212994 | |
function generateRandomString( $length = 10 ) { | |
$x = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; |