sublime3快捷 输入html
摘要:ID and CLASS attributeshtml > // 直接生成整个框架 > 表示 tab建#header.titleform#search.widep.class1.class2.class3Custom attributesp[title="Hello world"]td[rowspa...
阅读全文
posted @
2015-10-31 17:23
星空守望者--jkmiao
阅读(235)
推荐(0) 编辑
House Robber
摘要: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 yo...
阅读全文
posted @
2015-10-31 11:44
星空守望者--jkmiao
阅读(137)
推荐(0) 编辑
count and say leetcode @python
摘要:https://leetcode.com/submissions/detail/44515521/ class Solution(object): def count(self,s): res = "" count = 0; cur = "#"...
阅读全文
posted @
2015-10-30 15:00
星空守望者--jkmiao
阅读(98)
推荐(0) 编辑
NLP学习资源
摘要:JournalsACM Transactions on Information Systems (TOIS)影响因子5.059(2006)IEEE Transactions on Knowledge and Data Engineering(TKDE),影响因子:2.063Information R...
阅读全文
posted @
2015-10-28 15:14
星空守望者--jkmiao
阅读(355)
推荐(0) 编辑
Invert Binary Tree
摘要:https://leetcode.com/problems/invert-binary-tree/Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9...
阅读全文
posted @
2015-10-20 14:57
星空守望者--jkmiao
阅读(135)
推荐(0) 编辑
定时任务 Crontab命令 详解
摘要:定时任务 Crontab命令 详解一、Crontab 格式说明我们可以用crontab -e添加要执行的命令。 命令执行的结果,无论是标准输出还是错误输出,都将以邮件形式发给用户。添加的命令必须以如下格式:* * * * * /command path前五个字段可以取整数值,指定何时开始工作,第六个...
阅读全文
posted @
2015-10-20 09:58
星空守望者--jkmiao
阅读(480)
推荐(0) 编辑
根据职位名,自动生成jd
摘要:代码本身就是最好的解释,不赘述。文本聚类输出: cluster.py#!/usr/bin/env python# coding=utf-8import jieba,refrom gensim import corpora,modelsfrom sklearn.cluster import KMean...
阅读全文
posted @
2015-10-13 15:38
星空守望者--jkmiao
阅读(778)
推荐(0) 编辑
使用python + tornado 做项目demo演示模板
摘要:很简单,可是却也折腾了不是时间,走了不少弯路。在此备注记录一下,以供后需。# web_server.py#!/usr/bin/env python# coding=utf-8import os.pathimport tornado.httpserverimport tornado.optionsim...
阅读全文
posted @
2015-10-13 15:32
星空守望者--jkmiao
阅读(1164)
推荐(0) 编辑
用正则表达式re+词典等规则进行文本信息提取
摘要:文本信息提取方法有很多,最简单直接暴力的就是直接使用规则,利用python re模块的强大功能,已经可以满足大部分需求。而后可再逐步深入,利用HMM 或CRF 模型,提高准确率和召回率先上demo:#!/usr/bin/env python# coding=utf-8import jieba,sys...
阅读全文
posted @
2015-10-13 15:25
星空守望者--jkmiao
阅读(3398)
推荐(1) 编辑
Awk 实例
摘要:AWK 是一种用于处理文本的编程语言工具。AWK 在很多方面类似于 shell 编程语言,尽管 AWK 具有完全属于其本身的语法。它的设计思想来源于 SNOBOL4 、sed 、Marc Rochkind设计的有效性语言、语言工具 yacc 和 lex ,当然还从 C 语言中获取了一些优秀的思想。在...
阅读全文
posted @
2015-10-09 16:35
星空守望者--jkmiao
阅读(254)
推荐(0) 编辑
sed 使用 删除匹配行
摘要:“p” command prints the buffer (remember to use -n option with “p”)“d” command is just opposite, its for deletion. ‘d’ will delete the pattern space bu...
阅读全文
posted @
2015-10-08 21:25
星空守望者--jkmiao
阅读(875)
推荐(0) 编辑