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
# use pkg-config for getting CFLAGS and LDLIBS | |
FFMPEG_LIBS= libavdevice \ | |
libavformat \ | |
libavfilter \ | |
libavcodec \ | |
libswresample \ | |
libswscale \ | |
libavutil \ | |
CFLAGS += -Wall -g |
#!/usr/bin/env python | |
""" | |
- ae(v): context-adaptive arithmetic entropy-coded syntax element. The parsing process for this descriptor is | |
specified in clause 9.3. | |
- b(8): byte having any pattern of bit string (8 bits). The parsing process | |
for this descriptor is specified by the return value of the function | |
read_bits( 8 ). | |
- f(n): fixed-pattern bit string using n bits written (from left to right) |
# Given an array of arrays s = [ [1,2,3], [4,5,6], ... ] | |
# compute the Cartesian product among the elements of s. | |
require 'pp' | |
s = [[1, 2], [3, 4, 5], [6, 7, 8, 9]] | |
pp s[1..-1].inject(s[0]){ |m,v| m = m.product(v).map(&:flatten) } | |
[[1, 3, 6], | |
[1, 3, 7], | |
[1, 3, 8], |
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