Misc

JSON

RFC 7159

data interchange format … a text format for the serialization of structured data

Implementations that generate only objects or arrarys where a JSON text is called for will be interoperable in the sense that all implementations will accept these as conforming JSON texts.

A JSON parser transforms a JSON text into another representation…

git

$ git rm file1.txt
$ git commit -m "remove file1.txt"

Code highlighting

Pygments

Lexers
http://pygments.org/docs/lexers/#lexers

quick start for Jekyll

install Pygments

$ pip install Pygments

In the config.yaml file inside the root directory of your jekyll website, set pygments to true

highlighter: pygments

Usage

{% highlight language %}
... code ...
{% endhighlight %}

Code highlighting for Keynote presentations

step 1
$ brew install highlight
step 2
highlight the source code in RTF format and copy the result of that operation to your Mac’s clipboard:
$ highlight -O rtf fw.sql | pbcopy
$ highlight -S python  -O rtf fw.py | pbcopy
Step 3
Paste into your slide in Keynote. Keynote will create a new text box with your highlighted code. You can adjust the width as needed, and adjust the font size with cmd+ and cmd-.

Code highlighting for Latex

minted is a package that uses Pygments to provide top-notch syntax highlighting in LaTeX.

tools to explore

complete and fast LATEX to HTML translator
http://pauillac.inria.fr/hevea/