Right-clicking a file will give you the option to open the file with Atom. Run this batch file to add the same feature to folders and their backgrounds.
@echo off | |
net session > nul 2>&1 | |
if /i not %errorlevel%==0 ( | |
echo You must run this from an elevated prompt. | |
goto:eof | |
) | |
call :setreg "HKCR\Directory\shell\runas" | |
call :setreg "HKCR\Directory\Background\shell\runas" |
Each file in this Gist is a different method of checking whether a string is an ECMAScript 5.1 identifier.
Each method consists of four data structures representing classes of Unicode characters. There are two main categories of data structures: letters and other characters. Identifiers must start with a character from the letters category (also $
or _
), then they may optionally be followed by zero or more characters from the others category.
Each category has two sub-categories: singles and ranges. The singles are characters that only have zero or one adjacent characters within the same class according to their code point values. Every pair of characters in the ranges category compose a set of consecutive characters within the same class according to their code point values.
So, if composed to regular expressions, the categories resemble this:
JSON5.stringify
produces a String that conforms to the following JSON5 grammar.
JSON5.parse
accepts a String that conforms to the JSON5 grammar.
[JSON5][json] is similar to [ECMAScript][ecmascript] source text in that it consists of a sequence of characters conforming to the rules of
> git reset --hard <commit> | |
> git rebase -i upstream/<branch> | |
> git push -f origin <branch> |
Compares Douglas Crockford's json_parse.js
method vs his json_parse_state.js
method vs Zach Carter's jsonlint
using short JSON documents.
http://jsperf.com/json-parse-vs-json-parse-state-short
Compares Douglas Crockford's json_parse.js
method vs his json_parse_state.js
method vs Zach Carter's jsonlint
using a long JSON document.
var identifierStart = /[$A-Z_\xaa\xba\xc0-\xd6\xd8-\xdf\u0100\u0102\u0104\u0106\u0108\u010a\u010c\u010e\u0110\u0112\u0114\u0116\u0118\u011a\u011c\u011e\u0120\u0122\u0124\u0126\u0128\u012a\u012c\u012e\u0130-\u0132\u0134\u0136\u0138\u0139\u013b\u013d\u013f\u0141\u0143\u0145\u0147\u0149\u014a\u014c\u014e\u0150\u0152\u0154\u0156\u0158\u015a\u015c\u015e\u0160\u0162\u0164\u0166\u0168\u016a\u016c\u016e\u0170\u0172\u0174\u0176\u0178\u0179\u017b\u017d\u017f\u0181\u0182\u0184\u0186\u0187\u0189-\u018b\u018d-\u0191\u0193\u0194\u0196-\u0198\u019b-\u019d\u019f\u01a0\u01a2\u01a4\u01a6\u01a7\u01a9-\u01ac\u01ae\u01af\u01b1-\u01b3\u01b5\u01b7\u01b8\u01ba-\u01bc\u01be\u01c0-\u01c4\u01c7\u01ca\u01cd\u01cf\u01d1\u01d3\u01d5\u01d7\u01d9\u01db\u01de\u01e0\u01e2\u01e4\u01e6\u01e8\u01ea\u01ec\u01ee\u01f0\u01f1\u01f4\u01f6-\u01f8\u01fa\u01fc\u01fe\u0200\u0202\u0204\u0206\u0208\u020a\u020c\u020e\u0210\u0212\u0214\u0216\u0218\u021a\u021c\u021e\u0220-\u0222\u0224\u0226\u0228\u022a\u022c\u022e\u0230\u0232\u0234-\u023b\u023d\u023e\u0241\u0 |
var stringify = function(value, replacer, space) { | |
var stack = []; | |
var indent = ''; | |
var propertyList; | |
var replacerFunction; | |
if(typeof replacer === 'function') { | |
replacerFunction = replacer; | |
} else if(replacer instanceof Array) { | |
propertyList = []; |
apm rm autocomplete-paths | |
git clone https://github.com/jordanbtucker/autocomplete-paths | |
cd autocomplete-paths | |
apm install | |
apm ln |
Active Connections | |
Proto Local Address Foreign Address State PID | |
TCP 0.0.0.0:25 0.0.0.0:0 LISTENING 1272 | |
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 728 | |
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4 | |
TCP 0.0.0.0:1080 0.0.0.0:0 LISTENING 8184 | |
TCP 0.0.0.0:1433 0.0.0.0:0 LISTENING 1500 | |
TCP 0.0.0.0:3389 0.0.0.0:0 LISTENING 2828 |