├── .gitignore ├── website ├── my-theme │ ├── static │ │ ├── image │ │ │ ├── alex.jpg │ │ │ ├── contact.svg │ │ │ ├── twitter.svg │ │ │ └── github.svg │ │ ├── asset │ │ │ ├── tomorrow-night-bright.css │ │ │ ├── tomorrow.css │ │ │ ├── main.css │ │ │ └── highlight.pack.js │ │ └── alex.html │ └── templates │ │ ├── translations.html │ │ ├── tags.html │ │ ├── archives.html │ │ ├── tag.html │ │ ├── categories.html │ │ ├── category.html │ │ ├── index.html │ │ ├── pagination.html │ │ ├── base.html │ │ └── article.html ├── publishconf.py ├── pelicanconf.py ├── fabfile.py ├── content │ └── finally-my-own-blog.md ├── develop_server.sh └── Makefile ├── Dockerfile └── Makefile /.gitignore: -------------------------------------------------------------------------------- 1 | # pelican's artifact 2 | cache 3 | output 4 | *.pid 5 | *.pyc 6 | themes -------------------------------------------------------------------------------- /website/my-theme/static/image/alex.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deiu/my-pelican/master/website/my-theme/static/image/alex.jpg -------------------------------------------------------------------------------- /website/my-theme/templates/translations.html: -------------------------------------------------------------------------------- 1 | {% macro translations_for(article) %} 2 | {% if article.translations %} 3 | Translations: 4 | {% for translation in article.translations %} 5 | {{ translation.lang }} 6 | {% endfor %} 7 | {% endif %} 8 | {% endmacro %} 9 | 10 | -------------------------------------------------------------------------------- /website/my-theme/templates/tags.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block content %} 3 | {% block content_title %} 4 |

Tags:

5 | {% endblock %} 6 | 11 | {% endblock %} 12 | 13 | -------------------------------------------------------------------------------- /website/my-theme/templates/archives.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block content %} 3 |

Archives for {{ SITENAME }}

4 | 5 |
6 | {% for article in dates %} 7 |
{{ article.locale_date }}
8 |
{{ article.title }}
9 | {% endfor %} 10 |
11 | {% endblock %} 12 | -------------------------------------------------------------------------------- /website/my-theme/templates/tag.html: -------------------------------------------------------------------------------- 1 | {% extends "index.html" %} 2 | 3 | {% block nav %} 4 | Blog ››Tag: {{ tag }} 5 | {% endblock %} 6 | 7 | {% block content_title %} 8 |

Articles tagged with {{ tag }}:

9 | {% endblock %} 10 | 11 | -------------------------------------------------------------------------------- /website/my-theme/templates/categories.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block content %} 3 | {% block content_title %} 4 |

Categories:

5 | {% endblock %} 6 | 11 | {% endblock %} 12 | 13 | -------------------------------------------------------------------------------- /website/my-theme/templates/category.html: -------------------------------------------------------------------------------- 1 | {% extends "index.html" %} 2 | 3 | {% block nav %} 4 | Blog ››Category: {{ category }} 5 | {% endblock %} 6 | 7 | {% block content_title %} 8 |

Articles in the {{ category }} category

9 | {% endblock %} 10 | 11 | -------------------------------------------------------------------------------- /website/my-theme/templates/index.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block content %} 3 | {{ super() }} 4 |
5 | 12 |
13 | {% endblock content%} 14 | 15 | -------------------------------------------------------------------------------- /website/publishconf.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- # 3 | from __future__ import unicode_literals 4 | 5 | # This file is only used if you use `make publish` or 6 | # explicitly specify it as your config file. 7 | 8 | import os 9 | import sys 10 | sys.path.append(os.curdir) 11 | from pelicanconf import * 12 | 13 | SITEURL = 'http://bertails.org/blog' 14 | RELATIVE_URLS = False 15 | 16 | FEED_ALL_ATOM = 'feeds/all.atom.xml' 17 | CATEGORY_FEED_ATOM = 'feeds/%s.atom.xml' 18 | 19 | DELETE_OUTPUT_DIRECTORY = True 20 | 21 | # Following items are often useful when publishing 22 | 23 | #DISQUS_SITENAME = "" 24 | #GOOGLE_ANALYTICS = "" 25 | -------------------------------------------------------------------------------- /website/my-theme/templates/pagination.html: -------------------------------------------------------------------------------- 1 | {% if DEFAULT_PAGINATION %} 2 |

3 | {% if articles_page.has_previous() %} 4 | {% if articles_page.previous_page_number() == 1 %} 5 | « 6 | {% else %} 7 | « 8 | {% endif %} 9 | {% endif %} 10 | Page {{ articles_page.number }} / {{ articles_paginator.num_pages }} 11 | {% if articles_page.has_next() %} 12 | » 13 | {% endif %} 14 |

