Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| ### | |
| Module dependencies | |
| ### | |
| require.paths.unshift "#{__dirname}/lib/support/express-csrf/" | |
| require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/" | |
| express = require 'express' | |
| app = module.exports = express.createServer() | |
| RedisStore = require 'connect-redis' |
| # mixing imperative and functional code | |
| sum = 0 | |
| (1..10).map do |i| | |
| sum += i | |
| end |
| import qualified Control.Monad.State as S | |
| import Control.Applicative ((<$>), (<*>)) | |
| import Data.Maybe (fromMaybe) | |
| import qualified Data.Map as M | |
| import Control.Monad (unless) | |
| data BF = Token Char | Loop [BF] deriving Show | |
| type Tape = M.Map Int Char | |
| type Env = (Int, Tape) |
| [Unit] | |
| Description=Gitlab Resque | |
| [Service] | |
| Type=forking | |
| SyslogIdentifier=gl-resque | |
| User=gitlab | |
| PIDFile=/home/gitlab/gitlab/tmp/pids/resque_worker.pid | |
| WorkingDirectory=/home/gitlab/gitlab |
| #-*-coding: utf-8-*- | |
| """ | |
| Simple script to dump documents out of a CouchDB database and straight into | |
| a Couchbase instance. | |
| """ | |
| import time | |
| import sys | |
| import argparse |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| module Main where | |
| import Control.Monad.Eff | |
| import Control.Reactive | |
| import Debug.Trace | |
| import Prelude | |
| foreign import websocket | |
| "function websocket(url) {\ | |
| \ return function(outgoing) {\ |
... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
| # using such a setup requires `apt-get install lua-nginx-redis` under Ubuntu Trusty | |
| # more info @ http://wiki.nginx.org/HttpLuaModule#access_by_lua | |
| http { | |
| lua_package_path "/etc/nginx/include.d/?.lua;;"; | |
| lua_socket_pool_size 100; | |
| lua_socket_connect_timeout 10ms; | |
| lua_socket_read_timeout 10ms; | |
| server { |
This blog post series has moved here.
You might also be interested in the 2016 version.