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 UtilTools { | |
/*************************************************************************** | |
* 将花费的时间转换为自然语言描述。 | |
* | |
* @param ms | |
* @return | |
*/ | |
public static String getTimeDes(long ms) { | |
int ss = 1000; | |
int mi = ss * 60; |
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
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON | |
GO | |
-- ============================================= | |
-- Author:<liangjian> | |
-- Create date: <2012-11-02> | |
-- Description: <删除远程表,并且将本地数据同步拷贝到远程表中。> | |
-- args1 : 数据库表名,多个用半角逗号分开 wh_location,wh_storehouse,wh_area |
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 On | |
@Rem 删除SVN版本控制目录 | |
@PROMPT [Com] | |
@for /r . %%a in (.) do @if exist "%%a\.svn" rd /s /q "%%a\.svn" | |
@Rem for /r . %%a in (.) do @if exist "%%a\.svn" @echo "%%a\.svn" | |
@echo Clear SVN Mission Completed. | |
@echo On |
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 java.text.DecimalFormat; | |
import java.text.NumberFormat; | |
import java.text.SimpleDateFormat; | |
import java.util.Calendar; | |
public class MyEclipseCrack { | |
public static final void main(String[] args) { | |
String id = "binjoo";// 改为你的注册ID | |
String num = "428";// 改为1-999的整数 | |
String date = "-1404280";// 意思是2014年4月28日到期 |
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
Windows Registry Editor Version 5.00 | |
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\Sublime Text 2] | |
[-HKEY_CLASSES_ROOT\*\shell\Sublime Text 2] | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\Sublime Text 2] | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\Sublime Text 2\command] | |
@="D:\\微云网盘\\105871875\\Soft\\SublimeText2\\sublime_text.exe \"%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
package net.binjoo; | |
import java.io.File; | |
public class UpdateMp3Name { | |
public static void main(String[] args) { | |
String oldPath = "E:\\BaiduMusic\\Songs"; | |
File file = new File(oldPath); | |
File[] files = file.listFiles(); |
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 java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
/** | |
* 【转】URL短地址压缩算法 微博短地址原理解析 | |
* http://www.cnblogs.com/jinzhao/archive/2012/04/08/2437188.html | |
* | |
*/ | |
public class ShortUrl { | |
public static String[] generateCode(String 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
@echo off | |
pushd "%~dp0" | |
dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt | |
dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>List.txt | |
for /f %%i in ('findstr /i . List.txt 2^>nul') do dism /online /norestart /add-package:"C:\Windows\servicing\Packages\%%i" | |
pause |
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 java.io.BufferedInputStream; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.util.zip.CRC32; | |
import java.util.zip.CheckedOutputStream; | |
import org.apache.tools.zip.ZipEntry; | |
import org.apache.tools.zip.ZipOutputStream; |
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.utils; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.InputStream; | |
/*** | |
* | |
* @ClassName CopyUtils |