自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

StormMaybin的博客

just code it

  • 博客(112)
  • 资源 (8)
  • 问答 (1)
  • 收藏
  • 关注

原创 一个极具极客范的命令行翻译工具jadetrans

A very geeky command line translation tool. Features Chinese <=> English Speech Others language support Google translation engineInstallationGogo get -u github.com/archervanderwa...

2019-02-24 13:01:00 399

原创 那些年我造的轮子之RPC

@author stormma @date 2018/04/05 声明不息,奋斗不止storm-rpc快速开始(使用Spring Boot)Api接口IHelloService.javapackage me.stormma.api;/** * @author stormma [email protected] */p...

2018-04-05 23:29:18 636

原创 字符串匹配问题算法总结

@author stormma @date 2018/03/24 生命不息,奋斗不止题目1Implement wildcard pattern matching with support for '?' and '*'.'?' Matches any single character.'*' Matches any sequence of ...

2018-03-24 16:47:56 1182

原创 leetcode 106. Construct Binary Tree from Inorder and Postorder Traversal

生命不息,奋斗不止 @author stormma @date 2018/03/23Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree....

2018-03-23 16:40:31 317

原创 leetcode 105. Construct Binary Tree from Preorder and Inorder Traversal

生命不息,奋斗不止 @author stormma @date 2018/03/23Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.Fo...

2018-03-23 16:20:58 279

原创 再见我的2017

生命不息,奋斗不止! @author stormma @date 2017/12/31每每在这年度”交接”的时候, 我总会去回想一下过去一年我的”得失”, 以便来年此时我可以骄傲得对自己说, 你没有辜负时间, 时间也没有辜负你! 所谓你没有辜负时间, 即是过去一年努力过, 所谓时间没有辜负你, 恰也说明你收获了与付出成正比的结果!我不想每次写年度总结的时候, 一半篇幅的文字都在感慨

2018-01-01 20:48:45 335

原创 Leetcode 41. First Missing Positive

@author stormma @date 2017/11/30 生命不息,奋斗不止!题目Given an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2.Your algorithm sho

2017-11-30 10:32:26 245

原创 Leetcode Combinations问题总结

@author stormma @date 2017/11/30 生命不息,奋斗不止!题目1Given two integers n and k, return all possible combinations of k numbers out of 1 … nExample n = 4, k = 2 [2,4], [3,4],

2017-11-30 09:40:37 671

原创 Leetcode 98.Validate Binary Search Tree

@author stormma @date 2017/11/28 生命不息,奋斗不止!题目Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only n

2017-11-28 23:22:49 240

原创 Java NIO初探(一)

@author stormma @date 2017-11-19 生命不息,奋斗不止前言NIO(Non-Blocking IO), 现称为非阻塞IO, 早期曾被解释为New-IO, 相比于BIO(Blocking IO)来说,NIO是非阻塞的, 举个很简单的例子, 就是一个线程可以管理多个连接, 这较BIO来有什么进步的地方呢? 假如现在有个聊天服务器, 使用BIO通信的形式, 我们往往是

2017-11-21 21:16:31 826

原创 一点一滴探究JVM之内存结构

@date 2017/11/15 @author stormma 生命不息,奋斗不止前言我一直尝试着用不一样的文字来写博客!原因很简单,你讲的知识书上都有,那么每个人为什么不选择看书而选择看你的博文来学习呢?因为书上的内容都是大片大片描述性的文字,对于jvm这块的知识,又是异常枯燥,但又不能不学习的硬骨头!这恰好也就能说明Head First系列的书籍为什么比较火的原因,每个人接收图形知识

2017-11-16 08:30:05 874

原创 一点一滴探究JVM之类加载机制

@date 2017/11/14 @author stormma 生命不息,奋斗不止前言一点一滴探究JVM系列,主要深入探究JVM运行机制。俗话说,知其然知其所以然。如果不懂JVM的运行机制,那么无法了解Java这门语言最核心的东西, 也就谈不上编程之美了,因为你根本不懂得如何使你的代码更优雅。废话不多说,今天的主题就是JVM的类加载机制!开始之前 在正式开始之前,我们先来看一段小程

2017-11-15 14:07:58 604

原创 一道题看清动态规划的前世今生(一)

@author: StormMa @date 2017-11-11 生命不息,奋斗不止前言本篇文章旨在用通俗简单的语言来教你入门动态规划。动态规划是算法中很重要的一块内容,在各大公司的笔试算法中占据大壁江山,所以,掌握动态规划是你拿到称心的offer的前提,废话不多说,让我们来开始一段算法之旅吧。在开始之前,你要努力忘掉你理解的动态规划,因为有可能那些都是错误的,会限制你的思路。相信我,读

2017-11-11 23:11:10 815

