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
| #!/usr/bin/perl | |
| # | |
| # myip - get the IP address of this host | |
| # | |
| # Usage: myip [-6] [prefix] | |
| # myip -p | |
| # | |
| # -6 - get IPv6 address instead of IPv4 | |
| # -p - get public IPv4 address from ISP | |
| # prefix - match the first NIC having partial |
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
| var ProgressBar = require('../index.js'); | |
| var bars = []; | |
| var total = 1000; | |
| var left = total; | |
| var count = 0; | |
| var simul = 5; | |
| var timer = setInterval(function () { |
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
| Verifying my Blockstack ID is secured with the address 1Bi1NDUmdb4nXzcWW1Xm9DXxKvuAFqnJDf https://explorer.blockstack.org/address/1Bi1NDUmdb4nXzcWW1Xm9DXxKvuAFqnJDf |
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
| /* | |
| * encode image sequence into WEBM video | |
| */ | |
| import {exec} from 'child-process-promise'; | |
| import format from 'string-template'; | |
| import fsAsync from 'file-async'; | |
| import shell from 'shelljs'; | |
| import path from 'path'; | |
| import os from 'os'; |
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
| class DepthmapLoader { | |
| /** | |
| * load 16-bit PNG depthmap from URL and return | |
| * the normalized bitmap as a Canvas ImageData | |
| * | |
| * @param {string} url - URL of PNG image | |
| * @return {Promise} -> {width,height,imageData} | |
| */ | |
| fetch(url) { | |
| let pngtoy = new PngToy(); |
NewerOlder