This file contains 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 fileTransfer = new FileTransfer(); | |
fileTransfer.onprogress = function(result){ | |
var percent = result.loaded / result.total * 100; | |
percent = Math.round(percent); | |
console.log('Downloaded: ' + percent + '%'); | |
}; | |
fileTransfer.download(remoteFile, localPath, successCallback, errorCallback); |
This file contains 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
<?php | |
/** | |
* Class WebinarJam | |
* Implements the WebinarJam API as documented | |
* https://s3.amazonaws.com/webinarjam/files/WebinarJamAPI.pdf | |
*/ | |
class WebinarJam { | |
public static $API_URL = 'https://app.webinarjam.com/api/v2/'; |
This file contains 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
FROM neilpang/acme.sh | |
RUN apk add jq bash | |
RUN wget https://releases.hashicorp.com/vault/1.3.2/vault_1.3.2_linux_amd64.zip && unzip vault_1.3.2_linux_amd64.zip -d /usr/local/bin/ && rm vault_1.3.2_linux_amd64.zip | |
ADD entrypoint.sh /entrypoint.sh | |
VOLUME /output | |
ENTRYPOINT ["/entrypoint.sh"] |