source: https://www.youtube.com/watch?v=sRonIB8ZStw
- google for haskell stack
- install stack
- find stack bin path (stack path)
- add stack bin path to user PATH variable
- building wreq using stack
- find wreq in hackage
| # sbt | |
| # (may want to keep parts of 'project') | |
| # from https://alvinalexander.com/source-code/scala/sample-gitignore-file-scala-sbt-intellij-eclipse | |
| bin/ | |
| project/ | |
| target/ | |
| build/ | |
| # eclipse | |
| build |
| #!/usr/bin/env stack | |
| -- stack runghc --resolver lts-11.2 --install-ghc | |
| import Text.Read (readMaybe) | |
| import System.Environment (getArgs) | |
| progress :: Integer -> String | |
| progress pag = show $ fromIntegral ( div (pag * 10000) 1971) / 100 | |
| showProgress :: [String] -> IO() | |
| showProgress args = |
source: https://www.youtube.com/watch?v=sRonIB8ZStw
| // División Político Territorial | |
| Estados = { | |
| "01": {"nombre":"DISTRITO CAPITAL", | |
| "municipios":["0101"]}, | |
| "02": {"nombre":"AMAZONAS", | |
| "municipios":["0201","0202","0203","0204","0205","0206","0207"]}, | |
| "03": {"nombre":"ANZOATEGUI", | |
| "municipios":["0301","0302","0303","0304","0305","0306","0307","0308","0309","0310","0311", | |
| "0312","0313","0314","0315","0316","0317","0318","0319","0320","0321"]}, |
| -- Fuck Every Word | |
| -- inspired by https://twitter.com/fuckeveryword | |
| -- usage: runghc few.hs < some_text_file.txt | |
| fuckAWord a = "Fuck " ++ a ++ "!\n" | |
| fuckEveryWord = concat . map fuckAWord . words | |
| main = interact fuckEveryWord |