A list of commonly used Git commands
--
| Command | Description |
| function TailRecursionGCD(m, n) { | |
| let r; | |
| if (m < n) return TailRecursionGCD(n, m); | |
| console.log('Stack', m, n); | |
| r = m % n; | |
| if (r === 0) { | |
| console.log(`R ---- m ---- ${m}, n ----- ${n}`); |
| function initRandomArray(n) { | |
| const arr = []; | |
| for (let i = 0; i < n; i++) { | |
| const number = Math.floor(Math.random() * (100 - 1) + 1); | |
| arr.push(number); | |
| } | |
| return arr; | |
| } |
| # see https://github.com/cmaessen/docker-php-sendmail for more information | |
| FROM php:7.2.8-fpm | |
| RUN apt-get update && apt-get install -q -y ssmtp mailutils && rm -rf /var/lib/apt/lists/* | |
| RUN docker-php-ext-install mysqli sysvsem | |
| RUN pecl install xdebug-2.5.5 \ | |
| && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \ |
| function binb2rstr(input) { | |
| var i, l = input.length * 32, | |
| output = ''; | |
| for (i = 0; i < l; i += 8) { | |
| output += String.fromCharCode((input[i >> 5] >>> (24 - i % 32)) & 0xFF); | |
| } | |
| return output; | |
| } | |
| function rstr2binb(input) { |