This is the extra file.
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 parseInput(a,flag) | |
def handleOne(x) | |
if x.length == 1 or x =~ /^\+[a-z]$/ | |
1 | |
elsif x =~ /^-[a-z]$/ | |
-1 | |
else | |
x.chop.to_i | |
end | |
end |
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
# -*- coding: utf-8 -*- | |
'''Takes plug.dj user playlists and uploads them to youtube, the playlists are uploaded with the same name as the playlist on plug | |
Require libraries | |
Youtube Data API from http://code.google.com/p/gdata-python-client/ | |
USAGE: |
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
len([1 for x,y in [[random.random() for t in range(2)] for i in range(1000000)] if math.sqrt(x**2+y**2)<=1])/250000.0 |
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 (i in ids){ | |
setTimeout(function(){ | |
$.post('track',{id:ids[i]}, function(data){ | |
done = done+1 | |
setProgress(done,total) | |
console.log(data) | |
})}, i*1000) |
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
#fountin | |
import random, math, itertools | |
def randomN(n): | |
while True: | |
yield random.randint(1,0.5*n*(n+1)) | |
def stream(w): | |
rand = randomN(len(w)) |
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
all: | |
pandoc --filter pandoc-citeproc --variable="linestretch=2" --template=afterbody.tex -o minimal.pdf minimal.md |
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 Text.Pandoc.JSON | |
import Text.Parsec | |
import Control.Applicative | |
import Data.Monoid | |
main :: IO () | |
main = toJSONFilter index | |
index :: Maybe Format -> Inline -> [Inline] | |
index (Just (Format f)) c@(Code _ s) = |
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
Sat Dec 6 21:21 2014 Time and Allocation Profiling Report (Final) | |
pandoc +RTS -K16m -p -K4000M -RTS -f html -t plain -o plain.txt 76d21fc1321880f48eb6/bad.html | |
total time = 71.03 secs (71031 ticks @ 1000 us, 1 processor) | |
total alloc = 148,899,219,400 bytes (excludes profiling overheads) | |
COST CENTRE MODULE %time %alloc | |
realLength Text.Pandoc.Pretty 30.3 27.6 |
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
{-# LANGUAGE ViewPatterns #-} | |
module InTex where | |
import Text.Pandoc.JSON | |
import Text.Pandoc | |
import Data.List | |
main :: IO () | |
main = toJSONFilter readFootnotes |
OlderNewer