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
Resolving dependencies... | |
[1 of 1] Compiling Main ( /tmp/wxc-0.90.0.4-5661/wxc-0.90.0.4/Setup.hs, /tmp/wxc-0.90.0.4-5661/wxc-0.90.0.4/dist/setup/Main.o ) | |
Linking /tmp/wxc-0.90.0.4-5661/wxc-0.90.0.4/dist/setup/setup ... | |
Configuring wxc-0.90.0.4... | |
Warning: No config found to match: /usr/bin/wx-config --version=2.9 --version-full | |
in /usr/lib/x86_64-linux-gnu/wx/config | |
If you require this configuration, please install the desired | |
library build. If this is part of an automated configuration | |
test and no other errors occur, you may safely ignore it. |
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
2013-07-01 16:31:03+0200 [-] Log opened. | |
2013-07-01 16:31:03+0200 [-] Traceback (most recent call last): | |
2013-07-01 16:31:03+0200 [-] File "pickupbot", line 36, in <module> | |
2013-07-01 16:31:03+0200 [-] cli.from_commandline() | |
2013-07-01 16:31:03+0200 [-] File "/home/test/pypickbot-master/pypickupbot/cli.py", line 77, in from_commandline | |
2013-07-01 16:31:03+0200 [-] factory = IrcBotFactory() | |
2013-07-01 16:31:03+0200 [-] File "/home/test/pypickbot-master/pypickupbot/irc.py", line 244, in __init__ | |
2013-07-01 16:31:03+0200 [-] self.channels = config.getlist('Server', 'channels') | |
2013-07-01 16:31:03+0200 [-] File "/home/test/pypickbot-master/pypickupbot/config.py", line 92, in getlist | |
2013-07-01 16:31:03+0200 [-] s = get(section, option) |
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 OverloadedStrings #-} | |
import Prelude hiding (writeFile) | |
import Web.Scotty (scotty, get, post, html, file, param, redirect) | |
import Text.Blaze.Html5 (Html) | |
import qualified Text.Blaze.Html5 as H | |
import qualified Text.Blaze.Html5.Attributes as A | |
import Text.Blaze.Html.Renderer.Text (renderHtml) | |
import Text.Pandoc (Pandoc, readMarkdown, writeHtml, def) | |
import Data.Text.Lazy.IO (writeFile) | |
import Control.Monad.Trans (liftIO) |
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 OverloadedStrings #-} | |
import Prelude hiding (writeFile) | |
import Web.Scotty (scotty, get, post, html, file, param, redirect) | |
import Text.Blaze.Html5 (Html) | |
import qualified Text.Blaze.Html5 as H | |
import qualified Text.Blaze.Html5.Attributes as A | |
import Text.Blaze.Html.Renderer.Text (renderHtml) | |
import Text.Pandoc (Pandoc, readMarkdown, writeHtml, def) | |
import Data.Text.Lazy.IO (writeFile) | |
import Control.Monad.Trans (liftIO) |
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 OverloadedStrings #-} | |
import Web.Scotty (scotty, get, post, html, file, param, redirect) | |
import Text.Blaze.Html5 (Html) | |
import qualified Text.Blaze.Html5 as H | |
import qualified Text.Blaze.Html5.Attributes as A | |
import Text.Blaze.Html.Renderer.Text (renderHtml) | |
import Text.Pandoc (readMarkdown, writeHtml, def) | |
import Data.Text (Text, unpack) | |
import Control.Monad.Trans (liftIO) |
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 OverloadedStrings #-} | |
-- Extremely simple web app serving a log file | |
import Web.Scotty | |
import qualified Text.Blaze.Html5 as H | |
import Text.Blaze.Renderer.Text (renderHtml) | |
import Data.Text (Text, pack) | |
import Control.Monad.Trans (liftIO) | |
main = scotty 3000 $ do |
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
-- Extremely simple irc bot that logs all privmsg's sent to #lobby | |
import Network (connectTo, PortID (PortNumber)) | |
import System.IO (hGetLine, hPutStrLn, hSetBuffering, BufferMode (NoBuffering), Handle) | |
import Data.List (isPrefixOf) | |
main = connect | |
connect :: IO () | |
connect = do |
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
ideas if i dont know what to code... | |
* a config file library, since the major one (Data.ConfigFile) could be simplified | |
* a web application (with scotty) | |
* a serious IRC bot | |
* a small programming language | |
* a small utility to check the computers stats | |
... |
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
$ sudo prt-get depinst libsdl | |
prt-get: installing /usr/ports/opt/libsdl | |
=======> Building '/usr/ports/opt/libsdl/libsdl#1.2.15-1.pkg.tar.gz'. | |
bsdtar -p -o -C /usr/ports/opt/libsdl/work/src -xf /usr/ports/opt/libsdl/SDL-1.2.15.tar.gz | |
+ build | |
+ cd SDL-1.2.15 | |
+ ./configure --prefix=/usr --enable-alsa --mandir=/usr/man | |
checking build system type... x86_64-unknown-linux-gnu | |
checking host system type... x86_64-unknown-linux-gnu | |
checking for gcc... gcc |
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
#include <stdio.h> | |
main | |
{ | |
printf ("%d\n", fib(10)); | |
} | |
int fib (int num) | |
{ | |
if (num < 2) |