I hereby claim:
- I am davisml on github.
- I am davisml (https://keybase.io/davisml) on keybase.
- I have a public key ASDMbL0msi8uw1D4flyDmcbY7BeFHR7Afi6USLlMCHxTAwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| // Flattens an array of arbitrarily nested arrays | |
| function flattenArray(inputArray) { | |
| var flattenedArray = [] | |
| inputArray.forEach(function(value) { | |
| if (value instanceof Array) { | |
| // Concat the flattened value if it is an array | |
| flattenedArray = flattenedArray.concat(flatten(value)) | |
| } else { | |
| // Push the raw value |
| // AttributedString class from https://github.com/cohitre/attributedString.js | |
| // Modifications made to support html tags & remove span wrapper from unstyled blocks | |
| var AttributedString = (function () { | |
| var aString | |
| , StringRange | |
| , RangesList | |
| , HtmlSerializer | |
| , plainStringSerializer | |
| , _ = {} | |
| , entityMap = { |
Desired CSS Output
.gradientElement { background: #999; background: -webkit-gradient(linear, left top, left bottom, from(#ccc), to(#000)); background: -moz-linear-gradient(top, #ccc, #000); }
CSSJSON Input
| { | |
| "name": "operator-api", | |
| "version": "0.0.1-54", | |
| "author": "Mark Davis <[email protected]>", | |
| "description": "Socket server for Operator", | |
| "subdomain": "operator", | |
| "scripts": { | |
| "start": "./app.js" | |
| }, | |
| "repository": { |