This is a summary of the "Learn You A Haskell" online book under http://learnyouahaskell.com/chapters.
- Haskell is a functional programming language.
This is a summary of the "Learn You A Haskell" online book under http://learnyouahaskell.com/chapters.
#!/bin/env python | |
from smtpd import SMTPChannel, SMTPServer | |
import asyncore | |
class LMTPChannel(SMTPChannel): | |
# LMTP "LHLO" command is routed to the SMTP/ESMTP command | |
def smtp_LHLO(self, arg): | |
self.smtp_HELO(arg) |
(defun eshell-mode-hook-func () | |
(setq eshell-path-env (concat "/usr/local/bin:" eshell-path-env)) | |
(setenv "PATH" (concat "/usr/local/bin:" (getenv "PATH"))) | |
(define-key eshell-mode-map (kbd "M-s") 'other-window-or-split)) | |
(add-hook 'eshell-mode-hook 'eshell-mode-hook-func) |
/* | |
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp | |
server, but for some reason omit a client connecting to it. I added an | |
example at the bottom. | |
Save the following server in example.js: | |
*/ | |
var net = require('net'); |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
Generate a new Elixir project using mix
and add cowboy
and plug
as dependencies in mix.exs
:
defp deps do
[
{:cowboy, "~> 1.0.0"},
{:plug, "~> 0.8.1"}
]
end
yum -y groupinstall "Development Tools" | |
yum -y install gtk+-devel gtk2-devel | |
yum -y install libXpm-devel | |
yum -y install libpng-devel | |
yum -y install giflib-devel |
[Background] | |
Color=40,40,40 | |
[BackgroundIntense] | |
Color=40,40,40 | |
[Color0] | |
Color=73,72,62 | |
[Color0Intense] |