This is the sequence of steps to follow to create a root gh-pages branch. It is based on a question at [SO]
cd /path/to/repo-name
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
echo "My GitHub Page" > index.html
| <?php | |
| function dumpToJson($var, $encode = true, array $recursionCache = array()) { | |
| $tmp = serialize($var); | |
| if (isset($recursionCache[$tmp])) { | |
| return 'recursion'; | |
| } | |
| $recursionCache[$tmp] = true; | |
| $result = array(); | |
| $result['type'] = gettype($var); |
| <?php | |
| class PseudoRandomGenerator { | |
| protected $state = null; | |
| public function __construct($seed) { | |
| $this->state = $seed; | |
| } | |
| public function next($max) { | |
| $bits = (int) floor(log($max, 2) + 1); | |
| $bytes = (int) max(ceil($bits / 8), 1); |
| docker run -rm -t -i -v $(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK ubuntu /bin/bash |
| license: mit |
The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.
This means you have the following choices:
import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.await import(…) from CommonJS instead of require(…).