Skip to content

Instantly share code, notes, and snippets.

View jordanbtucker's full-sized avatar

Jordan Tucker jordanbtucker

View GitHub Profile
@jordanbtucker
jordanbtucker / json5-grammar.md
Last active August 29, 2015 14:04
JSON5 Lexical and Syntactic Grammar

The JSON5 Grammar

JSON5.stringify produces a String that conforms to the following JSON5 grammar. JSON5.parse accepts a String that conforms to the JSON5 grammar.

The JSON5 Lexical Grammar

[JSON5][json] is similar to [ECMAScript][ecmascript] source text in that it consists of a sequence of characters conforming to the rules of

@jordanbtucker
jordanbtucker / jsperf-tests.md
Last active August 29, 2015 14:04
jsPerf Tests

json_parse vs json_parse_state vs jsonlint (short)

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

json_parse vs json_parse_state vs jsonlint (long)

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.

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
@jordanbtucker
jordanbtucker / autocomplete-paths.sh
Last active March 23, 2016 18:42
Atom configuration
apm rm autocomplete-paths
git clone https://github.com/jordanbtucker/autocomplete-paths
cd autocomplete-paths
apm install
apm ln
@jordanbtucker
jordanbtucker / README.md
Last active March 31, 2016 18:04
Add an "Open with Atom" context menu to folders

Open directory in Atom

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.

@jordanbtucker
jordanbtucker / README.md
Last active March 31, 2016 18:05
Different ways to test for identifiers in JavaScript

Different ways to test for identifiers in JavaScript

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:

@jordanbtucker
jordanbtucker / stringify.js
Last active March 31, 2016 18:07
stringify functions
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 = [];
@jordanbtucker
jordanbtucker / es5-regexes.js
Last active March 31, 2016 18:07
Generate the regular expressions for ECMAScript 5.1 identifiers and whitespace
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

Buying a selling a vehicle in South Dakota

Information gathered from dor.sd.gov.

Selling a vehicle to a private party

The following steps must be completed if you are selling a vehicle to a private party, whether in-state or out-of-state.

Step 1. Obtain a seller’s permit from your county treasurer’s office or [online][1] so that the buyer has a permit to drive on upon the sale of the vehicle. You must have a valid SD ID in order to print the permit from the customer portal. There is no fee for the permit, and the seller's permit is valid for 30 days.

{
"extends": "standard",
"plugins": [
"standard",
"promise"
],
"env": {
"es6": true
},
"rules": {