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
| git reset --merge | |
| # OR | |
| git merge --abort |
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
| select UTL_ENCODE.BASE64_DECODE(utl_raw.cast_to_raw('<base64_string>')) from dual; |
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
| .vacA {display:table; height: 100%; width:100%; position: relative;} | |
| .vacB {*position: absolute; top: 50%; display: table-cell; vertical-align: middle;} | |
| .vacC {*position: relative; top: -50%;} |
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
| import com.esotericsoftware.kryo.Kryo; | |
| import org.objenesis.strategy.StdInstantiatorStrategy; | |
| ... | |
| public static <T> T clone(T object) { | |
| // Kryo is not thread safe... | |
| Kryo kryo = new Kryo(); | |
| try { | |
| kryo.setAsmEnabled(true); | |
| // kryo.setInstantiatorStrategy(new StdInstantiatorStrategy()); |
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
| import java.net.Authenticator; | |
| import java.net.PasswordAuthentication; | |
| import java.util.logging.Level; | |
| import java.util.logging.Logger; | |
| /** | |
| * Thread-safe "Windows authenticator" class for some web services. | |
| * | |
| * @source http://stefanfrings.de/bfUtilities/javadoc/de/butterfly/auth/ThreadLocalAuthenticator.html | |
| * @author obssdeveloper |
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
| import java.io.ByteArrayOutputStream; | |
| import java.io.DataInputStream; | |
| import java.io.File; | |
| import java.io.FileInputStream; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.net.HttpURLConnection; | |
| import java.net.URL; |
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
| import java.lang.reflect.Array; | |
| import java.lang.reflect.InvocationTargetException; | |
| import java.lang.reflect.Method; | |
| import java.text.SimpleDateFormat; | |
| import java.util.GregorianCalendar; | |
| import javax.xml.datatype.DatatypeFactory; | |
| import javax.xml.datatype.XMLGregorianCalendar; | |
| import org.apache.commons.beanutils.BeanUtilsBean; |
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
| import java.io.ByteArrayInputStream; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.InputStream; | |
| import java.math.BigDecimal; | |
| import java.util.HashMap; | |
| import java.util.Hashtable; | |
| import javax.xml.namespace.QName; | |
| import javax.xml.rpc.handler.Handler; | |
| import javax.xml.rpc.handler.HandlerInfo; |
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
| /* | |
| * Download "UniversalDetector" from here: https://code.google.com/p/juniversalchardet/ | |
| */ | |
| public class FindEncoding { | |
| private FindEncoding(){} | |
| public static String findEncoding(byte[] bytes) { | |
| UniversalDetector detector = new UniversalDetector(null); | |
| detector.handleData(bytes, 0, bytes.length); |
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
| public static Object decode(Object... values) { | |
| if (values == null) | |
| return null; | |
| Object object = values[0]; | |
| for (int j = 1; j < values.length; j += 2) { | |
| if (nullSafeEquals(values[j], object)) { | |
| if (j + 1 < values.length) { | |
| return values[j + 1]; |
OlderNewer