# | ID | Language | Bytes | File |
---|---|---|---|---|
1 | @dO_ob_MMD | Matlab | 41 | mohammad.matlab |
2 | @mahdyfo | PHP | 42 | mahdyfo.php |
3 | @dO_ob_MMD | ES6 | 66 | mohammad.js |
4 | @SepehrDev | B4X | 141 | sepehr.b4x |
5 | @dO_ob_MMD | Batch | 148 | mohammad.bat |
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
function netstat( cb ) { | |
const spawn = require( 'child_process' ).spawn; | |
const netstat = spawn( 'netstat', [ '-e' ] ); | |
var resp = ''; | |
netstat.stdout.on( 'data', ( data ) => { | |
resp += data.toString(); | |
} ); | |
netstat.stdout.on( 'end', ( data ) => { |
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
var TelegramBot = require( 'node-telegram-bot-api' ); | |
var token = 'XXXX'; | |
var bot = new TelegramBot( token, { polling: true } ); | |
var formats = {}; | |
var waitingFor = {}; | |
var messageText = {}; | |
bot.on( 'inline_query', function( query ) { | |
if ( query.query == '' ) return; |
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 | |
echo str_shuffle('ABCDEFGH'); | |
// may returns HGACBDEF | |
// unicode shuffle (qeremy [atta] gmail [dotta] com) | |
function str_shuffle_unicode($str) { | |
$tmp = preg_split("//u", $str, -1, PREG_SPLIT_NO_EMPTY); | |
shuffle($tmp); | |
return join("", $tmp); | |
} |
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 | |
$a = array( 'a', 'e', 'i', 'o', 'u' ); | |
$b = array( 'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z' ); | |
for( $i = 0; $i <= 20; $i++ ) { | |
shuffle($a); | |
shuffle($b); | |
echo $b[0]; | |
echo $a[0]; |
NewerOlder