Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
parse5=(parse5 https://github.com/inikulin/parse5 1)
html=(html https://github.com/whatwg/html 0)
tests=(html5lib-tests https://github.com/html5lib/html5lib-tests 0)
htmlbuild=(html-build https://github.com/whatwg/html-build 0)
update() {
local init=1
local repo=(${!1})
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
fontFamily: '"Meslo LG M", Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
@inikulin
inikulin / parseForgiving.js
Last active July 25, 2016 13:03
"Forgiving" parsing module for the parse5
// Setup:
// > npm install parse5
// > npm install void-elements
// Usage:
// var parseFragmentForgiving = require('this-module-path');
// var fragment = parseFragmentForgiving(html, [TreeAdapter]);
var parse5 = require('parse5');
var voidElements = require('void-elements');
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Grunt" type="NodeJSConfigurationType" factoryName="Node.js" path-to-node="C:/Program Files/nodejs/node" path-to-js-file="$USER_HOME$/AppData/Roaming/npm/node_modules/grunt-cli/bin/grunt" application-parameters="--stack" working-dir="$PROJECT_DIR$">
<RunnerSettings RunnerId="NodeJS.debug" />
<RunnerSettings RunnerId="NodeJS.run" />
<ConfigurationWrapper RunnerId="NodeJS.debug" />
<ConfigurationWrapper RunnerId="NodeJS.run" />
<method />
</configuration>
</component>