原创 Leetcode刷题记

@author stormma @date 2017/11/08 生命不息,奋斗不止!前言 一个假acmer的重拾算法之路算法是程序员的基本功,基本功的扎实程度一定上决定了你能走多远。前两年,急于学招式,招式学得差不多了,可是错过了大好的学习算法,练基本功的机会。不知不觉进入这个行业也两年多了,这两年基本上都在围绕着Javaweb做事,也算是有所收获吧,从一个接一个的业务项目,到后面

2017-11-08 22:04:04 668

原创 leetcode 10. Regular Expression Matching

@author stormma @date 2017/11/06 生命不息,奋斗不止题目Implement regular expression matching with support for '.'and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.Th

2017-11-06 19:54:51 360

原创 leetcode 4.median of Two Sorted Arrays

@author stormma @date 2017/11/05 生命不息,奋斗不止!** 题目 There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity

2017-11-05 23:33:03 311

原创 Leetcode 18.4Sum

@author stormma @date 2017/11/03 生命不息,奋斗不止!题目Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which

2017-11-03 12:07:50 298

原创 Leetcode 16. 3sum closest

@author stormma @date 2017/11/03 生命不息,奋斗不止题目Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. Y

2017-11-03 10:55:17 255

原创 Leetcode 15. 3sum

@author stormma @date 2017/11/03 生命不息,奋斗不止!题目Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of z

2017-11-03 10:29:15 263

原创 leetcode 29. Divide Two Integers

@author stormma @date 2017/10/27 10:02– 生命不息,奋斗不止! 题目Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.思路分析方案1被除数-除数,ans++,但是这样如果被除数和除

2017-10-27 10:14:57 292

原创 leetcode 198. House Robber

生命不息,奋斗不止! @author stormma @date 2017/10/21题目 You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping y

2017-10-23 20:35:46 221

原创 leetcode 96. Unique Binary Search Trees

生命不息,奋斗不止! @author stormma @date 2017/10/21题目Given n, how many structurally unique BST’s (binary search trees) that store values 1…n?For example Given n = 3, there are a total of 5 unique BST

2017-10-23 20:31:31 205

原创 leetcode 72.

生命不息,奋斗不止! @author stormma @date 2017/10/21题目 Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You h

2017-10-23 20:15:06 227

原创 POJ2431

生命不息,奋斗不止! @author stormma @date 2017/10/20题意:一辆卡车距离城镇L单位长度,初始有P油,每行驶一个单位长度消耗一单位油。有n个加油站可以加油,给出n个加油站与城镇的距离Ai,和在加油站可以加的有的量Bi,问最少加油几次才能行驶L长度,如果不能输出-1。 我们稍微变换一下思路:每次经过加油站,都把油装到瓶子里面带走,Bi加入优先队列,到需

2017-10-20 21:02:45 355

原创 leetcode 669. Trim a Binary Search Tree

生命不息,奋斗不止!– @author stormma @date 2017/10/20题目 Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R >= L). You m

2017-10-20 10:35:10 247

原创 leetcode 75. Sort Colors

生命不息,奋斗不止 @author stormma @date 2017/10/19题目 Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red,

2017-10-20 08:48:10 189

原创 常用排序方式总结

@author StormMa @date 2017-10/19 生命不息,奋斗不止! 常用的排序算法分析与实现,全部代码库地址sort,以及algorithms4前言排序算法是算法的入门知识,其经典思想可以用于很多算法当中。因为其实现代码较短,应用较常见。所以在面试中经常会问到排序算法及其相关的问题。但万变不离其宗,只要熟悉了思想,灵活运用也不是难事。一般在面试中最常考的是快速排序和归

2017-10-19 13:28:41 408

翻译 Spring Boot Docker化官方文档

@author StormMa @date 2017-10-12 生命不息,奋斗不止!Spring Boot应用Docker化 原文:Spring Boot with Docker 译者:stormma本教程将引导你通过建立一个Docker镜像来运行Spring Boot应用。你将构建什么Docker是一个管理工具包的Linux容器,用户可以发布镜像以及使用其他开发者发布的镜像

2017-10-12 11:49:59 581

原创 storm-server使用指南

@author stormma @date 2017/09/15 生命不息,奋斗不止storm-server使用指南storm-server介绍 storm-server, 以jetty为servlet容器的一个java web框架, 主要用于为前端提供api服务, 具有快速开发的优势。storm-server之后会提供一些操作mysql, redis的工具, storm-server

2017-09-15 17:23:38 448

原创 Python namedtuple使用详解

@author StormMa @date 2017-06-12 生命不息,奋斗不止! Python的collections模块在基础数据类型的基础上,提供了几个额外的数据类型:namedtuple, defaultdict, deque, Counter, OrderedDict等,其中defaultdict和namedtuple是两个很实用的扩展类型。我一贯的风格就是学一个数据类型,就