15 | {% endif %} 16 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:14.04 2 | MAINTAINER betehess 3 | 4 | # Update OS 5 | RUN sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list 6 | RUN sed -i 's/archive.ubuntu.com/mirrors.mit.edu/g' /etc/apt/sources.list 7 | RUN apt-get update 8 | RUN apt-get -y upgrade 9 | 10 | # Install dependencies 11 | RUN apt-get install make python-setuptools python-dev -y 12 | RUN easy_install pip 13 | RUN pip install pelican Markdown ghp-import shovel 14 | RUN pip install --upgrade pelican Markdown ghp-import shovel 15 | 16 | # Install script to ensures that newly created files are 775 by default 17 | #ADD docker-umask-wrapper.sh /bin/docker-umask-wrapper.sh 18 | #RUN chmod u+x /bin/docker-umask-wrapper.sh 19 | 20 | WORKDIR /srv/pelican-website 21 | 22 | # Expose default Pelican port 23 | EXPOSE 8000 24 | 25 | # Run Pelican 26 | CMD make devserver 27 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | docker-build: 2 | docker build -t betehess/pelican . 3 | mkdir website/content 4 | mkdir website/output 5 | 6 | docker-kill: 7 | docker stop pelican 8 | docker rm pelican 9 | 10 | docker-run: 11 | docker run --name="pelican" -d -v $(CURDIR)/website:/srv/pelican-website -p 8000:8000 betehess/pelican 12 | 13 | docker-bash: 14 | docker run --name="pelican" -i -t -v $(CURDIR)/website:/srv/pelican-website -p 8000:8000 betehess/pelican /bin/bash 15 | 16 | docker-work: 17 | docker run --rm -i -t -v $(CURDIR)/website:/srv/pelican-website -u `whoami` -v /etc/passwd:/etc/passwd -v /etc/group:/etc/group -p 8000:8000 betehess/pelican /bin/bash 18 | 19 | push-egp: 20 | rsync -avz -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress website/output/ betehess@bertails.org:~/www-egp/ 21 | 22 | push-www: 23 | rsync -avz -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress website/output/ betehess@bertails.org:~/www/ 24 | -------------------------------------------------------------------------------- /website/my-theme/static/image/contact.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 8 | 9 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /website/my-theme/templates/base.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {% block head %} 6 | 7 | {% block title %}{{ SITENAME }}{% endblock title %} 8 | 9 | 10 | 11 | 12 | 13 | {% endblock head %} 14 | 15 | 16 | 17 | 18 | 33 | 34 | {% block content %} 35 | {% block content_title %} 36 | {% endblock %} 37 | {% endblock %} 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /website/my-theme/static/image/twitter.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 11 | 12 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /website/my-theme/static/asset/tomorrow-night-bright.css: -------------------------------------------------------------------------------- 1 | /* Tomorrow Night Bright Theme */ 2 | /* Original theme - https://github.com/chriskempson/tomorrow-theme */ 3 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 4 | .tomorrow-comment, pre .comment, pre .title { 5 | color: #969896; 6 | } 7 | 8 | .tomorrow-red, pre .variable, pre .attribute, pre .tag, pre .regexp, pre .ruby .constant, pre .xml .tag .title, pre .xml .pi, pre .xml .doctype, pre .html .doctype, pre .css .id, pre .css .class, pre .css .pseudo { 9 | color: #d54e53; 10 | } 11 | 12 | .tomorrow-orange, pre .number, pre .preprocessor, pre .built_in, pre .literal, pre .params, pre .constant { 13 | color: #e78c45; 14 | } 15 | 16 | .tomorrow-yellow, pre .class, pre .ruby .class .title, pre .css .rules .attribute { 17 | color: #e7c547; 18 | } 19 | 20 | .tomorrow-green, pre .string, pre .value, pre .inheritance, pre .header, pre .ruby .symbol, pre .xml .cdata { 21 | color: #b9ca4a; 22 | } 23 | 24 | .tomorrow-aqua, pre .css .hexcolor { 25 | color: #70c0b1; 26 | } 27 | 28 | .tomorrow-blue, pre .function, pre .python .decorator, pre .python .title, pre .ruby .function .title, pre .ruby .title .keyword, pre .perl .sub, pre .javascript .title, pre .coffeescript .title { 29 | color: #7aa6da; 30 | } 31 | 32 | .tomorrow-purple, pre .keyword, pre .javascript .function { 33 | color: #c397d8; 34 | } 35 | 36 | pre { 37 | background: black; 38 | } 39 | pre code { 40 | display: block; 41 | // background: black; 42 | color: #eaeaea; 43 | font-family: Menlo, Monaco, Consolas, monospace; 44 | line-height: 1.5; 45 | // border: 1px solid #ccc; 46 | padding: 10px; 47 | } 48 | -------------------------------------------------------------------------------- /website/my-theme/static/asset/tomorrow.css: -------------------------------------------------------------------------------- 1 | /* Tomorrow Theme */ 2 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 3 | /* Original theme - https://github.com/chriskempson/tomorrow-theme */ 4 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 5 | .tomorrow-comment, pre .comment, pre .title { 6 | color: #8e908c; 7 | } 8 | 9 | .tomorrow-red, pre .variable, pre .attribute, pre .tag, pre .regexp, pre .ruby .constant, pre .xml .tag .title, pre .xml .pi, pre .xml .doctype, pre .html .doctype, pre .css .id, pre .css .class, pre .css .pseudo { 10 | color: #c82829; 11 | } 12 | 13 | .tomorrow-orange, pre .number, pre .preprocessor, pre .built_in, pre .literal, pre .params, pre .constant { 14 | color: #f5871f; 15 | } 16 | 17 | .tomorrow-yellow, pre .class, pre .ruby .class .title, pre .css .rules .attribute { 18 | color: #eab700; 19 | } 20 | 21 | .tomorrow-green, pre .string, pre .value, pre .inheritance, pre .header, pre .ruby .symbol, pre .xml .cdata { 22 | color: #718c00; 23 | } 24 | 25 | .tomorrow-aqua, pre .css .hexcolor { 26 | color: #3e999f; 27 | } 28 | 29 | .tomorrow-blue, pre .function, pre .python .decorator, pre .python .title, pre .ruby .function .title, pre .ruby .title .keyword, pre .perl .sub, pre .javascript .title, pre .coffeescript .title { 30 | color: #4271ae; 31 | } 32 | 33 | .tomorrow-purple, pre .keyword, pre .javascript .function { 34 | color: #8959a8; 35 | } 36 | 37 | pre code { 38 | display: block; 39 | background: white; 40 | color: #4d4d4c; 41 | font-family: Menlo, Monaco, Consolas, monospace; 42 | line-height: 1.5; 43 | border: 1px solid #ccc; 44 | padding: 10px; 45 | } 46 | -------------------------------------------------------------------------------- /website/pelicanconf.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- # 3 | from __future__ import unicode_literals 4 | 5 | AUTHOR = u'Alexandre Bertails' 6 | SITENAME = u"You have a link" 7 | SITEURL = u'http://bertails.org' 8 | #RELATIVE_URLS = True 9 | 10 | PATH = 'content' 11 | 12 | TIMEZONE = 'EST' 13 | 14 | DEFAULT_LANG = u'en' 15 | DELETE_OUTPUT_DIRECTORY = True 16 | 17 | #feeds 18 | FEED_ALL_ATOM = 'feed/all.xml' 19 | FEED_ALL_RSS = 'feed/all.rss' 20 | CATEGORY_FEED_ATOM = 'feed/%s.xml' 21 | CATEGORY_FEED_RSS = 'feed/%s.rss' 22 | AUTHOR_FEED_ATOM = None 23 | AUTHOR_FEED_RSS = None 24 | TRANSLATION_FEED_ATOM = None 25 | TRANSLATION_FEED_RSS = None 26 | FEED_ATOM = None 27 | FEED_RSS = None 28 | 29 | DEFAULT_PAGINATION = 10 30 | 31 | #MD_EXTENSIONS = ['codehilite(css_class=codehilite code)','extra','headerid'] 32 | MD_EXTENSIONS = ['extra','headerid'] 33 | 34 | THEME = 'my-theme' 35 | THEME_STATIC_DIR = '' 36 | 37 | ARTICLE_URL = '{date:%Y}/{date:%m}/{date:%d}/{slug}' 38 | ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{date:%d}/{slug}.html' 39 | ARTICLE_LANG_URL = '{date:%Y}/{date:%m}/{date:%d}/{slug}-{lang}' 40 | ARTICLE_LANG_SAVE_AS = '{date:%Y}/{date:%m}/{date:%d}/{slug}-{lang}.html' 41 | 42 | DRAFT_URL = 'draft/{slug}.html' 43 | DRAFT_SAVE_AS = 'draft/{slug}.html' 44 | DRAFT_LANG_URL = 'draft/{slug}-{lang}.html' 45 | DRAFT_LANG_SAVE_AS = 'draft/{slug}-{lang}.html' 46 | 47 | CATEGORY_URL = '' 48 | CATEGORY_SAVE_AS = '' 49 | 50 | TAG_URL = None 51 | TAG_SAVE_AS = None 52 | 53 | AUTHOR_URL = '' 54 | AUTHOR_SAVE_AS = '' 55 | 56 | ARCHIVES_SAVE_AS = None 57 | AUTHORS_SAVE_AS = None 58 | CATEGORIES_SAVE_AS = None 59 | TAGS_SAVE_AS = None 60 | 61 | #YEAR_ARCHIVE_SAVE_AS = '{date:%Y}/index.html' 62 | #MONTH_ARCHIVE_SAVE_AS = '{date:%Y}/{date:%m}/index.html' 63 | -------------------------------------------------------------------------------- /website/fabfile.py: -------------------------------------------------------------------------------- 1 | from fabric.api import * 2 | import fabric.contrib.project as project 3 | import os 4 | import sys 5 | import SimpleHTTPServer 6 | import SocketServer 7 | 8 | # Local path configuration (can be absolute or relative to fabfile) 9 | env.deploy_path = 'output' 10 | DEPLOY_PATH = env.deploy_path 11 | 12 | # Remote server configuration 13 | production = 'betehess@bertails.org:22' 14 | dest_path = '/home/betehess/www/blog' 15 | 16 | # Rackspace Cloud Files configuration settings 17 | env.cloudfiles_username = 'my_rackspace_username' 18 | env.cloudfiles_api_key = 'my_rackspace_api_key' 19 | env.cloudfiles_container = 'my_cloudfiles_container' 20 | 21 | 22 | def clean(): 23 | if os.path.isdir(DEPLOY_PATH): 24 | local('rm -rf {deploy_path}'.format(**env)) 25 | local('mkdir {deploy_path}'.format(**env)) 26 | 27 | def build(): 28 | local('pelican -s pelicanconf.py') 29 | 30 | def rebuild(): 31 | clean() 32 | build() 33 | 34 | def regenerate(): 35 | local('pelican -r -s pelicanconf.py') 36 | 37 | def serve(): 38 | os.chdir(env.deploy_path) 39 | 40 | PORT = 8000 41 | class AddressReuseTCPServer(SocketServer.TCPServer): 42 | allow_reuse_address = True 43 | 44 | server = AddressReuseTCPServer(('', PORT), SimpleHTTPServer.SimpleHTTPRequestHandler) 45 | 46 | sys.stderr.write('Serving on port {0} ...\n'.format(PORT)) 47 | server.serve_forever() 48 | 49 | def reserve(): 50 | build() 51 | serve() 52 | 53 | def preview(): 54 | local('pelican -s publishconf.py') 55 | 56 | def cf_upload(): 57 | rebuild() 58 | local('cd {deploy_path} && ' 59 | 'swift -v -A https://auth.api.rackspacecloud.com/v1.0 ' 60 | '-U {cloudfiles_username} ' 61 | '-K {cloudfiles_api_key} ' 62 | 'upload -c {cloudfiles_container} .'.format(**env)) 63 | 64 | @hosts(production) 65 | def publish(): 66 | local('pelican -s publishconf.py') 67 | project.rsync_project( 68 | remote_dir=dest_path, 69 | exclude=".DS_Store", 70 | local_dir=DEPLOY_PATH.rstrip('/') + '/', 71 | delete=True, 72 | extra_opts='-c', 73 | ) 74 | -------------------------------------------------------------------------------- /website/content/finally-my-own-blog.md: -------------------------------------------------------------------------------- 1 | Title: Finally my own blog 2 | Date: 2014-09-16 3 | Slug: finally-my-own-blog 4 | 5 | I have finally found the time and the motivation to put together my own blog \o/ I had actually planned to do so for about 10 years, basically since I own `bertails.org`... It is not completely ready yet but I prefer to release it now and work out the issues later. Otherwise it would never happen. 6 | 7 | Sooo, how does this work? I wanted something as easy to use as possible. So I have settled on [Pelican](http://docs.getpelican.com/). At least for now. As I don't want to pollute my environment with Python dependencies, I am using [Docker](https://www.docker.com/) to generate the static version of this website. The [project](https://github.com/betehess/my-pelican/) started as a clone of [https://github.com/jderuere/docker-pelican](https://github.com/jderuere/docker-pelican) but I quickly rewrote everything, including the [Dockerfile](https://github.com/betehess/my-pelican/blob/master/Dockerfile). I run Pelican within the container but against the mounted `website` directory, and I propagate my user from the host to avoid right issues (Docker uses root by default). So I do something like 8 | 9 | ```bash 10 | docker run --name=pelican -d -v `pwd`/website:/srv/pelican-website \ 11 | -p 8000:8000 betehess/pelican 12 | ``` 13 | 14 | The theme is directly based on [Paul Rouget's website](http://paulrouget.com/), with few adaptations. Most important ones are the fixed font ([Ubuntu Mono](https://www.google.com/fonts/specimen/Ubuntu+Mono)) and the greenish colour for the links. I only use 2 templates from Pelican: `index.html` and `article.html`. The blog now becomes the main entry point for [http://bertails.org](http://bertails.org). The previous index page has moved to [http://bertails.org/alex](http://bertails.org/alex) as I intend to use [http://bertails.org/alex#me](http://bertails.org/alex#me) as my [WebID](http://www.w3.org/wiki/WebID). 15 | 16 | My mugshot [was taken by](https://www.flickr.com/photos/amyvdh/5837280596/) my friend and ex [W3C](http://www.w3.org) colleague [Amy van der Hiel](https://twitter.com/amyvdh). There are very few pictures of me on the Web :-) I cannot remember where the font icons are coming from though :-/ 17 | 18 | There are no comments at the moment. The reason is that I couldn't find anything that I liked. I have the markup and the CSS ready though. So it should land here in just a few weeks. 19 | 20 | What will you find on this blog? Mainly articles about [Scala](http://www.scala-lang.org/) and [Linked Data](http://en.wikipedia.org/wiki/Linked_data). I will maintain RSS feeds for those subjects when the time comes. 21 | 22 | Stay tuned! -------------------------------------------------------------------------------- /website/develop_server.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | ## 3 | # This section should match your Makefile 4 | ## 5 | PY=${PY:-python} 6 | PELICAN=${PELICAN:-pelican} 7 | PELICANOPTS= 8 | 9 | BASEDIR=$(pwd) 10 | INPUTDIR=$BASEDIR/content 11 | OUTPUTDIR=$BASEDIR/output 12 | CONFFILE=$BASEDIR/pelicanconf.py 13 | 14 | ### 15 | # Don't change stuff below here unless you are sure 16 | ### 17 | 18 | SRV_PID=$BASEDIR/srv.pid 19 | PELICAN_PID=$BASEDIR/pelican.pid 20 | 21 | function usage(){ 22 | echo "usage: $0 (stop) (start) (restart) [port]" 23 | echo "This starts Pelican in debug and reload mode and then launches" 24 | echo "an HTTP server to help site development. It doesn't read" 25 | echo "your Pelican settings, so if you edit any paths in your Makefile" 26 | echo "you will need to edit your settings as well." 27 | exit 3 28 | } 29 | 30 | function alive() { 31 | kill -0 $1 >/dev/null 2>&1 32 | } 33 | 34 | function shut_down(){ 35 | PID=$(cat $SRV_PID) 36 | if [[ $? -eq 0 ]]; then 37 | if alive $PID; then 38 | echo "Stopping HTTP server" 39 | kill $PID 40 | else 41 | echo "Stale PID, deleting" 42 | fi 43 | rm $SRV_PID 44 | else 45 | echo "HTTP server PIDFile not found" 46 | fi 47 | 48 | PID=$(cat $PELICAN_PID) 49 | if [[ $? -eq 0 ]]; then 50 | if alive $PID; then 51 | echo "Killing Pelican" 52 | kill $PID 53 | else 54 | echo "Stale PID, deleting" 55 | fi 56 | rm $PELICAN_PID 57 | else 58 | echo "Pelican PIDFile not found" 59 | fi 60 | } 61 | 62 | function start_up(){ 63 | local port=$1 64 | echo "Starting up Pelican and HTTP server" 65 | shift 66 | $PELICAN --debug --autoreload -r $INPUTDIR -o $OUTPUTDIR -s $CONFFILE $PELICANOPTS & 67 | pelican_pid=$! 68 | echo $pelican_pid > $PELICAN_PID 69 | cd $OUTPUTDIR 70 | $PY -m pelican.server $port & 71 | srv_pid=$! 72 | echo $srv_pid > $SRV_PID 73 | cd $BASEDIR 74 | sleep 1 75 | if ! alive $pelican_pid ; then 76 | echo "Pelican didn't start. Is the Pelican package installed?" 77 | return 1 78 | elif ! alive $srv_pid ; then 79 | echo "The HTTP server didn't start. Is there another service using port 8000?" 80 | return 1 81 | fi 82 | echo 'Pelican and HTTP server processes now running in background.' 83 | } 84 | 85 | ### 86 | # MAIN 87 | ### 88 | [[ ($# -eq 0) || ($# -gt 2) ]] && usage 89 | port='' 90 | [[ $# -eq 2 ]] && port=$2 91 | 92 | if [[ $1 == "stop" ]]; then 93 | shut_down 94 | elif [[ $1 == "restart" ]]; then 95 | shut_down 96 | start_up $port 97 | elif [[ $1 == "start" ]]; then 98 | if ! start_up $port; then 99 | shut_down 100 | fi 101 | else 102 | usage 103 | fi 104 | -------------------------------------------------------------------------------- /website/my-theme/templates/article.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | {% block content %} 4 | {{ super() }} 5 |
6 |

