Skip to content

Instantly share code, notes, and snippets.


Frej Norling frejnorling

View GitHub Profile
View frej-dev-conemu-config.xml
<?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 / jslinebreakparser.js
Last active Sep 23, 2015
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.
View jslinebreakparser.js
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");