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.clone; | |
import java.io.IOException; | |
import java.io.ObjectInputStream; | |
import java.io.ObjectOutputStream; | |
import org.nutz.castor.Castors; | |
public class DeepCopy { |
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.clone; | |
import java.io.InputStream; | |
public class FastByteArrayInputStream extends InputStream { | |
/** | |
* Our byte buffer | |
*/ | |
protected byte[] buf = null; |
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.wescon.cv.utilities; | |
import java.lang.reflect.ParameterizedType; | |
import java.lang.reflect.Type; | |
import java.util.Collection; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Set; | |
import org.nutz.castor.Castors; |
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 bool VerifyLicense(string licenseKey, string email) | |
{ | |
if (string.IsNullOrEmpty(licenseKey) || string.IsNullOrEmpty(email)) | |
{ | |
return false; | |
} | |
try | |
{ | |
this.License = this.Decrypt(licenseKey); | |
this.LicenseProcessed = true; |
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
void ConvertJPG2PDF(string jpgfile, string pdf) | |
{ | |
var document = new Document(iTextSharp.text.PageSize.A4, 25, 25, 25, 25); | |
using (var stream = new FileStream(pdf, FileMode.Create, FileAccess.Write, FileShare.None)) | |
{ | |
PdfWriter.GetInstance(document, stream); | |
document.Open(); | |
using (var imageStream = new FileStream(jpgfile, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) | |
{ | |
var image = Image.GetInstance(imageStream); |
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
!----------------------------------------------------------------------------------- | |
!*headbegin | |
!*title=第三方视频广告过滤规则 | |
!*author=红新月 | |
!*lastmodify=2014-04-06 14:14:24 | |
!*head | |
! 修改IQIYI广告CID参数 | |
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.wescon; | |
import static com.google.common.base.Preconditions.checkArgument; | |
import static com.google.common.base.Preconditions.checkNotNull; | |
import static com.google.common.collect.Sets.newLinkedHashSet; | |
import java.io.File; | |
import java.util.Arrays; | |
import java.util.Collection; | |
import java.util.List; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-/Apple/DTD PLIST 1.0/EN" "http:/www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.shadowsocks.chinadns</string> | |
<key>KeepAlive</key> | |
<true/> | |
<key>RunAtLoad</key> | |
<true/> |
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 static com.google.common.base.Preconditions.checkArgument; | |
import static com.google.common.base.Preconditions.checkNotNull; | |
import java.lang.reflect.Field; | |
import java.nio.ByteOrder; | |
import java.security.AccessController; | |
import java.security.PrivilegedAction; | |
import java.util.Comparator; | |
import sun.misc.Unsafe; |
OlderNewer