- sublime-text(格式化JSON数据)
!Mortal
H5html5sublimetext
1、《PrettyJSON》--sublime_text中使用PrettyJSON插件>>>开发少不了要对接口返回的数据进行格式化处理,平时一般都是将要格式化的数据放到某些在线格式化网页中处理,但是网络环境不好加载很慢的情况下,想必会吐血,所以开发工具的一些插件就很人性化。平时都是用Notepad分析数据,也是能满足日常使用。>>>输入命令Ctrl+Shift+P打开搜索面板,然后输入PC(Pac
- Mac上安装sublime-text,无法使用package control,是因为你缺少这两个文件
xukang919
由于packagecontrol官网被墙,导致无法在线安装packagecontrol,使得安装插件变得不再简单直接。但是我们可以选择手动安装,其实也就需要下面两个文件:Xnip2019-04-17_23-24-50.jpg有了这两个文件,很容易安装成功,需要的小伙伴可以留言哦!
- Linux系统用于日常办公的可行方案
lggirls
linux运维服务器
这两天,我将我的主要工作PC,新增了一块旧的32G容量的SSD硬盘,安装了Debian12+Gnome43桌面环境,并安装了麒麟版的微信2.1.1,钉钉的Linux版,Microsoft-Edge浏览器,Sublime-text文本编辑软件,以及LibreOffice7.5.3,基本上满足了日常需要。当然,还有QQ的Linux版,不过我们基本不用QQ,也就没有费事了。尝试过用Wine8.0.1安装
- sublime-text 插件推荐(持续更新)
FluenceYHL
安装1.Windows便携版exe版2.Linuxcurl-Ohttps://download.sublimetext.com/sublimehq-pub.gpg&&sudopacman-key--addsublimehq-pub.gpg&&sudopacman-key--lsign-key8A8F901A&&rmsublimehq-pub.gpgecho-e"\n[sublime-text]\n
- sublime-text 环境配置(持续更新)
FluenceYHL
C++、C环境配置Attention以下皆为单文件编译运行,多文件联合需要makefile(后续更新)插件推荐1.Windows首先安装C、C++编译器。较为自由的有以GNU为代表的gcc和g++。windows上没有GNU,但是有MinGW(全称MinimalistGNUonWindows),是GNU在windows上的版本。安装途径:官网DevC++默认使用MinGW(打开所在路径->devC
- 用xampp搭建PHP运行环境(一)
大三的土狗
php开发语言后端apachemysql
所需软件:集成开发环境xampp+dw(因为我们老师给我们上课所用的开发工具是xampp+dw,当然也可以选择其他的,像sublime-text,phpstrom等等,今天主要来安装配置xampp)。XAMPP(Apache+MySQL+PHP+PERL)是一个功能强大的建站集成软件包。xampp下载:https://www.apachefriends.org/index.html也可以从我分享的
- python-安装sublime遇到异常
书生_Scholar
(base)gs@ubuntu16:~$sudosnapinstallsublime-texterror:Thisrevisionofsnap"sublime-text"waspublishedusingclassicconfinementandthusmayperformarbitrarysystemchangesoutsideofthesecuritysandboxthatsnapsareus
- sublime-text,在终端运行g++的build system(win+ubuntu+macOS)
不知名小号
每次重装的时候都要上网去找buildsystem,不如就记下来吧。步骤:打开subblimetext选择"tools->buildsystem->newbuildsystem"\然后根据系统不同把下面的代码占到新的buildsystem里Ctrl+S另存为g++.sublime-build(一般会默认给你选好路径)运行的时候,Ctrl+shift+B6.先选择g++编译再次Ctrl+shift+B
- sublime-text 自定义快捷键方法
jjvein
工具tools
最近一直使用sublime进行项目的开发.经常忘记一些常用的快捷键.特别头疼.有时候还会感觉有些快捷键用着不是很顺手.于是就自己捣鼓着如何来自己定义自己的快捷键..其实每个人的习惯都有所不同,所以我不喜欢看网上的那些所谓的快捷键大全什么的..你看一遍,你能记住多少?首先要说明下在哪里定义我们的快捷键.打开sublimetext-->preferences我们能够看到两个选项.KeyBindings
- linux下安装sublime的几种方法
御宇乘风
Qt
linux下安装sublime的几种方法2016.10.2620:46:12字数364阅读7806转自:http://blog.csdn.net/u011982340/article/details/45843413一.通过PackageManager(apt-get)Sublime-Text-2:sudoadd-apt-repositoryppa:webupd8team/sublime-text
- ubuntu14, nautilus , terminal , sublime-text 的快捷键
CaiYe_csdn
菜鸟起飞ubuntuterminal快捷键
这些快捷键只能保证在ubuntu14下全部正常工作:ubuntu快捷键:alt+tab:切换窗口alt:显示菜单alt+F7:移动窗口alt+F8:调整窗口大小alt+鼠标:拖动窗口ctrl+win+D:显示桌面ctrl+N:打开一个新的窗口/sublime中新建一个空白文件win+L:锁屏Nautilus:ctrl+N:新开一个窗口ctrl+H:开关显示隐藏的文件ctrl+shift+N:新建文
- Visual Studio 2017 的 Sublime-Text 高亮风格
Ada Chambers
最近装了visualstudio2017comunity版(买不起professional),然后觉得代码风格恶心的一逼,于是想办法把它改了。sublime的风格我觉得很美丽,于是就写了一发。这是改风格前的效果,惨不忍睹:这是改风格之后的:真的要把人美哭了!弄得我恨不得天天看到这漂亮的代码,天天敲代码。。。下面放正版sublime-text3的风格(同一份代码):很明显sublime的风格有点花哨
- 回忆H5小白入门的第一天(使用sublime-text)
CSDN_GMC
H5基础
回忆小白第一天的零零碎碎一.打开编辑器Sublime-Text二.当时印象比较深的style和img三.加入图片四.图片重复加入排列五.所遇到的其他问题一.打开编辑器Sublime-Text最开始使用的编辑器是sublime-text(之后又换了好几个其他编辑器),浏览器用的是谷歌(chrome)浏览器。第一次使用编辑器没啥概念,照着老师步骤一步一步傻瓜输入哈哈哈输入html按下tab键Ctrl+
- 关于Sublime Text 3
shilei22
Web前端
[size=medium][url=http://www.cnblogs.com/bananaplan/p/Sublime-Text-3-Powerful.html]SublimeText3绝对神器[/url][url]https://github.com/jikeytang/sublime-text[/url]关于Emmet:[url]http://www.w3cplus.com/tools/u
- Sublime-text markdown with Vim mode and auto preview
weixin_33991727
说明最近看到markdown相关的东西,被其书写方式吸引,其实以前就在找这种类似的工具,但是也没找到,由于习惯了Vim,可Vim不支持markdown预览,这点可能不是很好,于是找到Sublime-text作为底板,用Vim模式编辑。参考文章使用SublimeText作为Markdown编辑器Sublime下配置vim模式Sublime-textPackageControlInstallation
- sublime-text的强烈推荐插件
Allen_Kao
SublimeText
ubuntu安装sublimetext2:输入一下语句即可:sudoadd-apt-repositoryppa:webupd8team/sublime-text-2sudoapt-getupdatesudoapt-getinstallsublime-text#ordevversion#sudoapt-getinstallsublime-text-devsublime-text的强烈推荐插件如果说N
- Ubuntu安装sublime-text
Learning Not End
Linux学习之旅
1在sublime官网中下载sublime的安装包,是一个.bar.bz2的包2解压,解压后就是安装的包,你可以解压到你想安装的目录。一般在/opt/目录下3将sublime的sublime_text.desktop复制/移动到/usr/share/applications下4更改.desktop文件,这个文件一般没有Icon,和Encoding选项,手动添加Icon=/opt/sublime_t
- sublime-text的package control 无法安装插件
sforiz
Windows
sublimetext的packagecontrol无法安装插件,提示PackageControl:Therearenopackagesavailableforinstallations.可使用代理或修改配置。修改配置解决方法:[PackageControl.sublime-settings]修改方法:Preferences>PackageSettings>PackageControl>Setti
- Web开发者的Sublime-text插件
深山问
SublimeText是一款强大的跨平台开发工具,同时由于其强大的插件扩展性,在多语言编程中变成得心应手的应用。EmmetHTML-CSS-JSPrettifySublimeCodeIntel代码自动补全工具,支持的语言挺多的JavaScriptCompletionsJavaScript代码自动提示工具ColorHighlighter颜色高亮工具,自动显示代码所显示的颜色,!ViewInBrows
- Sublime Text Mac 破解版 – 高级代码编辑器
风_痕
SublimeTextMac破解版应用介绍SublimeTextMac版是一款macOS系统上高级代码编辑器,具有代码高亮、语法提示、自动完成且反应快速的编辑器软件,拥有漂亮的用户界面和非凡的功能,例如Python的插件,代码段等等,完全可自定义键,菜单和工具栏。不仅仅是一款代码编辑神器,还是HTML和散文码字中最好用的文本编辑器。https://lication.xyz/sublime-text
- 解决Ubuntu中sublime-text的中文输入问题
俊鹏被凤梨酥噎到
很多朋友有跟我一样的问题那么问题应该如何解决呢?其实很简单,我们一步一步来说:1.sublime-text解决中文问题2.另一种sublime_imfix.c的解决方式1.保存下面代码到文件sublime_imfix.c#includevoidgtk_im_context_set_client_window(GtkIMContext*context,GdkWindow*window){GtkIMC
- How to make Sublime-Text build with Python3 in Unix
yingshaoxo
1."Preferences"-->"Settings"openanewwindow,then"Tools"-->"Buildsystem"-->"NewBuildSystem"2.Putthisin:{"cmd":["/usr/bin/python3","-u","$file"],"file_regex":"^[]*File\"(...*?)\",line([0-9]*)","selector"
- sublime-text中如何编译运行c语言
masakakaikai
.sublime-build文件{"cmd":["gcc","$file_name","-o","${file_base_name}","&&","${file_base_name}"],"selector":"source.c","shell":true,"working_dir":"${file_path}"}可以参考:http://www.thefourtheye.in/2013/07/Co
- 安装使用配置 Sublime Text 3
冻皮
安装使用2.1启动2.2注册2.3快捷键配置1.安装SublimeText3可以在官网下载安装,也可以在archlinuxcn源里面安装,此软件为收费软件,可试用。官网:https://www.sublimetext.com/3购买地址:https://www.sublimetext.com/buy?v=3#pacman-Sssublime-textarchlinuxcn/sublime-text
- ubuntu安装sublime-text(官方教程)
超效率
下载密钥wilson@ubuntu:~$wget-qO-https://download.sublimetext.com/sublimehq-pub.gpg|sudoapt-keyadd-[sudo]passwordforwilson:OK安装httpswilson@ubuntu:~$sudoapt-getinstallapt-transport-httpsReadingpackagelists.
- sublime当中创建自定义代码段
也许会了
在sublime-text当中,如果文件类型为HTML时,当输入!或html:5之后,再键入Tab键即可生成默认的基本骨架的代码段。我们也可以在基本骨架上修改出我们常用的一些自定义代码段,保存之后,下次需要使用时,我们用指定的快捷键也可以快速生成。下面由sublimetext栏目给大家介绍在sublime当中创建自定义代码段的步骤。1、生成基本骨架打开sublime之后,新建一个文件,确保把右下角
- IDE的选择,Sublime-Text必备插件
Freedom_Coco
IDE的选择,SublimeText必备插件工欲善其事必先利其器。一个好的编辑器,对开发来说,那绝对是很有关系的,直接影响了开发人员的心情跟效率。采用SublimeText3是因为它好用。安装简单,包体小。编写HTML、JavaScript可以安装如下的插件,来便于开发:http://www.cocoachina.com/webapp/20160229/15438.html必安装的主题是:mate
- React入门(个人学习笔记)
masami269981
运行环境Node.jsReact库sublime-text创建一个React项目在workspace目录下打开cmd窗口,依次输入:create-react-appreact-demo(react-demo项目名)
cdreact-demo
npminstall
npmstart//运行
运行成功,弹出react-demo的欢迎页面.代码进入react-demo/src目录,以下是注释:自动
- Mac 上SublimeText 如何编写运行 python3
xukang919
SublimeText配置python环境1、打开sublime-text选择语法python,编写简单的helloworldimage2、配置python环境image3、这时会打开一个默认的配置文件image4、删除原有内容,将下面代码赋值粘贴到文件中,并保存。路径不变,命名为Python3.sublime-build.{"cmd":["/Library/Frameworks/Python.f
- 2019-04-17 linux系统中如何查看源中某个包有多少个版本?
黄昭鸿
linux系统中如何查看源中某个包有多少个版本?apt-cachesearchsublime-text//搜索sublime-text包apt-cachepolicysublime-text//列出sublime-text的所有来源apt-cachemadisonsublime-text//列出sublime-text的所有来源apt-cacheshowpkgsublime-text//列出sub
- Enum 枚举
120153216
enum枚举
原文地址:http://www.cnblogs.com/Kavlez/p/4268601.html Enumeration
于Java 1.5增加的enum type...enum type是由一组固定的常量组成的类型,比如四个季节、扑克花色。在出现enum type之前,通常用一组int常量表示枚举类型。比如这样:
public static final int APPLE_FUJI = 0
- Java8简明教程
bijian1013
javajdk1.8
Java 8已于2014年3月18日正式发布了,新版本带来了诸多改进,包括Lambda表达式、Streams、日期时间API等等。本文就带你领略Java 8的全新特性。
一.允许在接口中有默认方法实现
Java 8 允许我们使用default关键字,为接口声明添
- Oracle表维护 快速备份删除数据
cuisuqiang
oracle索引快速备份删除
我知道oracle表分区,不过那是数据库设计阶段的事情,目前是远水解不了近渴。
当前的数据库表,要求保留一个月数据,且表存在大量录入更新,不存在程序删除。
为了解决频繁查询和更新的瓶颈,我在oracle内根据需要创建了索引。但是随着数据量的增加,一个半月数据就要超千万,此时就算有索引,对高并发的查询和更新来说,让然有所拖累。
为了解决这个问题,我一般一个月会进行一次数据库维护,主要工作就是备
- java多态内存分析
麦田的设计者
java内存分析多态原理接口和抽象类
“ 时针如果可以回头,熟悉那张脸,重温嬉戏这乐园,墙壁的松脱涂鸦已经褪色才明白存在的价值归于记忆。街角小店尚存在吗?这大时代会不会牵挂,过去现在花开怎么会等待。
但有种意外不管痛不痛都有伤害,光阴远远离开,那笑声徘徊与脑海。但这一秒可笑不再可爱,当天心
- Xshell实现Windows上传文件到Linux主机
被触发
windows
经常有这样的需求,我们在Windows下载的软件包,如何上传到远程Linux主机上?还有如何从Linux主机下载软件包到Windows下;之前我的做法现在看来好笨好繁琐,不过也达到了目的,笨人有本方法嘛;
我是怎么操作的:
1、打开一台本地Linux虚拟机,使用mount 挂载Windows的共享文件夹到Linux上,然后拷贝数据到Linux虚拟机里面;(经常第一步都不顺利,无法挂载Windo
- 类的加载ClassLoader
肆无忌惮_
ClassLoader
类加载器ClassLoader是用来将java的类加载到虚拟机中,类加载器负责读取class字节文件到内存中,并将它转为Class的对象(类对象),通过此实例的 newInstance()方法就可以创建出该类的一个对象。
其中重要的方法为findClass(String name)。
如何写一个自己的类加载器呢?
首先写一个便于测试的类Student
- html5写的玫瑰花
知了ing
html5
<html>
<head>
<title>I Love You!</title>
<meta charset="utf-8" />
</head>
<body>
<canvas id="c"></canvas>
- google的ConcurrentLinkedHashmap源代码解析
矮蛋蛋
LRU
原文地址:
http://janeky.iteye.com/blog/1534352
简述
ConcurrentLinkedHashMap 是google团队提供的一个容器。它有什么用呢?其实它本身是对
ConcurrentHashMap的封装,可以用来实现一个基于LRU策略的缓存。详细介绍可以参见
http://code.google.com/p/concurrentlinke
- webservice获取访问服务的ip地址
alleni123
webservice
1. 首先注入javax.xml.ws.WebServiceContext,
@Resource
private WebServiceContext context;
2. 在方法中获取交换请求的对象。
javax.xml.ws.handler.MessageContext mc=context.getMessageContext();
com.sun.net.http
- 菜鸟的java基础提升之道——————>是否值得拥有
百合不是茶
1,c++,java是面向对象编程的语言,将万事万物都看成是对象;java做一件事情关注的是人物,java是c++继承过来的,java没有直接更改地址的权限但是可以通过引用来传值操作地址,java也没有c++中繁琐的操作,java以其优越的可移植型,平台的安全型,高效性赢得了广泛的认同,全世界越来越多的人去学习java,我也是其中的一员
java组成:
- 通过修改Linux服务自动启动指定应用程序
bijian1013
linux
Linux中修改系统服务的命令是chkconfig (check config),命令的详细解释如下: chkconfig
功能说明:检查,设置系统的各种服务。
语 法:chkconfig [ -- add][ -- del][ -- list][系统服务] 或 chkconfig [ -- level <</SPAN>
- spring拦截器的一个简单实例
bijian1013
javaspring拦截器Interceptor
Purview接口
package aop;
public interface Purview {
void checkLogin();
}
Purview接口的实现类PurviesImpl.java
package aop;
public class PurviewImpl implements Purview {
public void check
- [Velocity二]自定义Velocity指令
bit1129
velocity
什么是Velocity指令
在Velocity中,#set,#if, #foreach, #elseif, #parse等,以#开头的称之为指令,Velocity内置的这些指令可以用来做赋值,条件判断,循环控制等脚本语言必备的逻辑控制等语句,Velocity的指令是可扩展的,即用户可以根据实际的需要自定义Velocity指令
自定义指令(Directive)的一般步骤
&nbs
- 【Hive十】Programming Hive学习笔记
bit1129
programming
第二章 Getting Started
1.Hive最大的局限性是什么?一是不支持行级别的增删改(insert, delete, update)二是查询性能非常差(基于Hadoop MapReduce),不适合延迟小的交互式任务三是不支持事务2. Hive MetaStore是干什么的?Hive persists table schemas and other system metadata.
- nginx有选择性进行限制
ronin47
nginx 动静 限制
http {
limit_conn_zone $binary_remote_addr zone=addr:10m;
limit_req_zone $binary_remote_addr zone=one:10m rate=5r/s;...
server {...
location ~.*\.(gif|png|css|js|icon)$ {
- java-4.-在二元树中找出和为某一值的所有路径 .
bylijinnan
java
/*
* 0.use a TwoWayLinkedList to store the path.when the node can't be path,you should/can delete it.
* 1.curSum==exceptedSum:if the lastNode is TreeNode,printPath();delete the node otherwise
- Netty学习笔记
bylijinnan
javanetty
本文是阅读以下两篇文章时:
http://seeallhearall.blogspot.com/2012/05/netty-tutorial-part-1-introduction-to.html
http://seeallhearall.blogspot.com/2012/06/netty-tutorial-part-15-on-channel.html
我的一些笔记
===
- js获取项目路径
cngolon
js
//js获取项目根路径,如: http://localhost:8083/uimcardprj
function getRootPath(){
//获取当前网址,如: http://localhost:8083/uimcardprj/share/meun.jsp
var curWwwPath=window.document.locati
- oracle 的性能优化
cuishikuan
oracleSQL Server
在网上搜索了一些Oracle性能优化的文章,为了更加深层次的巩固[边写边记],也为了可以随时查看,所以发表这篇文章。
1.ORACLE采用自下而上的顺序解析WHERE子句,根据这个原理,表之间的连接必须写在其他WHERE条件之前,那些可以过滤掉最大数量记录的条件必须写在WHERE子句的末尾。(这点本人曾经做过实例验证过,的确如此哦!
- Shell变量和数组使用详解
daizj
linuxshell变量数组
Shell 变量
定义变量时,变量名不加美元符号($,PHP语言中变量需要),如:
your_name="w3cschool.cc"
注意,变量名和等号之间不能有空格,这可能和你熟悉的所有编程语言都不一样。同时,变量名的命名须遵循如下规则:
首个字符必须为字母(a-z,A-Z)。
中间不能有空格,可以使用下划线(_)。
不能使用标点符号。
不能使用ba
- 编程中的一些概念,KISS、DRY、MVC、OOP、REST
dcj3sjt126com
REST
KISS、DRY、MVC、OOP、REST (1)KISS是指Keep It Simple,Stupid(摘自wikipedia),指设计时要坚持简约原则,避免不必要的复杂化。 (2)DRY是指Don't Repeat Yourself(摘自wikipedia),特指在程序设计以及计算中避免重复代码,因为这样会降低灵活性、简洁性,并且可能导致代码之间的矛盾。 (3)OOP 即Object-Orie
- [Android]设置Activity为全屏显示的两种方法
dcj3sjt126com
Activity
1. 方法1:AndroidManifest.xml 里,Activity的 android:theme 指定为" @android:style/Theme.NoTitleBar.Fullscreen" 示例: <application
- solrcloud 部署方式比较
eksliang
solrCloud
solrcloud 的部署其实有两种方式可选,那么我们在实践开发中应该怎样选择呢? 第一种:当启动solr服务器时,内嵌的启动一个Zookeeper服务器,然后将这些内嵌的Zookeeper服务器组成一个集群。 第二种:将Zookeeper服务器独立的配置一个集群,然后将solr交给Zookeeper进行管理
谈谈第一种:每启动一个solr服务器就内嵌的启动一个Zoo
- Java synchronized关键字详解
gqdy365
synchronized
转载自:http://www.cnblogs.com/mengdd/archive/2013/02/16/2913806.html
多线程的同步机制对资源进行加锁,使得在同一个时间,只有一个线程可以进行操作,同步用以解决多个线程同时访问时可能出现的问题。
同步机制可以使用synchronized关键字实现。
当synchronized关键字修饰一个方法的时候,该方法叫做同步方法。
当s
- js实现登录时记住用户名
hw1287789687
记住我记住密码cookie记住用户名记住账号
在页面中如何获取cookie值呢?
如果是JSP的话,可以通过servlet的对象request 获取cookie,可以
参考:http://hw1287789687.iteye.com/blog/2050040
如果要求登录页面是html呢?html页面中如何获取cookie呢?
直接上代码了
页面:loginInput.html
代码:
<!DOCTYPE html PUB
- 开发者必备的 Chrome 扩展
justjavac
chrome
Firebug:不用多介绍了吧https://chrome.google.com/webstore/detail/bmagokdooijbeehmkpknfglimnifench
ChromeSnifferPlus:Chrome 探测器,可以探测正在使用的开源软件或者 js 类库https://chrome.google.com/webstore/detail/chrome-sniffer-pl
- 算法机试题
李亚飞
java算法机试题
在面试机试时,遇到一个算法题,当时没能写出来,最后是同学帮忙解决的。
这道题大致意思是:输入一个数,比如4,。这时会输出:
&n
- 正确配置Linux系统ulimit值
字符串
ulimit
在Linux下面部 署应用的时候,有时候会遇上Socket/File: Can’t open so many files的问题;这个值也会影响服务器的最大并发数,其实Linux是有文件句柄限制的,而且Linux默认不是很高,一般都是1024,生产服务器用 其实很容易就达到这个数量。下面说的是,如何通过正解配置来改正这个系统默认值。因为这个问题是我配置Nginx+php5时遇到了,所以我将这篇归纳进
- hibernate调用返回游标的存储过程
Supanccy2013
javaDAOoracleHibernatejdbc
注:原创作品,转载请注明出处。
上篇博文介绍的是hibernate调用返回单值的存储过程,本片博文说的是hibernate调用返回游标的存储过程。
此此扁博文的存储过程的功能相当于是jdbc调用select 的作用。
1,创建oracle中的包,并在该包中创建的游标类型。
---创建oracle的程
- Spring 4.2新特性-更简单的Application Event
wiselyman
application
1.1 Application Event
Spring 4.1的写法请参考10点睛Spring4.1-Application Event
请对比10点睛Spring4.1-Application Event
使用一个@EventListener取代了实现ApplicationListener接口,使耦合度降低;
1.2 示例
包依赖
<p