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
// provide plenty of heap memory java -Xmx1500m ... | |
import java.util.*; | |
public class HashTable { | |
public static void main(String[] args) { | |
long insertDurationSum = 0; | |
long[] insertDurationMeas = new long[10]; | |
final Hashtable<Integer,Double> ht = new Hashtable<Integer,Double>(); |
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
-- credit goes to sigfpe | |
{-# LANGUAGE MultiParamTypeClasses | |
,TemplateHaskell | |
,GeneralizedNewtypeDeriving | |
,DeriveFunctor | |
,FunctionalDependencies | |
,FlexibleInstances | |
,UndecidableInstances | |
,FlexibleContexts | |
,Rank2Types #-} |
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
module Main where | |
import qualified Data.Vector.Unboxed as V | |
import qualified Data.Vector as BV (generate,(!)) | |
import Data.List (foldl',sort,group) | |
import Data.Char (chr, ord) | |
import Data.Word | |
import Data.Bits | |
import Control.Monad | |
import Data.Maybe |
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
package org.apache.pdfbox; | |
import org.apache.pdfbox.exceptions.InvalidPasswordException; | |
import org.apache.pdfbox.pdmodel.PDDocument; | |
import org.apache.pdfbox.pdmodel.PDPage; | |
import org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation; | |
import org.apache.pdfbox.pdmodel.common.PDRectangle; | |
import org.apache.pdfbox.util.PDFTextStripperByArea; |
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
-- element tree, http://etree.luaforge.net/ (is a bit buggy for the {decl = false} option) | |
local el = require "etree" | |
-- nodelist visualization (optional), https://gist.github.com/556247 | |
-- local viz = require "viznodelist" | |
function convertToMathML(head) | |
return {tag="not implemented"} | |
end |