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
<?php | |
/** | |
* Converts a PNG image to a .GRF file for use with Zebra printers | |
* | |
* The input is preferably a 1-bit black/white image but RGB images | |
* are accepted as well. | |
* | |
* This function uses PHP's GD library image functions. | |
* |
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
const bent = require('bent'); | |
const httpJSON = bent('json'); | |
const admin = require('firebase-admin'); | |
const DOCKER_BUILD_TRIGGER = 'https://hub.docker.com/api/build/v1/source/<this-is-secret>/trigger/<another-secret>/call/'; | |
const BUILD_TAGS = { | |
'1.3.x-apache': '7.2-apache', | |
'1.3.x-fpm': '7.2-fpm', | |
'1.3.x-fpm-alpine': '7.2-fpm-alpine', | |
'1.4.x-apache': '7.3-apache', | |
'1.4.x-fpm': '7.3-fpm', |
OlderNewer