BusyBird
    
    
  
  
  
view release on metacpan or search on metacpan
lib/BusyBird/Util.pm view on Meta::CPAN
Example:
    my $text = 'aaa --- bb ---- ccaa -- ccccc';
    my $entities = {
        a => [
            {indices => [0, 3],   url => 'http://hoge.com/a/1'},
            {indices => [18, 20], url => 'http://hoge.com/a/2'},
        ],
        b => [
            {indices => [8, 10], style => "bold"},
        ],
        c => [
            {indices => [16, 18], footnote => 'first c'},
            {indices => [24, 29], some => {complex => 'structure'}},
        ],
        d => []
    };
    my $segments = split_with_entities($text, $entities);
    
    ## $segments = [
    ##     { text => 'aaa', start => 0, end => 3, type => 'a',
    ##       entity => {indices => [0, 3], url => 'http://hoge.com/a/1'} },
    ##     { text => ' --- ', start => 3, end => 8, type => undef,
    ##       entity => undef},
    ##     { text => 'bb', start => 8, end => 10, type => 'b',
    ##       entity => {indices => [8, 10], style => "bold"} },
    ##     { text => ' ---- ', start => 10, end =>  16, type => undef,
    ##       entity => undef },
    ##     { text => 'cc', start => 16, end => 18, type => 'c',
    ##       entity => {indices => [16, 18], footnote => 'first c'} },
    ##     { text => 'aa', start => 18, end => 20, type => 'a',
    ##       entity => {indices => [18, 20], url => 'http://hoge.com/a/2'} },
    ##     { text => ' -- ', start => 20, end => 24, type => undef,
    ##       entity => undef },
    ##     { text => 'ccccc', start => 24, end => 29, type => 'c',
    ##       entity => {indices => [24, 29], some => {complex => 'structure'}} }
share/www/static/bootstrap/css/bootstrap.min.css view on Meta::CPAN
/*!
 * Bootstrap v3.1.1 (http://getbootstrap.com)
 * Copyright 2011-2014 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */
/*! normalize.css v3.0.0 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{displa...
share/www/static/busybird.css view on Meta::CPAN
    float: right;
    color: #333;
}
.bb-status-retweeted-by {
    color: #666;
    padding: 0 8px 0 12px;
}
.bb-status-username {
    font-weight: bold;
    padding: 2px 0 3px 0;
}
.bb-status-created-at {
    font-size: 80%;
}
.bb-status-cursor {
    background-color: #e7e8ec;
}
share/www/static/busybird.css view on Meta::CPAN
#bb-spinner-placeholder {
    height: 40px;
    width: 40px;
    float: right;
    margin-left: 20px;
    margin-top: 4px;
}
.bb-msg-error {
    text-weight: bold;
    color: #ff4758;
}
.bb-msg-warn {
    text-weight: bold;
    color: #faf681;
}
.bb-nav-controls-container {
    text-align: right;
}
@media (max-width: 767px) {
    .bb-nav-controls-container {
        margin-top: 0px;
t/Util_split.t view on Meta::CPAN
{
    note("--- for example");
    my $text = 'aaa --- bb ---- ccaa -- ccccc';
    my $entities = {
        a => [
            {indices => [0, 3],   url => 'http://hoge.com/a/1'},
            {indices => [18, 20], url => 'http://hoge.com/a/2'},
        ],
        b => [
            {indices => [8, 10], style => "bold"},
        ],
        c => [
            {indices => [16, 18], footnote => 'first c'},
            {indices => [24, 29], some => {complex => 'structure'}},
        ],
        d => []
    };
    my $exp_segments = [
        { text => 'aaa', start => 0, end => 3, type => 'a',
          entity => {indices => [0, 3], url => 'http://hoge.com/a/1'} },
        { text => ' --- ', start => 3, end => 8, type => undef,
          entity => undef},
        { text => 'bb', start => 8, end => 10, type => 'b',
          entity => {indices => [8, 10], style => "bold"} },
        { text => ' ---- ', start => 10, end =>  16, type => undef,
          entity => undef },
        { text => 'cc', start => 16, end => 18, type => 'c',
          entity => {indices => [16, 18], footnote => 'first c'} },
        { text => 'aa', start => 18, end => 20, type => 'a',
          entity => {indices => [18, 20], url => 'http://hoge.com/a/2'} },
        { text => ' -- ', start => 20, end => 24, type => undef,
          entity => undef },
        { text => 'ccccc', start => 24, end => 29, type => 'c',
          entity => {indices => [24, 29], some => {complex => 'structure'}} }
xt/js/qunit.css view on Meta::CPAN
#qunit-testresult {
	padding: 0.5em 0.5em 0.5em 2.5em;
	color: #2b81af;
	background-color: #D2E0E6;
	border-bottom: 1px solid white;
}
#qunit-testresult .module-name {
	font-weight: bold;
}
/** Fixture */
#qunit-fixture {
	position: absolute;
	top: -10000px;
	left: -10000px;
	width: 1000px;
	height: 1000px;
( run in 0.563 second using v1.01-cache-2.11-cpan-5dc5da66d9d )