This file contains hidden or 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
| #!/bin/bash | |
| # Install the newest Docker | |
| sudo apt-get update && \ | |
| sudo apt-get remove docker docker-engine docker.io && \ | |
| sudo apt-get install docker.io && \ | |
| # Add current user to Docker group | |
| sudo groupadd docker && \ | |
| sudo gpasswd -a $USER docker && \ |
This file contains hidden or 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
| //**dataURL to blob** | |
| function dataURLtoBlob(dataurl) { | |
| var arr = dataurl.split(','), mime = arr[0].match(/:(.*?);/)[1], | |
| bstr = atob(arr[1]), n = bstr.length, u8arr = new Uint8Array(n); | |
| while(n--){ | |
| u8arr[n] = bstr.charCodeAt(n); | |
| } | |
| return new Blob([u8arr], {type:mime}); | |
| } |
This file contains hidden or 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
| console.log('This is test Gist!'); |
This file contains hidden or 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
| <span class="sandwich"> | |
| <span class="sw-topper"></span> | |
| <span class="sw-bottom"></span> | |
| <span class="sw-footer"></span> | |
| </span> |
This file contains hidden or 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
| <div class="arrow_in_circle"> | |
| <a href="#"></a> | |
| <span class="round"></span> | |
| <span class="arrow_left"></span> | |
| <span class="arrow_middle"></span> | |
| <span class="arrow_right"></span> | |
| </div> |