- Python
- Inkscape (on command line path)
- ImageMagick
This installs a patched ruby 1.9.3-p374 with the railsexpress patchsets: https://github.com/skaes/rvm-patchsets
You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.
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
| module Main where | |
| import qualified Hw1 as H | |
| import Text.Printf | |
| main :: IO () | |
| main = do | |
| putStrLn(printf "rectangle sides: %d" (H.sides (H.rectangle 2 3))) | |
| putStrLn(printf "rtTriangle sides: %d" (H.sides (H.rtTriangle 2 3))) | |
| putStrLn(printf "Polygon sides with 0 vertexes: %d" (H.sides (H.Polygon []))) |
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
| require 'tire' | |
| # Tire.configure { logger STDERR, level: 'debug' } | |
| Tire.index('movie-titles') do | |
| delete | |
| create \ | |
| settings: { | |
| index: { | |
| analysis: { |
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
| import akka.actor._ | |
| import java.net.InetSocketAddress | |
| import akka.util.ByteString | |
| class SimpleClient(destAddress: InetSocketAddress) extends Actor { | |
| val socket = IOManager(context.system) connect (destAddress) | |
| val state = IO.IterateeRef.sync() |
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
| /** | |
| * © 2012 Typesafe Inc. | |
| * | |
| * Extracted from http://doc.akka.io/docs/akka/2.1.0-RC2/scala/io.html | |
| */ | |
| import akka.actor._ | |
| import akka.util.{ ByteString, ByteStringBuilder } | |
| import java.net.InetSocketAddress |
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
| require 'picky' | |
| Person = Struct.new :id, :age, :name | |
| data = Picky::Index.new :people do | |
| category :age, partial: Picky::Partial::None.new | |
| category :name | |
| end | |
| data.replace Person.new(1, 34, 'Florian') |
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
| {-# LANGUAGE FlexibleContexts #-} | |
| import Data.Conduit | |
| import qualified Data.Conduit.List as CL | |
| import Network.HTTP.Conduit | |
| import Control.Concurrent.Async (mapConcurrently) | |
| import Control.Concurrent.MVar | |
| import Control.Monad.IO.Class (liftIO) | |
| import Control.Monad.Trans.Control (MonadBaseControl) |
