This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for file in */*.ogg | |
do | |
echo "* Converting: $name" | |
name=${file%%.*} | |
ogg123 -d wav -f - $file | lame -h -m s -b 192 - "$name.mp3" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | |
1 1 | |
1 2 1 | |
1 3 3 1 | |
1 4 6 4 1 | |
1 5 10 10 5 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cond = cond_interval_count(((0, 1), (1, 2))) | |
filter_sets(cond) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\newcommand{\header}[1]{ | |
\begin{tikzpicture} | |
\node [fill=shade,rounded corners=5pt] | |
{ | |
\parbox{.95\linewidth}{ | |
\large | |
\textcolor{blue}{\sf \textbf{\raisebox{-15pt}{#1}}} | |
\vspace*{1ex} | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\newcommand{code}[2]{ | |
hrulefill | |
subsection*{#1} | |
lstinputlisting{#2} | |
vspace{2em} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s/\quarternote= /\quarternote=/g | |
s/\quarternote /\quarternote{} / | |
s/\textbf{Exercise/\par \\textbf{Exercise/g | |
s/\textbf{Track/\par \\textbf{Track/g |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def p(): | |
return p() | |
def test(x, y): | |
return 0 if x == 0 else y | |
test(0, p()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for node in nodes: | |
node.getparent().remove(node) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -F 'login=name' -F 'token=yourtoken' http://github.com/api/v2/yaml/repos/create/ -F 'name=reponame |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lxml.html | |
page = lxml.html.parse("final.html").getroot() | |
images = page.xpath("//img") | |
for node in images: | |
node.getparent().remove(node) | |
with open("out.html", 'w') as outhtml: | |
outhtml.write(lxml.html.tostring(page)) |
OlderNewer