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
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | |
| <mapper namespace="com.simple.test.data.mapper.ArticleMapper"> | |
| <resultMap id="BaseResultMap" type="com.simple.test.data.domain.ArticleDO"> | |
| <id column="id" property="id"/> | |
| <result column="id" property="id" jdbcType="INTEGER"/> | |
| <result column="name" property="name" jdbcType="VARCHAR"/> | |
| <result column="content" property="content" jdbcType="VARCHAR"/> | |
| <result column="user_id" property="userId" jdbcType="VARCHAR"/> |
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/zsh | |
| prev=0 | |
| cur=0 | |
| while [ 1 ] | |
| do | |
| cur=$(curl -s https://ms.jr.jd.com/gw/generic/hj/h5/m/latestPrice\?reqData\=%7B%7D | jq '.resultData.datas.price | tonumber') | |
| if [ "$prev" != "$cur" ] | |
| then | |
| echo -n `date +"%H:%M:%S "`$cur | |
| printf " %.*f\n" 3 "$(($cur * 1.005))" |
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.lang.management.GarbageCollectorMXBean; | |
| import java.lang.management.ManagementFactory; | |
| import java.lang.management.ThreadMXBean; | |
| import java.net.InetAddress; | |
| import java.net.UnknownHostException; | |
| import java.util.List; | |
| import java.util.logging.Logger; | |
| /** | |
| * 获得一些jvm的必要的系统信息 |
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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Author: | |
| # Create Date: 15/01/2018 | |
| # Descripton: hero manga download | |
| import requests | |
| import re | |
| links = { |
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
| #!/usr/local/bin/python | |
| # File: dao_helper.py | |
| # Create Date: 2015-12-09 14:25:32 | |
| # Usage: mybatis-code-generator.py | |
| # Descripton: 自动生成 mapper.xml 里的大部分语句及 QueryBean 里的 convert2Params 方法,将建表语句放在 test.sql 里就行 | |
| import re | |
| class DaoHelper: |