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) {\ |
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| #-*-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 |
| [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 |
| 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) |
| # mixing imperative and functional code | |
| sum = 0 | |
| (1..10).map do |i| | |
| sum += i | |
| end |
| ### | |
| 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' |