2017-06-12 10:38:32 4992

原创 Python装饰器详解

@author StormMa @date 2017-06-09 生命不息,奋斗不止!开始之前 第一次接触Python的时候就是直接开始写一些爬虫或者是使用django写简单的web应用,但是最近想回头来看看Python中好玩的特性或者是基础。今天就来看一下装饰器的使用,其实感觉Python中的装饰器,有点类似于Java中的Aspect。就像你在一个方法中处理主要的业务逻辑,如果要想在

2017-06-10 23:12:18 1628

原创 Python Socket编程详解

@author StormMa @date 2017-06-10 生命不息,奋斗不止! 今天,来总结一下Python中Socket编程的部分,首先申明一下Python的版本是3.5开始之前 我想学习Socket之前,你应该去看看什么是Socket,Socket通信是怎么一个流程,我想只有了解这些之后,你才能更好地掌握Socket编程,这里我就引用一个图,来大致的说明一下Socket通

2017-06-10 23:08:08 3921

原创 Java源码阅读之ArrayList

@author StormMa @date 2017-06-01 生命不息,奋斗不止! 基于jdk1.8的ArrayList源码分析。 实现List接口最常见的大概就四种,ArrayList, LinkedList, Vector, Stack实现,今天就着重看一下ArrayList的源码实现。ArrayList的底层结构就是最简单的数组,数据结构导致了它查询快,但是增删慢。另外官

2017-06-03 15:38:01 802

原创 Java集合源码阅读之HashMap

@author StormMa @date 2017-05-31 生命不息,奋斗不止! 基于jdk1.8的HashMap源码分析。前期准备什么是HashMap 官方解释Hash table based implementation of the Map interface. This implementation provides all of the optional map o

2017-05-31 17:13:15 877

原创 微信JSAPI支付教程

@author StormMa @date 2017-05-23 01:41 生命不息,奋斗不止! 最近一个项目中用到了微信开发,之前没有做过支付相关的东西,算是拿这个来练练手,刚开始接触支付时候很懵逼,加上微信支付开发文档本来就讲得不清楚,我是彻底蒙圈了,参考了很多代码之后,算是有一点思路了。用户认证获取openId 如果你知识关注支付流程,这块可以跳过,因为我知道...

2017-05-30 22:15:45 1326

原创 微信JSAPI支付教程

@author StormMa @date 2017-05-23 01:41 生命不息,奋斗不止! 最近一个项目中用到了微信开发,之前没有做过支付相关的东西,算是拿这个来练练手,刚开始接触支付时候很懵逼,加上微信支付开发文档本来就讲得不清楚,我是彻底蒙圈了,参考了很多代码之后,算是有一点思路了。用户认证获取openId 如果你知识关注支付流程,这块可以跳过,因为我知道这些你已经做过了

2017-05-30 22:11:34 2785

原创 java逃逸分析

@author StormMa @date 2017-03-09 生命不息,奋斗不止!概念引入 我们都知道,Java 创建的对象都是被分配到堆内存上,但是事实并不是这么绝对,通过对Java对象分配的过程分析,可以知道有两个地方会导致Java中创建出来的对象并一定分别在所认为的堆上。这两个点分别是Java中的逃逸分析和TLAB(Thread Local Allocation Buffer

2017-04-21 23:20:36 792

原创 web请求响应规范化处理

/*** @author StormMa* @Date 2017-03-21*/ 生命不息,奋斗不止! 之所以讲究规范会请求处理,就是将每次的后端处理结果封装成固定的格式去回送到前端,之于规范化的好处,就不甚枚举了。我们先看看代码实现吧!定义结果集的规范/** * <p>Created on 2017/3/15.</p> * * @author StormMa * * @De

2017-03-21 23:25:52 528

原创 spring整合redis教程

@author StormMa @date 2017-03-09 生命不息,奋斗不止!项目结构pom依赖<!-- junit依赖 --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> </depend

2017-03-09 15:09:39 1009

原创 kill端口对应进程

@author StormMa @date 2017-02-13 生命不息,奋斗不止!> kill80端口的进程lsof -i :8080|grep -v "PID"|awk '{print "kill -9",$2}'|sh

2017-02-13 14:48:46 1498

jsch jar 包

jsch jar 包

2017-01-11

log4j jar包

log4j

2016-12-02

commons-logging-1.2

commons-logging-1.2

2016-10-06

apache BeanUtils

apache BeanUtils

2016-10-06

XML案例之学生管理

2016-10-06

DOM解析XML

DOM解析XML

2016-10-05

javaIO流知识大总结

java IO

2016-07-28

android之对话框

android之对话框

2016-06-17

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除