jasminecjc / blogs Goto Github PK
View Code? Open in Web Editor NEW技术类博客
License: MIT License
技术类博客
License: MIT License
TODO
立个flag,准备研究下wechat,whatsapp,telegram,等几个主流IM工具的用户体验问题
vscode-icon
Path Intellisense 路径补全
npm Intellisense node模块补全
Bracket Pair Colorizer
让括号拥有独立的颜色,易于区分。可以配合任意主题使用。
Settings Sync,多设备同步vscode配置,扩展
Project Manager
在多个项目之前快速切换的工具
GitLens
丰富的git日志插件
code snippets 提升效率利器
子曰:"学习code snippets可能只需要5分钟,但它能让你每年少敲几万个字符"
https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf
//TODO
as title
符号说明: ⌘ - command,⌃ - control,⇧ - shift,⌥ - option,⌫ - delete
常用的快捷键列举如下:
系统偏好设置->键盘->快捷键->服务->新建位于文件夹位置的终端窗口
免费而强大的HTTP调试工具
抓取数据存到txt文档中,了解jieba
# -*- coding: utf-8 -*-
import jieba
import os
import codecs
from scipy.misc import imread
import matplotlib as mpl
import matplotlib.pyplot as plt
from wordcloud import WordCloud, STOPWORDS, ImageColorGenerator
class GetWords(object):
def __init__(self, dict_name, file_list , dic_list):
self.dict_name = dict_name
self.file_list = file_list
self.dic_list = dic_list
#获取自定义词典
def get_dic(self):
dic = open(self.dict_name, 'r')
while 1:
line = dic.readline().decode('utf-8').strip()
self.dic_list.append(line)
if not line:
break
pass
def get_word_to_cloud(self):
for file in self.file_list:
with codecs.open('../spider/' + file, "r",encoding='utf-8', errors='ignore') as string:
string = string.read().upper()
res = jieba.cut(string, HMM=False)
reslist = list(res)
wordDict = {}
for i in reslist:
if i not in self.dic_list:
continue
if i in wordDict:
wordDict[i]=wordDict[i]+1
else:
wordDict[i] = 1
coloring = imread('test.jpeg')
wc = WordCloud(font_path='msyh.ttf',mask=coloring,
background_color="white", max_words=50,
max_font_size=40, random_state=42)
wc.generate_from_frequencies(wordDict)
wc.to_file("%s.png"%(file))
def set_dic():
_curpath=os.path.normpath( os.path.join( os.getcwd(), os.path.dirname(__file__) ))
settings_path = os.environ.get('dict.txt')
if settings_path and os.path.exists(settings_path):
jieba.set_dictionary(settings_path)
elif os.path.exists(os.path.join(_curpath, 'data/dict.txt.big')):
jieba.set_dictionary('data/dict.txt.big')
else:
print "Using traditional dictionary!"
if __name__ == '__main__':
set_dic()
file_list = ['data_visualize.txt', 'data_dev.txt', 'data_mining.txt', 'data_arc.txt', 'data_analysis.txt']
dic_name = 'dict.txt'
dic_list = []
getwords = GetWords(dic_name, file_list, dic_list)
getwords.get_dic()
getwords.get_word_to_cloud()
此图为爬取拉勾网数据挖掘工程师岗位需要制作的词云
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.