Skip to content

Instantly share code, notes, and snippets.

View frejnorling's full-sized avatar

Frej Norling frejnorling

View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2019-11-11 19:59:34" build="180626">
<value name="Language" type="string" data="en"/>
<value name="StartType" type="hex" data="02"/>
<value name="CmdLine" type="string" data=""/>
<value name="StartTasksFile" type="string" data=""/>
<value name="StartTasksName" type="string" data="{Hacker}"/>
<value name="StartFarFolders" type="hex" data="00"/>
@frejnorling
frejnorling / jslinebreakparser.js
Last active September 23, 2015 09:46
Javascript function to convert a string into an object incliding an array of items for each linebreak in the string. It removes bulletpoints and numbers from formatting.
function parseTextToItems(value) {
var text = value.trim();
// Remove multiple linebreak.
var match = /\r\n/.test(text);
if (match == -1) {
//windows line breaks
text = text.replace(/\r\n+/g, "\r\n");