Team Ai
Datasetpublic

Brunobkr/llama.cpp_AlgMor24_github

ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes3.1kdownloads
README.md189 linesDownload Raw Back to style-to-object
1# style-to-object2 3[![NPM](https://nodei.co/npm/style-to-object.png)](https://nodei.co/npm/style-to-object/)4 5[![NPM version](https://img.shields.io/npm/v/style-to-object)](https://www.npmjs.com/package/style-to-object)6[![NPM bundle size](https://img.shields.io/bundlephobia/minzip/style-to-object)](https://bundlephobia.com/package/style-to-object)7[![build](https://github.com/remarkablemark/style-to-object/actions/workflows/build.yml/badge.svg)](https://github.com/remarkablemark/style-to-object/actions/workflows/build.yml)8[![codecov](https://codecov.io/gh/remarkablemark/style-to-object/branch/master/graph/badge.svg?token=XWxph9dpa4)](https://codecov.io/gh/remarkablemark/style-to-object)9[![NPM downloads](https://img.shields.io/npm/dm/style-to-object)](https://www.npmjs.com/package/style-to-object)10 11Parse CSS inline style to JavaScript object:12 13```js14import parse from 'style-to-object';15 16parse('color: #C0FFEE; background: #BADA55;');17```18 19Output:20 21```js22{ color: '#C0FFEE', background: '#BADA55' }23```24 25[JSFiddle](https://jsfiddle.net/remarkablemark/ykz2meot/) | [Examples](https://github.com/remarkablemark/style-to-object/tree/master/examples)26 27## Installation28 29[NPM](https://www.npmjs.com/package/style-to-object):30 31```sh32npm install style-to-object --save33```34 35[Yarn](https://yarn.fyi/style-to-object):36 37```sh38yarn add style-to-object39```40 41[CDN](https://unpkg.com/style-to-object/):42 43```html44<script src="https://unpkg.com/style-to-object@latest/dist/style-to-object.min.js"></script>45<script>46  window.StyleToObject(/* string */);47</script>48```49 50## Usage51 52Import with ES Modules:53 54```js55import parse from 'style-to-object';56```57 58Require with CommonJS:59 60```js61const parse = require('style-to-object').default;62```63 64Parse single declaration:65 66```js67parse('line-height: 42');68```69 70Output:71 72```js73{ 'line-height': '42' }74```75 76Parse multiple declarations:77 78```js79parse(`80  border-color: #ACE;81  z-index: 1337;82`);83```84 85Output:86 87```js88{ 'border-color': '#ACE', 'z-index': '1337' }89```90 91Parse unknown declarations:92 93```js94parse('answer: 42;');95```96 97Output:98 99```js100{ 'answer': '42' }101```102 103Invalid declarations/arguments:104 105<!-- prettier-ignore-start -->106 107```js108parse(`109  top: ;110  right: 1em;111`); // { right: '1em' }112 113parse();        // null114parse(null);    // null115parse(1);       // null116parse(true);    // null117parse('top:');  // null118parse(':12px'); // null119parse(':');     // null120parse(';');     // null121 122parse('top'); // throws Error123parse('/*');  // throws Error124```125 126<!-- prettier-ignore-end -->127 128### Iterator129 130If the 2nd argument is a function, then the parser will return `null`:131 132```js133parse('color: #f00', () => {}); // null134```135 136But the function will iterate through each declaration:137 138<!-- prettier-ignore-start -->139 140```js141parse('color: #f00', (name, value, declaration) => {142  console.log(name);        // 'color'143  console.log(value);       // '#f00'144  console.log(declaration); // { type: 'declaration', property: 'color', value: '#f00' }145});146```147 148<!-- prettier-ignore-end -->149 150This makes it easy to customize the output:151 152```js153const style = `154  color: red;155  background: blue;156`;157const output = [];158 159function iterator(name, value) {160  output.push([name, value]);161}162 163parse(style, iterator);164console.log(output); // [['color', 'red'], ['background', 'blue']]165```166 167## Migration168 169### v1170 171Migrated to TypeScript. Iterator excludes `Comment`. CommonJS requires the `.default` key:172 173```js174const parse = require('style-to-object').default;175```176 177## Release178 179Release and publish are automated by [Release Please](https://github.com/googleapis/release-please).180 181## Special Thanks182 183- [inline-style-parser](https://github.com/remarkablemark/inline-style-parser)184- [Contributors](https://github.com/remarkablemark/style-to-object/graphs/contributors)185 186## License187 188[MIT](https://github.com/remarkablemark/style-to-object/blob/master/LICENSE)189 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai