This file contains 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
provider "aws" { | |
access_key = "${var.access_key}" | |
secret_key = "${var.secret_key}" | |
region = "us-east-1" | |
} | |
variable "access_key" {} | |
variable "secret_key" {} |
This file contains 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
LOGGING_CONFIG = None | |
LOGGING = { | |
'version': 1, | |
'formatters': { | |
'long': { | |
'format': "%(asctime)s %(levelname)-8s %(module)s: %(message)s", | |
}, | |
}, | |
'handlers': { | |
'stderr': { |
This file contains 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
FROM pikeas/base:20150427 | |
MAINTAINER Aris Pikeas <[email protected]> | |
RUN \ | |
apt-get update && \ | |
apt-get install -y \ | |
cabal-install-1.22=1.22.2.0-1~vivid \ | |
ghc-7.10.1=7.10.1-9~vivid && \ | |
apt-get clean && rm -rf /var/lib/{apt,dpkg} /tmp/* /var/tmp/* |
This file contains 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
root@c3019c994eb5:/app# cabal install hlint | |
Resolving dependencies... | |
Configuring haskell-src-exts-1.16.0.1... | |
Building haskell-src-exts-1.16.0.1... | |
Preprocessing library haskell-src-exts-1.16.0.1... | |
src/Language/Haskell/Exts.hs:52:8: | |
Could not find module ‘Language.Preprocessor.Unlit’ | |
There are files missing in the ‘cpphs-1.19@cpphs_1rSlWgkTK0KELGZZIdxa8W’ package, | |
try running 'ghc-pkg check'. |
This file contains 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
Downloading haskell-src-exts-1.16.0.1... | |
Configuring haskell-src-exts-1.16.0.1... | |
cabal: The program 'happy' version >=1.17 is required but it could not be | |
found. | |
Failed to install haskell-src-exts-1.16.0.1 | |
cabal: Error: some packages failed to install: | |
haskell-src-exts-1.16.0.1 failed during the configure step. The exception was: | |
ExitFailure 1 | |
hlint-1.9.20 depends on haskell-src-exts-1.16.0.1 which failed to install. |
This file contains 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
insert :: LogMessage -> MessageTree -> MessageTree | |
insert msg@LogMessage{} Leaf = Node Leaf msg Leaf | |
insert msg1@(LogMessage _ ts1 _) (Node left msg2@(LogMessage _ ts2 _) right) = case ts1 < ts2 of | |
True -> Node (insert msg1 left) msg2 right | |
False -> Node left msg2 (insert msg1 right) | |
insert _ tree@Node{} = tree |
This file contains 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
http://cheatsheet.codeslower.com/CheatSheet.pdf | |
https://wiki.haskell.org/Learn_Haskell_in_10_minutes | |
https://github.com/fpinscala/fpinscala/wiki/A-brief-introduction-to-Haskell,-and-why-it-matters | |
https://github.com/bitemyapp/learnhaskell | |
http://en.wikibooks.org/wiki/Haskell | |
http://dev.stephendiehl.com/hask/ | |
http://book.realworldhaskell.org/read/ | |
https://www.reddit.com/r/haskell/comments/332s1k/what_haskell_web_framework_do_you_use_and_why/ |
This file contains 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
# Relevant bits only | |
{ | |
entry: { | |
main: [ | |
'webpack-dev-server/client?http://localhost:8080', | |
'webpack/hot/only-dev-server', | |
... | |
] | |
vendor: ['jquery', 'react', 'reflux', 'react/lib/ReactComponentBrowserEnvironment'] |
This file contains 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
# Bad config | |
/***/ 128: | |
/*!************************!*\ | |
!*** ./app/style.styl ***! | |
\************************/ | |
/***/ function(module, exports, __webpack_require__) { | |
module.exports = | |
"body {\n background: #eef;\n}\nhtml,\nbody {\n height: 100%;\n margin: 0;\n}\n"; |
This file contains 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
ERROR in ./app/Main.jsx | |
Module parse failed: /Users/pikeas/Documents/code/pypjs/crypto/front/react-starter/app/Main.jsx Line 19: Unexpected token < | |
You may need an appropriate loader to handle this file type. | |
| var Application = React.createClass({ | |
| render: function() { | |
| return <Example />; | |
| } | |
| }); | |
@ ./config/app.jsx?Main 4:18-64 |