Skip to content

Instantly share code, notes, and snippets.

View pikeas's full-sized avatar

Aris Pikeas pikeas

  • San Francisco, CA
View GitHub Profile
require 'ipaddr'
require 'ostruct'
require 'yaml'
SETTINGS = OpenStruct.new(YAML.load_file(File.expand_path('../vagrant.yaml', __FILE__)))
CLOUD_CONFIG_PATH = File.expand_path('../user-data.yaml', __FILE__)
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
# 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";
# Relevant bits only
{
entry: {
main: [
'webpack-dev-server/client?http://localhost:8080',
'webpack/hot/only-dev-server',
...
]
vendor: ['jquery', 'react', 'reflux', 'react/lib/ReactComponentBrowserEnvironment']
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/
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
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.
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'.
FROM pikeas/base:20150427
MAINTAINER Aris Pikeas <aris@pike.as>
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/*
LOGGING_CONFIG = None
LOGGING = {
'version': 1,
'formatters': {
'long': {
'format': "%(asctime)s %(levelname)-8s %(module)s: %(message)s",
},
},
'handlers': {
'stderr': {