Yanyg - Software Engineer

Test Everything

目录

1 Test Quote

Current status outline-toc works, more or less. You can open up the TOC and it'll stay synchronized with your master doc. It could certainly use some polish, though.

Right now this is known to work with markdown-mode, org-mode, and outline-mode files. It may work with others. I'd like it to work with restructured text, but there seem to be some problems there.

Caveat emptor, and a call to arms In my estimation, this is currently built on a bit of a hack. outline-toc relies on outline-hide-body to show the section headers of documents; it doesn't bring any extra magic to the mix. Maybe there are better approaches, and I'm certainly open to ideas, PRs, etc.

Similarly, the "sidebar" buffer is lifted wholesale from minimap. Many Emacs packages implement similar functionality, and it would be nice if there was a shared implementation of "sidebars". Maybe this is unrealistic for some reason, but if someone has a re-usable library for this functionality I'd be eager to try it.

2 Img

alan.turing.jpg

图1  Test Image

3 Test TODO DONE and PRIORITY

3.1 TODO Wait to do

Hello , item wait todo

git clone gitlab.com

3.2 DONE Finished work

Yes it's right.

4 [A] High Priority

4.1 [C] First Item

4.2 [B] Second Item

Table Yes
one 1

5 C code example   code c example

static bool raid0_make_request(struct mddev *mddev, struct bio *bio)
{
        struct strip_zone *zone;
        struct md_rdev *tmp_dev;
        sector_t bio_sector;
        sector_t sector;
        unsigned chunk_sects;
        unsigned sectors;

        if (unlikely(bio->bi_opf & REQ_PREFLUSH)) {
                md_flush_request(mddev, bio);
                return true;
        }

        if (unlikely((bio_op(bio) == REQ_OP_DISCARD))) {
                raid0_handle_discard(mddev, bio);
                return true;
        }

        bio_sector = bio->bi_iter.bi_sector;
        sector = bio_sector;
        chunk_sects = mddev->chunk_sectors;

        sectors = chunk_sects -
                (likely(is_power_of_2(chunk_sects))
                 ? (sector & (chunk_sects-1))
                 : sector_div(sector, chunk_sects));

        /* Restore due to sector_div */
        sector = bio_sector;

        if (sectors < bio_sectors(bio)) {
                struct bio *split = bio_split(bio, sectors, GFP_NOIO, mddev->bio_set);
                bio_chain(split, bio);
                generic_make_request(bio);
                bio = split;
        }

        zone = find_zone(mddev->private, &sector);
        tmp_dev = map_sector(mddev, zone, sector, &sector);
        bio_set_dev(bio, tmp_dev->bdev);
        bio->bi_iter.bi_sector = sector + zone->dev_start +
                tmp_dev->data_offset;

        if (mddev->gendisk)
                trace_block_bio_remap(bio->bi_disk->queue, bio,
                                disk_devt(mddev->gendisk), bio_sector);
        mddev_check_writesame(mddev, bio);
        mddev_check_write_zeroes(mddev, bio);
        generic_make_request(bio);
        return true;
}