- OpenCV结构分析与形状描述符(24)检测两个旋转矩形之间是否相交的一个函数rotatedRectangleIntersection()的使用
jndingxin
OpenCVopencv人工智能计算机视觉
操作系统:ubuntu22.04OpenCV版本:OpenCV4.9IDE:VisualStudioCode编程语言:C++11算法描述测两个旋转矩形之间是否存在交集。如果存在交集,则还返回交集区域的顶点。下面是一些交集配置的例子。斜线图案表示交集区域,红色顶点是由函数返回的。rotatedRectangleIntersection()这个函数看起来像是用于检测两个旋转矩形之间是否相交的一个方法。
- JavaScript两个数组的交集 II
流落的小鬼
刷题记录:JavaScript两个数组的交集II给你两个整数数组nums1和nums2,请你以数组形式返回两数组的交集。输入:nums1=[1,2,2,1],nums2=[2,2]输出:[2,2]varintersect=function(nums1,nums2){varresult=[];vari=0,j=0;nums1.sort((a,b)=>a-b);nums2.sort((a,b)=>a-
- 面试题 链表相交 -剑指offer简单
努力搬砖的小王
日常杂记链表leetcode数据结构
面试题链表相交题目链接给你两个单链表的头节点headA和headB,请你找出并返回两个单链表相交的起始节点。如果两个链表没有交点,返回null。图示两个链表在节点c1开始相交:题目数据保证整个链式结构中不存在环。注意,函数返回结果后,链表必须保持其原始结构。示例1:输入:intersectVal=8,listA=[4,1,8,4,5],listB=[5,0,1,8,4,5],skipA=2,ski
- 若依ruoyi-ui执行npm run dev启动报错:esnext.set.difference.v2.js in ./src/utils/index.js 处理方案
爱摄影的程序猿
uinpm前端
一、错误现象:ERRORFailedtocompilewith7errors09:05:43Thesedependencieswerenotfound:*core-js/modules/esnext.set.difference.v2.jsin./src/utils/index.js*core-js/modules/esnext.set.intersection.v2.jsin./src/util
- MySQL学习(谓词查询+比较运算符)
萝卜丝皮尔
数据库MySQL谓词比较运算符
交(INTERSECT):#选出同时选修1号和2号课程的学生学号SELECTSnoFROMSCWHERECno='1'INTERSECTSELECTSnoFROMSCWHERECno='2';注:交运算不属于基本运算。差(EXCEPT):--选了1号课却没选2号课的学生学号selectSno,Cno,GradeFROMSCWHERECno='1'EXCEPTSELECTSno,Cno,GradeF
- Python中set函数的使用
fzd041
pythonpythonPythonsetSetSET
Python中的set函数是一个无序不重复的元素集。主要用于关系测试和去除重复项。同时,set集合也支持数学上的关系运算,如union(并集),intersection(交集),difference(差集)和symmetricdifference(对称差集)。与其他类型的集合一样,set集合支持‘xinset','len(set)','forxinset'方法。但是由于set函数是无序集合,不会记
- 合集Set
CN_HarrySun
1.基本合集操作image.png/*使用intersection(_:)方法来创建一个只包含两个合集共有值的新合集;使用symmetricDifference(_:)方法来创建一个只包含两个合集各自有的非共有值的新合集;使用union(_:)方法来创建一个包含两个合集所有值的新合集;使用subtracting(_:)方法来创建一个两个合集当中不包含某个合集值的新合集。*/letoddDigits
- 微信小程序中如何监听元素进入目标元素
_处女座程序员的日常
微信小程序js交互微信小程序小程序
Page({onLoad:function(){//如果目标节点(用选择器.target-class指定)进入显示区域以下100px时,就会触发回调函数。wx.createIntersectionObserver().relativeToViewport({bottom:100}).observe('.target-class',(res)=>{res.intersectionRatio//相交区
- Vue3项目中页面滚动加载更多的原生操作
是要开心的婷婷呀~
Vue3前端vue.jshtml5javascript
效果:数据未回来就是加载中,加载数据完成后就会显示没有更多的数据了步骤一,定义无限下拉的商品组件:xtx-infinite-loading.vue使用了vueuse中的useIntersectionObserve来监听是否达到了可视化界面中,如果到达了界面,就像父组件传自定义属性load通知父组件做接下来的操作正在加载...亲,没有更多了import{ref}from'vue'import{use
- 相交链表
windUtterance
题目描述:编写一个程序,找到两个单链表相交的起始节点。示例:image.png输入:intersectVal=8,listA=[4,1,8,4,5],listB=[5,0,1,8,4,5],skipA=2,skipB=3输出:Referenceofthenodewithvalue=8输入解释:相交节点的值为8(注意,如果两个链表相交则不能为0)。从各自的表头开始算起,链表A为[4,1,8,4,5]
- 力扣11:链表相交
不会编程的屁屁桃
leetcode链表算法
给你两个单链表的头节点headA和headB,请你找出并返回两个单链表相交的起始节点。如果两个链表没有交点,返回null。如示例1所示,交点并不是1结点,而是8结点,相交结点是物理意义上的相交,也就是结点的地址相同,是同一个结点,而不是因为结点的值相等就是相交结点。classSolution{public:ListNode*getIntersectionNode(ListNode*headA,Li
- js取交集、并集、差集(es6中 set 方法)
Shimeng_1989
javascriptjavascripthtmles6
letarr1=newSet([1,2,3]);letarr2=newSet([4,3,2]);//并集letunion=newSet([...arr1,...arr2]);//Set{1,2,3,4}//交集letintersect=newSet([...arr1].filter(x=>arr12.has(x)));//set{2,3}//差集letdifference=newSet([...a
- 相交链表
422ccfa02512
题目难度级别:简单编写一个程序,找到两个单链表相交的起始节点。如下面的两个链表:在节点c1开始相交。示例1:输入:intersectVal=8,listA=[4,1,8,4,5],listB=[5,0,1,8,4,5],skipA=2,skipB=3输出:Referenceofthenodewithvalue=8输入解释:相交节点的值为8(注意,如果两个链表相交则不能为0)。从各自的表头开始算起,
- Java List集合取交集的五种常见方式总结
今昔在
javalist
1.使用Java8的StreamAPIJava8引入了StreamAPI,它提供了一种声明式的方式来处理数据。importjava.util.Arrays;importjava.util.List;importjava.util.stream.Collectors;publicclassListIntersection{publicstaticvoidmain(String[]args){List
- DOM CSS: Understanding the Intersection of HTML and Style
lly202406
开发语言
DOMCSS:UnderstandingtheIntersectionofHTMLandStyleIntroductionTheDocumentObjectModel(DOM)andCascadingStyleSheets(CSS)aretwofundamentalcomponentsofwebdevelopment.DOMprovidesastructuredrepresentationofHT
- arcgic点击选中空间查询并显示高亮
_杨柳_
//查询并高亮显示点,根据自己代码自行修改queryHighLight(featureLayer,lon,lat){JTMapKit.mapView.whenLayerView(featureLayer).then((layerView)=>{varquery=featureLayer.createQuery()query.spatialRel='esriSpatialRelIntersects'
- [LeetCode]160.相交链表(python)
xyhaaab
leetcode链表python
1.代码classSolution:defgetIntersectionNode(self,headA:ListNode,headB:ListNode)->Optional[ListNode]:ifnotheadAornotheadB:returnNonepoint1=headApoint2=headBhas_switched1=Falsehas_switched2=Falseintersecti
- sqlserver语句中差集、并集、交集的用法
GIS从业者
MySQLpostgresqMongoDBRedissqlserver
1、并集UNIONUNION将两个查询的结果合并为一个结果集,并去除重复的行。SELECTcolumn1,column2FROMTable1UNIONSELECTcolumn1,column2FROMTable2;2、交集INTERSECTINTERSECT返回两个查询的结果中相同的行。SELECTcolumn1,column2FROMTable1INTERSECTSELECTcolumn1,co
- 160. Intersection of Two Linked Lists
SilentDawn
ProblemWriteaprogramtofindthenodeatwhichtheintersectionoftwosinglylinkedlistsbegins.Notes:Ifthetwolinkedlistshavenointersectionatall,returnnull.Thelinkedlistsmustretaintheiroriginalstructureafterthefu
- Open CASCADE学习|布尔运算后消除内部拓扑
老歌老听老掉牙
OpenCASCADE学习OpenCASCADEc++
在CAD建模中,布尔运算是一种逻辑运算方法,通过这种方法,可以创建、修改或组合几何对象。布尔运算主要包括并集(UNION)、交集(INTERSECT)和差集(SUBTRACT)三种运算。并集(UNION):将两个或多个实体合并成一个整体。在CAD中,可以通过选择并集命令,然后依次选择要求并集的实体,完成并集操作后,这些实体将合并成一个整体。交集(INTERSECT):取两个实体的公共部分保留为新对
- LeetCode 160.相交链表
唐三斤
题目编写一个程序,找到两个单链表相交的起始节点。如下面的两个链表:image在结点c1开始相交题目链接示例输入:intersectVal=8,listA=[4,1,8,4,5],listB=[5,0,1,8,4,5],skipA=2,skipB=3输出:Referenceofthenodewithvalue=8输入解释:相交节点的值为8(注意,如果两个列表相交则不能为0)。从各自的表头开始算起,链
- 批量给元素添加进场动画;获取文本光标位置;项目国际化
小王今天也要加油鸭~!
项目记录前端vue.js
批量给元素添加进场动画api及参数参考:https://juejin.cn/post/7310977323484971071简单实现:addAnimationClass(){//交叉观察器if(window?.IntersectionObserver){//获取所有需要添加进场动画的元素,放到一个数组letitems=[...document.getElementsByClassName('nee
- 目标检测的评估指标——mAP
星光下的胖子
目录:1.相关概念1)IoU(IntersectionoverUnion)2)Precision和Recall2.mAP(meanAveragePrecision)1)PascalVOC2)COCO3.总结mAP的计算流程4.mAP的代码实现一、相关概念1.IoU(IntersectionoverUnion)IoU的定义:预测bbox与实际bbox的交并比。IoU被用来判断对一个对象的预测是否正确
- LeetCode:面试题 02.07. 链表相交
代码叶
小白学算法链表指针leetcode单链表
面试题02.07.链表相交题目来源:https://leetcode-cn.com/problems/intersection-of-two-linked-lists-lcci/1.题目给定两个(单向)链表,判定它们是否相交并返回交点。请注意相交的定义基于节点的引用,而不是基于节点的值。换句话说,如果一个链表的第k个节点与另一个链表的第j个节点是同一节点(引用完全相同),则这两个链表相交。2.示例
- LeetCode 面试题 02.07. 链表相交
PZHU_CG_csdn
LeetCodeleetcode链表相交双指针
题目:https://leetcode-cn.com/problems/intersection-of-two-linked-lists-lcci/题解一:哈希表。先将链表A中的的节点都放入哈希表,然后依次放入链表B中的节点,如果当前节点在哈希表中已存在证明链表相交。时间复杂度:O(N)publicListNodegetIntersectionNode(ListNodeheadA,ListNode
- LeetCode面试题 02.07. 链表相交
程序员的账号
LeetCode链表算法leetcode
LeetCode面试题02.07.链表相交这道题本身属于简单题,但是我愣是看了半天的题目,才把题目看懂。本题说是链表相交,根据题目意思,可以判断出,链表相交,最基本该点从表尾开始忘前数的位置是相同的,并且数值相同,理解这一点,应该就不难的,关键在以使两表的指针从指向相同的位置开始进行判断。publicclassSolution{publicListNodegetIntersectionNode(L
- 求两个数组的交集js实现
小强不是蟑螂啊
varintersect=function(nums1,nums2){leti=j=0,len1=nums1.length,len2=nums2.length,newArr=[];if(len1===0||len2===0){returnnewArr;}nums1.sort(function(a,b){returna-b;});nums2.sort(function(a,b){returna-b;
- 01.数据结构篇-链表
Luer笔达
LeetCode刷题数据结构链表
1.找出两个链表的交点160.IntersectionofTwoLinkedLists(Easy)Leetcode/力扣例如以下示例中A和B两个链表相交于c1:A:a1→a2↘c1→c2→c3↗B:b1→b2→b3但是不会出现以下相交的情况,因为每个节点只有一个next指针,也就只能有一个后继节点,而以下示例中节点c有两个后继节点。A:a1→a2d1→d2↘↗c↗↘B:b1→b2→b3e1→e2要
- osg解析系列-对“地形”类场景子树进行射线求交、面求交,适用于大场景如数字地球等
爱丽J
c++图形渲染
note1:osgSim::LineOfSight、osgSim::HeightAboveTerrain均是用于计算与“地形”类场景子树进行射线求交的辅助类,是对osgUtil::LineSegmentIntersector、osgUtil::IntersectorGroup的封装和应用。note2:osgSim::ElevationSlice是用于计算与“地形”类场景子树进行面求交的辅助类,是对
- 学会这几个Dynamo数据处理技巧,效率翻倍提升
九哥BIMer
Dynamo案例百解Dynamopython
最近一直在写Dynamo程序,但是很多东西是不能分享出来的,但是一些方法是可以分享的,整理了一些,今天先分享几个给大家。话不多说,直接进入主题:1、快速筛选出一组物体中,有哪些物体与另一组物体相交这里,我一般都会直接想到利用List.FilterByBoolMask,用步布尔值进行过滤,既方便又准确。我们利用两个物体的BoundingBox,进行Intersects,就能得到哪些相交,注意这里,要
- mongodb3.03开启认证
21jhf
mongodb
下载了最新mongodb3.03版本,当使用--auth 参数命令行开启mongodb用户认证时遇到很多问题,现总结如下:
(百度上搜到的基本都是老版本的,看到db.addUser的就是,请忽略)
Windows下我做了一个bat文件,用来启动mongodb,命令行如下:
mongod --dbpath db\data --port 27017 --directoryperdb --logp
- 【Spark103】Task not serializable
bit1129
Serializable
Task not serializable是Spark开发过程最令人头疼的问题之一,这里记录下出现这个问题的两个实例,一个是自己遇到的,另一个是stackoverflow上看到。等有时间了再仔细探究出现Task not serialiazable的各种原因以及出现问题后如何快速定位问题的所在,至少目前阶段碰到此类问题,没有什么章法
1.
package spark.exampl
- 你所熟知的 LRU(最近最少使用)
dalan_123
java
关于LRU这个名词在很多地方或听说,或使用,接下来看下lru缓存回收的实现
1、大体的想法
a、查询出最近最晚使用的项
b、给最近的使用的项做标记
通过使用链表就可以完成这两个操作,关于最近最少使用的项只需要返回链表的尾部;标记最近使用的项,只需要将该项移除并放置到头部,那么难点就出现 你如何能够快速在链表定位对应的该项?
这时候多
- Javascript 跨域
周凡杨
JavaScriptjsonp跨域cross-domain
 
- linux下安装apache服务器
g21121
apache
安装apache
下载windows版本apache,下载地址:http://httpd.apache.org/download.cgi
1.windows下安装apache
Windows下安装apache比较简单,注意选择路径和端口即可,这里就不再赘述了。 2.linux下安装apache:
下载之后上传到linux的相关目录,这里指定为/home/apach
- FineReport的JS编辑框和URL地址栏语法简介
老A不折腾
finereportweb报表报表软件语法总结
JS编辑框:
1.FineReport的js。
作为一款BS产品,browser端的JavaScript是必不可少的。
FineReport中的js是已经调用了finereport.js的。
大家知道,预览报表时,报表servlet会将cpt模板转为html,在这个html的head头部中会引入FineReport的js,这个finereport.js中包含了许多内置的fun
- 根据STATUS信息对MySQL进行优化
墙头上一根草
status
mysql 查看当前正在执行的操作,即正在执行的sql语句的方法为:
show processlist 命令
mysql> show global status;可以列出MySQL服务器运行各种状态值,我个人较喜欢的用法是show status like '查询值%';一、慢查询mysql> show variab
- 我的spring学习笔记7-Spring的Bean配置文件给Bean定义别名
aijuans
Spring 3
本文介绍如何给Spring的Bean配置文件的Bean定义别名?
原始的
<bean id="business" class="onlyfun.caterpillar.device.Business">
<property name="writer">
<ref b
- 高性能mysql 之 性能剖析
annan211
性能mysqlmysql 性能剖析剖析
1 定义性能优化
mysql服务器性能,此处定义为 响应时间。
在解释性能优化之前,先来消除一个误解,很多人认为,性能优化就是降低cpu的利用率或者减少对资源的使用。
这是一个陷阱。
资源时用来消耗并用来工作的,所以有时候消耗更多的资源能够加快查询速度,保持cpu忙绿,这是必要的。很多时候发现
编译进了新版本的InnoDB之后,cpu利用率上升的很厉害,这并不
- 主外键和索引唯一性约束
百合不是茶
索引唯一性约束主外键约束联机删除
目标;第一步;创建两张表 用户表和文章表
第二步;发表文章
1,建表;
---用户表 BlogUsers
--userID唯一的
--userName
--pwd
--sex
create
- 线程的调度
bijian1013
java多线程thread线程的调度java多线程
1. Java提供一个线程调度程序来监控程序中启动后进入可运行状态的所有线程。线程调度程序按照线程的优先级决定应调度哪些线程来执行。
2. 多数线程的调度是抢占式的(即我想中断程序运行就中断,不需要和将被中断的程序协商)
a) 
- 查看日志常用命令
bijian1013
linux命令unix
一.日志查找方法,可以用通配符查某台主机上的所有服务器grep "关键字" /wls/applogs/custom-*/error.log
二.查看日志常用命令1.grep '关键字' error.log:在error.log中搜索'关键字'2.grep -C10 '关键字' error.log:显示关键字前后10行记录3.grep '关键字' error.l
- 【持久化框架MyBatis3一】MyBatis版HelloWorld
bit1129
helloworld
MyBatis这个系列的文章,主要参考《Java Persistence with MyBatis 3》。
样例数据
本文以MySQL数据库为例,建立一个STUDENTS表,插入两条数据,然后进行单表的增删改查
CREATE TABLE STUDENTS
(
stud_id int(11) NOT NULL AUTO_INCREMENT,
- 【Hadoop十五】Hadoop Counter
bit1129
hadoop
1. 只有Map任务的Map Reduce Job
File System Counters
FILE: Number of bytes read=3629530
FILE: Number of bytes written=98312
FILE: Number of read operations=0
FILE: Number of lar
- 解决Tomcat数据连接池无法释放
ronin47
tomcat 连接池 优化
近段时间,公司的检测中心报表系统(SMC)的开发人员时不时找到我,说用户老是出现无法登录的情况。前些日子因为手头上 有Jboss集群的测试工作,发现用户不能登录时,都是在Tomcat中将这个项目Reload一下就好了,不过只是治标而已,因为大概几个小时之后又会 再次出现无法登录的情况。
今天上午,开发人员小毛又找到我,要我协助将这个问题根治一下,拖太久用户难保不投诉。
简单分析了一
- java-75-二叉树两结点的最低共同父结点
bylijinnan
java
import java.util.LinkedList;
import java.util.List;
import ljn.help.*;
public class BTreeLowestParentOfTwoNodes {
public static void main(String[] args) {
/*
* node data is stored in
- 行业垂直搜索引擎网页抓取项目
carlwu
LuceneNutchHeritrixSolr
公司有一个搜索引擎项目,希望各路高人有空来帮忙指导,谢谢!
这是详细需求:
(1) 通过提供的网站地址(大概100-200个网站),网页抓取程序能不断抓取网页和其它类型的文件(如Excel、PDF、Word、ppt及zip类型),并且程序能够根据事先提供的规则,过滤掉不相干的下载内容。
(2) 程序能够搜索这些抓取的内容,并能对这些抓取文件按照油田名进行分类,然后放到服务器不同的目录中。
- [通讯与服务]在总带宽资源没有大幅增加之前,不适宜大幅度降低资费
comsci
资源
降低通讯服务资费,就意味着有更多的用户进入,就意味着通讯服务提供商要接待和服务更多的用户,在总体运维成本没有由于技术升级而大幅下降的情况下,这种降低资费的行为将导致每个用户的平均带宽不断下降,而享受到的服务质量也在下降,这对用户和服务商都是不利的。。。。。。。。
&nbs
- Java时区转换及时间格式
Cwind
java
本文介绍Java API 中 Date, Calendar, TimeZone和DateFormat的使用,以及不同时区时间相互转化的方法和原理。
问题描述:
向处于不同时区的服务器发请求时需要考虑时区转换的问题。譬如,服务器位于东八区(北京时间,GMT+8:00),而身处东四区的用户想要查询当天的销售记录。则需把东四区的“今天”这个时间范围转换为服务器所在时区的时间范围。
- readonly,只读,不可用
dashuaifu
jsjspdisablereadOnlyreadOnly
readOnly 和 readonly 不同,在做js开发时一定要注意函数大小写和jsp黄线的警告!!!我就经历过这么一件事:
使用readOnly在某些浏览器或同一浏览器不同版本有的可以实现“只读”功能,有的就不行,而且函数readOnly有黄线警告!!!就这样被折磨了不短时间!!!(期间使用过disable函数,但是发现disable函数之后后台接收不到前台的的数据!!!)
- LABjs、RequireJS、SeaJS 介绍
dcj3sjt126com
jsWeb
LABjs 的核心是 LAB(Loading and Blocking):Loading 指异步并行加载,Blocking 是指同步等待执行。LABjs 通过优雅的语法(script 和 wait)实现了这两大特性,核心价值是性能优化。LABjs 是一个文件加载器。RequireJS 和 SeaJS 则是模块加载器,倡导的是一种模块化开发理念,核心价值是让 JavaScript 的模块化开发变得更
- [应用结构]入口脚本
dcj3sjt126com
PHPyii2
入口脚本
入口脚本是应用启动流程中的第一环,一个应用(不管是网页应用还是控制台应用)只有一个入口脚本。终端用户的请求通过入口脚本实例化应用并将将请求转发到应用。
Web 应用的入口脚本必须放在终端用户能够访问的目录下,通常命名为 index.php,也可以使用 Web 服务器能定位到的其他名称。
控制台应用的入口脚本一般在应用根目录下命名为 yii(后缀为.php),该文
- haoop shell命令
eksliang
hadoophadoop shell
cat
chgrp
chmod
chown
copyFromLocal
copyToLocal
cp
du
dus
expunge
get
getmerge
ls
lsr
mkdir
movefromLocal
mv
put
rm
rmr
setrep
stat
tail
test
text
- MultiStateView不同的状态下显示不同的界面
gundumw100
android
只要将指定的view放在该控件里面,可以该view在不同的状态下显示不同的界面,这对ListView很有用,比如加载界面,空白界面,错误界面。而且这些见面由你指定布局,非常灵活。
PS:ListView虽然可以设置一个EmptyView,但使用起来不方便,不灵活,有点累赘。
<com.kennyc.view.MultiStateView xmlns:android=&qu
- jQuery实现页面内锚点平滑跳转
ini
JavaScripthtmljqueryhtml5css
平时我们做导航滚动到内容都是通过锚点来做,刷的一下就直接跳到内容了,没有一丝的滚动效果,而且 url 链接最后会有“小尾巴”,就像#keleyi,今天我就介绍一款 jquery 做的滚动的特效,既可以设置滚动速度,又可以在 url 链接上没有“小尾巴”。
效果体验:http://keleyi.com/keleyi/phtml/jqtexiao/37.htmHTML文件代码:
&
- kafka offset迁移
kane_xie
kafka
在早前的kafka版本中(0.8.0),offset是被存储在zookeeper中的。
到当前版本(0.8.2)为止,kafka同时支持offset存储在zookeeper和offset manager(broker)中。
从官方的说明来看,未来offset的zookeeper存储将会被弃用。因此现有的基于kafka的项目如果今后计划保持更新的话,可以考虑在合适
- android > 搭建 cordova 环境
mft8899
android
1 , 安装 node.js
http://nodejs.org
node -v 查看版本
2, 安装 npm
可以先从 https://github.com/isaacs/npm/tags 下载 源码 解压到
- java封装的比较器,比较是否全相同,获取不同字段名字
qifeifei
非常实用的java比较器,贴上代码:
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import net.sf.json.JsonConfig;
i
- 记录一些函数用法
.Aky.
位运算PHP数据库函数IP
高手们照旧忽略。
想弄个全天朝IP段数据库,找了个今天最新更新的国内所有运营商IP段,copy到文件,用文件函数,字符串函数把玩下。分割出startIp和endIp这样格式写入.txt文件,直接用phpmyadmin导入.csv文件的形式导入。(生命在于折腾,也许你们觉得我傻X,直接下载人家弄好的导入不就可以,做自己的菜鸟,让别人去说吧)
当然用到了ip2long()函数把字符串转为整型数
- sublime text 3 rust
wudixiaotie
Sublime Text
1.sublime text 3 => install package => Rust
2.cd ~/.config/sublime-text-3/Packages
3.mkdir rust
4.git clone https://github.com/sp0/rust-style
5.cd rust-style
6.cargo build --release
7.ctrl