cd -
So useful I had to share!
Assorted notes on my development experiences, and other useful workflow and environment tips, for Windows and Linux.
cd -
sudo apt-get install source-highlight
export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s"
export LESS=' -R '
source-highlight --lang-list
for a full listing.
#!/bin/bash
nautilus.original --no-desktop $@ &
fmt.Scanf("%d", &num)
will work in Unix but not in Windows. You're most likely to notice this when using fmt.Scanf multiple times - either in a for loop or simply sequentially. fmt.Scanf will likely appear to run twice as often as you expect, leading to unexpected program flow. fmt.Scanf("%d\n", &num)
n, err := fmt.Scanf("%d", &num)
if err != nil {
fmt.Println(n, err)
}
In the above case, we get this error: 20 unexpected newline
Which gives us the line number, and the issue from that line. sudo aptitude install gstreamer0.10-plugins-bad gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly
pandoc input.tex -o output.html --mathjax