{{ article.title }}

7 | {{ article.content }} 8 | 9 | 52 | 53 |
54 | 55 | 56 | 57 | 58 | {% endblock %} 59 | -------------------------------------------------------------------------------- /website/my-theme/static/image/github.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 12 | 13 | 14 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /website/Makefile: -------------------------------------------------------------------------------- 1 | PY?=python 2 | PELICAN?=pelican 3 | PELICANOPTS= 4 | 5 | BASEDIR=$(CURDIR) 6 | INPUTDIR=$(BASEDIR)/content 7 | OUTPUTDIR=$(BASEDIR)/output 8 | CONFFILE=$(BASEDIR)/pelicanconf.py 9 | PUBLISHCONF=$(BASEDIR)/publishconf.py 10 | 11 | FTP_HOST=localhost 12 | FTP_USER=anonymous 13 | FTP_TARGET_DIR=/ 14 | 15 | SSH_HOST=bertails.org 16 | SSH_PORT=22 17 | SSH_USER=betehess 18 | SSH_TARGET_DIR=/home/betehess/www/blog 19 | 20 | S3_BUCKET=my_s3_bucket 21 | 22 | CLOUDFILES_USERNAME=my_rackspace_username 23 | CLOUDFILES_API_KEY=my_rackspace_api_key 24 | CLOUDFILES_CONTAINER=my_cloudfiles_container 25 | 26 | DROPBOX_DIR=~/Dropbox/Public/ 27 | 28 | GITHUB_PAGES_BRANCH=gh-pages 29 | 30 | DEBUG ?= 0 31 | ifeq ($(DEBUG), 1) 32 | PELICANOPTS += -D 33 | endif 34 | 35 | help: 36 | @echo 'Makefile for a pelican Web site ' 37 | @echo ' ' 38 | @echo 'Usage: ' 39 | @echo ' make html (re)generate the web site ' 40 | @echo ' make clean remove the generated files ' 41 | @echo ' make regenerate regenerate files upon modification ' 42 | @echo ' make publish generate using production settings ' 43 | @echo ' make serve [PORT=8000] serve site at http://localhost:8000' 44 | @echo ' make devserver [PORT=8000] start/restart develop_server.sh ' 45 | @echo ' make stopserver stop local server ' 46 | @echo ' make ssh_upload upload the web site via SSH ' 47 | @echo ' make rsync_upload upload the web site via rsync+ssh ' 48 | @echo ' make dropbox_upload upload the web site via Dropbox ' 49 | @echo ' make ftp_upload upload the web site via FTP ' 50 | @echo ' make s3_upload upload the web site via S3 ' 51 | @echo ' make cf_upload upload the web site via Cloud Files' 52 | @echo ' make github upload the web site via gh-pages ' 53 | @echo ' ' 54 | @echo 'Set the DEBUG variable to 1 to enable debugging, e.g. make DEBUG=1 html' 55 | @echo ' ' 56 | 57 | html: 58 | $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) 59 | 60 | clean: 61 | [ ! -d $(OUTPUTDIR) ] || rm -rf $(OUTPUTDIR) 62 | 63 | regenerate: 64 | $(PELICAN) -r $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) 65 | 66 | serve: 67 | ifdef PORT 68 | cd $(OUTPUTDIR) && $(PY) -m pelican.server $(PORT) 69 | else 70 | cd $(OUTPUTDIR) && $(PY) -m pelican.server 71 | endif 72 | 73 | devserver: 74 | ifdef PORT 75 | $(BASEDIR)/develop_server.sh restart $(PORT) 76 | else 77 | $(BASEDIR)/develop_server.sh restart 78 | endif 79 | 80 | stopserver: 81 | kill -9 `cat pelican.pid` 82 | kill -9 `cat srv.pid` 83 | @echo 'Stopped Pelican and SimpleHTTPServer processes running in background.' 84 | 85 | publish: 86 | $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS) 87 | 88 | ssh_upload: publish 89 | scp -P $(SSH_PORT) -r $(OUTPUTDIR)/* $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR) 90 | 91 | rsync_upload: publish 92 | rsync -e "ssh -p $(SSH_PORT)" -P -rvzc --delete $(OUTPUTDIR)/ $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR) --cvs-exclude 93 | 94 | dropbox_upload: publish 95 | cp -r $(OUTPUTDIR)/* $(DROPBOX_DIR) 96 | 97 | ftp_upload: publish 98 | lftp ftp://$(FTP_USER)@$(FTP_HOST) -e "mirror -R $(OUTPUTDIR) $(FTP_TARGET_DIR) ; quit" 99 | 100 | s3_upload: publish 101 | s3cmd sync $(OUTPUTDIR)/ s3://$(S3_BUCKET) --acl-public --delete-removed --guess-mime-type 102 | 103 | cf_upload: publish 104 | cd $(OUTPUTDIR) && swift -v -A https://auth.api.rackspacecloud.com/v1.0 -U $(CLOUDFILES_USERNAME) -K $(CLOUDFILES_API_KEY) upload -c $(CLOUDFILES_CONTAINER) . 105 | 106 | github: publish 107 | ghp-import -b $(GITHUB_PAGES_BRANCH) $(OUTPUTDIR) 108 | git push origin $(GITHUB_PAGES_BRANCH) 109 | 110 | .PHONY: html help clean regenerate serve devserver publish ssh_upload rsync_upload dropbox_upload ftp_upload s3_upload cf_upload github 111 | -------------------------------------------------------------------------------- /website/my-theme/static/alex.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Alexandre Bertails 5 | 6 | 7 | 29 | 30 | 31 | 32 | 33 | 34 |
35 | betehess@simplet% finger betehess
36 | Login name: betehess In real life: Alexandre Bertails
37 | Mail: alexandre (at) bertails (dot) org
38 | Directory: /home/betehess
39 |
40 | Scala & Linked Data Dev @ Pellucid. Blog at http://bertails.org.
41 |
42 | betehess@simplet% firefox resume 43 | &
44 | [1] 2719
45 |
46 | betehess@simplet% ls -l ~/activités
47 | total 10
48 | drwxr-xr-x 1 betehess pellucid            201685 2014-08-17 startup fixing pitchbook creation
49 | 50 | drwxr-xr-x 5 betehess w3c                 1903616 2014-01-31 world wide web consortium
51 | 52 | drwxr-xr-x 1 betehess atos                2350080 2009-07-14 société de services
53 | 54 | drwxr-xr-x 1 betehess entropic-synergies  2572288 2008-04-30 portail de jeux en ligne
55 | 56 | drwxr-xr-x 1 betehess inria-saclay        3102720 2007-09-30 laboratoire de recherche en informatique
57 | 58 | drwxr-xr-x 3 betehess telecom-robotics    4005845 2007-06-30 association de robotique
59 | 60 | drwxr-xr-x 1 betehess mpri                3631061 2006-06-30 master recherche
61 | 62 | drwxr-xr-x 2 betehess telecom-paristech   4005845 2006-06-30 grande école
63 | 64 | drwxr-xr-x 2 betehess jussieu             4753365 2004-06-30 université parisienne
65 | 66 | drwxr-xr-x 5 betehess prytanée            6623189 2002-06-30 lycée et prépa militaires
67 | 68 |
69 | betehess@simplet% cat /dev/urandom > /dev/null_ 70 | 71 |
72 | 73 | 101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /website/my-theme/static/asset/main.css: -------------------------------------------------------------------------------- 1 | html { 2 | font-family: 'Ubuntu Mono', sans-serif; 3 | font-size: large; 4 | } 5 | h1 { text-transform: uppercase; } 6 | h1, h2 { font-weight: normal; } 7 | 8 | body {margin: 0} 9 | * { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } 10 | 11 | body > article { 12 | line-height: 1.6em; 13 | display: block; 14 | max-width: 55rem; 15 | margin-left: 22rem; 16 | margin-right: 4rem; 17 | margin-top: 1rem; 18 | margin-bottom: 2rem; 19 | padding: 1rem 1rem 0; 20 | } 21 | 22 | body > article pre, 23 | body > article video, 24 | body > article img { 25 | max-width: 100%; 26 | } 27 | 28 | body > article pre { 29 | overflow-x: auto; 30 | } 31 | 32 | hr { 33 | border-width: 0 0 1px 0; 34 | } 35 | 36 | a { color:#24890D; text-decoration:none; } 37 | a:hover { text-decoration: underline; } 38 | 39 | /* Sidebar */ 40 | 41 | aside { 42 | width: 18rem; height: 100%; 43 | position: fixed; 44 | top: 0; left: 0; 45 | padding: 3rem; 46 | background-color: #171717; 47 | color: white; 48 | } 49 | 50 | aside > p { margin: 0; } 51 | aside > hr { 52 | margin: 0; clear: both; 53 | border: 0; height: 0; 54 | } 55 | 56 | .icons { 57 | margin: 2rem 0px 0px 0px; 58 | text-align: center; 59 | } 60 | 61 | .icons img { 62 | width: 2.5rem; 63 | } 64 | 65 | #avatar { 66 | width: 7rem; 67 | border-radius: 50%; 68 | display: block; 69 | margin: 0 1rem 2rem 0; 70 | box-shadow: 0 0 0 2px white; 71 | -webkit-transition: 200ms; 72 | -moz-transition: 200ms; 73 | -ms-transition: 200ms; 74 | -o-transition: 200ms; 75 | transition: 200ms; 76 | } 77 | 78 | #avatar:hover { 79 | box-shadow: 0 0 0 4px #24890D; 80 | } 81 | 82 | #home li { 83 | overflow: hidden; 84 | text-overflow: ellipsis; 85 | white-space: nowrap; 86 | max-width: 100%; 87 | margin-bottom: 10px; 88 | list-style: none; 89 | } 90 | 91 | #home li time { 92 | margin-right: 2rem; 93 | margin-left: -1rem; 94 | display: inline-block; 95 | width: 7rem; 96 | text-align: right; 97 | color: #aaa; 98 | } 99 | 100 | @media (max-width: 1220px) { 101 | body > article { 102 | margin: 40px 0 0 320px; 103 | } 104 | .spratic { 105 | margin: 0 0 0 300px; 106 | } 107 | } 108 | 109 | @media (max-width: 950px) { 110 | #home li time { 111 | display: none; 112 | } 113 | } 114 | 115 | @media (max-width: 800px) { 116 | aside { 117 | width: 100%; 118 | height: auto; 119 | padding: 14px; 120 | position: static; 121 | font-size: 80%; 122 | text-align: center; 123 | } 124 | body > article { 125 | margin: 0 auto; 126 | padding-top: 5px; 127 | } 128 | .spratic { 129 | margin: 0 auto; 130 | } 131 | #avatar { 132 | height: 50px; 133 | width: 50px; 134 | margin: 10px auto; 135 | } 136 | .icons { 137 | margin: 10px auto; 138 | text-align: center; 139 | } 140 | } 141 | 142 | 143 | /* spratic comments */ 144 | 145 | .spratic-thread > h4 { 146 | color: #555; 147 | font-weight: bold; 148 | } 149 | 150 | .spratic-postbox { 151 | max-width: 68em; 152 | margin: 0 auto 2em; 153 | } 154 | 155 | .spratic-postbox > .form-wrapper { 156 | display: block; 157 | padding: 0; 158 | } 159 | 160 | .spratic-thread .textarea.placeholder { 161 | color: #AAA; 162 | } 163 | 164 | .spratic-thread .textarea { 165 | min-height: 58px; 166 | outline: 0; 167 | } 168 | 169 | .spratic-postbox > .form-wrapper .textarea { 170 | margin: 0 0 .3em; 171 | padding: .4em .8em; 172 | border-radius: 3px; 173 | background-color: #fff; 174 | border: 1px solid rgba(0, 0, 0, 0.2); 175 | box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); 176 | } 177 | 178 | .spratic-postbox .auth-section, .spratic-postbox .post-action { 179 | display: block; 180 | } 181 | 182 | .spratic-postbox .input-wrapper { 183 | display: inline-block; 184 | position: relative; 185 | max-width: 25%; 186 | margin: 0; 187 | } 188 | 189 | .spratic-postbox .input-wrapper input { 190 | padding: .3em 10px; 191 | max-width: 100%; 192 | border-radius: 3px; 193 | background-color: #fff; 194 | line-height: 1.4em; 195 | border: 1px solid rgba(0, 0, 0, 0.2); 196 | box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); 197 | } 198 | 199 | .spratic-postbox .post-action { 200 | display: inline-block; 201 | float: right; 202 | margin: 0; 203 | } 204 | 205 | .spratic-postbox .post-action > input { 206 | padding: calc(.3em - 1px); 207 | border-radius: 2px; 208 | border: 1px solid #CCC; 209 | background-color: #DDD; 210 | cursor: pointer; 211 | outline: 0; 212 | line-height: 1.4em; 213 | box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); 214 | } 215 | 216 | .spratic-comment { 217 | max-width: 68em; 218 | padding-top: 0.95em; 219 | margin: 0.95em auto; 220 | } 221 | 222 | .spratic-comment:not(:first-of-type) { 223 | border-top: 1px solid rgba(0, 0, 0, 0.1); 224 | } 225 | 226 | .spratic-comment .author { 227 | font-weight: bold; 228 | color: #555; 229 | } 230 | 231 | .spratic-comment .spratic-comment-header { 232 | font-size: 0.85em; 233 | } 234 | 235 | .spratic-comment .spacer, .spratic-comment a.permalink, .spratic-comment .note, .spratic-comment a.parent { 236 | color: gray; 237 | } 238 | 239 | .spratic-comment .spacer { 240 | padding: 0 6px; 241 | } 242 | -------------------------------------------------------------------------------- /website/my-theme/static/asset/highlight.pack.js: -------------------------------------------------------------------------------- 1 | var hljs=new function(){function m(p){return p.replace(/&/gm,"&").replace(/"}while(y.length||w.length){var v=u().splice(0,1)[0];z+=m(x.substr(q,v.offset-q));q=v.offset;if(v.event=="start"){z+=t(v.node);s.push(v.node)}else{if(v.event=="stop"){var p,r=s.length;do{r--;p=s[r];z+=("")}while(p!=v.node);s.splice(r,1);while(r'+N[0]+""}else{r+=N[0]}P=Q.lR.lastIndex;N=Q.lR.exec(M)}return r+M.substr(P)}function B(M,N){var r;if(N.sL==""){r=g(M)}else{r=d(N.sL,M)}if(N.r>0){y+=r.keyword_count;C+=r.r}return''+r.value+""}function K(r,M){if(M.sL&&e[M.sL]||M.sL==""){return B(r,M)}else{return G(r,M)}}function J(N,r){var M=N.cN?'':"";if(N.rB){z+=M;N.buffer=""}else{if(N.eB){z+=m(r)+M;N.buffer=""}else{z+=M;N.buffer=r}}p.push(N);C+=N.r}function H(O,N,R){var S=p[p.length-1];if(R){z+=K(S.buffer+O,S);return false}var Q=s(N,S);if(Q){z+=K(S.buffer+O,S);J(Q,N);return Q.rB}var M=w(p.length-1,N);if(M){var P=S.cN?"":"";if(S.rE){z+=K(S.buffer+O,S)+P}else{if(S.eE){z+=K(S.buffer+O,S)+P+m(N)}else{z+=K(S.buffer+O+N,S)+P}}while(M>1){P=p[p.length-2].cN?"":"";z+=P;M--;p.length--}var r=p[p.length-1];p.length--;p[p.length-1].buffer="";if(r.starts){J(r.starts,"")}return S.rE}if(x(N,S)){throw"Illegal"}}var F=e[D];var p=[F.dM];var C=0;var y=0;var z="";try{var t,v=0;F.dM.buffer="";do{t=q(E,v);var u=H(t[0],t[1],t[2]);v+=t[0].length;if(!u){v+=t[1].length}}while(!t[2]);return{r:C,keyword_count:y,value:z,language:D}}catch(I){if(I=="Illegal"){return{r:0,keyword_count:0,value:m(E)}}else{throw I}}}function g(t){var p={keyword_count:0,r:0,value:m(t)};var r=p;for(var q in e){if(!e.hasOwnProperty(q)){continue}var s=d(q,t);s.language=q;if(s.keyword_count+s.r>r.keyword_count+r.r){r=s}if(s.keyword_count+s.r>p.keyword_count+p.r){r=p;p=s}}if(r.language){p.second_best=r}return p}function i(r,q,p){if(q){r=r.replace(/^((<[^>]+>|\t)+)/gm,function(t,w,v,u){return w.replace(/\t/g,q)})}if(p){r=r.replace(/\n/g,"
")}return r}function n(t,w,r){var x=h(t,r);var v=a(t);var y,s;if(v=="no-highlight"){return}if(v){y=d(v,x)}else{y=g(x);v=y.language}var q=c(t);if(q.length){s=document.createElement("pre");s.innerHTML=y.value;y.value=k(q,c(s),x)}y.value=i(y.value,w,r);var u=t.className;if(!u.match("(\\s|^)(language-)?"+v+"(\\s|$)")){u=u?(u+" "+v):v}if(/MSIE [678]/.test(navigator.userAgent)&&t.tagName=="CODE"&&t.parentNode.tagName=="PRE"){s=t.parentNode;var p=document.createElement("div");p.innerHTML="
"+y.value+"
";t=p.firstChild.firstChild;p.firstChild.cN=s.cN;s.parentNode.replaceChild(p.firstChild,s)}else{t.innerHTML=y.value}t.className=u;t.result={language:v,kw:y.keyword_count,re:y.r};if(y.second_best){t.second_best={language:y.second_best.language,kw:y.second_best.keyword_count,re:y.second_best.r}}}function o(){if(o.called){return}o.called=true;var r=document.getElementsByTagName("pre");for(var p=0;p|>=|>>|>>=|>>>|>>>=|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~";this.BE={b:"\\\\.",r:0};this.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[this.BE],r:0};this.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[this.BE],r:0};this.CLCM={cN:"comment",b:"//",e:"$"};this.CBLCLM={cN:"comment",b:"/\\*",e:"\\*/"};this.HCM={cN:"comment",b:"#",e:"$"};this.NM={cN:"number",b:this.NR,r:0};this.CNM={cN:"number",b:this.CNR,r:0};this.BNM={cN:"number",b:this.BNR,r:0};this.inherit=function(r,s){var p={};for(var q in r){p[q]=r[q]}if(s){for(var q in s){p[q]=s[q]}}return p}}();hljs.LANGUAGES.bash=function(a){var f="true false";var c={cN:"variable",b:"\\$([a-zA-Z0-9_]+)\\b"};var b={cN:"variable",b:"\\$\\{(([^}])|(\\\\}))+\\}",c:[a.CNM]};var g={cN:"string",b:'"',e:'"',i:"\\n",c:[a.BE,c,b],r:0};var d={cN:"string",b:"'",e:"'",c:[{b:"''"}],r:0};var e={cN:"test_condition",b:"",e:"",c:[g,d,c,b,a.CNM],k:{literal:f},r:0};return{dM:{k:{keyword:"if then else fi for break continue while in do done echo exit return set declare",literal:f},c:[{cN:"shebang",b:"(#!\\/bin\\/bash)|(#!\\/bin\\/sh)",r:10},c,b,a.HCM,a.CNM,g,d,a.inherit(e,{b:"\\[ ",e:" \\]",r:0}),a.inherit(e,{b:"\\[\\[ ",e:" \\]\\]"})]}}}(hljs);hljs.LANGUAGES.cs=function(a){return{dM:{k:"abstract as base bool break byte case catch char checked class const continue decimal default delegate do double else enum event explicit extern false finally fixed float for foreach goto if implicit in int interface internal is lock long namespace new null object operator out override params private protected public readonly ref return sbyte sealed short sizeof stackalloc static string struct switch this throw true try typeof uint ulong unchecked unsafe ushort using virtual volatile void while ascending descending from get group into join let orderby partial select set value var where yield",c:[{cN:"comment",b:"///",e:"$",rB:true,c:[{cN:"xmlDocTag",b:"///|"},{cN:"xmlDocTag",b:""}]},a.CLCM,a.CBLCLM,{cN:"preprocessor",b:"#",e:"$",k:"if else elif endif define undef warning error line region endregion pragma checksum"},{cN:"string",b:'@"',e:'"',c:[{b:'""'}]},a.ASM,a.QSM,a.CNM]}}}(hljs);hljs.LANGUAGES.ruby=function(e){var a="[a-zA-Z_][a-zA-Z0-9_]*(\\!|\\?)?";var k="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?";var g={keyword:"and false then defined module in return redo if BEGIN retry end for true self when next until do begin unless END rescue nil else break undef not super class case require yield alias while ensure elsif or def",keymethods:"__id__ __send__ abort abs all? allocate ancestors any? arity assoc at at_exit autoload autoload? between? binding binmode block_given? call callcc caller capitalize capitalize! casecmp catch ceil center chomp chomp! chop chop! chr class class_eval class_variable_defined? class_variables clear clone close close_read close_write closed? coerce collect collect! compact compact! concat const_defined? const_get const_missing const_set constants count crypt default default_proc delete delete! delete_at delete_if detect display div divmod downcase downcase! downto dump dup each each_byte each_index each_key each_line each_pair each_value each_with_index empty? entries eof eof? eql? equal? eval exec exit exit! extend fail fcntl fetch fileno fill find find_all first flatten flatten! floor flush for_fd foreach fork format freeze frozen? fsync getc gets global_variables grep gsub gsub! has_key? has_value? hash hex id include include? included_modules index indexes indices induced_from inject insert inspect instance_eval instance_method instance_methods instance_of? instance_variable_defined? instance_variable_get instance_variable_set instance_variables integer? intern invert ioctl is_a? isatty iterator? join key? keys kind_of? lambda last length lineno ljust load local_variables loop lstrip lstrip! map map! match max member? merge merge! method method_defined? method_missing methods min module_eval modulo name nesting new next next! nil? nitems nonzero? object_id oct open pack partition pid pipe pop popen pos prec prec_f prec_i print printf private_class_method private_instance_methods private_method_defined? private_methods proc protected_instance_methods protected_method_defined? protected_methods public_class_method public_instance_methods public_method_defined? public_methods push putc puts quo raise rand rassoc read read_nonblock readchar readline readlines readpartial rehash reject reject! remainder reopen replace require respond_to? reverse reverse! reverse_each rewind rindex rjust round rstrip rstrip! scan seek select send set_trace_func shift singleton_method_added singleton_methods size sleep slice slice! sort sort! sort_by split sprintf squeeze squeeze! srand stat step store strip strip! sub sub! succ succ! sum superclass swapcase swapcase! sync syscall sysopen sysread sysseek system syswrite taint tainted? tell test throw times to_a to_ary to_f to_hash to_i to_int to_io to_proc to_s to_str to_sym tr tr! tr_s tr_s! trace_var transpose trap truncate tty? type ungetc uniq uniq! unpack unshift untaint untrace_var upcase upcase! update upto value? values values_at warn write write_nonblock zero? zip"};var c={cN:"yardoctag",b:"@[A-Za-z]+"};var l=[{cN:"comment",b:"#",e:"$",c:[c]},{cN:"comment",b:"^\\=begin",e:"^\\=end",c:[c],r:10},{cN:"comment",b:"^__END__",e:"\\n$"}];var d={cN:"subst",b:"#\\{",e:"}",l:a,k:g};var j=[e.BE,d];var b=[{cN:"string",b:"'",e:"'",c:j,r:0},{cN:"string",b:'"',e:'"',c:j,r:0},{cN:"string",b:"%[qw]?\\(",e:"\\)",c:j},{cN:"string",b:"%[qw]?\\[",e:"\\]",c:j},{cN:"string",b:"%[qw]?{",e:"}",c:j},{cN:"string",b:"%[qw]?<",e:">",c:j,r:10},{cN:"string",b:"%[qw]?/",e:"/",c:j,r:10},{cN:"string",b:"%[qw]?%",e:"%",c:j,r:10},{cN:"string",b:"%[qw]?-",e:"-",c:j,r:10},{cN:"string",b:"%[qw]?\\|",e:"\\|",c:j,r:10}];var i={cN:"function",b:"\\bdef\\s+",e:" |$|;",l:a,k:g,c:[{cN:"title",b:k,l:a,k:g},{cN:"params",b:"\\(",e:"\\)",l:a,k:g}].concat(l)};var h={cN:"identifier",b:a,l:a,k:g,r:0};var f=l.concat(b.concat([{cN:"class",bWK:true,e:"$|;",k:"class module",c:[{cN:"title",b:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?",r:0},{cN:"inheritance",b:"<\\s*",c:[{cN:"parent",b:"("+e.IR+"::)?"+e.IR}]}].concat(l)},i,{cN:"constant",b:"(::)?([A-Z]\\w*(::)?)+",r:0},{cN:"symbol",b:":",c:b.concat([h]),r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{cN:"number",b:"\\?\\w"},{cN:"variable",b:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},h,{b:"("+e.RSR+")\\s*",c:l.concat([{cN:"regexp",b:"/",e:"/[a-z]*",i:"\\n",c:[e.BE]}]),r:0}]));d.c=f;i.c[1].c=f;return{dM:{l:a,k:g,c:f}}}(hljs);hljs.LANGUAGES.diff=function(a){return{cI:true,dM:{c:[{cN:"chunk",b:"^\\@\\@ +\\-\\d+,\\d+ +\\+\\d+,\\d+ +\\@\\@$",r:10},{cN:"chunk",b:"^\\*\\*\\* +\\d+,\\d+ +\\*\\*\\*\\*$",r:10},{cN:"chunk",b:"^\\-\\-\\- +\\d+,\\d+ +\\-\\-\\-\\-$",r:10},{cN:"header",b:"Index: ",e:"$"},{cN:"header",b:"=====",e:"=====$"},{cN:"header",b:"^\\-\\-\\-",e:"$"},{cN:"header",b:"^\\*{3} ",e:"$"},{cN:"header",b:"^\\+\\+\\+",e:"$"},{cN:"header",b:"\\*{5}",e:"\\*{5}$"},{cN:"addition",b:"^\\+",e:"$"},{cN:"deletion",b:"^\\-",e:"$"},{cN:"change",b:"^\\!",e:"$"}]}}}(hljs);hljs.LANGUAGES.javascript=function(a){return{dM:{k:{keyword:"in if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete",literal:"true false null undefined NaN Infinity"},c:[a.ASM,a.QSM,a.CLCM,a.CBLCLM,a.CNM,{b:"("+a.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[a.CLCM,a.CBLCLM,{cN:"regexp",b:"/",e:"/[gim]*",c:[{b:"\\\\/"}]}],r:0},{cN:"function",bWK:true,e:"{",k:"function",c:[{cN:"title",b:"[A-Za-z$_][0-9A-Za-z$_]*"},{cN:"params",b:"\\(",e:"\\)",c:[a.CLCM,a.CBLCLM],i:"[\"'\\(]"}],i:"\\[|%"}]}}}(hljs);hljs.LANGUAGES.xml=function(a){var c="[A-Za-z0-9\\._:-]+";var b={eW:true,c:[{cN:"attribute",b:c,r:0},{b:'="',rB:true,e:'"',c:[{cN:"value",b:'"',eW:true}]},{b:"='",rB:true,e:"'",c:[{cN:"value",b:"'",eW:true}]},{b:"=",c:[{cN:"value",b:"[^\\s/>]+"}]}]};return{cI:true,dM:{c:[{cN:"pi",b:"<\\?",e:"\\?>",r:10},{cN:"doctype",b:"",r:10,c:[{b:"\\[",e:"\\]"}]},{cN:"comment",b:"",r:10},{cN:"cdata",b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{cN:"tag",b:"|$)",e:">",k:{title:"style"},c:[b],starts:{e:"",rE:true,sL:"css"}},{cN:"tag",b:"|$)",e:">",k:{title:"script"},c:[b],starts:{e:"<\/script>",rE:true,sL:"javascript"}},{b:"<%",e:"%>",sL:"vbscript"},{cN:"tag",b:"",c:[{cN:"title",b:"[^ />]+"},b]}]}}}(hljs);hljs.LANGUAGES.markdown=function(a){return{cI:true,dM:{c:[{cN:"header",b:"^#{1,3}",e:"$"},{cN:"header",b:"^.+?\\n[=-]{2,}$"},{b:"<",e:">",sL:"xml",r:0},{cN:"bullet",b:"^([*+-]|(\\d+\\.))\\s+"},{cN:"strong",b:"[*_]{2}.+?[*_]{2}"},{cN:"emphasis",b:"\\*.+?\\*"},{cN:"emphasis",b:"_.+?_",r:0},{cN:"blockquote",b:"^>\\s+",e:"$"},{cN:"code",b:"`.+?`"},{cN:"code",b:"^ ",e:"$",r:0},{cN:"horizontal_rule",b:"^-{3,}",e:"$"},{b:"\\[.+?\\]\\(.+?\\)",rB:true,c:[{cN:"link_label",b:"\\[.+\\]"},{cN:"link_url",b:"\\(",e:"\\)",eB:true,eE:true}]}]}}}(hljs);hljs.LANGUAGES.css=function(a){var b={cN:"function",b:a.IR+"\\(",e:"\\)",c:[{eW:true,eE:true,c:[a.NM,a.ASM,a.QSM]}]};return{cI:true,dM:{i:"[=/|']",c:[a.CBLCLM,{cN:"id",b:"\\#[A-Za-z0-9_-]+"},{cN:"class",b:"\\.[A-Za-z0-9_-]+",r:0},{cN:"attr_selector",b:"\\[",e:"\\]",i:"$"},{cN:"pseudo",b:":(:)?[a-zA-Z0-9\\_\\-\\+\\(\\)\\\"\\']+"},{cN:"at_rule",b:"@(font-face|page)",l:"[a-z-]+",k:"font-face page"},{cN:"at_rule",b:"@",e:"[{;]",eE:true,k:"import page media charset",c:[b,a.ASM,a.QSM,a.NM]},{cN:"tag",b:a.IR,r:0},{cN:"rules",b:"{",e:"}",i:"[^\\s]",r:0,c:[a.CBLCLM,{cN:"rule",b:"[^\\s]",rB:true,e:";",eW:true,c:[{cN:"attribute",b:"[A-Z\\_\\.\\-]+",e:":",eE:true,i:"[^\\s]",starts:{cN:"value",eW:true,eE:true,c:[b,a.NM,a.QSM,a.ASM,a.CBLCLM,{cN:"hexcolor",b:"\\#[0-9A-F]+"},{cN:"important",b:"!important"}]}}]}]}]}}}(hljs);hljs.LANGUAGES.http=function(a){return{dM:{i:"\\S",c:[{cN:"status",b:"^HTTP/[0-9\\.]+",e:"$",c:[{cN:"number",b:"\\b\\d{3}\\b"}]},{cN:"request",b:"^[A-Z]+ (.*?) HTTP/[0-9\\.]+$",rB:true,e:"$",c:[{cN:"string",b:" ",e:" ",eB:true,eE:true}]},{cN:"attribute",b:"^\\w",e:": ",eE:true,i:"\\n",starts:{cN:"string",e:"$"}},{b:"\\n\\n",starts:{sL:"",eW:true}}]}}}(hljs);hljs.LANGUAGES.java=function(a){return{dM:{k:"false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws",c:[{cN:"javadoc",b:"/\\*\\*",e:"\\*/",c:[{cN:"javadoctag",b:"@[A-Za-z]+"}],r:10},a.CLCM,a.CBLCLM,a.ASM,a.QSM,{cN:"class",bWK:true,e:"{",k:"class interface",i:":",c:[{bWK:true,k:"extends implements",r:10},{cN:"title",b:a.UIR}]},a.CNM,{cN:"annotation",b:"@[A-Za-z]+"}]}}}(hljs);hljs.LANGUAGES.php=function(a){var e={cN:"variable",b:"\\$+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*"};var b=[a.inherit(a.ASM,{i:null}),a.inherit(a.QSM,{i:null}),{cN:"string",b:'b"',e:'"',c:[a.BE]},{cN:"string",b:"b'",e:"'",c:[a.BE]}];var c=[a.CNM,a.BNM];var d={cN:"title",b:a.UIR};return{cI:true,dM:{k:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return implements parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception php_user_filter default die require __FUNCTION__ enddeclare final try this switch continue endfor endif declare unset true false namespace trait goto instanceof insteadof __DIR__ __NAMESPACE__ __halt_compiler",c:[a.CLCM,a.HCM,{cN:"comment",b:"/\\*",e:"\\*/",c:[{cN:"phpdoc",b:"\\s@[A-Za-z]+"}]},{cN:"comment",eB:true,b:"__halt_compiler.+?;",eW:true},{cN:"string",b:"<<<['\"]?\\w+['\"]?$",e:"^\\w+;",c:[a.BE]},{cN:"preprocessor",b:"<\\?php",r:10},{cN:"preprocessor",b:"\\?>"},e,{cN:"function",bWK:true,e:"{",k:"function",i:"\\$|\\[|%",c:[d,{cN:"params",b:"\\(",e:"\\)",c:["self",e,a.CBLCLM].concat(b).concat(c)}]},{cN:"class",bWK:true,e:"{",k:"class",i:"[:\\(\\$]",c:[{bWK:true,eW:true,k:"extends",c:[d]},d]},{b:"=>"}].concat(b).concat(c)}}}(hljs);hljs.LANGUAGES.python=function(a){var c=[{cN:"string",b:"(u|b)?r?'''",e:"'''",r:10},{cN:"string",b:'(u|b)?r?"""',e:'"""',r:10},{cN:"string",b:"(u|r|ur)'",e:"'",c:[a.BE],r:10},{cN:"string",b:'(u|r|ur)"',e:'"',c:[a.BE],r:10},{cN:"string",b:"(b|br)'",e:"'",c:[a.BE]},{cN:"string",b:'(b|br)"',e:'"',c:[a.BE]}].concat([a.ASM,a.QSM]);var e={cN:"title",b:a.UIR};var d={cN:"params",b:"\\(",e:"\\)",c:["self",a.CNM].concat(c)};var b={bWK:true,e:":",i:"[${=;\\n]",c:[e,d],r:10};return{dM:{k:{keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda nonlocal|10",built_in:"None True False Ellipsis NotImplemented"},i:"(|\\?)",c:c.concat([a.HCM,a.inherit(b,{cN:"function",k:"def"}),a.inherit(b,{cN:"class",k:"class"}),a.CNM,{cN:"decorator",b:"@",e:"$"},{b:"\\b(print|exec)\\("}])}}}(hljs);hljs.LANGUAGES.sql=function(a){return{cI:true,dM:{i:"[^\\s]",c:[{cN:"operator",b:"(begin|start|commit|rollback|savepoint|lock|alter|create|drop|rename|call|delete|do|handler|insert|load|replace|select|truncate|update|set|show|pragma|grant)\\b",e:";",eW:true,k:{keyword:"all partial global month current_timestamp using go revoke smallint indicator end-exec disconnect zone with character assertion to add current_user usage input local alter match collate real then rollback get read timestamp session_user not integer bit unique day minute desc insert execute like ilike|2 level decimal drop continue isolation found where constraints domain right national some module transaction relative second connect escape close system_user for deferred section cast current sqlstate allocate intersect deallocate numeric public preserve full goto initially asc no key output collation group by union session both last language constraint column of space foreign deferrable prior connection unknown action commit view or first into float year primary cascaded except restrict set references names table outer open select size are rows from prepare distinct leading create only next inner authorization schema corresponding option declare precision immediate else timezone_minute external varying translation true case exception join hour default double scroll value cursor descriptor values dec fetch procedure delete and false int is describe char as at in varchar null trailing any absolute current_time end grant privileges when cross check write current_date pad begin temporary exec time update catalog user sql date on identity timezone_hour natural whenever interval work order cascade diagnostics nchar having left call do handler load replace truncate start lock show pragma",aggregate:"count sum min max avg"},c:[{cN:"string",b:"'",e:"'",c:[a.BE,{b:"''"}],r:0},{cN:"string",b:'"',e:'"',c:[a.BE,{b:'""'}],r:0},{cN:"string",b:"`",e:"`",c:[a.BE]},a.CNM]},a.CBLCLM,{cN:"comment",b:"--",e:"$"}]}}}(hljs);hljs.LANGUAGES.ini=function(a){return{cI:true,dM:{i:"[^\\s]",c:[{cN:"comment",b:";",e:"$"},{cN:"title",b:"^\\[",e:"\\]"},{cN:"setting",b:"^[a-z0-9_\\[\\]]+[ \\t]*=[ \\t]*",e:"$",c:[{cN:"value",eW:true,k:"on off true false yes no",c:[a.QSM,a.NM]}]}]}}}(hljs);hljs.LANGUAGES.perl=function(e){var a="getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qqfileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmgetsub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedirioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0";var d={cN:"subst",b:"[$@]\\{",e:"\\}",k:a,r:10};var b={cN:"variable",b:"\\$\\d"};var i={cN:"variable",b:"[\\$\\%\\@\\*](\\^\\w\\b|#\\w+(\\:\\:\\w+)*|[^\\s\\w{]|{\\w+}|\\w+(\\:\\:\\w*)*)"};var f=[e.BE,d,b,i];var h={b:"->",c:[{b:e.IR},{b:"{",e:"}"}]};var g={cN:"comment",b:"^(__END__|__DATA__)",e:"\\n$",r:5};var c=[b,i,e.HCM,g,{cN:"comment",b:"^\\=\\w",e:"\\=cut",eW:true},h,{cN:"string",b:"q[qwxr]?\\s*\\(",e:"\\)",c:f,r:5},{cN:"string",b:"q[qwxr]?\\s*\\[",e:"\\]",c:f,r:5},{cN:"string",b:"q[qwxr]?\\s*\\{",e:"\\}",c:f,r:5},{cN:"string",b:"q[qwxr]?\\s*\\|",e:"\\|",c:f,r:5},{cN:"string",b:"q[qwxr]?\\s*\\<",e:"\\>",c:f,r:5},{cN:"string",b:"qw\\s+q",e:"q",c:f,r:5},{cN:"string",b:"'",e:"'",c:[e.BE],r:0},{cN:"string",b:'"',e:'"',c:f,r:0},{cN:"string",b:"`",e:"`",c:[e.BE]},{cN:"string",b:"{\\w+}",r:0},{cN:"string",b:"-?\\w+\\s*\\=\\>",r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{b:"("+e.RSR+"|\\b(split|return|print|reverse|grep)\\b)\\s*",k:"split return print reverse grep",r:0,c:[e.HCM,g,{cN:"regexp",b:"(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*",r:10},{cN:"regexp",b:"(m|qr)?/",e:"/[a-z]*",c:[e.BE],r:0}]},{cN:"sub",bWK:true,e:"(\\s*\\(.*?\\))?[;{]",k:"sub",r:5},{cN:"operator",b:"-\\w\\b",r:0}];d.c=c;h.c[1].c=c;return{dM:{k:a,c:c}}}(hljs);hljs.LANGUAGES.objectivec=function(a){var b={keyword:"int float while private char catch export sizeof typedef const struct for union unsigned long volatile static protected bool mutable if public do return goto void enum else break extern class asm case short default double throw register explicit signed typename try this switch continue wchar_t inline readonly assign property protocol self synchronized end synthesize id optional required implementation nonatomic interface super unichar finally dynamic IBOutlet IBAction selector strong weak readonly",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"NSString NSDictionary CGRect CGPoint UIButton UILabel UITextView UIWebView MKMapView UISegmentedControl NSObject UITableViewDelegate UITableViewDataSource NSThread UIActivityIndicator UITabbar UIToolBar UIBarButtonItem UIImageView NSAutoreleasePool UITableView BOOL NSInteger CGFloat NSException NSLog NSMutableString NSMutableArray NSMutableDictionary NSURL NSIndexPath CGSize UITableViewCell UIView UIViewController UINavigationBar UINavigationController UITabBarController UIPopoverController UIPopoverControllerDelegate UIImage NSNumber UISearchBar NSFetchedResultsController NSFetchedResultsChangeType UIScrollView UIScrollViewDelegate UIEdgeInsets UIColor UIFont UIApplication NSNotFound NSNotificationCenter NSNotification UILocalNotification NSBundle NSFileManager NSTimeInterval NSDate NSCalendar NSUserDefaults UIWindow NSRange NSArray NSError NSURLRequest NSURLConnection class UIInterfaceOrientation MPMoviePlayerController dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"};return{dM:{k:b,i:""}]},{cN:"preprocessor",b:"#",e:"$"},{cN:"class",bWK:true,e:"({|$)",k:"interface class protocol implementation",c:[{cN:"id",b:a.UIR}]},{cN:"variable",b:"\\."+a.UIR}]}}}(hljs);hljs.LANGUAGES.coffeescript=function(e){var d={keyword:"in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger class extends superthen unless until loop of by when and or is isnt not",literal:"true false null undefined yes no on off ",reserved:"case default function var void with const let enum export import native __hasProp __extends __slice __bind __indexOf"};var a="[A-Za-z$_][0-9A-Za-z$_]*";var h={cN:"subst",b:"#\\{",e:"}",k:d,c:[e.CNM,e.BNM]};var b={cN:"string",b:'"',e:'"',r:0,c:[e.BE,h]};var j={cN:"string",b:'"""',e:'"""',c:[e.BE,h]};var f={cN:"comment",b:"###",e:"###"};var g={cN:"regexp",b:"///",e:"///",c:[e.HCM]};var i={cN:"function",b:a+"\\s*=\\s*(\\(.+\\))?\\s*[-=]>",rB:true,c:[{cN:"title",b:a},{cN:"params",b:"\\(",e:"\\)"}]};var c={b:"`",e:"`",eB:true,eE:true,sL:"javascript"};return{dM:{k:d,c:[e.CNM,e.BNM,e.ASM,j,b,f,e.HCM,g,c,i]}}}(hljs);hljs.LANGUAGES.nginx=function(b){var c=[{cN:"variable",b:"\\$\\d+"},{cN:"variable",b:"\\${",e:"}"},{cN:"variable",b:"[\\$\\@]"+b.UIR}];var a={eW:true,l:"[a-z/_]+",k:{built_in:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},r:0,i:"=>",c:[b.HCM,{cN:"string",b:'"',e:'"',c:[b.BE].concat(c),r:0},{cN:"string",b:"'",e:"'",c:[b.BE].concat(c),r:0},{cN:"url",b:"([a-z]+):/",e:"\\s",eW:true,eE:true},{cN:"regexp",b:"\\s\\^",e:"\\s|{|;",rE:true,c:[b.BE].concat(c)},{cN:"regexp",b:"~\\*?\\s+",e:"\\s|{|;",rE:true,c:[b.BE].concat(c)},{cN:"regexp",b:"\\*(\\.[a-z\\-]+)+",c:[b.BE].concat(c)},{cN:"regexp",b:"([a-z\\-]+\\.)+\\*",c:[b.BE].concat(c)},{cN:"number",b:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{cN:"number",b:"\\b\\d+[kKmMgGdshdwy]*\\b",r:0}].concat(c)};return{dM:{c:[b.HCM,{b:b.UIR+"\\s",e:";|{",rB:true,c:[{cN:"title",b:b.UIR,starts:a}]}],i:"[\\\\/%\\[\\$]"}}}(hljs);hljs.LANGUAGES.json=function(a){var e={literal:"true false null"};var d=[a.QSM,a.CNM];var c={cN:"value",e:",",eW:true,eE:true,c:d,k:e};var b={b:"{",e:"}",c:[{cN:"attribute",b:'\\s*"',e:'"\\s*:\\s*',eB:true,eE:true,c:[a.BE],i:"\\n",starts:c}],i:"\\S"};var f={b:"\\[",e:"\\]",c:[a.inherit(c,{cN:null})],i:"\\S"};d.splice(d.length,0,b,f);return{dM:{c:d,k:e,i:"\\S"}}}(hljs);hljs.LANGUAGES.cpp=function(a){var b={keyword:"false int float while private char catch export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const struct for static_cast|10 union namespace unsigned long throw volatile static protected bool template mutable if public friend do return goto auto void enum else break new extern using true class asm case typeid short reinterpret_cast|10 default double register explicit signed typename try this switch continue wchar_t inline delete alignof char16_t char32_t constexpr decltype noexcept nullptr static_assert thread_local restrict _Bool complex",built_in:"std string cin cout cerr clog stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap array shared_ptr"};return{dM:{k:b,i:"",k:b,r:10,c:["self"]}]}}}(hljs); --------------------------------------------------------------------------------