This is a maintained listing of all the different ways to debug and profile Node.js applications. If there is something missing or an improvement, post a comment! :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log = console.log; | |
var c = function(){}; | |
c.create = function( Config ){ | |
var newFn = function(){ | |
//return newFn; | |
}; | |
newFn.prototype = new c; | |
var fn = c.prototype; | |
for (var i in Config) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var log = console.log; | |
//泳衣格式化代码的正则表达式 | |
var reg = { | |
DoubleQuotedString : new RegExp('"(?:\\.|(\\\\\\")|[^\\""\\n])*"','g'),//双引号字符串 | |
SingleQuotedString : new RegExp("'(?:\\.|(\\\\\\')|[^\\''\\n])*'",'g'),//单引号字符串 | |
Chars : new RegExp('([(=[{])','g'),//需用空格隔开的字符(用以逻辑判断代码规则) | |
Empty : new RegExp('[ ]+','g'),//空字符 | |
MultiLineCComments : new RegExp('/\\*[\\s\\S]*?\\*/', 'gm'),//多行注释 | |
SingleLineCComments : new RegExp('//.*$', 'gm'),//单行注释 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.*; | |
import java.awt.event.*; | |
import javax.swing.*; | |
import java.awt.datatransfer.*; | |
import java.io.*; | |
public class myEditor extends JFrame { | |
String filename; | |
JTextArea tx; | |
Clipboard clip = getToolkit().getSystemClipboard(); | |
myEditor() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#script extraido de: http://paulocassiano.wordpress.com/2008/08/29/deixando-o-gedit-com-a-cara-do-textmate/ | |
#tip for better "resolution" here: http://blog.siverti.com.br/2008/05/22/fonte-monaco-no-ubuntugedit/ | |
cd /usr/share/fonts/truetype/ | |
#TODO: put validation if folder already exists | |
sudo mkdir ttf-monaco |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
([0-9])[ ]+\.[ ]+([0-9]) | |
$1\.$2 | |
[①-⑳] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Full Line Selection 选择文本是否根据文本内容进行描边 | |
Highlight Active Line 是否高亮所选行 | |
Show Invisibles 显示空格、Tab、回车等不可见符号 | |
Show Indent Guides 显示缩进对齐线 | |
Persistent HScroll 是否保持水平滚动条的显示 | |
Animate scrolling 滚动动画,比如查找时的跳跃 | |
Show Gutter 显示左栏行标 | |
Show Print Margin 显示打印边界线,超过就溢出打印范围 | |
Use Soft Tab 软Tab,即用4个空格体态\t | |
Highlight selected word 提醒显示和所选单词类似的词 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"spec name": "CSS Animations", | |
"uri": "http://www.w3.org/TR/css3-animations", | |
"category": "css-property", | |
"Name": "animation-name", | |
"Value": "<single-animation-name> [\n ‘,’ <single-animation-name> ]*", | |
"Initial": "‘none’", | |
"Applies To": "all elements, ::before and ::after pseudo-elements", | |
"Inherited": "no", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var KEYWORDS = "abstract,boolean,byte,char,double,final,float,goto,implements,int,interface,long,native,package,private,protected,public,short,static,synchronized,throws,transient,volatile,arguments,let,yield"; | |
var NO_VAR_KEYWORDS={}; | |
var REMOVE_RE = /\/\*(?:.|\n)*?\*\/|\/\/[^\n]*\n|\/\/[^\n]*$|'[^']*'|"[^"]*"|[\s\t\n]*\.[\s\t\n]*[$\w\.]+/g; | |
var SPLIT_RE = /[^\w$]+/g; | |
var KEYWORDS_RE = new RegExp(["\\b" + KEYWORDS.replace(/,/g, '\\b|\\b') + "\\b"].join('|'), 'g'); | |
var NUMBER_RE = /\b\d[^,]*/g; | |
var BOUNDARY_RE = /^,+|,+$/g; | |
var getVariables = function(code) { | |
code = code | |
.replace(REMOVE_RE, '') |
Gaubee[email protected] 23:42:43
@管理员
需要一份群规。
还有,问问题 的话,我觉得现在国内git-osc这个git平台就不错,上面的issue就是一个十分优秀的问答平台,和Github一样,贴代码什么的高亮也方便。访问速度快。 搜索、上标签等等功能一应俱全,干嘛非要用QQ这种及时通讯来讨论低质量的话题。 时效性是QQ的优势,但难免失去了发问的质量与回答的方式,经常很多问题同时在群上提出。 也因为QQ的特性,很多优秀的问题在设备上不同步、不方便查找导致一直在重复的发问。 QQ可以作为一个召集的平台,但不应该是发问与回答的平台。
OlderNewer