Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start
sudo usermod -a -G docker ec2-user
/*process.stdin.resume(); | |
process.stdin.setEncoding('ascii'); | |
var input_stdin = ""; | |
var input_stdin_array = ""; | |
var input_currentline = 0; | |
process.stdin.on('data', function (data) {input_stdin += data;}); | |
process.stdin.on('end', function () { | |
input_stdin_array = input_stdin.split("\n"); | |
*/ |
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start
sudo usermod -a -G docker ec2-user
My Awesome Sketch | |
First State | |
some event -> Second State | |
Second State |
function nextPow2(x) { | |
return Math.pow(2, Math.round(Math.max(x,0)).toString(2).length); | |
} |
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"net" | |
"net/http" | |
"os" | |
"strconv" |
package main | |
import ( | |
"io" | |
"log" | |
"net/http" | |
"os" | |
"strconv" | |
"strings" | |
"time" |
/*While window.location.search can be useful I'd much rather the search property be a key: value object. | |
An object would be nice but as long as we can get one property at a time, that would suffice. | |
The following is a function stolen from the A-Frame VR toolkit:*/ | |
function getUrlParameter(name) { | |
name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]'); | |
var regex = new RegExp('[\\?&]' + name + '=([^&#]*)'); | |
var results = regex.exec(location.search); | |
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' ')); | |
}; |