#Installing ngrok on OSX
- Download ngrok
- Unzip it to your Applications directory
- Create a symlink (instructions below)
Run the following two commands in Terminal to create the symlink.
# cd into your local bin directory#Installing ngrok on OSX
Run the following two commands in Terminal to create the symlink.
# cd into your local bin directory| function MyPromise(fn) { | |
| this.resolve; | |
| this.reject; | |
| _this = this; | |
| setTimeout(function () { | |
| fn(_this.resolveFunc.bind(_this), _this.rejectFunc.bind(_this)); | |
| }, 0) | |
| } | |
| MyPromise.prototype = { |
| /** | |
| * Created by lica on 6/12/2016. | |
| */ | |
| function Map() { | |
| this.container = new Object(); | |
| } | |
| Map.prototype.put = function (key, value) { | |
| this.container[key] = value; | |
| } |