This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Diagnostics; | |
| namespace HeapSort { | |
| /// <summary> | |
| /// Implementerer en max-heap (binær) af T. | |
| /// </summary> |
This file contains hidden or 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
| // ==UserScript== | |
| // @name Poke everyone! | |
| // @description Pokes everyone you specify. | |
| // @author Sebastian Paaske Tørholm | |
| // @include http://*.facebook.com/* | |
| // @include https://*.facebook.com/* | |
| // @match http://*.facebook.com/* | |
| // @match https://*.facebook.com/* | |
| // @require http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js | |
| // @version 1.0 |
This file contains hidden or 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
| #!/usr/bin/python | |
| import urllib2 | |
| import random | |
| import lxml.html | |
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.text import MIMEText | |
| from email.mime.image import MIMEImage | |
| import smtplib | |
| offset = random.randint(0, 2450) |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
| 1000 | |
| ........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ | |
| .................. |
This file contains hidden or 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
| \documentclass[11pt,a4paper]{article} | |
| \usepackage[utf8]{inputenc} | |
| \usepackage[english]{babel} | |
| \usepackage[T1]{fontenc} | |
| \usepackage{amsmath,amssymb,amsfonts} | |
| % \item til referater | |
| \newcommand{\refitem}[2]{\item { \textbf{#1} \\[1em] #2 }} |
This file contains hidden or 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
| (* Combinatorica contains HasseDiagram,so we need to load it. *) | |
| <<Combinatorica`; | |
| (* The set the partial order operates on. *) | |
| nums = {1, 2, 4, 7, 8, 14, 30}; | |
| (* Define our partial order. *) | |
| pOrder[x_, y_] := Divisible[y, x]; | |
| (* Generate a directed graph from the partial order. *) |
This file contains hidden or 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
| val F = print o implode o rev o explode |
This file contains hidden or 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
| fun A () = B "fun B x = ... and F x = ..." |
This file contains hidden or 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
| fun B x = F ("fun A x = B \"" ^ x ^ "\"\n" ^ x) |
This file contains hidden or 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
| fun B x = let fun esc (#"\""::xs) = #"\\" :: #"\"" :: esc xs | |
| | esc (#"\\"::xs) = #"\\" :: #"\\" :: esc xs | |
| | esc (x::xs) = x :: esc xs | |
| | esc [] = [] | |
| in F ("fun A x = B \"" ^ (implode o esc o explode) x ^ "\"\n" ^ x) end |