Skip to content

Instantly share code, notes, and snippets.

View tongtie's full-sized avatar
🎯
Focusing

TongTie tongtie

🎯
Focusing
View GitHub Profile
package service;
import javax.jws.WebService;
import java.sql.*;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import com.bean.PersonBean;
package service;
/**
* Created by mrt on 2015/5/10.
*/
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import java.net.URL;
@tongtie
tongtie / gist:9a189c91f4987547158d
Last active October 11, 2015 11:44
Bootstrap3 tutorial index.html
<!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">
@tongtie
tongtie / gist:9ce3dcaf1d106fbb91d6
Created October 11, 2015 09:14
bootstrap 3 tutorial css
@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;
"""
python3.5
tongtie
"""
import time
import difflib
def normal_leven(str1, str2):
len_str1 = len(str1) + 1
len_str2 = len(str2) + 1
@tongtie
tongtie / README.md
Last active May 6, 2018 03:18 — forked from jasonicarter/README.md
Counting change recursive algorithm in Scala

Scala

Just a few interesting pieces of Scala code

from urlparse import urlparse
from threading import Thread
import httplib, sys
from Queue import Queue
concurrent = 200
def doWork():
while True:
url = q.get()
@tongtie
tongtie / threading_send_request.py
Last active November 15, 2018 01:44
Fast Send Http
# 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:
@tongtie
tongtie / 1.OpenTSDB相关
Created August 17, 2019 07:29 — forked from yangl/1.OpenTSDB相关
OpenTSDB。。。
OpenTSDB
安装
http://opentsdb.net/docs/build/html/installation.html
1.安装依赖:
Runtime Requirements
A Linux system