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
div.paymentmethodlist>input[value="PAYPAL"] ~ label:after { | |
background-repeat: no-repeat; | |
background-image: url(/images/payments/paypal-640x188.png); | |
background-size: 48px 14px; | |
display: inline-block; | |
width: 48px; | |
height: 14px; | |
content: ""; | |
margin-left: 20px; |
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 GuessContentTypeTest extends TestCase { | |
@Test | |
public void testGuessFileTypeFromUrl() throws Exception { | |
String[] urls = { | |
// your image urls here | |
}; | |
for(String s : urls) { | |
int pushbackLimit = 100; |
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
@Test | |
public void testReusePage() throws Exception { | |
String original = resourceFile("PdfWithImage.pdf"); | |
String destination = targetFile("image-reuse-ReusePage.pdf"); | |
try ( | |
PdfDocument input = new PdfDocument(new PdfReader(original)); | |
PdfDocument output = new PdfDocument(new PdfWriter(destination)) | |
) { | |
PdfPage page = input.getPage(1); |
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
@echo off | |
:: ========================================================== | |
:: Windows(64bit) batch file tor set environment variables | |
:: JAVA_HOME and PATH for Oracle JDK or OpenJDK. | |
:: | |
:: For Oracle JDK, search JDK installed path from Windows registory. | |
:: For OpenJDK, search JDK installed path from directory name under | |
:: OPENJDK_BASE directory specified in this batch file. (needs to | |
:: customize your configuration) |
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
import okhttp3.OkHttpClient; | |
import okhttp3.Request; | |
import okhttp3.Response; | |
import okhttp3.ResponseBody; | |
import org.apache.commons.io.IOUtils; | |
import java.io.*; | |
import java.net.URL; |
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 com.foo; | |
import java.util.Arrays; | |
import java.util.List; | |
import com.google.gson.Gson; | |
public class Foo { | |
private static List<Integer> toList(String json, Gson parser) { |
OlderNewer