Permalink
Browse files

add moz rust internship talk

  • Loading branch information...
1 parent 4aac92e commit cc4108a6394c8da40759ab584bb38c5ab9b28954 @bblum committed Oct 30, 2012
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -0,0 +1,28 @@
+#!/bin/bash
+# Use with extreme caution.
+# You will probably need to \definecolor several of these.
+
+IFS='\n'
+while read line; do
+ echo -n "\\texttt{"
+ echo -n "$line" | sed 's/{/\\{/g' | sed 's/}/\\}/g' | sed 's/_/\\_/g' | sed 's/~/\\textasciitilde/g' | sed 's/ /~/g' | sed 's/^\t*//' | sed 's/%/\\%/g' | sed 's/&/\\\&/g' | \
+ sed 's/\<fn\>/\\hilight{brown}{fn}/g' | \
+ sed 's/\<do\>/\\hilight{brown}{do}/g' | \
+ sed 's/\<for\>/\\hilight{brown}{for}/g' | \
+ sed 's/\<let\>/\\hilight{brown}{let}/g' | \
+ sed 's/\<mut\>/\\hilight{brown}{mut}/g' | \
+ sed 's/\<if\>/\\hilight{brown}{if}/g' | \
+ sed 's/\<impl\>/\\hilight{brown}{impl}/g' | \
+ sed 's/\<const\>/\\hilight{brown}{const}/g' | \
+ sed 's/\<send\>/\\hilight{brown}{send}/g' | \
+ sed 's/\(\/\/.*\)/\\hilight{darkcyan}{\1}/g' | \
+ sed 's/\<assert\>/\\hilight{red}{assert}/g' | \
+ sed 's/\<main\>/\\hilight{olivegreen}{main}/g' | \
+ sed 's/\<5\>/\\hilight{brickred}{5}/g' | \
+ sed 's/\(".*"\)/\\hilight{brickred}{\1}/g' | \
+ sed 's/\(\<\w*\>\)::/\\hilight{violet}{\1}::/g' | \
+ sed 's/::/\\hilight{grey}{::}/g' | \
+ sed 's/\(\w*!\)/\\hilight{blue}{\1}/g' | \
+ cat
+ echo "} \\\\"
+done
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.

0 comments on commit cc4108a

Please sign in to comment.