Pipeline Architectures in C++: Overloaded Pipe Operator | and Its Monadic Operations
brief overview of what the poster reports on. Title: Pipeline architectures in C++: overloaded pipe operator | std::expected and its monadic operations Brief overview: Functional programming in thanks to the overloaded pipe operator. In this poster I show how to implement a custom pipeline framework that employs std::expected, available since C++23. An overloaded custom pipe operator | will be presented volume of my book about C++ [1][3]. One of the topics was to describe the behavior of the overloaded pipe operator | in std::ranges. I came across Ankur's Satle lecture [4] and decided to expand on this0 码力 | 3 页 | 422.24 KB | 5 月前3Learning Gulp
function() { return gulp.src('node_modules/angular/*.js') .pipe(concat('script.js')) .pipe(uglify()) .pipe(gulp.dest('Scripts')); }); //Not minified file gulp.task('packjs' task('packjs', function () { return gulp.src('node_modules/angular/*.js') .pipe(concat('allPackages.js')) .pipe(gulp.dest('Scripts')); }); gulp CLI docs Flags gulp has very few flags to know [plugin-name] --save • Function(glob) { $.src(glob).pipe([plugin 1]).pipe([plugin 2])....pipe([plugin n]).pipe( $.dest( ) } • $.task( , [dependencies] , 0 码力 | 45 页 | 977.19 KB | 1 年前3RxJS Tutorial
from 'rxjs' How to use operators in RxJS 6? pipe() method is available on the observable created. It is added to RxJS from version 5.5. Using pipe() now you can work on multiple operators together onwards, we have to use pipe() to execute the operator: Example import { from } from 'rxjs'; import { max } from 'rxjs/operators'; RxJS 14 from(list1).pipe(max((a,b)=>a-b)).subscribe(x also an observable. To work with operators we need a pipe() method. Example of using pipe() let obs = of(1,2,3); // an observable obs.pipe( operator1(), operator2(), operator3(),0 码力 | 106 页 | 1.56 MB | 1 年前3Gulp 入门指南
task('script', function() { // 1. 找到 gulp.src('js/*.js') // 2. 压缩 .pipe(uglify()) // 3. 另存 .pipe(gulp.dest('dist/js')); }); 代码执行结果 代码执行后文件结构 └── js/ │ └── a.js └── dist/ function() { // 1\. 找到文件 gulp.src('js/*.js') // 2\. 压缩文件 .pipe(uglify()) // 3\. 另存压缩后的文件 .pipe(gulp.dest('dist/js')) }) gulp.task(name, fn) - 定义任务,第一个参数是任务名,第二个参数是任务内容。 gulp.src(path) - 选择文件,传入参数是文件路径。 gulp.dest(path) - 输出文件 gulp.pipe() - 管道,你可以暂时将 pipe 理解为将操作加入执行队列 参考:gulp API文档 五、跳转至 五、跳转至 gulpfile.js gulpfile.js 所在目录 所在目录 打开命令行使用 cd 命令跳转至 gulpfile.js0 码力 | 36 页 | 275.87 KB | 1 年前3Angular 8 - Reviewed
............................................................................ 54 Creating custom pipe ................................................................................................. GMT+0530 (IST) Here, Date object is converted into easily readable format. Add Date pipe Let’s add date pipe in the above html file.Today's date :- {{presentDate | date }}see the below output: Today's date :- Jun 15, 2020 Parameters in Date We can add parameter in pipe using : character. We can show short, full or formatted dates using this parameter. Add the below0 码力 | 231 页 | 4.00 MB | 1 年前3The Node.js Handbook
Node.js Streams 9 44.1. What are streams 44.2. Why streams 44.3. An example of a stream 44.4. pipe() 44.5. Streams-powered Node.js APIs 44.6. Different types of streams 44.7. How to create a readable operating system decades ago, and programs can interact with each other passing streams through the pipe operator ( | ). For example, in the traditional way, when you tell the program to read a file, createServer((req, res) => { const stream = fs.createReadStream(`${__dirname}/data.txt`) stream.pipe(res) }) server.listen(3000) Instead of waiting until the file is fully read, we start streaming0 码力 | 161 页 | 1.66 MB | 1 年前3Expressive Compile-time Parsers
Parser auto pipe = "|"_lit >> ident >>= [](auto&& value) { return Pipe{ value.get_value() }; }; auto iterate = ":"_lit >>= [](auto) { return Iterate{}; }; auto extended_p = *(pipe | iterate | (iterate) { for (auto&& v : obj) { self(v, index.inc()); } } else if constexpr (pipe) { constexpr auto ident = pipe->m_Ident; /*… now what? ...*/ } }(obj, 0_idx);Reflect Value by Identifier constexpr auto extended_syntax_impl(auto&& obj){ /*...*/ else if constexpr (pipe) { constexpr auto ident = pipe->m_Ident; constexpr auto func = resolve_ident(ident_t()); /*...*/ 0 码力 | 134 页 | 1.73 MB | 5 月前3Pandoc User’s Guide (April 7, 2024)
character encoding for both input and output. If your local character encoding is not UTF-8, you should pipe input and output through iconv: iconv -t utf-8 input.txt | pandoc | iconv -f utf-8 Note that in short line length.$~$ Pipes A pipe transforms the value of a variable or partial. Pipes are specified using a slash (/) between the variable name (or partial) and the pipe name. Example: $for(name)$ $name/uppercase$ strict Markdown with footnotes enabled, while --from markdown-footnotes-pipe_tables is pandoc’s Mark- down without footnotes or pipe tables. The Markdown reader and writer make by far the most use of extensions0 码力 | 168 页 | 475.29 KB | 1 年前3BabelJS Tutorial
transform('babelify', { presets: ['env'] }) .bundle() .pipe(source('main.js')) .pipe(buffer()) .pipe(gulp.dest('dev/')); }); gulp.task('default', ['es6'],() => { transform('babelify', { presets: ['env'] }) .bundle() .pipe(source('main.js')) .pipe(buffer()) .pipe(gulp.dest('dev/')); }); We have used transform in which babelify is require("gulp-connect"); gulp.task('build', () => { gulp.src('src/./*.js') .pipe(babel()) .pipe(gulp.dest('./dev')) }); gulp.task('watch', () => { gulp.watch('./*.js', ['build']);0 码力 | 173 页 | 2.70 MB | 1 年前3《Redis使用手册》(试读版)
Redis(decode_responses=True) >>> pipe = client.pipeline(transaction=False) >>> pipe.set("msg", "hello world") Pipeline>> >>> pipe.incrby("pv_counter::12345" host=localhost,port=6379,db=0>>> >>> pipe.sadd("fruits", "apple", "banana", "cherry") Pipeline >> >>> pipe.execute() [True, 100, 3] 这段代码⾸先使⽤ pipeline() pipeline() ⽅法创建了⼀个流⽔线对象, 并将这个对象储存到了 pipe 变量⾥⾯ (pipeline() ⽅法中的 transaction=False 参数表示不在流⽔线中使⽤事务,这个参数的具体意义将在本章后续内容中说明)。 在此之后, 程序通过流⽔线对象分别调⽤了 set() ⽅法、 incrby() ⽅法和 sadd() ⽅法, 将这三个⽅法对应的命 令调⽤放⼊到了流⽔线队列⾥⾯。 最后, 0 码力 | 352 页 | 6.57 MB | 1 年前3
共 952 条
- 1
- 2
- 3
- 4
- 5
- 6
- 96