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
<?php | |
/** | |
* Created by JetBrains PhpStorm. | |
* User: zhangxy | |
* Date: 13-3-5 | |
* Time: 下午2:31 | |
*/ | |
error_reporting(E_ALL | E_STRICT); | |
class Base_OOP_VAR{ |
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
//relace openjdk to sun-jdk | |
//envirment: mint (Ubuntu) | |
#wget http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-i586.tar.gz | |
#tar zxvf jdk-7-linux-i586.tar.gz | |
#mkdir /usr/local/jvm | |
#mv jdk1.7.0 /usr/local/jvm | |
#vim /etc/envirment | |
JAVA_HOME=/usr/local/jvm |
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
[Solarized Dark] | |
text(bold)=839496 | |
magenta(bold)=6c71c4 | |
text=839496 | |
white(bold)=fdf6e3 | |
green=859900 | |
red(bold)=cb4b16 | |
green(bold)=586e75 | |
black(bold)=073642 | |
red=dc322f |
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 main | |
import "fmt" | |
type Operator interface { | |
SetA(int) | |
SetB(int) | |
Result() int | |
} |
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 main | |
import ( | |
"context" | |
"fmt" | |
"time" | |
) | |
func main() { | |
ctx := context.Background() |
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 main | |
import ( | |
"fmt" | |
) | |
type options struct { | |
a int64 | |
b string | |
c map[int]string |
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 rabbitmq | |
import ( | |
"context" | |
"encoding/json" | |
"errors" | |
"fmt" | |
"github.com/rs/zerolog" | |
"github.com/streadway/amqp" | |
"os" |
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 lombok.extern.slf4j.Slf4j; | |
import lombok.val; | |
import org.springframework.http.HttpStatus; | |
import org.springframework.http.MediaType; | |
import org.springframework.web.filter.OncePerRequestFilter; | |
import org.springframework.web.util.ContentCachingRequestWrapper; | |
import org.springframework.web.util.ContentCachingResponseWrapper; | |
import javax.servlet.FilterChain; | |
import javax.servlet.ServletException; |