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
package empty |
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
#include <stdio.h> | |
#include <jpeglib.h> | |
#include <stdlib.h> | |
#include <setjmp.h> | |
#include <math.h> | |
#include <string.h> | |
#define INPUT_BUF_SIZE 4096 | |
struct compress_result { |
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
#include <stdio.h> | |
#include <jpeglib.h> | |
#include <stdlib.h> | |
#include <setjmp.h> | |
#include <math.h> | |
//based on the official example https://github.com/mozilla/mozjpeg/blob/master/example.txt | |
void compress_JPEG_file(char *src_file_name, char* dst_file_name, int quality) { | |
struct jpeg_compress_struct cinfo; |
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
{ | |
"name": "gwt-pwa", | |
"version": "0.0.1", | |
"description": "generates service worker for GWT app", | |
"main": "serviceWorkerBuilder.js", | |
"dependencies": { | |
"handlebars": "^4.0.11" | |
}, | |
"devDependencies": {}, | |
"scripts": { |
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
public class AmazonS3TestClient extends AmazonS3Client { | |
private static Log log = LogFactory.getLog(AmazonS3TestClient.class); | |
String testBucketName = "yourBucketName"; | |
public AmazonS3TestClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration) { | |
super(new StaticCredentialsProvider(awsCredentials), clientConfiguration); | |
} |