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
require 'color' | |
jqplot_colors = [ | |
"240, 192, 19, 1", | |
"217, 135, 20, 1", | |
" 16, 178, 199, 1", | |
" 15, 153, 168, 1", | |
"235, 155, 220, 1", | |
"247, 57, 197, 1", | |
"220, 237, 203, 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
require 'openssl' | |
require 'base64' | |
# 参考 http://qydev.weixin.qq.com/wiki/index.php?title=加解密方案的详细说明 | |
AES_KEY = 'aaaa' | |
encrypted_enchostr = 'bbbb' | |
def parse_msg(text) | |
random = text[0..16] |
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
#!/bin/bash | |
# Teamcity buildagent daemon start/stop script. | |
### BEGIN INIT INFO | |
# Provides: Teamcity buildagent | |
# Required-Start: $local_fs $network $remote_fs | |
# Should-Start: ypbind nscd ldap ntpd xntpd | |
# Required-Stop: $local_fs $network $remote_fs | |
# Default-Start: 2 3 4 5 |
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 HelloWorld { | |
public static void main(String[] args){ | |
System.out.println("hello world"); | |
} | |
} |
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
$(function () { | |
$("#stage").mousemove(function (event) { | |
var pageX = event.pageX; | |
var pageY = event.pageY; | |
$("#tooltip-ele").offset({ left:pageX + 10, top:pageY }) | |
.popover({ | |
title:"提示", | |
content:"<i class='icon-book'></i>内容内容内容内容内容内容内容", | |
html:true, | |
animation:false, |
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
window.Images = { | |
naturalSize:function (imgSrc, callback) { | |
jQuery("<img/>").load( function () { | |
var naturalWidth = this.width; | |
var naturalHeight = this.height; | |
callback(naturalWidth, naturalHeight); | |
}).attr("src", imgSrc); | |
}}; |
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
/** | |
* User: Administrator | |
* Date: 11-11-4 | |
* Time: 下午11:32 | |
* | |
* @author Basten Gao | |
*/ | |
public class EmailUtil { | |
private static final Map<String, String> EMAILS = loadEmails(); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>占满屏幕</title> | |
<style type="text/css"> | |
aside { | |
position: absolute; | |
top: 0; | |
left: 0; |
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"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.gaohui.cargo-test</groupId> | |
<artifactId>cargo-test</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>war</packaging> |
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
/* Javadoc 样式表 */ | |
/* 在此处定义颜色、字体和其他样式属性以覆盖默认值 */ | |
* { font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; } | |
/* 页面背景颜色 */ | |
html, body { background-color: #FFFFFF; color:#000000; font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; font-size:13px;} | |
/* 标题 */ | |
h1 { font-size: 145% } |
OlderNewer