Just a few interesting pieces of Scala code
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
OpenTSDB | |
安装 | |
http://opentsdb.net/docs/build/html/installation.html | |
1.安装依赖: | |
Runtime Requirements | |
A Linux system |
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
# copy from stack overflow | |
from urlparse import urlparse | |
from threading import Thread | |
import httplib, sys | |
from Queue import Queue | |
concurrent = 200 | |
def doWork(): | |
while 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
from urlparse import urlparse | |
from threading import Thread | |
import httplib, sys | |
from Queue import Queue | |
concurrent = 200 | |
def doWork(): | |
while True: | |
url = q.get() |
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
""" | |
python3.5 | |
tongtie | |
""" | |
import time | |
import difflib | |
def normal_leven(str1, str2): | |
len_str1 = len(str1) + 1 | |
len_str2 = len(str2) + 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
@import url(http://fonts.googleapis.com/css?family=Lato:300,400,700); | |
h1, h2, h3, h4 { | |
font-family: 'Lato', sans-serif; | |
font-weight: 300; | |
} | |
p { | |
font-family: 'Lato', sans-serif; | |
} | |
html { | |
background-color: #474747; |
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<!-- Set the viewport so this responsive site displays correctly on mobile devices --> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Bootstrap 3 Responsive Design Tutorial | RevillWeb.com</title> | |
<!-- Include bootstrap CSS --> | |
<!-- 替换cdn服务了--> | |
<link href="http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet"> |
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 service; | |
/** | |
* Created by mrt on 2015/5/10. | |
*/ | |
import javax.xml.namespace.QName; | |
import javax.xml.ws.Service; | |
import java.net.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
package service; | |
import javax.jws.WebService; | |
import java.sql.*; | |
import java.text.SimpleDateFormat; | |
import java.util.ArrayList; | |
import com.bean.PersonBean; |