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.text.ParseException; | |
| import java.util.Calendar; | |
| import java.util.Date; | |
| import java.util.Locale; | |
| import java.util.regex.Matcher; | |
| import java.util.regex.Pattern; | |
| import org.apache.commons.lang.time.DateUtils; | |
| import org.springframework.util.Assert; |
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
| mvn -s E:\tools\maven\settings.xml deploy:deploy-file -DgroupId=com.baidu.cms -DartifactId=cms-process-transfer -Durl=<where-to-upload> -DrepositoryId=scm-release -Dfile=E:\project\cmsnew\thirdpart\cms-process-transfer-0.1.9.jar -Dversion=0.1.9 -Dpackaging=jar -DgeneratePom=true -Dmaven.repository=<your-repo> |
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
| #! /bin/sh | |
| usage(){ | |
| echo "tree.sh <need generate dir> <target dir>" | |
| echo "use absolute path" | |
| } | |
| if [ $# != 2 ] |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <assert.h> | |
| typedef unsigned int u32; | |
| typedef unsigned long long u64; | |
| //------------------------------------------------------------------------- | |
| // WorkArea | |
| //------------------------------------------------------------------------- |
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 scala.concurrent._ | |
| import scala.concurrent.duration._ | |
| import scala.concurrent.ExecutionContext.Implicits.global | |
| import Console.{println => put} | |
| import org.apache.http.impl.client.{BasicResponseHandler, DefaultHttpClient} | |
| import org.apache.http.auth.{UsernamePasswordCredentials, AuthScope} | |
| import org.apache.http.client.methods.HttpGet | |
| import org.apache.http.client.ResponseHandler | |
| import scala.util.parsing.json.JSON |
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
| module DiigoBookmarkApi where | |
| import Codec.Binary.Base64.String | |
| import Network.HTTP.Conduit | |
| import Network.HTTP.Types.Header | |
| import Data.CaseInsensitive (mk) | |
| import Text.Printf | |
| import qualified Data.ByteString.Lazy.Char8 as L | |
| import qualified Data.ByteString.UTF8 as U |
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
| /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system-domainuser |
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
| #!/bin/bash | |
| set -x | |
| sudo rm -rf /Library/Frameworks/GHC.framework | |
| sudo rm -rf /Library/Frameworks/HaskellPlatform.framework | |
| sudo rm -rf /Library/Haskell | |
| rm -rf ~/.cabal | |
| rm -rf ~/.ghc | |
| rm -rf ~/Library/Haskell | |
| find /usr/bin /usr/local/bin -type l | \ |
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
| package sun.flower.higher | |
| /** | |
| * | |
| * User: sunflower | |
| * Date: 13-1-20 | |
| * Time: 下午11:44 | |
| * | |
| */ | |
| object HigherRankPolymorphism { |
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
| package sun.flower.category | |
| /** | |
| * | |
| * User: sunflower | |
| * Date: 13-1-26 | |
| * Time: 下午4:02 | |
| * | |
| */ |