Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| -------------------------- | |
| -- CORE LIBRARY IMPORTS -- | |
| -------------------------- | |
| import Task exposing (Task, succeed, andThen, onError) | |
| import Json.Decode exposing (Decoder, object2, (:=), string, int, list, map) | |
| import Signal exposing (Signal, Mailbox, mailbox, send) | |
| import List | |
| --------------------------------- | |
| -- THIRD PARTY LIBRARY IMPORTS -- |
| source :: MonadIO m => Int -> Source m BS.ByteString | |
| source n = replicateM_ n $ do | |
| n <- liftIO $ liftM (succ.(`mod` 15)) randomIO | |
| s <- liftIO $ replicateM n (randomIO :: IO Word8) | |
| yield (BS.pack s) | |
| putter :: Putter BS.ByteString | |
| putter s = do |
| // initialize the Shanghai component which keeps track of | |
| // shipping data in and out of the Port of Shanghai. | |
| var shanghai = Elm.worker(Elm.Shanghai, { | |
| coordinates:[0,0], | |
| incomingShip: { name:"", capacity:0 }, | |
| outgoingShip: "" | |
| }); | |
| function logger(x) { console.log(x) } | |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| {-# LANGUAGE OverloadedStrings #-} | |
| module Main (main) where | |
| import Control.Concurrent (forkIO) | |
| import Control.Concurrent.STM | |
| import Control.Monad (when) | |
| import Control.Monad.Trans (liftIO) | |
| import Network.HTTP.Types | |
| import Network.Wai as Wai |
| 13:15 <xQuasar> | HASKELL IS FOR FUCKIN FAGGOTS. YOU'RE ALL A BUNCH OF | |
| | FUCKIN PUSSIES | |
| 13:15 <xQuasar> | JAVASCRIPT FOR LIFE FAGS | |
| 13:16 <luite> | hello | |
| 13:16 <ChongLi> | somebody has a mental illness! | |
| 13:16 <merijn> | Wow...I suddenly see the error of my ways and feel | |
| | compelled to write Node.js! | |
| 13:16 <genisage> | hi | |
| 13:16 <luite> | you might be pleased to learn that you can compile | |
| | haskell to javascript now |
| sudo add-apt-repository ppa:pitti/postgresql | |
| sudo apt-get update | |
| sudo apt-get install postgresql-9.2 postgresql-server-dev-9.2 postgresql-contrib-9.2 | |
| sudo su -l postgres | |
| psql -d template1 -p 5433 | |
| CREATE EXTENSION IF NOT EXISTS hstore; | |
| CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; | |
| service postgresql stop | |
| /usr/lib/postgresql/9.2/bin/pg_upgrade -b /usr/lib/postgresql/9.1/bin -B /usr/lib/postgresql/9.2/bin -d /var/lib/postgresql/9.1/main/ -D /var/lib/postgresql/9.2/main/ -O "-c config_file=/etc/postgresql/9.2/main/postgresql.conf" -o "-c config_file=/etc/postgresql/9.1/main/postgresql.conf" |
| ghc -i -static -optl-static -optl-pthread -funbox-strict-fields -fwarn-incomplete-patterns -isrc --make Program.hs |
| { | |
| "folders": | |
| [ | |
| { | |
| "path": "", | |
| "folder_exclude_patterns": ["cabal-dev", "dist"] | |
| } | |
| ], | |
| "build_systems": | |
| [ |
| {-# LANGUAGE BangPatterns #-} | |
| {-# LANGUAGE DeriveGeneric #-} | |
| {-# LANGUAGE FlexibleContexts #-} | |
| {-# LANGUAGE FlexibleInstances #-} | |
| {-# LANGUAGE GADTs #-} | |
| {-# LANGUAGE GeneralizedNewtypeDeriving #-} | |
| {-# LANGUAGE OverloadedStrings #-} | |
| {-# LANGUAGE OverlappingInstances #-} | |
| {-# LANGUAGE KindSignatures #-} | |
| {-# LANGUAGE ScopedTypeVariables #-} |