Thursday, June 23, 2016

Redis server

Redis to run in background

redis-server --daemonize yes

Monday, June 13, 2016

WebRTC STUN check and adding multiple STUN servers

var pc = new RTCPeerConnection({iceServers: [
    {urls: 'stun:stun1.l.google.com:19302'},
    {urls: 'stun:stun2.l.google.com:19302'}
]});
pc.createDataChannel("testchannel");
pc.onicecandidate = function(e) {
  if(e.candidate){
    console.log(e.candidate.candidate);
  }
};
pc.createOffer().then(offer => pc.setLocalDescription(offer));

CSS tricks

Mixed paint in background: background: linear-gradient(to right, #b6e358, #38b143) Grid view: display: grid; grid-template-columns: a...