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
| # ~/.bash.d/touchpad.sh | |
| touchpad () | |
| { | |
| echo "WARNING: This script is currently hardware-specific."; | |
| echo " You should only use this on the Dell XPS 13."; | |
| local arg=$1; | |
| local touchpad_id=$(xinput list | grep Trackpad | sed 's/^.*id=//' | sed -re 's/[[:space:]]+.*//'); | |
| case $arg in | |
| info) | |
| xinput list | grep --line-buffered Trackpad |
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
| [aaron@ubuntu|~/code/yorgey-haskell-course/week-03|git:master|rb:2.1.2p95] | |
| ↳ cabal install haskell-src-exts-1.15.0.1 | |
| Resolving dependencies... | |
| [1 of 1] Compiling Main ( /tmp/haskell-src-exts-1.15.0.1-45950/haskell-src-exts-1.15.0.1/dist/setup/setup.hs, /tmp/haskell-src-exts-1.15.0.1-45950/haskell-src-exts-1.15.0.1/dist/setup/Main.o ) | |
| Linking /tmp/haskell-src-exts-1.15.0.1-45950/haskell-src-exts-1.15.0.1/dist/setup/setup ... | |
| Configuring haskell-src-exts-1.15.0.1... | |
| Building haskell-src-exts-1.15.0.1... | |
| Preprocessing library haskell-src-exts-1.15.0.1... | |
| [ 1 of 22] Compiling Language.Haskell.Exts.Annotated.Syntax ( src/Language/Haskell/Exts/Annotated/Syntax.hs, dist/build/Language/Haskell/Exts/Annotated/Syntax.o ) | |
| Failed to install haskell-src-exts-1.15.0.1 |
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
| ↳ ghc-pkg check | |
| Warning: haddock-interfaces: /home/aaron/.cabal/share/doc/x86_64-linux-ghc-7.8.2/network-2.5.0.0/html/network.haddock doesn't exist or isn't a file | |
| Warning: haddock-html: /home/aaron/.cabal/share/doc/x86_64-linux-ghc-7.8.2/network-2.5.0.0/html doesn't exist or isn't a directory | |
| Warning: haddock-interfaces: /home/aaron/.cabal/share/doc/x86_64-linux-ghc-7.8.2/parsec-3.1.5/html/parsec.haddock doesn't exist or isn't a file | |
| Warning: haddock-html: /home/aaron/.cabal/share/doc/x86_64-linux-ghc-7.8.2/parsec-3.1.5/html doesn't exist or isn't a directory | |
| Warning: haddock-interfaces: /home/aaron/.cabal/share/doc/x86_64-linux-ghc-7.8.2/text-1.1.1.3/html/text.haddock doesn't exist or isn't a file | |
| Warning: haddock-html: /home/aaron/.cabal/share/doc/x86_64-linux-ghc-7.8.2/text-1.1.1.3/html doesn't exist or isn't a directory | |
| Warning: haddock-interfaces: /home/aaron/.cabal/share/doc/x86_64-linux-ghc-7.8.2/syb-0.4.2/html/syb.haddock doesn't exist or isn't a file | |
| Warning: haddock-html: /home/aaron/.cabal/share/d |
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
| ↳ cabal install hoogle | |
| Resolving dependencies... | |
| Downloading dlist-0.7.1... | |
| Configuring dlist-0.7.1... | |
| Building dlist-0.7.1... | |
| Preprocessing library dlist-0.7.1... | |
| [1 of 1] Compiling Data.DList ( Data/DList.hs, dist/build/Data/DList.o ) | |
| In-place registering dlist-0.7.1... | |
| Creating package registration file: /tmp/pkgConf-dlist-0.729823.1 | |
| Installing library in |
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
| ↳ ghc-pkg check | |
| There are problems in package warp-3.0.0.3: | |
| Warning: library-dirs: /home/aaron/.cabal/lib/x86_64-linux-ghc-7.8.2/warp-3.0.0.3 doesn't exist or isn't a directory | |
| Warning: haddock-interfaces: /home/aaron/.cabal/share/doc/x86_64-linux-ghc-7.8.2/warp-3.0.0.3/html/warp.haddock doesn't exist or isn't a file | |
| Warning: haddock-html: /home/aaron/.cabal/share/doc/x86_64-linux-ghc-7.8.2/warp-3.0.0.3/html doesn't exist or isn't a directory | |
| import-dirs: /home/aaron/.cabal/lib/x86_64-linux-ghc-7.8.2/warp-3.0.0.3 doesn't exist or isn't a directory | |
| cannot find any of ["Network/Wai/Handler/Warp.hi","Network/Wai/Handler/Warp.p_hi","Network/Wai/Handler/Warp.dyn_hi"] | |
| cannot find any of ["Network/Wai/Handler/Warp/Buffer.hi","Network/Wai/Handler/Warp/Buffer.p_hi","Network/Wai/Handler/Warp/Buffer.dyn_hi"] | |
| cannot find any of ["Network/Wai/Handler/Warp/Timeout.hi","Network/Wai/Handler/Warp/Timeout.p_hi","Network/Wai/Handler/Warp/Timeout.dyn_hi"] | |
| cannot find any of ["Network/Wai/Handler/Warp/Internal.hi" |
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
| ↳ cabal install hoogle | |
| Resolving dependencies... | |
| In order, the following will be installed: | |
| cmdargs-0.10.7 (reinstall) changes: transformers-0.3.0.0 -> 0.4.1.0 | |
| haskell-src-exts-1.15.0.1 (new package) | |
| parsec-3.1.5 (reinstall) changes: mtl-2.1.3.1 -> 2.2.1 | |
| network-2.5.0.0 (reinstall) | |
| simple-sendfile-0.2.15 (reinstall) changes: network-2.5.0.0 added | |
| streaming-commons-0.1.3.1 (reinstall) changes: network-2.5.0.0 added | |
| wai-3.0.0.2 (reinstall) changes: network-2.5.0.0 added |
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
| [aaron@ubuntu|~/code/yorgey-haskell-course/week-03|git:master|rb:2.1.2p95] | |
| ↳ cabal install hdevtools | |
| Resolving dependencies... | |
| In order, the following would be installed: | |
| cmdargs-0.10.7 (reinstall) changes: transformers-0.4.1.0 -> 0.3.0.0 | |
| ghc-paths-0.1.0.9 (new package) | |
| mtl-2.1.3.1 (latest: 2.2.1) (new version) | |
| parsec-3.1.5 (reinstall) changes: mtl-2.2.1 -> 2.1.3.1 | |
| network-2.5.0.0 (reinstall) | |
| hdevtools-0.1.0.5 (new package) |
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
| {-# OPTIONS_GHC -Wall #-} | |
| module LogAnalysis where | |
| import Log | |
| import qualified Data.Text as T | |
| import Control.Monad | |
| import Data.Char | |
| parseMessage :: String -> LogMessage | |
| parseMessage = parseMessage' . T.split (==' ') . T.pack |
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
| type Peg = String | |
| type Move = (Peg, Peg) | |
| hanoi :: Integer -> Peg -> Peg -> Peg -> [Move] | |
| hanoi 1 p1 p2 _ = [(p1, p2)] | |
| hanoi n p1 p2 p3 = hanoi (n - 1) p1 p3 p2 ++ [(p1, p2)] ++ hanoi (n - 1) p3 p2 p1 |
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/env ruby | |
| # A few helpful tips about the Rules file: | |
| # | |
| # * The string given to #compile and #route are matching patterns for | |
| # identifiers--not for paths. Therefore, you can’t match on extension. | |
| # | |
| # * The order of rules is important: for each item, only the first matching | |
| # rule is applied. | |
| # |